@dylanpiercey/work 0.0.74 → 0.0.76
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/bin/work.mjs +21 -3
- package/dist/{_BDyG-m5v.js → _BXcFivfU.js} +53 -4
- package/dist/{_JZKScK_6.js → _CqtfLw6Y.js} +17 -17
- package/dist/_DvlOez7w.js +2 -0
- package/dist/{_C4T3WOc-.js → __lXIKR5F.js} +41 -41
- package/dist/index.mjs +188 -188
- package/dist/public/assets/{_BsMtWEvw2.js → _2JbF4QZ-2.js} +1 -1
- package/dist/public/assets/_2JbF4QZ-2.js.br +0 -0
- package/dist/public/assets/{_tP5Jh-Ws.js → _3Hkb9yUu.js} +6 -6
- package/dist/public/assets/_3Hkb9yUu.js.br +0 -0
- package/dist/public/assets/{_DCLWmEuS.js → _6AsCIctl.js} +1 -1
- package/dist/public/assets/_6AsCIctl.js.br +0 -0
- package/dist/public/assets/{_uEb-xDmI.js → _8toYrXVK.js} +1 -1
- package/dist/public/assets/{_tpRUSSso.js → _B7fOkgiH.js} +1 -1
- package/dist/public/assets/_B7fOkgiH.js.br +0 -0
- package/dist/public/assets/{_DncKjJb4.js → _BEG2RHhd.js} +1 -1
- package/dist/public/assets/_BEG2RHhd.js.br +0 -0
- package/dist/public/assets/{_CKkkXYf42.js → _BHlaYXO_2.js} +1 -1
- package/dist/public/assets/_BHlaYXO_2.js.br +0 -0
- package/dist/public/assets/{_B8yL5yfH.js → _BNFNv1Bq.js} +1 -1
- package/dist/public/assets/_BNFNv1Bq.js.br +0 -0
- package/dist/public/assets/{_Bf8W6hR7.js → _BUgACTwS.js} +1 -1
- package/dist/public/assets/_BUgACTwS.js.br +0 -0
- package/dist/public/assets/{_QP0MFlyi.js → _BZ5X8ZeJ.js} +1 -1
- package/dist/public/assets/_BZ5X8ZeJ.js.br +0 -0
- package/dist/public/assets/{_kVKsguoi2.js → _B_b1CgHC2.js} +1 -1
- package/dist/public/assets/_B_b1CgHC2.js.br +0 -0
- package/dist/public/assets/{_DTZJyM9w.js → _BdktPwDj.js} +1 -1
- package/dist/public/assets/_BdktPwDj.js.br +0 -0
- package/dist/public/assets/{_BRKdH0Xv.js → _BjPdBgJ8.js} +1 -1
- package/dist/public/assets/_BjPdBgJ8.js.br +0 -0
- package/dist/public/assets/{_FgVKeYCS.js → _BnWlJiz6.js} +1 -1
- package/dist/public/assets/_BnWlJiz6.js.br +0 -0
- package/dist/public/assets/{_DPPdU-Av.js → _BpBr5IdO.js} +1 -1
- package/dist/public/assets/_BpBr5IdO.js.br +0 -0
- package/dist/public/assets/{_CSSWCImt.js → _BppyqDqk.js} +1 -1
- package/dist/public/assets/_BppyqDqk.js.br +0 -0
- package/dist/public/assets/{_BSnpBPhR.js → _Bx-6cv1l.js} +1 -1
- package/dist/public/assets/_Bx-6cv1l.js.br +0 -0
- package/dist/public/assets/{_CVQsXn4K.js → _BxG2fPQ6.js} +1 -1
- package/dist/public/assets/_BxG2fPQ6.js.br +0 -0
- package/dist/public/assets/{_o_bMNXwQ2.js → _BzqUZqWL2.js} +1 -1
- package/dist/public/assets/_BzqUZqWL2.js.br +0 -0
- package/dist/public/assets/{_0_BxD6tA2.js → _C34E09cV2.js} +1 -1
- package/dist/public/assets/_C34E09cV2.js.br +0 -0
- package/dist/public/assets/{_DHth5jay2.js → _C5C_uOm72.js} +1 -1
- package/dist/public/assets/_C5C_uOm72.js.br +0 -0
- package/dist/public/assets/{_COQdreVN.js → _C6Oq-fpi.js} +1 -1
- package/dist/public/assets/_C6Oq-fpi.js.br +0 -0
- package/dist/public/assets/{_CbnLiunX.js → _C8iBzrpk.js} +1 -1
- package/dist/public/assets/_C8iBzrpk.js.br +0 -0
- package/dist/public/assets/{_XSVpb5jO2.js → _C91eNTKI2.js} +1 -1
- package/dist/public/assets/_C91eNTKI2.js.br +0 -0
- package/dist/public/assets/{_DsjVSWqF.js → _CD2q1ZVm.js} +1 -1
- package/dist/public/assets/_CD2q1ZVm.js.br +0 -0
- package/dist/public/assets/{_B7qLfWk7.js → _CEOCshbv.js} +1 -1
- package/dist/public/assets/_CEOCshbv.js.br +0 -0
- package/dist/public/assets/{_C4OOpxns2.js → _CEWSo0iP2.js} +1 -1
- package/dist/public/assets/_CEWSo0iP2.js.br +0 -0
- package/dist/public/assets/{_U11SdqZG2.js → _CFPLV_RM2.js} +1 -1
- package/dist/public/assets/_CFPLV_RM2.js.br +0 -0
- package/dist/public/assets/{_DI_ZoCy4.js → _CFj_gwWI.js} +1 -1
- package/dist/public/assets/_CFj_gwWI.js.br +0 -0
- package/dist/public/assets/{_CHUg0ksH2.js → _CSuwPDOp2.js} +1 -1
- package/dist/public/assets/_CSuwPDOp2.js.br +0 -0
- package/dist/public/assets/{_CL6hsAgf2.js → _CUDXFOSz2.js} +1 -1
- package/dist/public/assets/_CUDXFOSz2.js.br +0 -0
- package/dist/public/assets/{_RjnwisyN2.js → _CVuPSJA72.js} +1 -1
- package/dist/public/assets/_CVuPSJA72.js.br +0 -0
- package/dist/public/assets/{_CqJy9zqf.js → _CctK1uSA.js} +1 -1
- package/dist/public/assets/_CctK1uSA.js.br +0 -0
- package/dist/public/assets/{_BCELU8uk.js → _ClX_Oqrr.js} +1 -1
- package/dist/public/assets/_ClX_Oqrr.js.br +0 -0
- package/dist/public/assets/{_fDUiWXKb.js → _Cn6w3MhW.js} +1 -1
- package/dist/public/assets/_Cn6w3MhW.js.br +0 -0
- package/dist/public/assets/{_DwvzTp2-.js → _Cphh_yi5.js} +1 -1
- package/dist/public/assets/_Cphh_yi5.js.br +0 -0
- package/dist/public/assets/{_B-vJ063K2.js → _CqPdZxvF2.js} +1 -1
- package/dist/public/assets/_CqPdZxvF2.js.br +0 -0
- package/dist/public/assets/{_CmATrSbQ.js → _Cs51LV8m.js} +1 -1
- package/dist/public/assets/_Cs51LV8m.js.br +0 -0
- package/dist/public/assets/{_Cy4Qu_lY.js → _CsXxbWcQ.js} +1 -1
- package/dist/public/assets/_CsXxbWcQ.js.br +0 -0
- package/dist/public/assets/{_CJmkmGNg.js → _CsgJmYNA.js} +1 -1
- package/dist/public/assets/_CsgJmYNA.js.br +0 -0
- package/dist/public/assets/{_vs0DFS9r2.js → _Ct92IAWI2.js} +1 -1
- package/dist/public/assets/_Ct92IAWI2.js.br +0 -0
- package/dist/public/assets/{_DPfjt9fQ.js → _D0nMBSFq.js} +1 -1
- package/dist/public/assets/_D0nMBSFq.js.br +0 -0
- package/dist/public/assets/{_BjS-vjVo2.js → _D14ai5852.js} +1 -1
- package/dist/public/assets/_D14ai5852.js.br +0 -0
- package/dist/public/assets/{_B6cp2Tnt2.js → _D1YQla-x2.js} +1 -1
- package/dist/public/assets/_D1YQla-x2.js.br +0 -0
- package/dist/public/assets/{_BEsGJwj1.js → _D367w68f.js} +1 -1
- package/dist/public/assets/_D367w68f.js.br +0 -0
- package/dist/public/assets/{_Cy6s-DjW.js → _D7ModyMj.js} +1 -1
- package/dist/public/assets/_D7ModyMj.js.br +0 -0
- package/dist/public/assets/{_Cq4B-czG2.js → _D8uHD5Q02.js} +1 -1
- package/dist/public/assets/_D8uHD5Q02.js.br +0 -0
- package/dist/public/assets/{_C4bcAkxw.js → _D9-Z5alI.js} +3 -3
- package/dist/public/assets/_D9-Z5alI.js.br +0 -0
- package/dist/public/assets/{_uKsdufG5.js → _D9QFUawY.js} +1 -1
- package/dist/public/assets/_D9QFUawY.js.br +0 -0
- package/dist/public/assets/{_CRzcId75.js → _DCJtg98I.js} +1 -1
- package/dist/public/assets/_DCJtg98I.js.br +0 -0
- package/dist/public/assets/{_JL1loQ5W.js → _DJ0O5SUE.js} +1 -1
- package/dist/public/assets/_DJ0O5SUE.js.br +0 -0
- package/dist/public/assets/{_CTIj6y6q.js → _DK3cmEdX.js} +1 -1
- package/dist/public/assets/_DK3cmEdX.js.br +0 -0
- package/dist/public/assets/{_Cv5cB1Gc.js → _DNuUxoGY.js} +1 -1
- package/dist/public/assets/_DNuUxoGY.js.br +0 -0
- package/dist/public/assets/{_BAM8hQx8.js → _DQ-YqDv_.js} +1 -1
- package/dist/public/assets/_DQ-YqDv_.js.br +0 -0
- package/dist/public/assets/{_Cymp0KkN.js → _DTGwibmE.js} +1 -1
- package/dist/public/assets/_DTGwibmE.js.br +0 -0
- package/dist/public/assets/{_Cl6zL1rb.js → _DTbRs8Rd.js} +1 -1
- package/dist/public/assets/_DTbRs8Rd.js.br +0 -0
- package/dist/public/assets/{_DXCkImvC2.js → _Da8CpJXC2.js} +1 -1
- package/dist/public/assets/{_CNHWN4ne.js → _DgB3U5Gu.js} +1 -1
- package/dist/public/assets/_DgB3U5Gu.js.br +0 -0
- package/dist/public/assets/{_DxrYm2uA2.js → _Dkei5s2x2.js} +1 -1
- package/dist/public/assets/_Dkei5s2x2.js.br +0 -0
- package/dist/public/assets/{_Ckz3mCrC.js → _DnvNLHgm.js} +1 -1
- package/dist/public/assets/_DnvNLHgm.js.br +0 -0
- package/dist/public/assets/{_CvqFUYec.js → _DqKJcZgQ.js} +1 -1
- package/dist/public/assets/_DqKJcZgQ.js.br +0 -0
- package/dist/public/assets/{_Dim3Qa8e2.js → _Dv99udYl2.js} +1 -1
- package/dist/public/assets/_Dv99udYl2.js.br +0 -0
- package/dist/public/assets/{_ETZIHvA2.js → _GndjdkeR.js} +1 -1
- package/dist/public/assets/_GndjdkeR.js.br +0 -0
- package/dist/public/assets/{_BRrshe202.js → _O6S_XpA12.js} +1 -1
- package/dist/public/assets/{_CEjOmogC2.js → _WVX78_eQ2.js} +1 -1
- package/dist/public/assets/_WVX78_eQ2.js.br +0 -0
- package/dist/public/assets/{_BIlkaSXj2.js → _Yp8RndlS2.js} +1 -1
- package/dist/public/assets/_Yp8RndlS2.js.br +0 -0
- package/dist/public/assets/{_Bsi-MUb-.js → _ZpIu30xq.js} +1 -1
- package/dist/public/assets/_ZpIu30xq.js.br +0 -0
- package/dist/public/assets/{_D-wyWmAu.js → _dRNLUcmQ.js} +1 -1
- package/dist/public/assets/_dRNLUcmQ.js.br +0 -0
- package/dist/public/assets/{_DAQlNNDT.js → _iVbNVfLo.js} +1 -1
- package/dist/public/assets/_iVbNVfLo.js.br +0 -0
- package/dist/public/assets/{_DdSK0SaL.js → _jbEhGKqF.js} +1 -1
- package/dist/public/assets/_jbEhGKqF.js.br +0 -0
- package/dist/public/assets/{_RZIVk7xV.js → _lUBz-hZ6.js} +1 -1
- package/dist/public/assets/_lUBz-hZ6.js.br +0 -0
- package/dist/public/assets/{_B3-kV650.js → _mwsyNxHs.js} +1 -1
- package/dist/public/assets/_mwsyNxHs.js.br +0 -0
- package/dist/public/assets/{_CzvbtXgZ.js → _nG8aO-be.js} +1 -1
- package/dist/public/assets/_nG8aO-be.js.br +0 -0
- package/dist/public/assets/{_B-ZLatX02.js → _oHe-s5Oy2.js} +1 -1
- package/dist/public/assets/_oHe-s5Oy2.js.br +0 -0
- package/dist/public/assets/{_CY8DnUYp.js → _wB8kCQ2X.js} +1 -1
- package/dist/public/assets/_wB8kCQ2X.js.br +0 -0
- package/dist/public/assets/{_DztmqTsm.js → _xnbg6Khg.js} +1 -1
- package/dist/public/assets/_xnbg6Khg.js.br +0 -0
- package/dist/public/assets/app-page-D4vPVvwL.css +1 -0
- package/dist/public/assets/app-page-D4vPVvwL.css.br +0 -0
- package/dist/public/assets/{diff-view-TbHko8ib.css → diff-view-Dy6kJWU6.css} +1 -1
- package/dist/public/assets/diff-view-Dy6kJWU6.css.br +0 -0
- package/dist/public/assets/new-DZ3Y7jRu.js +1 -0
- package/dist/public/assets/settings-DZ3Y7jRu.js +1 -0
- package/dist/public/assets/w-DZ3Y7jRu.js +1 -0
- package/dist/public/assets/w._-B_8o0W7U.js +1 -0
- package/dist/public/assets/w._-DZ3Y7jRu.js +1 -0
- package/package.json +1 -1
- package/dist/_wbad_ZHd.js +0 -2
- package/dist/public/assets/_0_BxD6tA2.js.br +0 -0
- package/dist/public/assets/_B-ZLatX02.js.br +0 -0
- package/dist/public/assets/_B-vJ063K2.js.br +0 -0
- package/dist/public/assets/_B3-kV650.js.br +0 -0
- package/dist/public/assets/_B6cp2Tnt2.js.br +0 -0
- package/dist/public/assets/_B7qLfWk7.js.br +0 -0
- package/dist/public/assets/_B8yL5yfH.js.br +0 -0
- package/dist/public/assets/_BAM8hQx8.js.br +0 -0
- package/dist/public/assets/_BCELU8uk.js.br +0 -0
- package/dist/public/assets/_BEsGJwj1.js.br +0 -0
- package/dist/public/assets/_BIlkaSXj2.js.br +0 -0
- package/dist/public/assets/_BRKdH0Xv.js.br +0 -0
- package/dist/public/assets/_BSnpBPhR.js.br +0 -0
- package/dist/public/assets/_Bf8W6hR7.js.br +0 -0
- package/dist/public/assets/_BjS-vjVo2.js.br +0 -0
- package/dist/public/assets/_BsMtWEvw2.js.br +0 -0
- package/dist/public/assets/_Bsi-MUb-.js.br +0 -0
- package/dist/public/assets/_C4OOpxns2.js.br +0 -0
- package/dist/public/assets/_C4bcAkxw.js.br +0 -0
- package/dist/public/assets/_CEjOmogC2.js.br +0 -0
- package/dist/public/assets/_CHUg0ksH2.js.br +0 -0
- package/dist/public/assets/_CJmkmGNg.js.br +0 -0
- package/dist/public/assets/_CKkkXYf42.js.br +0 -0
- package/dist/public/assets/_CL6hsAgf2.js.br +0 -0
- package/dist/public/assets/_CNHWN4ne.js.br +0 -0
- package/dist/public/assets/_COQdreVN.js.br +0 -0
- package/dist/public/assets/_CRzcId75.js.br +0 -0
- package/dist/public/assets/_CSSWCImt.js.br +0 -0
- package/dist/public/assets/_CTIj6y6q.js.br +0 -0
- package/dist/public/assets/_CVQsXn4K.js.br +0 -0
- package/dist/public/assets/_CY8DnUYp.js.br +0 -0
- package/dist/public/assets/_CbnLiunX.js.br +0 -0
- package/dist/public/assets/_Ckz3mCrC.js.br +0 -0
- package/dist/public/assets/_Cl6zL1rb.js.br +0 -0
- package/dist/public/assets/_CmATrSbQ.js.br +0 -0
- package/dist/public/assets/_Cq4B-czG2.js.br +0 -0
- package/dist/public/assets/_CqJy9zqf.js.br +0 -0
- package/dist/public/assets/_Cv5cB1Gc.js.br +0 -0
- package/dist/public/assets/_CvqFUYec.js.br +0 -0
- package/dist/public/assets/_Cy4Qu_lY.js.br +0 -0
- package/dist/public/assets/_Cy6s-DjW.js.br +0 -0
- package/dist/public/assets/_Cymp0KkN.js.br +0 -0
- package/dist/public/assets/_CzvbtXgZ.js.br +0 -0
- package/dist/public/assets/_D-wyWmAu.js.br +0 -0
- package/dist/public/assets/_DAQlNNDT.js.br +0 -0
- package/dist/public/assets/_DCLWmEuS.js.br +0 -0
- package/dist/public/assets/_DHth5jay2.js.br +0 -0
- package/dist/public/assets/_DI_ZoCy4.js.br +0 -0
- package/dist/public/assets/_DPPdU-Av.js.br +0 -0
- package/dist/public/assets/_DPfjt9fQ.js.br +0 -0
- package/dist/public/assets/_DTZJyM9w.js.br +0 -0
- package/dist/public/assets/_DdSK0SaL.js.br +0 -0
- package/dist/public/assets/_Dim3Qa8e2.js.br +0 -0
- package/dist/public/assets/_DncKjJb4.js.br +0 -0
- package/dist/public/assets/_DsjVSWqF.js.br +0 -0
- package/dist/public/assets/_DwvzTp2-.js.br +0 -0
- package/dist/public/assets/_DxrYm2uA2.js.br +0 -0
- package/dist/public/assets/_DztmqTsm.js.br +0 -0
- package/dist/public/assets/_ETZIHvA2.js.br +0 -0
- package/dist/public/assets/_FgVKeYCS.js.br +0 -0
- package/dist/public/assets/_JL1loQ5W.js.br +0 -0
- package/dist/public/assets/_QP0MFlyi.js.br +0 -0
- package/dist/public/assets/_RZIVk7xV.js.br +0 -0
- package/dist/public/assets/_RjnwisyN2.js.br +0 -0
- package/dist/public/assets/_U11SdqZG2.js.br +0 -0
- package/dist/public/assets/_XSVpb5jO2.js.br +0 -0
- package/dist/public/assets/_fDUiWXKb.js.br +0 -0
- package/dist/public/assets/_kVKsguoi2.js.br +0 -0
- package/dist/public/assets/_o_bMNXwQ2.js.br +0 -0
- package/dist/public/assets/_tP5Jh-Ws.js.br +0 -0
- package/dist/public/assets/_tpRUSSso.js.br +0 -0
- package/dist/public/assets/_uKsdufG5.js.br +0 -0
- package/dist/public/assets/_vs0DFS9r2.js.br +0 -0
- package/dist/public/assets/app-page-KK8yJIbR.css +0 -1
- package/dist/public/assets/app-page-KK8yJIbR.css.br +0 -0
- package/dist/public/assets/diff-view-TbHko8ib.css.br +0 -0
- package/dist/public/assets/new-OSO__hUI.js +0 -1
- package/dist/public/assets/settings-OSO__hUI.js +0 -1
- package/dist/public/assets/w-OSO__hUI.js +0 -1
- package/dist/public/assets/w._-BVUaVdRa.js +0 -1
- package/dist/public/assets/w._-OSO__hUI.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
|
-
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 "./
|
|
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 "./
|
|
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 "./_CqtfLw6Y.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3133,26 +3133,26 @@ 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 _5 _6";
|
|
3137
|
+
var agentGrid = "_b7 _bf";
|
|
3138
|
+
var toolGrid = "_cg _bf";
|
|
3139
3139
|
//#endregion
|
|
3140
3140
|
//#region src/tags/page-head.marko
|
|
3141
3141
|
var page_head_default = _template("o", (input) => {
|
|
3142
3142
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
3143
3143
|
const $scope0_id = _scope_id();
|
|
3144
|
-
_html(`<header${_attr_class("
|
|
3144
|
+
_html(`<header${_attr_class("_7")}>`);
|
|
3145
3145
|
_if(() => {
|
|
3146
3146
|
if (input.backHref) {
|
|
3147
3147
|
const $scope1_id = _scope_id();
|
|
3148
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3148
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cp"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3149
3149
|
icon_back_default({ size: 16 });
|
|
3150
3150
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3151
3151
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3152
3152
|
return 0;
|
|
3153
3153
|
} else if (input.onBack) {
|
|
3154
3154
|
const $scope2_id = _scope_id();
|
|
3155
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3155
|
+
_html(`<button${_attr_class([iconBtnRow, "_cp"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3156
3156
|
icon_back_default({ size: 16 });
|
|
3157
3157
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3158
3158
|
_script($scope2_id, "o0");
|
|
@@ -3160,11 +3160,11 @@ var page_head_default = _template("o", (input) => {
|
|
|
3160
3160
|
return 1;
|
|
3161
3161
|
}
|
|
3162
3162
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
3163
|
-
_html(`<div${_attr_class("
|
|
3163
|
+
_html(`<div${_attr_class("_9")}><h1${_attr("id", input.titleId)}${_attr_class("_8")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3164
3164
|
_if(() => {
|
|
3165
3165
|
if (input.meta) {
|
|
3166
3166
|
const $scope3_id = _scope_id();
|
|
3167
|
-
_html(`<p${_attr_class("
|
|
3167
|
+
_html(`<p${_attr_class("__")}>`);
|
|
3168
3168
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3169
3169
|
_html("</p>");
|
|
3170
3170
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3175,7 +3175,7 @@ var page_head_default = _template("o", (input) => {
|
|
|
3175
3175
|
_if(() => {
|
|
3176
3176
|
if (input.actions) {
|
|
3177
3177
|
const $scope4_id = _scope_id();
|
|
3178
|
-
_html(`<div${_attr_class("
|
|
3178
|
+
_html(`<div${_attr_class("_ba")}>`);
|
|
3179
3179
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3180
3180
|
_html("</div>");
|
|
3181
3181
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -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 = "_cw _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(["_cq", { ["_cr"]: input.hideName }])}><div${_attr_class("_cs")}>`);
|
|
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("_cL")}>${_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("_ct")}>${_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("_cu")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
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(["_cv", { ["_cM"]: 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 ? "_cE" : win.used_percent >= 70 ? "_cD" : win.used_percent >= 40 ? "_cC" : "_cB";
|
|
3301
|
+
const pctClass = win.used_percent >= 90 ? "_cJ" : win.used_percent >= 70 ? "_cI" : win.used_percent >= 40 ? "_cH" : "_cG";
|
|
3302
|
+
_html(`<div${_attr_class("_cx")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_cy")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_cz")}><span${_attr_class(["_cA", 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(["_cF", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_cK")}>${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(() => {
|
|
@@ -3358,7 +3358,7 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3358
3358
|
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;
|
|
3359
3359
|
const dismissable = input.dismissable !== false;
|
|
3360
3360
|
let open = input.open;
|
|
3361
|
-
_html(`<dialog${_attr_class(["
|
|
3361
|
+
_html(`<dialog${_attr_class(["_eI", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3362
3362
|
...htmlInput,
|
|
3363
3363
|
open: null
|
|
3364
3364
|
}, {
|
|
@@ -3368,20 +3368,20 @@ var modal_view_default = _template("m", (input) => {
|
|
|
3368
3368
|
closedby: 1,
|
|
3369
3369
|
"on-cancel": 1,
|
|
3370
3370
|
"on-close": 1
|
|
3371
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3371
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_eJ")}>`);
|
|
3372
3372
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3373
3373
|
_html("</div>");
|
|
3374
3374
|
_if(() => {
|
|
3375
3375
|
if (footer) {
|
|
3376
3376
|
const $scope1_id = _scope_id();
|
|
3377
|
-
_html(`<form method=dialog${_attr_class("
|
|
3377
|
+
_html(`<form method=dialog${_attr_class("_eK")}>`);
|
|
3378
3378
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3379
3379
|
_html("</form>");
|
|
3380
3380
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3381
3381
|
return 0;
|
|
3382
3382
|
} else if (input.openChange) {
|
|
3383
3383
|
const $scope2_id = _scope_id();
|
|
3384
|
-
_html(`<form method=dialog${_attr_class("
|
|
3384
|
+
_html(`<form method=dialog${_attr_class("_eK")}>`);
|
|
3385
3385
|
dialog_close_default({
|
|
3386
3386
|
class: ["_l", "_m"],
|
|
3387
3387
|
content: _content("m0", () => {
|
|
@@ -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: "_c0",
|
|
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("_c1")}${_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");
|
|
@@ -3702,7 +3702,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3702
3702
|
const agentsId = _id();
|
|
3703
3703
|
const githubId = _id();
|
|
3704
3704
|
const machineId = _id();
|
|
3705
|
-
_html(`<div${_attr_class("
|
|
3705
|
+
_html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content$2)}>`);
|
|
3706
3706
|
_set_serialize_reason({
|
|
3707
3707
|
0: _serialize_guard($scope0_reason, 2),
|
|
3708
3708
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -3726,12 +3726,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3726
3726
|
return 0;
|
|
3727
3727
|
} else if (setup.ready) {
|
|
3728
3728
|
const $scope43_id = _scope_id();
|
|
3729
|
-
_html(`<span${_attr_class("
|
|
3729
|
+
_html(`<span${_attr_class("_b5")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
3730
3730
|
writeScope($scope43_id, {});
|
|
3731
3731
|
return 1;
|
|
3732
3732
|
} else {
|
|
3733
3733
|
const $scope5_id = _scope_id();
|
|
3734
|
-
_html(`<span${_attr_class("
|
|
3734
|
+
_html(`<span${_attr_class("_b6")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
3735
3735
|
_subscribe($setup_missing__closures, writeScope($scope5_id, {}));
|
|
3736
3736
|
return 2;
|
|
3737
3737
|
}
|
|
@@ -3778,11 +3778,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3778
3778
|
return 0;
|
|
3779
3779
|
}
|
|
3780
3780
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
3781
|
-
_html(`<section${_attr_class("
|
|
3781
|
+
_html(`<section${_attr_class("_bc")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bd")}><h2${_attr("id", agentsId)}${_attr_class("_br")}>Agents</h2><div${_attr_class("_v")}></div><label${_attr_class("_b9")}><span${_attr_class("_P")}>Default</span><span${_attr_class("_j")}>`);
|
|
3782
3782
|
_attr_select_value($scope0_id, "m", input.preferred, _resume(function(v) {
|
|
3783
3783
|
setPreferred(v);
|
|
3784
3784
|
}, "s1", $scope0_id), () => {
|
|
3785
|
-
_html(`<select${_attr_class(["_k", "
|
|
3785
|
+
_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">`);
|
|
3786
3786
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3787
3787
|
const $scope44_id = _scope_id();
|
|
3788
3788
|
_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)}`);
|
|
@@ -3803,14 +3803,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3803
3803
|
const rows = lone ? [] : a.instances;
|
|
3804
3804
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3805
3805
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3806
|
-
_html(`<li${_attr_class(["
|
|
3806
|
+
_html(`<li${_attr_class(["_bh", "_b8"])}><div${_attr_class(["_ca", { ["_cd"]: lone && !lone.enabled }])}>`);
|
|
3807
3807
|
_set_serialize_reason(12);
|
|
3808
3808
|
const $childScope4 = _peek_scope_id();
|
|
3809
3809
|
icon_agent_default({
|
|
3810
3810
|
agent: a.id,
|
|
3811
3811
|
size: 18
|
|
3812
3812
|
});
|
|
3813
|
-
_html(`<div${_attr_class("
|
|
3813
|
+
_html(`<div${_attr_class("_bi")}><span${_attr_class("_bk")}><span${_attr_class("_bj")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3814
3814
|
_if(() => {
|
|
3815
3815
|
if (lone && input.preferred === lone.id) {
|
|
3816
3816
|
const $scope45_id = _scope_id();
|
|
@@ -3823,12 +3823,12 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3823
3823
|
_if(() => {
|
|
3824
3824
|
if (active.has(a.id)) {
|
|
3825
3825
|
const $scope10_id = _scope_id();
|
|
3826
|
-
_html(`<span${_attr_class("
|
|
3826
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3827
3827
|
_subscribe($active__closures, writeScope($scope10_id, {}));
|
|
3828
3828
|
return 0;
|
|
3829
3829
|
} else if (!a.installed) {
|
|
3830
3830
|
const $scope46_id = _scope_id();
|
|
3831
|
-
_html(`<span${_attr_class("
|
|
3831
|
+
_html(`<span${_attr_class("_bl")}>Not installed</span>`);
|
|
3832
3832
|
writeScope($scope46_id, {});
|
|
3833
3833
|
return 1;
|
|
3834
3834
|
}
|
|
@@ -3860,18 +3860,18 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3860
3860
|
_if(() => {
|
|
3861
3861
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3862
3862
|
const $scope2_id = _scope_id();
|
|
3863
|
-
_html(`<ul${_attr_class("
|
|
3863
|
+
_html(`<ul${_attr_class("_cf")}>`);
|
|
3864
3864
|
_for_of(rows, (inst) => {
|
|
3865
3865
|
const $scope3_id = _scope_id();
|
|
3866
3866
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3867
|
-
_html(`<li${_attr_class("
|
|
3867
|
+
_html(`<li${_attr_class("_cb")}><div${_attr_class(["_cc", { ["_cd"]: !inst.enabled }])}>`);
|
|
3868
3868
|
_set_serialize_reason(12);
|
|
3869
3869
|
const $childScope5 = _peek_scope_id();
|
|
3870
3870
|
icon_agent_default({
|
|
3871
3871
|
agent: inst.id,
|
|
3872
3872
|
size: 15
|
|
3873
3873
|
});
|
|
3874
|
-
_html(`<span${_attr_class(["
|
|
3874
|
+
_html(`<span${_attr_class(["_ce", "_u"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3875
3875
|
_if(() => {
|
|
3876
3876
|
if (input.preferred === inst.id) {
|
|
3877
3877
|
const $scope47_id = _scope_id();
|
|
@@ -3946,7 +3946,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3946
3946
|
}, "id", $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
3947
3947
|
_for_of(otherUsage, (u) => {
|
|
3948
3948
|
const $scope51_id = _scope_id();
|
|
3949
|
-
_html(`<li${_attr_class(["
|
|
3949
|
+
_html(`<li${_attr_class(["_bh", "_b8"])}>`);
|
|
3950
3950
|
_set_serialize_reason(6);
|
|
3951
3951
|
const $childScope9 = _peek_scope_id();
|
|
3952
3952
|
usage_meters_default({ agent: u });
|
|
@@ -3957,21 +3957,21 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3957
3957
|
_if(() => {
|
|
3958
3958
|
if (!usage && families.length) {
|
|
3959
3959
|
const $scope52_id = _scope_id();
|
|
3960
|
-
_html(`<p${_attr_class("
|
|
3960
|
+
_html(`<p${_attr_class("_bn")}><span${_attr_class("_C")}></span> Loading usage…</p>`);
|
|
3961
3961
|
writeScope($scope52_id, {});
|
|
3962
3962
|
return 0;
|
|
3963
3963
|
} else if (usage?.error) {
|
|
3964
3964
|
const $scope6_id = _scope_id();
|
|
3965
|
-
_html(`<p${_attr_class("
|
|
3965
|
+
_html(`<p${_attr_class("_bn")}>${_escape(usage.error)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3966
3966
|
writeScope($scope6_id, {});
|
|
3967
3967
|
return 1;
|
|
3968
3968
|
}
|
|
3969
3969
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
3970
|
-
_html(`</section><section${_attr_class("
|
|
3970
|
+
_html(`</section><section${_attr_class("_bc")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bd")}><h2${_attr("id", githubId)}${_attr_class("_br")}>GitHub</h2></div><ul${_attr_class("_bf")}>`);
|
|
3971
3971
|
_for_of(setup?.github || [], (h) => {
|
|
3972
3972
|
const $scope11_id = _scope_id();
|
|
3973
3973
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3974
|
-
_html(`<li${_attr_class("
|
|
3974
|
+
_html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}><span${_attr_class("_bk")}><span${_attr_class(["_bj", "_u"])}>${_escape(h.host)}${_el_resume($scope11_id, "e")}</span>`);
|
|
3975
3975
|
_if(() => {
|
|
3976
3976
|
if (h.isEnterprise) {
|
|
3977
3977
|
const $scope55_id = _scope_id();
|
|
@@ -3984,22 +3984,22 @@ var settings_page_default = _template("s", (input) => {
|
|
|
3984
3984
|
_if(() => {
|
|
3985
3985
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3986
3986
|
const $scope22_id = _scope_id();
|
|
3987
|
-
_html(`<span${_attr_class("
|
|
3987
|
+
_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>`);
|
|
3988
3988
|
_subscribe($authCodes__closures, writeScope($scope22_id, {}));
|
|
3989
3989
|
return 0;
|
|
3990
3990
|
} else if (active.has(h.host)) {
|
|
3991
3991
|
const $scope12_id = _scope_id();
|
|
3992
|
-
_html(`<span${_attr_class("
|
|
3992
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope12_id, "c")}</span>`);
|
|
3993
3993
|
_subscribe($active__closures, writeScope($scope12_id, { Cck: 1 }));
|
|
3994
3994
|
return 1;
|
|
3995
3995
|
} else if (h.authed) {
|
|
3996
3996
|
const $scope53_id = _scope_id();
|
|
3997
|
-
_html(`<span${_attr_class("
|
|
3997
|
+
_html(`<span${_attr_class("_bl")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope53_id, "b")}</span>`);
|
|
3998
3998
|
writeScope($scope53_id, {});
|
|
3999
3999
|
return 2;
|
|
4000
4000
|
} else {
|
|
4001
4001
|
const $scope54_id = _scope_id();
|
|
4002
|
-
_html(`<span${_attr_class("
|
|
4002
|
+
_html(`<span${_attr_class("_bl")}>${_escape(h.error || "Not signed in")}${_el_resume($scope54_id, "b")}</span>`);
|
|
4003
4003
|
writeScope($scope54_id, {});
|
|
4004
4004
|
return 3;
|
|
4005
4005
|
}
|
|
@@ -4030,7 +4030,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4030
4030
|
if (h.isEnterprise) {
|
|
4031
4031
|
const $scope25_id = _scope_id();
|
|
4032
4032
|
_html(`<button${_attr_class([
|
|
4033
|
-
"
|
|
4033
|
+
"_bm",
|
|
4034
4034
|
"_Z",
|
|
4035
4035
|
"_0",
|
|
4036
4036
|
{ ["_n"]: confirmingRemove === h.host }
|
|
@@ -4073,7 +4073,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4073
4073
|
_if(() => {
|
|
4074
4074
|
if (setup && !setup.github.length) {
|
|
4075
4075
|
const $scope58_id = _scope_id();
|
|
4076
|
-
_html(`<p${_attr_class("
|
|
4076
|
+
_html(`<p${_attr_class("_bn")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4077
4077
|
writeScope($scope58_id, {});
|
|
4078
4078
|
return 0;
|
|
4079
4079
|
}
|
|
@@ -4081,7 +4081,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4081
4081
|
_if(() => {
|
|
4082
4082
|
if (setup) {
|
|
4083
4083
|
const $scope33_id = _scope_id();
|
|
4084
|
-
_html(`<form${_attr_class("
|
|
4084
|
+
_html(`<form${_attr_class("_cm")}><label${_attr_class("_T")}>`);
|
|
4085
4085
|
icon_plus_default({
|
|
4086
4086
|
size: 14,
|
|
4087
4087
|
class: "_U"
|
|
@@ -4094,7 +4094,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4094
4094
|
return 0;
|
|
4095
4095
|
}
|
|
4096
4096
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
4097
|
-
_html(`</section><section${_attr_class("
|
|
4097
|
+
_html(`</section><section${_attr_class("_bc")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bd")}><h2${_attr("id", machineId)}${_attr_class("_br")}>Machine</h2>`);
|
|
4098
4098
|
_if(() => {
|
|
4099
4099
|
if (missingCount) {
|
|
4100
4100
|
const $scope40_id = _scope_id();
|
|
@@ -4134,7 +4134,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4134
4134
|
_if(() => {
|
|
4135
4135
|
if (setup && !setup.mise.installed) {
|
|
4136
4136
|
const $scope15_id = _scope_id();
|
|
4137
|
-
_html(`<p${_attr_class("
|
|
4137
|
+
_html(`<p${_attr_class("_bn")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope15_id, "c")}</button>${_el_resume($scope15_id, "b")}</p>`);
|
|
4138
4138
|
_script($scope15_id, "s35");
|
|
4139
4139
|
writeScope($scope15_id, {});
|
|
4140
4140
|
return 0;
|
|
@@ -4148,11 +4148,11 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4148
4148
|
const $for_content4__t_path__closures = /* @__PURE__ */ new Set();
|
|
4149
4149
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
4150
4150
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
4151
|
-
_html(`<li${_attr_class([row, { ["
|
|
4151
|
+
_html(`<li${_attr_class([row, { ["_ch"]: !t.installed }])}><span${_attr_class(["_ci", "_u"])}>${_escape(t.label)}${_el_resume($scope16_id, "c")}</span>`);
|
|
4152
4152
|
_if(() => {
|
|
4153
4153
|
if (active.has(t.id)) {
|
|
4154
4154
|
const $scope17_id = _scope_id();
|
|
4155
|
-
_html(`<span${_attr_class("
|
|
4155
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
4156
4156
|
_subscribe($active__closures, writeScope($scope17_id, { Cck: 2 }));
|
|
4157
4157
|
return 0;
|
|
4158
4158
|
} else if (t.installed) {
|
|
@@ -4160,7 +4160,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4160
4160
|
_if(() => {
|
|
4161
4161
|
if (t.version) {
|
|
4162
4162
|
const $scope30_id = _scope_id();
|
|
4163
|
-
_html(`<button${_attr_class(["
|
|
4163
|
+
_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")}`);
|
|
4164
4164
|
_script($scope30_id, "s36");
|
|
4165
4165
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope30_id, { Cu: 1 }))));
|
|
4166
4166
|
return 0;
|
|
@@ -4174,7 +4174,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4174
4174
|
_if(() => {
|
|
4175
4175
|
if (outdated(t)) {
|
|
4176
4176
|
const $scope37_id = _scope_id();
|
|
4177
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4177
|
+
_html(`<button${_attr_class([btnSm, "_ck"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
4178
4178
|
_script($scope37_id, "s37");
|
|
4179
4179
|
_subscribe($for_content4__t_latest__closures, writeScope($scope37_id, {}));
|
|
4180
4180
|
return 0;
|
|
@@ -4273,19 +4273,19 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4273
4273
|
_if(() => {
|
|
4274
4274
|
if (hits && hits.length) {
|
|
4275
4275
|
const $scope19_id = _scope_id();
|
|
4276
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4276
|
+
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4277
4277
|
_for_of(hits, (h) => {
|
|
4278
4278
|
const $scope20_id = _scope_id();
|
|
4279
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4279
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bi")}><span${_attr_class(["_ci", "_u"])}>${_escape(h.name)}${_el_resume($scope20_id, "d")}</span>`);
|
|
4280
4280
|
_if(() => {
|
|
4281
4281
|
if (active.has(h.name)) {
|
|
4282
4282
|
const $scope21_id = _scope_id();
|
|
4283
|
-
_html(`<span${_attr_class("
|
|
4283
|
+
_html(`<span${_attr_class("_b4")}><span${_attr_class("_C")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope21_id, "c")}</span>`);
|
|
4284
4284
|
_subscribe($active__closures, writeScope($scope21_id, { Cck: 4 }));
|
|
4285
4285
|
return 0;
|
|
4286
4286
|
} else if (h.description) {
|
|
4287
4287
|
const $scope65_id = _scope_id();
|
|
4288
|
-
_html(`<span${_attr_class("
|
|
4288
|
+
_html(`<span${_attr_class("_bl")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope65_id, "b")}</span>${_el_resume($scope65_id, "a")}`);
|
|
4289
4289
|
writeScope($scope65_id, {});
|
|
4290
4290
|
return 1;
|
|
4291
4291
|
}
|
|
@@ -4324,7 +4324,7 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4324
4324
|
return 0;
|
|
4325
4325
|
} else if (hits && !searching) {
|
|
4326
4326
|
const $scope34_id = _scope_id();
|
|
4327
|
-
_html(`<p${_attr_class("
|
|
4327
|
+
_html(`<p${_attr_class("_bn")}>No tools match "<!>${_escape(query)}${_el_resume($scope34_id, "b")}".</p>`);
|
|
4328
4328
|
_subscribe($query__closures, writeScope($scope34_id, {}));
|
|
4329
4329
|
return 1;
|
|
4330
4330
|
}
|
|
@@ -4430,14 +4430,14 @@ var settings_page_default = _template("s", (input) => {
|
|
|
4430
4430
|
});
|
|
4431
4431
|
//#endregion
|
|
4432
4432
|
//#region src/tags/new-workspace.css.ts
|
|
4433
|
-
var content$1 = "
|
|
4434
|
-
var section$1 = "
|
|
4435
|
-
var curBase = "
|
|
4436
|
-
var archived = "
|
|
4437
|
-
var archivedHint = "
|
|
4438
|
-
var archivedCard = "
|
|
4439
|
-
var resultBranch = "
|
|
4440
|
-
var branchInput = "
|
|
4433
|
+
var content$1 = "_bs _5";
|
|
4434
|
+
var section$1 = "_bw _bc";
|
|
4435
|
+
var curBase = "_bA _Q _P";
|
|
4436
|
+
var archived = "_bE _bc";
|
|
4437
|
+
var archivedHint = "_bF _P";
|
|
4438
|
+
var archivedCard = "_bG _bh";
|
|
4439
|
+
var resultBranch = "_cT _W _g";
|
|
4440
|
+
var branchInput = "_cY _S _R";
|
|
4441
4441
|
//#endregion
|
|
4442
4442
|
//#region src/tags/repo-picker.marko
|
|
4443
4443
|
var api$5;
|
|
@@ -4487,7 +4487,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4487
4487
|
input.onError?.(String(err.message || err));
|
|
4488
4488
|
}
|
|
4489
4489
|
}, "q5", $scope0_id);
|
|
4490
|
-
_html(`<div${_attr_class("
|
|
4490
|
+
_html(`<div${_attr_class("_cN")}><label${_attr_class("_T")}>`);
|
|
4491
4491
|
icon_search_default({
|
|
4492
4492
|
size: 14,
|
|
4493
4493
|
class: "_U"
|
|
@@ -4499,7 +4499,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4499
4499
|
_if(() => {
|
|
4500
4500
|
if (filter && !catalog) {
|
|
4501
4501
|
const $scope8_id = _scope_id();
|
|
4502
|
-
_html(`<p${_attr_class("
|
|
4502
|
+
_html(`<p${_attr_class("_bn")}>Loading repos…</p>`);
|
|
4503
4503
|
writeScope($scope8_id, {});
|
|
4504
4504
|
return 0;
|
|
4505
4505
|
}
|
|
@@ -4507,23 +4507,23 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4507
4507
|
_if(() => {
|
|
4508
4508
|
if (results.length) {
|
|
4509
4509
|
const $scope2_id = _scope_id();
|
|
4510
|
-
_html(`<ul${_attr_class("
|
|
4510
|
+
_html(`<ul${_attr_class("_cO")}>`);
|
|
4511
4511
|
_for_of(results, (repo, i) => {
|
|
4512
4512
|
const $scope3_id = _scope_id();
|
|
4513
|
-
_html(`<li><div${_attr_class(["
|
|
4513
|
+
_html(`<li><div${_attr_class(["_cQ", { ["_cP"]: i === highlight }])}><button${_attr_class("_cR")}>`);
|
|
4514
4514
|
icon_plus_default({
|
|
4515
4515
|
size: 12,
|
|
4516
|
-
class: "
|
|
4516
|
+
class: "_cW"
|
|
4517
4517
|
});
|
|
4518
|
-
_html(`<span${_attr_class("
|
|
4518
|
+
_html(`<span${_attr_class("_cX")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cS"]: 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")}`);
|
|
4519
4519
|
_if(() => {
|
|
4520
4520
|
if (branchesFor === repo.nameWithOwner) {
|
|
4521
4521
|
const $scope4_id = _scope_id();
|
|
4522
|
-
_html(`<div${_attr_class("
|
|
4522
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
4523
4523
|
_if(() => {
|
|
4524
4524
|
if (!branches) {
|
|
4525
4525
|
const $scope9_id = _scope_id();
|
|
4526
|
-
_html(`<p${_attr_class("
|
|
4526
|
+
_html(`<p${_attr_class("_bn")}><span${_attr_class("_C")}></span> Loading branches…</p>`);
|
|
4527
4527
|
writeScope($scope9_id, {});
|
|
4528
4528
|
return 0;
|
|
4529
4529
|
} else {
|
|
@@ -4540,17 +4540,17 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4542
4542
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4543
|
-
_html(`<ul${_attr_class("
|
|
4543
|
+
_html(`<ul${_attr_class("_cV")}>`);
|
|
4544
4544
|
_for_of(shown, (branch) => {
|
|
4545
4545
|
const $scope7_id = _scope_id();
|
|
4546
|
-
_html(`<li><button${_attr_class(["
|
|
4546
|
+
_html(`<li><button${_attr_class(["_cR", "_cZ"])}><span${_attr_class(["_cX", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4547
4547
|
_script($scope7_id, "q7");
|
|
4548
4548
|
writeScope($scope7_id, { e: branch });
|
|
4549
4549
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
4550
4550
|
_if(() => {
|
|
4551
4551
|
if (!shown.length) {
|
|
4552
4552
|
const $scope10_id = _scope_id();
|
|
4553
|
-
_html(`<li><p${_attr_class("
|
|
4553
|
+
_html(`<li><p${_attr_class("_bn")}>No branches match.</p></li>`);
|
|
4554
4554
|
writeScope($scope10_id, {});
|
|
4555
4555
|
return 0;
|
|
4556
4556
|
}
|
|
@@ -4575,7 +4575,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4575
4575
|
return 0;
|
|
4576
4576
|
} else if (filter && catalog) {
|
|
4577
4577
|
const $scope1_id = _scope_id();
|
|
4578
|
-
_html(`<p${_attr_class("
|
|
4578
|
+
_html(`<p${_attr_class("_bn")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4579
4579
|
writeScope($scope1_id, {});
|
|
4580
4580
|
return 1;
|
|
4581
4581
|
}
|
|
@@ -4693,7 +4693,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4693
4693
|
}
|
|
4694
4694
|
}, "n4", $scope0_id);
|
|
4695
4695
|
const titleId = _id();
|
|
4696
|
-
_html(`<div${_attr_class("
|
|
4696
|
+
_html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content$1)}>`);
|
|
4697
4697
|
_set_serialize_reason({
|
|
4698
4698
|
0: _serialize_guard($scope0_reason, 2),
|
|
4699
4699
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4732,19 +4732,19 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4732
4732
|
return 0;
|
|
4733
4733
|
}
|
|
4734
4734
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4735
|
-
_html(`<label${_attr_class("
|
|
4735
|
+
_html(`<label${_attr_class("_bv")}><span${_attr_class("_br")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
4736
4736
|
name = _new_name;
|
|
4737
|
-
}, "n0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("
|
|
4737
|
+
}, "n0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bx")}><h2${_attr_class("_br")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4738
4738
|
_set_serialize_reason(1);
|
|
4739
4739
|
const $childScope2 = _peek_scope_id();
|
|
4740
4740
|
icon_refresh_default({
|
|
4741
4741
|
size: 14,
|
|
4742
4742
|
class: catalogRefreshing && "_B"
|
|
4743
4743
|
});
|
|
4744
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
4744
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_by")}>`);
|
|
4745
4745
|
_for_of(selected, (repo) => {
|
|
4746
4746
|
const $scope2_id = _scope_id();
|
|
4747
|
-
_html(`<li${_attr_class(row)}><span${_attr_class("
|
|
4747
|
+
_html(`<li${_attr_class(row)}><span${_attr_class("_bz")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
4748
4748
|
_if(() => {
|
|
4749
4749
|
if (repo.baseBranch) {
|
|
4750
4750
|
const $scope10_id = _scope_id();
|
|
@@ -4765,7 +4765,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4765
4765
|
_if(() => {
|
|
4766
4766
|
if (!selected.length) {
|
|
4767
4767
|
const $scope11_id = _scope_id();
|
|
4768
|
-
_html(`<li${_attr_class("
|
|
4768
|
+
_html(`<li${_attr_class("_bn")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
4769
4769
|
writeScope($scope11_id, {});
|
|
4770
4770
|
return 0;
|
|
4771
4771
|
}
|
|
@@ -4790,10 +4790,10 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4790
4790
|
_if(() => {
|
|
4791
4791
|
if (busy && steps$1.length) {
|
|
4792
4792
|
const $scope7_id = _scope_id();
|
|
4793
|
-
_html(`<ul${_attr_class("
|
|
4793
|
+
_html(`<ul${_attr_class("_bB")}>`);
|
|
4794
4794
|
_for_of(steps$1, (step$1, i) => {
|
|
4795
4795
|
const $scope8_id = _scope_id();
|
|
4796
|
-
_html(`<li${_attr_class(["
|
|
4796
|
+
_html(`<li${_attr_class(["_bH", { ["_bC"]: i === steps$1.length - 1 }])}>`);
|
|
4797
4797
|
_if(() => {
|
|
4798
4798
|
if (i === steps$1.length - 1) {
|
|
4799
4799
|
const $scope12_id = _scope_id();
|
|
@@ -4802,7 +4802,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4802
4802
|
return 0;
|
|
4803
4803
|
} else {
|
|
4804
4804
|
const $scope13_id = _scope_id();
|
|
4805
|
-
_html(`<span${_attr_class("
|
|
4805
|
+
_html(`<span${_attr_class("_bD")}>✓</span>`);
|
|
4806
4806
|
writeScope($scope13_id, {});
|
|
4807
4807
|
return 1;
|
|
4808
4808
|
}
|
|
@@ -4814,7 +4814,7 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4814
4814
|
return 0;
|
|
4815
4815
|
}
|
|
4816
4816
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
4817
|
-
_html(`<div${_attr_class("
|
|
4817
|
+
_html(`<div${_attr_class("_bt")}>`);
|
|
4818
4818
|
_if(() => {
|
|
4819
4819
|
if (input.onExit || busy) {
|
|
4820
4820
|
const $scope1_id = _scope_id();
|
|
@@ -4827,15 +4827,15 @@ var new_workspace_default = _template("n", (input) => {
|
|
|
4827
4827
|
_html(`<button type=button${_attr_class([
|
|
4828
4828
|
btnLg,
|
|
4829
4829
|
"_m",
|
|
4830
|
-
"
|
|
4830
|
+
"_bu"
|
|
4831
4831
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
4832
4832
|
_if(() => {
|
|
4833
4833
|
if (archived$1.length) {
|
|
4834
4834
|
const $scope3_id = _scope_id();
|
|
4835
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
4835
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bx")}><h2${_attr_class("_br")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope3_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bf")}>`);
|
|
4836
4836
|
_for_of(archived$1, (ws) => {
|
|
4837
4837
|
const $scope4_id = _scope_id();
|
|
4838
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
4838
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bi")}><span${_attr_class("_bj")}>${_escape(ws.name)}${_el_resume($scope4_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_u"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope4_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope4_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
4839
4839
|
_if(() => {
|
|
4840
4840
|
if (restoring === ws.id) {
|
|
4841
4841
|
const $scope14_id = _scope_id();
|
|
@@ -4976,8 +4976,8 @@ function activeAgent(session) {
|
|
|
4976
4976
|
const command = session.state?.command?.trim();
|
|
4977
4977
|
return command && agentFromCommand(command) || session.agent;
|
|
4978
4978
|
}
|
|
4979
|
-
var iconBtn$1 = "
|
|
4980
|
-
var navToggle = "
|
|
4979
|
+
var iconBtn$1 = "_c3 _g";
|
|
4980
|
+
var navToggle = "_c8 _g";
|
|
4981
4981
|
_template("F", (input) => {
|
|
4982
4982
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4983
4983
|
const $scope0_id = _scope_id();
|
|
@@ -5020,12 +5020,12 @@ var ARM_MS = 3500;
|
|
|
5020
5020
|
function disarmLater(fn) {
|
|
5021
5021
|
return setTimeout(fn, ARM_MS);
|
|
5022
5022
|
}
|
|
5023
|
-
var railBtn = "
|
|
5024
|
-
var rowIcon = "
|
|
5025
|
-
var close = "
|
|
5023
|
+
var railBtn = "_e2 _g";
|
|
5024
|
+
var rowIcon = "_fa _W _g";
|
|
5025
|
+
var close = "_fb _W _g _Z";
|
|
5026
5026
|
//#endregion
|
|
5027
5027
|
//#region src/styles/session-pop.css.ts
|
|
5028
|
-
var sessionPop = "
|
|
5028
|
+
var sessionPop = "_eY _1";
|
|
5029
5029
|
//#endregion
|
|
5030
5030
|
//#region src/client/usage.ts
|
|
5031
5031
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -5086,21 +5086,21 @@ var usage_pcts_default = _template("A", (input) => {
|
|
|
5086
5086
|
if (windows.length) {
|
|
5087
5087
|
const $scope1_id = _scope_id();
|
|
5088
5088
|
_html(`<span${_attr_class([
|
|
5089
|
-
"
|
|
5089
|
+
"_eC",
|
|
5090
5090
|
input.class,
|
|
5091
|
-
{ ["
|
|
5091
|
+
{ ["_eD"]: agent.stale_seconds != null }
|
|
5092
5092
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5093
5093
|
_for_of(windows, (win$1, i) => {
|
|
5094
5094
|
const $scope2_id = _scope_id();
|
|
5095
5095
|
_if(() => {
|
|
5096
5096
|
if (i) {
|
|
5097
5097
|
const $scope3_id = _scope_id();
|
|
5098
|
-
_html(`<span${_attr_class("
|
|
5098
|
+
_html(`<span${_attr_class("_eH")} aria-hidden=true>·</span>`);
|
|
5099
5099
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5100
5100
|
return 0;
|
|
5101
5101
|
}
|
|
5102
5102
|
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5103
|
-
_html(`<span${_attr_class("
|
|
5103
|
+
_html(`<span${_attr_class("_eE")}><span${_attr_class("_eF")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eG", win$1.used_percent >= 90 ? "_cJ" : win$1.used_percent >= 70 ? "_cI" : win$1.used_percent >= 40 ? "_cH" : "_cG"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5104
5104
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5105
5105
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
5106
5106
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5334,10 +5334,10 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5334
5334
|
_if(() => {
|
|
5335
5335
|
if (input.rail) {
|
|
5336
5336
|
const $scope2_id = _scope_id();
|
|
5337
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
5337
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_e0"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
5338
5338
|
"_w",
|
|
5339
5339
|
phase[dot],
|
|
5340
|
-
"
|
|
5340
|
+
"_e3"
|
|
5341
5341
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5342
5342
|
_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) })))));
|
|
5343
5343
|
return 0;
|
|
@@ -5345,15 +5345,15 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5345
5345
|
const $scope3_id = _scope_id();
|
|
5346
5346
|
const sessions$1 = input.sessions || [];
|
|
5347
5347
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5348
|
-
_html(`<section${_attr_class(["
|
|
5349
|
-
["
|
|
5348
|
+
_html(`<section${_attr_class(["_e5", {
|
|
5349
|
+
["_e0"]: input.current,
|
|
5350
5350
|
["_2"]: input.current,
|
|
5351
|
-
["
|
|
5352
|
-
["
|
|
5353
|
-
}])}><div${_attr_class("
|
|
5351
|
+
["_e6"]: input.railPop,
|
|
5352
|
+
["_e4"]: input.page
|
|
5353
|
+
}])}><div${_attr_class("_e7")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_e8")}><span${_attr_class([
|
|
5354
5354
|
"_w",
|
|
5355
5355
|
phase[dot],
|
|
5356
|
-
"
|
|
5356
|
+
"_fl"
|
|
5357
5357
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5358
5358
|
_if(() => {
|
|
5359
5359
|
if (sessions$1.length === 1) {
|
|
@@ -5366,7 +5366,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5366
5366
|
icon_agent_default({
|
|
5367
5367
|
agent: activeAgent(sessions$1[0]),
|
|
5368
5368
|
size: 12,
|
|
5369
|
-
class: "
|
|
5369
|
+
class: "_fc"
|
|
5370
5370
|
});
|
|
5371
5371
|
$si__input_sessions && writeScope($scope14_id, {
|
|
5372
5372
|
_: _scope_with_id($scope3_id),
|
|
@@ -5376,16 +5376,16 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5378
5378
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5379
|
-
_html(`<span${_attr_class("
|
|
5379
|
+
_html(`<span${_attr_class("_fd")}><span${_attr_class("_fe")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5380
5380
|
_if(() => {
|
|
5381
5381
|
if (input.page && metaText) {
|
|
5382
5382
|
const $scope16_id = _scope_id();
|
|
5383
|
-
_html(`<span${_attr_class("
|
|
5383
|
+
_html(`<span${_attr_class("_fj")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5384
5384
|
$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) });
|
|
5385
5385
|
return 0;
|
|
5386
5386
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5387
5387
|
const $scope15_id = _scope_id();
|
|
5388
|
-
_html(`<span${_attr_class("
|
|
5388
|
+
_html(`<span${_attr_class("_ff")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5389
5389
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5390
5390
|
return 1;
|
|
5391
5391
|
}
|
|
@@ -5398,7 +5398,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5398
5398
|
"_F",
|
|
5399
5399
|
"_O",
|
|
5400
5400
|
"_H",
|
|
5401
|
-
"
|
|
5401
|
+
"_fk"
|
|
5402
5402
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5403
5403
|
$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, {
|
|
5404
5404
|
_: _scope_with_id($scope3_id),
|
|
@@ -5411,7 +5411,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5411
5411
|
_if(() => {
|
|
5412
5412
|
if (!input.page) {
|
|
5413
5413
|
const $scope5_id = _scope_id();
|
|
5414
|
-
_html(`<div${_attr_class("
|
|
5414
|
+
_html(`<div${_attr_class("_e9")}>`);
|
|
5415
5415
|
_if(() => {
|
|
5416
5416
|
if (input.onNewSession) {
|
|
5417
5417
|
const $scope6_id = _scope_id();
|
|
@@ -5425,7 +5425,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5425
5425
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5426
5426
|
_for_of([], (agent) => {
|
|
5427
5427
|
const $scope7_id = _scope_id();
|
|
5428
|
-
_html(`<button${_attr_class("
|
|
5428
|
+
_html(`<button${_attr_class("_eZ")}>`);
|
|
5429
5429
|
_set_serialize_reason(12);
|
|
5430
5430
|
const $childScope2 = _peek_scope_id();
|
|
5431
5431
|
icon_agent_default({
|
|
@@ -5460,7 +5460,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5460
5460
|
return 0;
|
|
5461
5461
|
}
|
|
5462
5462
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5463
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
5463
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_e1"]: input.managing }])} title="Manage workspace"${input.managing ? " aria-current=page" : ""}>`);
|
|
5464
5464
|
icon_manage_default({ size: 12 });
|
|
5465
5465
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
5466
5466
|
_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, {
|
|
@@ -5470,7 +5470,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5470
5470
|
return 0;
|
|
5471
5471
|
}
|
|
5472
5472
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5473
|
-
_html(`</div><div${_attr_class("
|
|
5473
|
+
_html(`</div><div${_attr_class("_fq")}>`);
|
|
5474
5474
|
_if(() => {
|
|
5475
5475
|
if (sessions$1.length === 1 && openPlan) {
|
|
5476
5476
|
const $scope11_id = _scope_id();
|
|
@@ -5478,7 +5478,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5478
5478
|
const $childScope3 = _peek_scope_id();
|
|
5479
5479
|
usage_pcts_default({
|
|
5480
5480
|
agent: openPlan,
|
|
5481
|
-
class: "
|
|
5481
|
+
class: "_fg"
|
|
5482
5482
|
});
|
|
5483
5483
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
5484
5484
|
a: _existing_scope($childScope3),
|
|
@@ -5489,14 +5489,14 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5489
5489
|
}, $scope3_id, "m");
|
|
5490
5490
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5491
5491
|
const $scope8_id = _scope_id();
|
|
5492
|
-
_html(`<div${_attr_class(["
|
|
5492
|
+
_html(`<div${_attr_class(["_e_", { ["_e0"]: s.id === input.currentTab }])}>`);
|
|
5493
5493
|
_if(() => {
|
|
5494
5494
|
if (renamingId === s.id) {
|
|
5495
5495
|
const $scope10_id = _scope_id();
|
|
5496
5496
|
_html(`<span${_attr_class([
|
|
5497
5497
|
"_w",
|
|
5498
5498
|
phase[sessionPhase(s.state)],
|
|
5499
|
-
"
|
|
5499
|
+
"_fo"
|
|
5500
5500
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5501
5501
|
_set_serialize_reason({
|
|
5502
5502
|
1: $sg__input_sessions,
|
|
@@ -5506,17 +5506,17 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5506
5506
|
icon_agent_default({
|
|
5507
5507
|
agent: activeAgent(s),
|
|
5508
5508
|
size: 13,
|
|
5509
|
-
class: "
|
|
5509
|
+
class: "_fs"
|
|
5510
5510
|
});
|
|
5511
5511
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5512
5512
|
renameValue = _new_renameValue;
|
|
5513
|
-
}, "u0", $scope10_id))}${_attr_class(["_R", "
|
|
5513
|
+
}, "u0", $scope10_id))}${_attr_class(["_R", "_fp"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5514
5514
|
_script($scope10_id, "u5");
|
|
5515
5515
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5516
5516
|
return 0;
|
|
5517
5517
|
} else {
|
|
5518
5518
|
const $scope9_id = _scope_id();
|
|
5519
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5519
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_fr")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5520
5520
|
_set_serialize_reason({
|
|
5521
5521
|
1: $sg__input_sessions,
|
|
5522
5522
|
2: $sg__input_sessions
|
|
@@ -5525,9 +5525,9 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5525
5525
|
icon_agent_default({
|
|
5526
5526
|
agent: activeAgent(s),
|
|
5527
5527
|
size: 13,
|
|
5528
|
-
class: "
|
|
5528
|
+
class: "_fs"
|
|
5529
5529
|
});
|
|
5530
|
-
_html(`<span${_attr_class("
|
|
5530
|
+
_html(`<span${_attr_class("_fh")}><span${_attr_class("_fm")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
|
|
5531
5531
|
_if(() => {
|
|
5532
5532
|
if (openPlan && s.id === openSess?.id) {
|
|
5533
5533
|
const $scope12_id = _scope_id();
|
|
@@ -5535,7 +5535,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5535
5535
|
const $childScope6 = _peek_scope_id();
|
|
5536
5536
|
usage_pcts_default({
|
|
5537
5537
|
agent: openPlan,
|
|
5538
|
-
class: "
|
|
5538
|
+
class: "_fi"
|
|
5539
5539
|
});
|
|
5540
5540
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
5541
5541
|
a: _existing_scope($childScope6),
|
|
@@ -5544,7 +5544,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5544
5544
|
return 0;
|
|
5545
5545
|
}
|
|
5546
5546
|
}, $scope9_id, "g");
|
|
5547
|
-
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("
|
|
5547
|
+
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_fn")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5548
5548
|
icon_edit_default({ size: 12 });
|
|
5549
5549
|
_html(`</button>${_el_resume($scope9_id, "i")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5550
5550
|
icon_xmark_default({ size: 12 });
|
|
@@ -5739,25 +5739,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5739
5739
|
const isPage = view === "nav";
|
|
5740
5740
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5741
5741
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5742
|
-
_html(`<aside${_attr_class(["
|
|
5743
|
-
["
|
|
5744
|
-
["
|
|
5742
|
+
_html(`<aside${_attr_class(["_c7", {
|
|
5743
|
+
["_c5"]: !navOpen,
|
|
5744
|
+
["_c6"]: isPage
|
|
5745
5745
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5746
5746
|
_if(() => {
|
|
5747
5747
|
if (isPage) {
|
|
5748
5748
|
const $scope1_id = _scope_id();
|
|
5749
|
-
_html(`<header${_attr_class("
|
|
5749
|
+
_html(`<header${_attr_class("_c_")}><h1${_attr_class("_da")}>Workspaces</h1><div${_attr_class("_db")}>`);
|
|
5750
5750
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5751
5751
|
_html(`<a href=/settings${_attr_class([
|
|
5752
5752
|
iconBtn$1,
|
|
5753
|
-
"
|
|
5754
|
-
{ ["
|
|
5753
|
+
"_dc",
|
|
5754
|
+
{ ["_c2"]: view === "settings" }
|
|
5755
5755
|
])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5756
5756
|
icon_settings_default({ size: 16 });
|
|
5757
5757
|
_if(() => {
|
|
5758
5758
|
if (input.setupReady === false) {
|
|
5759
5759
|
const $scope10_id = _scope_id();
|
|
5760
|
-
_html(`<span${_attr_class(["_w", "
|
|
5760
|
+
_html(`<span${_attr_class(["_w", "_c4"])} title="Machine setup incomplete"></span>`);
|
|
5761
5761
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5762
5762
|
return 0;
|
|
5763
5763
|
}
|
|
@@ -5767,13 +5767,13 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5767
5767
|
return 0;
|
|
5768
5768
|
}
|
|
5769
5769
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5770
|
-
_html(`<div${_attr_class("
|
|
5770
|
+
_html(`<div${_attr_class("_df")}>`);
|
|
5771
5771
|
_for_of(listIds, (wsId) => {
|
|
5772
5772
|
const $scope2_id = _scope_id();
|
|
5773
5773
|
_if(() => {
|
|
5774
5774
|
if (isPage && wsId === ws.id) {
|
|
5775
5775
|
const $scope11_id = _scope_id();
|
|
5776
|
-
_html(`<h2${_attr_class(["
|
|
5776
|
+
_html(`<h2${_attr_class(["_br", "_dd"])}>Current</h2>`);
|
|
5777
5777
|
writeScope($scope11_id, {});
|
|
5778
5778
|
return 0;
|
|
5779
5779
|
}
|
|
@@ -5781,7 +5781,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5781
5781
|
_if(() => {
|
|
5782
5782
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5783
5783
|
const $scope12_id = _scope_id();
|
|
5784
|
-
_html(`<h2${_attr_class(["
|
|
5784
|
+
_html(`<h2${_attr_class(["_br", "_dd"])}>Other workspaces</h2>`);
|
|
5785
5785
|
writeScope($scope12_id, {});
|
|
5786
5786
|
return 0;
|
|
5787
5787
|
}
|
|
@@ -5868,7 +5868,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5868
5868
|
railHover = null;
|
|
5869
5869
|
}, 150);
|
|
5870
5870
|
}, "v6", $scope3_id);
|
|
5871
|
-
_html(`<div${_attr_class("
|
|
5871
|
+
_html(`<div${_attr_class("_dg")}>`);
|
|
5872
5872
|
_for_of(itemIds, (wsId, i) => {
|
|
5873
5873
|
const $scope4_id = _scope_id();
|
|
5874
5874
|
_html("<span>");
|
|
@@ -5922,7 +5922,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5922
5922
|
if (railHover) {
|
|
5923
5923
|
const $scope5_id = _scope_id();
|
|
5924
5924
|
const hoverId = railHover.id;
|
|
5925
|
-
_html(`<div${_attr_class(["_1", "
|
|
5925
|
+
_html(`<div${_attr_class(["_1", "_dj"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5926
5926
|
_set_serialize_reason({
|
|
5927
5927
|
0: 1,
|
|
5928
5928
|
1: 1,
|
|
@@ -6010,7 +6010,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6010
6010
|
return 0;
|
|
6011
6011
|
}
|
|
6012
6012
|
}, $scope0_id, "d");
|
|
6013
|
-
_html(`<div${_attr_class("
|
|
6013
|
+
_html(`<div${_attr_class("_dh")}>`);
|
|
6014
6014
|
_if(() => {
|
|
6015
6015
|
if (isPage) {
|
|
6016
6016
|
const $scope7_id = _scope_id();
|
|
@@ -6018,7 +6018,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6018
6018
|
"_l",
|
|
6019
6019
|
"_m",
|
|
6020
6020
|
btnLg,
|
|
6021
|
-
"
|
|
6021
|
+
"_de"
|
|
6022
6022
|
])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
6023
6023
|
icon_folder_plus_default({ size: 16 });
|
|
6024
6024
|
_html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
|
|
@@ -6040,19 +6040,19 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6040
6040
|
return 1;
|
|
6041
6041
|
}
|
|
6042
6042
|
}, $scope6_id, "a", 1, 1, 1, "</button>", 1);
|
|
6043
|
-
_html(`<div${_attr_class(["_v", "
|
|
6043
|
+
_html(`<div${_attr_class(["_v", "_di"])}></div>`);
|
|
6044
6044
|
_if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
6045
|
-
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["
|
|
6045
|
+
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["_c2"]: view === "settings" }])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6046
6046
|
icon_settings_default({ size: 15 });
|
|
6047
6047
|
_if(() => {
|
|
6048
6048
|
if (input.setupReady === false) {
|
|
6049
6049
|
const $scope15_id = _scope_id();
|
|
6050
|
-
_html(`<span${_attr_class(["_w", "
|
|
6050
|
+
_html(`<span${_attr_class(["_w", "_c4"])} title="Machine setup incomplete"></span>`);
|
|
6051
6051
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
6052
6052
|
return 0;
|
|
6053
6053
|
}
|
|
6054
6054
|
}, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6055
|
-
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["
|
|
6055
|
+
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["_c2"]: view === "new" }])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
6056
6056
|
icon_folder_plus_default({ size: 16 });
|
|
6057
6057
|
_html(`</a>${_el_resume($scope6_id, "g")}`);
|
|
6058
6058
|
_script($scope6_id, "v15");
|
|
@@ -6113,11 +6113,11 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6113
6113
|
_resume_branch($scope0_id);
|
|
6114
6114
|
});
|
|
6115
6115
|
var iconBtn = "_X _g";
|
|
6116
|
-
var sectionCount = "
|
|
6117
|
-
var content = "
|
|
6118
|
-
var pageMeta = "
|
|
6119
|
-
var pathMeta = "
|
|
6120
|
-
var dangerHint = "
|
|
6116
|
+
var sectionCount = "_be _F _G";
|
|
6117
|
+
var content = "_dk _5";
|
|
6118
|
+
var pageMeta = "_dl __";
|
|
6119
|
+
var pathMeta = "_do _u";
|
|
6120
|
+
var dangerHint = "_du _P";
|
|
6121
6121
|
//#endregion
|
|
6122
6122
|
//#region src/tags/manage-workspace.marko
|
|
6123
6123
|
var api$2;
|
|
@@ -6215,7 +6215,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6215
6215
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6216
6216
|
}, "l5", $scope0_id);
|
|
6217
6217
|
const titleId = _id();
|
|
6218
|
-
_html(`<div${_attr_class("
|
|
6218
|
+
_html(`<div${_attr_class("_3")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_4")}><div${_attr_class(content)}>`);
|
|
6219
6219
|
_set_serialize_reason(30);
|
|
6220
6220
|
const $childScope = _peek_scope_id();
|
|
6221
6221
|
page_head_default({
|
|
@@ -6228,7 +6228,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6228
6228
|
meta: attrTag({ content: _content_resume("l11", () => {
|
|
6229
6229
|
_scope_reason();
|
|
6230
6230
|
const $scope8_id = _scope_id();
|
|
6231
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6231
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dm")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6232
6232
|
_if(() => {
|
|
6233
6233
|
if (ws.status !== "active") {
|
|
6234
6234
|
const $scope11_id = _scope_id();
|
|
@@ -6237,7 +6237,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6237
6237
|
return 0;
|
|
6238
6238
|
}
|
|
6239
6239
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6240
|
-
_html(`<span${_attr_class("
|
|
6240
|
+
_html(`<span${_attr_class("_dn")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
6241
6241
|
_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) })))));
|
|
6242
6242
|
_resume_branch($scope8_id);
|
|
6243
6243
|
}, $scope0_id) })
|
|
@@ -6265,22 +6265,22 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6265
6265
|
_if(() => {
|
|
6266
6266
|
if (pendingAction && actionStep) {
|
|
6267
6267
|
const $scope7_id = _scope_id();
|
|
6268
|
-
_html(`<p${_attr_class("
|
|
6268
|
+
_html(`<p${_attr_class("_bb")}><span${_attr_class("_C")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6269
6269
|
writeScope($scope7_id, {});
|
|
6270
6270
|
return 0;
|
|
6271
6271
|
}
|
|
6272
6272
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6273
|
-
_html(`<section${_attr_class("
|
|
6273
|
+
_html(`<section${_attr_class("_bc")}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_v")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6274
6274
|
_set_serialize_reason(1);
|
|
6275
6275
|
const $childScope2 = _peek_scope_id();
|
|
6276
6276
|
icon_refresh_default({
|
|
6277
6277
|
size: 14,
|
|
6278
6278
|
class: catalogRefreshing && "_B"
|
|
6279
6279
|
});
|
|
6280
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6280
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bf")}>`);
|
|
6281
6281
|
_for_of(ws.repos, (row) => {
|
|
6282
6282
|
const $scope1_id = _scope_id();
|
|
6283
|
-
_html(`<li${_attr_class("
|
|
6283
|
+
_html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}><span${_attr_class(["_bj", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bk")}><a${_attr_class(["_bl", "_dq"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
6284
6284
|
_if(() => {
|
|
6285
6285
|
if (row.base_branch !== row.default_branch) {
|
|
6286
6286
|
const $scope12_id = _scope_id();
|
|
@@ -6299,7 +6299,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6299
6299
|
} else {
|
|
6300
6300
|
const $scope6_id = _scope_id();
|
|
6301
6301
|
_html(`<button${_attr_class([
|
|
6302
|
-
"
|
|
6302
|
+
"_bm",
|
|
6303
6303
|
"_Z",
|
|
6304
6304
|
"_0",
|
|
6305
6305
|
{ ["_n"]: confirmingRemove === row.full_name }
|
|
@@ -6332,19 +6332,19 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6332
6332
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6333
6333
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6334
6334
|
const $scope16_id = _scope_id();
|
|
6335
|
-
_html(`<li${_attr_class(["
|
|
6335
|
+
_html(`<li${_attr_class(["_bh", "_bg"])}><span${_attr_class("_C")}></span><div${_attr_class("_bi")}><span${_attr_class("_bl")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
6336
6336
|
writeScope($scope16_id, {});
|
|
6337
6337
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6338
6338
|
_html("</ul>");
|
|
6339
6339
|
_if(() => {
|
|
6340
6340
|
if (!ws.repos.length && !busy.size) {
|
|
6341
6341
|
const $scope17_id = _scope_id();
|
|
6342
|
-
_html(`<p${_attr_class("
|
|
6342
|
+
_html(`<p${_attr_class("_bn")}>No repos yet. Search below to add one.</p>`);
|
|
6343
6343
|
writeScope($scope17_id, {});
|
|
6344
6344
|
return 0;
|
|
6345
6345
|
}
|
|
6346
6346
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6347
|
-
_html(`<div${_attr_class("
|
|
6347
|
+
_html(`<div${_attr_class("_dp")}>`);
|
|
6348
6348
|
const $childScope3 = _peek_scope_id();
|
|
6349
6349
|
let refreshCatalog = repo_picker_default({
|
|
6350
6350
|
exclude: inWorkspace,
|
|
@@ -6364,17 +6364,17 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6364
6364
|
_if(() => {
|
|
6365
6365
|
if (running.length) {
|
|
6366
6366
|
const $scope9_id = _scope_id();
|
|
6367
|
-
_html(`<section${_attr_class("
|
|
6367
|
+
_html(`<section${_attr_class("_bc")}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bf")}>`);
|
|
6368
6368
|
_for_of(running, (p) => {
|
|
6369
6369
|
const $scope10_id = _scope_id();
|
|
6370
|
-
_html(`<li${_attr_class("
|
|
6370
|
+
_html(`<li${_attr_class("_bh")}><div${_attr_class("_bi")}${_attr("title", p.args)}><span${_attr_class(["_bj", "_u"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
6371
6371
|
_if(() => {
|
|
6372
6372
|
if (p.ports.length) {
|
|
6373
6373
|
const $scope18_id = _scope_id();
|
|
6374
|
-
_html(`<span${_attr_class("
|
|
6374
|
+
_html(`<span${_attr_class("_bk")}>`);
|
|
6375
6375
|
_for_of(p.ports, (port) => {
|
|
6376
6376
|
const $scope19_id = _scope_id();
|
|
6377
|
-
_html(`<button${_attr_class(["_p", "
|
|
6377
|
+
_html(`<button${_attr_class(["_p", "_dr"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6378
6378
|
_script($scope19_id, "l15");
|
|
6379
6379
|
writeScope($scope19_id, { d: port });
|
|
6380
6380
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6382,7 +6382,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6382
6382
|
return 0;
|
|
6383
6383
|
}
|
|
6384
6384
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6385
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
6385
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bm", "_Z"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
6386
6386
|
icon_xmark_default({ size: 14 });
|
|
6387
6387
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
6388
6388
|
_script($scope10_id, "l16");
|
|
@@ -6396,7 +6396,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6396
6396
|
return 0;
|
|
6397
6397
|
}
|
|
6398
6398
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6399
|
-
_html(`<section${_attr_class(["
|
|
6399
|
+
_html(`<section${_attr_class(["_bc", "_ds"])}><div${_attr_class("_bd")}><h2${_attr_class("_br")}>Workspace</h2></div><div${_attr_class("_dt")}>`);
|
|
6400
6400
|
_if(() => {
|
|
6401
6401
|
if (ws.status === "active") {
|
|
6402
6402
|
const $scope4_id = _scope_id();
|
|
@@ -6497,15 +6497,15 @@ var term_find_default = _template("w", (input) => {
|
|
|
6497
6497
|
const canStep = hasQuery && open;
|
|
6498
6498
|
const keybar = input.placement === "keybar";
|
|
6499
6499
|
_html(`<div${_attr_class([
|
|
6500
|
-
"
|
|
6501
|
-
keybar ? "
|
|
6502
|
-
!open && "
|
|
6503
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6500
|
+
"_eR",
|
|
6501
|
+
keybar ? "_eT" : "_eS",
|
|
6502
|
+
!open && "_eV"
|
|
6503
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eM", keybar ? "_eU" : "_eO"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6504
6504
|
if (!open) return;
|
|
6505
6505
|
query = v;
|
|
6506
6506
|
live.query = v;
|
|
6507
6507
|
run(0);
|
|
6508
|
-
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6508
|
+
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "_eW"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_eX"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eX"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_eX"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6509
6509
|
icon_xmark_default({ size: 14 });
|
|
6510
6510
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6511
6511
|
_script($scope0_id, "w4");
|
|
@@ -6779,7 +6779,7 @@ var term_default = _template("x", (input) => {
|
|
|
6779
6779
|
trapOpen = true;
|
|
6780
6780
|
}
|
|
6781
6781
|
}, "x14", $scope0_id);
|
|
6782
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6782
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dv")}><div${_attr_class("_dw")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6783
6783
|
_if(() => {
|
|
6784
6784
|
if (findOpen) {
|
|
6785
6785
|
const $scope12_id = _scope_id();
|
|
@@ -6806,7 +6806,7 @@ var term_default = _template("x", (input) => {
|
|
|
6806
6806
|
_if(() => {
|
|
6807
6807
|
if (uploading) {
|
|
6808
6808
|
const $scope19_id = _scope_id();
|
|
6809
|
-
_html(`<div${_attr_class("
|
|
6809
|
+
_html(`<div${_attr_class("_dC")}>uploading…</div>`);
|
|
6810
6810
|
writeScope($scope19_id, {});
|
|
6811
6811
|
return 0;
|
|
6812
6812
|
}
|
|
@@ -6814,7 +6814,7 @@ var term_default = _template("x", (input) => {
|
|
|
6814
6814
|
_if(() => {
|
|
6815
6815
|
if (copiedFlash) {
|
|
6816
6816
|
const $scope20_id = _scope_id();
|
|
6817
|
-
_html(`<div${_attr_class("
|
|
6817
|
+
_html(`<div${_attr_class("_dB")}>Copied</div>`);
|
|
6818
6818
|
writeScope($scope20_id, {});
|
|
6819
6819
|
return 0;
|
|
6820
6820
|
}
|
|
@@ -6823,7 +6823,7 @@ var term_default = _template("x", (input) => {
|
|
|
6823
6823
|
_if(() => {
|
|
6824
6824
|
if (trapOpen) {
|
|
6825
6825
|
const $scope11_id = _scope_id();
|
|
6826
|
-
_html(`<div${_attr_class("
|
|
6826
|
+
_html(`<div${_attr_class("_dD")}><div${_attr_class("_dE")}><p${_attr_class("_d9")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_l")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
6827
6827
|
_script($scope11_id, "x25");
|
|
6828
6828
|
_script($scope11_id, "x26");
|
|
6829
6829
|
writeScope($scope11_id, {});
|
|
@@ -6926,7 +6926,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
6926
6926
|
let DiffView = null;
|
|
6927
6927
|
const loadDiffView = _resume(() => {
|
|
6928
6928
|
if (DiffView) return;
|
|
6929
|
-
import("./
|
|
6929
|
+
import("./__lXIKR5F.js").then((m) => {
|
|
6930
6930
|
DiffView = m.default;
|
|
6931
6931
|
});
|
|
6932
6932
|
}, "B6", $scope0_id);
|
|
@@ -7112,7 +7112,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7112
7112
|
toggleDiff();
|
|
7113
7113
|
}
|
|
7114
7114
|
}, "B21", $scope0_id);
|
|
7115
|
-
_html(`<div${_attr_class(["
|
|
7115
|
+
_html(`<div${_attr_class(["_bW", { ["_bV"]: view === "nav" }])}><div${_attr_class("_bX")}>`);
|
|
7116
7116
|
_set_serialize_reason({
|
|
7117
7117
|
0: _serialize_guard($scope0_reason, 0),
|
|
7118
7118
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -7168,7 +7168,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7168
7168
|
openDiff(pr);
|
|
7169
7169
|
}, "B29", $scope0_id)
|
|
7170
7170
|
});
|
|
7171
|
-
_html(`</div><div${_attr_class("
|
|
7171
|
+
_html(`</div><div${_attr_class("_bY")}>`);
|
|
7172
7172
|
_if(() => {
|
|
7173
7173
|
if (error) {
|
|
7174
7174
|
const $scope8_id = _scope_id();
|
|
@@ -7319,13 +7319,13 @@ var work_view_default = _template("B", (input) => {
|
|
|
7319
7319
|
return 0;
|
|
7320
7320
|
}
|
|
7321
7321
|
}, $scope0_id, "i");
|
|
7322
|
-
_html(`<div${_attr_class(["
|
|
7322
|
+
_html(`<div${_attr_class(["_b0", { ["_bZ"]: view !== "term" }])}>`);
|
|
7323
7323
|
_if(() => {
|
|
7324
7324
|
if (shownSessions) {
|
|
7325
7325
|
const $scope5_id = _scope_id();
|
|
7326
7326
|
_for_of(shownSessions, (s) => {
|
|
7327
7327
|
const $scope6_id = _scope_id();
|
|
7328
|
-
_html(`<div${_attr_class(["
|
|
7328
|
+
_html(`<div${_attr_class(["_b1", { ["_b2"]: s.id === curTab }])}>`);
|
|
7329
7329
|
_set_serialize_reason({
|
|
7330
7330
|
0: 1,
|
|
7331
7331
|
1: 1,
|
|
@@ -7384,7 +7384,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7384
7384
|
_if(() => {
|
|
7385
7385
|
if (!shownSessions.length && view === "term") {
|
|
7386
7386
|
const $scope7_id = _scope_id();
|
|
7387
|
-
_html(`<div${_attr_class("
|
|
7387
|
+
_html(`<div${_attr_class("_bo")}><span>No sessions in this workspace.</span><button${_attr_class(["_l", "_m"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
7388
7388
|
_script($scope7_id, "B48");
|
|
7389
7389
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7390
7390
|
return 0;
|
|
@@ -7394,7 +7394,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
7394
7394
|
return 0;
|
|
7395
7395
|
} else {
|
|
7396
7396
|
const $scope10_id = _scope_id();
|
|
7397
|
-
_html(`<p${_attr_class("
|
|
7397
|
+
_html(`<p${_attr_class("_bo")}>Loading sessions…</p>`);
|
|
7398
7398
|
writeScope($scope10_id, {});
|
|
7399
7399
|
return 1;
|
|
7400
7400
|
}
|
|
@@ -15047,4 +15047,4 @@ server.listen(port, () => {
|
|
|
15047
15047
|
//#endregion
|
|
15048
15048
|
export {};
|
|
15049
15049
|
|
|
15050
|
-
;var __MARKO_MANIFEST__={"
|
|
15050
|
+
;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/new-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/settings-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w._-DZ3Y7jRu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DZ3Y7jRu.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-D4vPVvwL.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D4vPVvwL.css\"",">"],"defer":[2,"/assets/w._-B_8o0W7U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B_8o0W7U.js\"","></script>",2,"modulepreload#/assets/_D9-Z5alI.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D9-Z5alI.js\"",">"]}};
|