@dylanpiercey/work 0.0.87 → 0.0.89
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 +9 -0
- package/dist/{_CGQWSq7x.js → _BNW7lzU5.js} +67 -67
- package/dist/{_DA4jJP-k.js → _BaBpI2_Z.js} +4 -4
- package/dist/{_CExzMbX7.js → _BdPU13C_.js} +16 -2
- package/dist/_Dj0ybKwE.js +2 -0
- package/dist/index.mjs +179 -156
- package/dist/public/assets/{_Bs60UQQp.js → _3ApHfAFB.js} +1 -1
- package/dist/public/assets/_3ApHfAFB.js.br +0 -0
- package/dist/public/assets/{_K7Edgfgc.js → _68NBnRBw.js} +1 -1
- package/dist/public/assets/_68NBnRBw.js.br +0 -0
- package/dist/public/assets/{_IvxXQmT0.js → _6nUxgGxb.js} +1 -1
- package/dist/public/assets/_6nUxgGxb.js.br +0 -0
- package/dist/public/assets/{_CYia-nz02.js → _7gm8mq-M2.js} +1 -1
- package/dist/public/assets/_7gm8mq-M2.js.br +0 -0
- package/dist/public/assets/{_BJG4qcrP.js → _B09NjUR4.js} +1 -1
- package/dist/public/assets/_B09NjUR4.js.br +0 -0
- package/dist/public/assets/{_Cf9cdsh0.js → _B0EHPDCY.js} +1 -1
- package/dist/public/assets/_B0EHPDCY.js.br +0 -0
- package/dist/public/assets/{_C6ldYeFm.js → _B0VinNA_.js} +1 -1
- package/dist/public/assets/_B0VinNA_.js.br +0 -0
- package/dist/public/assets/{_BWyRK-vd2.js → _B4Pr9Te92.js} +1 -1
- package/dist/public/assets/_B4Pr9Te92.js.br +0 -0
- package/dist/public/assets/{_3pnM3GnR.js → _B7p4f0NK.js} +1 -1
- package/dist/public/assets/_B7p4f0NK.js.br +0 -0
- package/dist/public/assets/{_DBN-ARTK2.js → _B9UAz-r-2.js} +1 -1
- package/dist/public/assets/_B9UAz-r-2.js.br +0 -0
- package/dist/public/assets/{_BuFvVDBW.js → _BEjvKyQl.js} +1 -1
- package/dist/public/assets/_BEjvKyQl.js.br +0 -0
- package/dist/public/assets/{_C-6C490f.js → _BFlZZV-0.js} +1 -1
- package/dist/public/assets/_BFlZZV-0.js.br +0 -0
- package/dist/public/assets/{_DYkG4loD.js → _BJYOVEXV.js} +1 -1
- package/dist/public/assets/_BJYOVEXV.js.br +0 -0
- package/dist/public/assets/{_CyrJ6uCP.js → _BL2BsfGC.js} +1 -1
- package/dist/public/assets/_BL2BsfGC.js.br +0 -0
- package/dist/public/assets/{_BbIL-U7Q.js → _BPi2-dgs.js} +1 -1
- package/dist/public/assets/_BPi2-dgs.js.br +0 -0
- package/dist/public/assets/{_BwubERfJ.js → _BSySd27S.js} +1 -1
- package/dist/public/assets/_BSySd27S.js.br +0 -0
- package/dist/public/assets/{_BblIDBxk.js → _BTrntntO.js} +1 -1
- package/dist/public/assets/_BTrntntO.js.br +0 -0
- package/dist/public/assets/{_Bn8crSCH.js → _BVl-sPkB.js} +1 -1
- package/dist/public/assets/_BVl-sPkB.js.br +0 -0
- package/dist/public/assets/{_BiIzmSt-.js → _BaV_r0KE.js} +1 -1
- package/dist/public/assets/_BaV_r0KE.js.br +0 -0
- package/dist/public/assets/{_CyefKW6N.js → _BbRXjU8u.js} +1 -1
- package/dist/public/assets/_BbRXjU8u.js.br +0 -0
- package/dist/public/assets/{_BvYVSdj3.js → _Bj9cNmYh.js} +1 -1
- package/dist/public/assets/_Bj9cNmYh.js.br +0 -0
- package/dist/public/assets/{_RjK3rf_Y.js → _BogP78ys.js} +1 -1
- package/dist/public/assets/_BogP78ys.js.br +0 -0
- package/dist/public/assets/{_D9FyVasE.js → _C-3zDLjM.js} +1 -1
- package/dist/public/assets/_C-3zDLjM.js.br +0 -0
- package/dist/public/assets/{_Dnva3Iwh.js → _C4R1AZ7T.js} +1 -1
- package/dist/public/assets/_C4R1AZ7T.js.br +0 -0
- package/dist/public/assets/{_CzF3na4k2.js → _C5ArZ6tM2.js} +1 -1
- package/dist/public/assets/_C5ArZ6tM2.js.br +0 -0
- package/dist/public/assets/{_Cqjh6FxH2.js → _CBEk-f702.js} +1 -1
- package/dist/public/assets/_CBEk-f702.js.br +0 -0
- package/dist/public/assets/{_D273_csH.js → _CCnllILq.js} +1 -1
- package/dist/public/assets/_CCnllILq.js.br +0 -0
- package/dist/public/assets/{_D6nGNdbM2.js → _CHeP2N572.js} +1 -1
- package/dist/public/assets/_CHeP2N572.js.br +0 -0
- package/dist/public/assets/{_Bu0d16Gz2.js → _CHfbuaf42.js} +1 -1
- package/dist/public/assets/_CHfbuaf42.js.br +0 -0
- package/dist/public/assets/{_DjPgs5rw.js → _CJ4R3Xhd.js} +1 -1
- package/dist/public/assets/_CJ4R3Xhd.js.br +0 -0
- package/dist/public/assets/{_pehMb-MO2.js → _CJVn7QPr2.js} +1 -1
- package/dist/public/assets/{_B_Mbp4rL2.js → _CUNBYPpl2.js} +1 -1
- package/dist/public/assets/{_DRF3Di45.js → _CXvlT_ey.js} +1 -1
- package/dist/public/assets/_CXvlT_ey.js.br +0 -0
- package/dist/public/assets/{_JLngONpn.js → _CZlD9KhN.js} +1 -1
- package/dist/public/assets/_CZlD9KhN.js.br +0 -0
- package/dist/public/assets/{_CKjR1BXt2.js → _CZwFYO2Z2.js} +1 -1
- package/dist/public/assets/_CZwFYO2Z2.js.br +0 -0
- package/dist/public/assets/{_Co8Ezvh22.js → _CeHIw9_Z2.js} +1 -1
- package/dist/public/assets/_CeHIw9_Z2.js.br +0 -0
- package/dist/public/assets/{_Bx-akz-g2.js → _CqYgTZl02.js} +1 -1
- package/dist/public/assets/_CqYgTZl02.js.br +0 -0
- package/dist/public/assets/{_DbEL5xWz.js → _Crd8NEGi.js} +1 -1
- package/dist/public/assets/_Crd8NEGi.js.br +0 -0
- package/dist/public/assets/{_D8yBV-3W.js → _CsOY40Tj.js} +1 -1
- package/dist/public/assets/_CsOY40Tj.js.br +0 -0
- package/dist/public/assets/{_BT-gmkkS.js → _Csr0JoJi.js} +1 -1
- package/dist/public/assets/_Csr0JoJi.js.br +0 -0
- package/dist/public/assets/{_Dt4Da0qD.js → _CuWbP_-M.js} +1 -1
- package/dist/public/assets/_CuWbP_-M.js.br +0 -0
- package/dist/public/assets/{_DX3XTwvW.js → _Czc_uzvi.js} +1 -1
- package/dist/public/assets/_Czc_uzvi.js.br +0 -0
- package/dist/public/assets/{__CmiW5mo.js → _D-TNzqKE.js} +1 -1
- package/dist/public/assets/_D-TNzqKE.js.br +0 -0
- package/dist/public/assets/{_BuxBV9KZ.js → _D2AcgzVt.js} +1 -1
- package/dist/public/assets/_D2AcgzVt.js.br +0 -0
- package/dist/public/assets/{_D0GH7ugf.js → _D62vus3Y.js} +1 -1
- package/dist/public/assets/_D62vus3Y.js.br +0 -0
- package/dist/public/assets/{_CCBfIvK-2.js → _D8a3k14z2.js} +1 -1
- package/dist/public/assets/_D8a3k14z2.js.br +0 -0
- package/dist/public/assets/{_BI2Swe_u2.js → _DBZliThN2.js} +1 -1
- package/dist/public/assets/_DBZliThN2.js.br +0 -0
- package/dist/public/assets/{_Bf3K2pdL2.js → _DHKGemnb2.js} +1 -1
- package/dist/public/assets/_DHKGemnb2.js.br +0 -0
- package/dist/public/assets/{_CE47SDMW.js → _DLFXdzdD.js} +1 -1
- package/dist/public/assets/_DLFXdzdD.js.br +0 -0
- package/dist/public/assets/{_DOyko_7k.js → _DLlzUjC4.js} +1 -1
- package/dist/public/assets/{_S4Deki6-.js → _DLnZn5vf.js} +3 -3
- package/dist/public/assets/_DLnZn5vf.js.br +0 -0
- package/dist/public/assets/{_Csb4KIv-2.js → _DLnnHpAM2.js} +1 -1
- package/dist/public/assets/_DLnnHpAM2.js.br +0 -0
- package/dist/public/assets/{_4-GSVnAN.js → _DMM-d_n4.js} +6 -6
- package/dist/public/assets/_DMM-d_n4.js.br +0 -0
- package/dist/public/assets/{_BmuJ1O9P.js → _DPcFZ9y5.js} +1 -1
- package/dist/public/assets/_DPcFZ9y5.js.br +0 -0
- package/dist/public/assets/{_BuPlYdZf.js → _DUv8q83I.js} +1 -1
- package/dist/public/assets/_DUv8q83I.js.br +0 -0
- package/dist/public/assets/{_CuyaYiRW.js → _DVtMOg1P.js} +1 -1
- package/dist/public/assets/_DVtMOg1P.js.br +0 -0
- package/dist/public/assets/{_Bc2XBH7E2.js → _DYjLnTZb2.js} +1 -1
- package/dist/public/assets/_DYjLnTZb2.js.br +0 -0
- package/dist/public/assets/{_Ciq2ywTg2.js → _DapQP84P2.js} +1 -1
- package/dist/public/assets/_DapQP84P2.js.br +0 -0
- package/dist/public/assets/{_BYYz0lx8.js → _DdN-JTu5.js} +1 -1
- package/dist/public/assets/_DdN-JTu5.js.br +0 -0
- package/dist/public/assets/{_Dhm70a8Q.js → _Df4cvc6C.js} +1 -1
- package/dist/public/assets/_Df4cvc6C.js.br +0 -0
- package/dist/public/assets/{_Bn5bz8Fw.js → _Dh-sLvqG.js} +1 -1
- package/dist/public/assets/_Dh-sLvqG.js.br +0 -0
- package/dist/public/assets/{_PKde0FEU2.js → _DoPX7h422.js} +1 -1
- package/dist/public/assets/_DoPX7h422.js.br +0 -0
- package/dist/public/assets/{_o1mi4aXB2.js → _Dz-CLezO2.js} +1 -1
- package/dist/public/assets/_Dz-CLezO2.js.br +0 -0
- package/dist/public/assets/{_BRMTGLhC.js → _M3-QzOcT.js} +1 -1
- package/dist/public/assets/_M3-QzOcT.js.br +0 -0
- package/dist/public/assets/{_C1jhh4rH.js → _QW8ME1h1.js} +1 -1
- package/dist/public/assets/_QW8ME1h1.js.br +0 -0
- package/dist/public/assets/{_BAvf1cap.js → __FHdvvoU.js} +1 -1
- package/dist/public/assets/__FHdvvoU.js.br +0 -0
- package/dist/public/assets/{_BfymrLUh.js → _eEsY8spY.js} +1 -1
- package/dist/public/assets/_eEsY8spY.js.br +0 -0
- package/dist/public/assets/{_B00t6Lqk.js → _gDwVQCtN.js} +1 -1
- package/dist/public/assets/_gDwVQCtN.js.br +0 -0
- package/dist/public/assets/{_DF7p8NtB.js → _jpL592Mp.js} +1 -1
- package/dist/public/assets/_jpL592Mp.js.br +0 -0
- package/dist/public/assets/{_MlgXnVcu.js → _mmUZxMmq.js} +1 -1
- package/dist/public/assets/_mmUZxMmq.js.br +0 -0
- package/dist/public/assets/{_B1lW0JwB2.js → _nxQ7vB0v2.js} +1 -1
- package/dist/public/assets/_nxQ7vB0v2.js.br +0 -0
- package/dist/public/assets/{_BQYp-OlQ2.js → _q80G7tDX2.js} +1 -1
- package/dist/public/assets/_q80G7tDX2.js.br +0 -0
- package/dist/public/assets/{_B1bIs2_k.js → _rNEbZj3_.js} +1 -1
- package/dist/public/assets/_rNEbZj3_.js.br +0 -0
- package/dist/public/assets/{_B85aTaqZ2.js → _wK2y6faT2.js} +1 -1
- package/dist/public/assets/_wK2y6faT2.js.br +0 -0
- package/dist/public/assets/{_DGiIMv8G2.js → _wVj_AaSO2.js} +1 -1
- package/dist/public/assets/_wVj_AaSO2.js.br +0 -0
- package/dist/public/assets/{_CcrxW0kr.js → _wl9V6Cj_.js} +1 -1
- package/dist/public/assets/_wl9V6Cj_.js.br +0 -0
- package/dist/public/assets/app-page-DJ2ivnX8.css +1 -0
- package/dist/public/assets/app-page-DJ2ivnX8.css.br +0 -0
- package/dist/public/assets/diff-view-BGH4FQ_a.css +1 -0
- package/dist/public/assets/diff-view-BGH4FQ_a.css.br +0 -0
- package/dist/public/assets/new-CBB1WWUj.js +1 -0
- package/dist/public/assets/settings-CBB1WWUj.js +1 -0
- package/dist/public/assets/w-CBB1WWUj.js +1 -0
- package/dist/public/assets/w._-CBB1WWUj.js +1 -0
- package/dist/public/assets/w._-DYgthMaF.js +1 -0
- package/package.json +1 -1
- package/dist/_DkOK1JPO.js +0 -2
- package/dist/public/assets/_3pnM3GnR.js.br +0 -0
- package/dist/public/assets/_4-GSVnAN.js.br +0 -0
- package/dist/public/assets/_B00t6Lqk.js.br +0 -0
- package/dist/public/assets/_B1bIs2_k.js.br +0 -0
- package/dist/public/assets/_B1lW0JwB2.js.br +0 -0
- package/dist/public/assets/_B85aTaqZ2.js.br +0 -0
- package/dist/public/assets/_BAvf1cap.js.br +0 -0
- package/dist/public/assets/_BI2Swe_u2.js.br +0 -0
- package/dist/public/assets/_BJG4qcrP.js.br +0 -0
- package/dist/public/assets/_BQYp-OlQ2.js.br +0 -0
- package/dist/public/assets/_BRMTGLhC.js.br +0 -0
- package/dist/public/assets/_BT-gmkkS.js.br +0 -0
- package/dist/public/assets/_BWyRK-vd2.js.br +0 -0
- package/dist/public/assets/_BYYz0lx8.js.br +0 -0
- package/dist/public/assets/_BbIL-U7Q.js.br +0 -0
- package/dist/public/assets/_BblIDBxk.js.br +0 -2
- package/dist/public/assets/_Bc2XBH7E2.js.br +0 -0
- package/dist/public/assets/_Bf3K2pdL2.js.br +0 -0
- package/dist/public/assets/_BfymrLUh.js.br +0 -0
- package/dist/public/assets/_BiIzmSt-.js.br +0 -0
- package/dist/public/assets/_BmuJ1O9P.js.br +0 -0
- package/dist/public/assets/_Bn5bz8Fw.js.br +0 -0
- package/dist/public/assets/_Bn8crSCH.js.br +0 -0
- package/dist/public/assets/_Bs60UQQp.js.br +0 -0
- package/dist/public/assets/_Bu0d16Gz2.js.br +0 -0
- package/dist/public/assets/_BuFvVDBW.js.br +0 -0
- package/dist/public/assets/_BuPlYdZf.js.br +0 -0
- package/dist/public/assets/_BuxBV9KZ.js.br +0 -1
- package/dist/public/assets/_BvYVSdj3.js.br +0 -0
- package/dist/public/assets/_BwubERfJ.js.br +0 -0
- package/dist/public/assets/_Bx-akz-g2.js.br +0 -0
- package/dist/public/assets/_C-6C490f.js.br +0 -0
- package/dist/public/assets/_C1jhh4rH.js.br +0 -0
- package/dist/public/assets/_C6ldYeFm.js.br +0 -0
- package/dist/public/assets/_CCBfIvK-2.js.br +0 -0
- package/dist/public/assets/_CE47SDMW.js.br +0 -0
- package/dist/public/assets/_CKjR1BXt2.js.br +0 -0
- package/dist/public/assets/_CYia-nz02.js.br +0 -0
- package/dist/public/assets/_CcrxW0kr.js.br +0 -0
- package/dist/public/assets/_Cf9cdsh0.js.br +0 -0
- package/dist/public/assets/_Ciq2ywTg2.js.br +0 -0
- package/dist/public/assets/_Co8Ezvh22.js.br +0 -0
- package/dist/public/assets/_Cqjh6FxH2.js.br +0 -0
- package/dist/public/assets/_Csb4KIv-2.js.br +0 -0
- package/dist/public/assets/_CuyaYiRW.js.br +0 -0
- package/dist/public/assets/_CyefKW6N.js.br +0 -0
- package/dist/public/assets/_CyrJ6uCP.js.br +0 -0
- package/dist/public/assets/_CzF3na4k2.js.br +0 -0
- package/dist/public/assets/_D0GH7ugf.js.br +0 -0
- package/dist/public/assets/_D273_csH.js.br +0 -0
- package/dist/public/assets/_D6nGNdbM2.js.br +0 -0
- package/dist/public/assets/_D8yBV-3W.js.br +0 -0
- package/dist/public/assets/_D9FyVasE.js.br +0 -0
- package/dist/public/assets/_DBN-ARTK2.js.br +0 -0
- package/dist/public/assets/_DF7p8NtB.js.br +0 -0
- package/dist/public/assets/_DGiIMv8G2.js.br +0 -0
- package/dist/public/assets/_DRF3Di45.js.br +0 -0
- package/dist/public/assets/_DX3XTwvW.js.br +0 -0
- package/dist/public/assets/_DYkG4loD.js.br +0 -0
- package/dist/public/assets/_DbEL5xWz.js.br +0 -0
- package/dist/public/assets/_Dhm70a8Q.js.br +0 -0
- package/dist/public/assets/_DjPgs5rw.js.br +0 -0
- package/dist/public/assets/_Dnva3Iwh.js.br +0 -0
- package/dist/public/assets/_Dt4Da0qD.js.br +0 -0
- package/dist/public/assets/_IvxXQmT0.js.br +0 -0
- package/dist/public/assets/_JLngONpn.js.br +0 -0
- package/dist/public/assets/_K7Edgfgc.js.br +0 -0
- package/dist/public/assets/_MlgXnVcu.js.br +0 -0
- package/dist/public/assets/_PKde0FEU2.js.br +0 -0
- package/dist/public/assets/_RjK3rf_Y.js.br +0 -0
- package/dist/public/assets/_S4Deki6-.js.br +0 -0
- package/dist/public/assets/__CmiW5mo.js.br +0 -0
- package/dist/public/assets/_o1mi4aXB2.js.br +0 -0
- package/dist/public/assets/app-page-DgDTDOHI.css +0 -1
- package/dist/public/assets/app-page-DgDTDOHI.css.br +0 -0
- package/dist/public/assets/diff-view-BXhpA0AC.css +0 -1
- package/dist/public/assets/diff-view-BXhpA0AC.css.br +0 -0
- package/dist/public/assets/new-BH-hZ4d8.js +0 -1
- package/dist/public/assets/settings-BH-hZ4d8.js +0 -1
- package/dist/public/assets/w-BH-hZ4d8.js +0 -1
- package/dist/public/assets/w._-BH-hZ4d8.js +0 -1
- package/dist/public/assets/w._-DxgRF7k8.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 setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as _dynamic_tag, A as btnLg, At as withPageAssets, B as _attr, C as toast_default, Ct as _subscribe, D as repoLabel, Dt as _try, E as parseRepoUrl, Et as _trailers, F as inputLg, G as _attr_or, I as metaTrunc, J as _attrs, K as _attr_select_value, L as phase, N as iconBtnRow, O as repoWebUrl$1, Ot as _var, P as iconBtnXs, Q as _content_resume, R as tone, S as workspaceTab, St as _set_serialize_reason, T as icon_base_default, Tt as _to_text, U as _attr_input_value, V as _attr_class, W as _attr_option_value, X as _await, Y as _attrs_partial, Z as _content, _t as _scope_with_id, a as rankRepos, at as _flush_head, b as sideNavOpen, bt as _serialize_guard, c as icon_refresh_default, ct as _hoist_read_error, d as sectionCount$1, dt as _if, ft as _peek_scope_id, gt as _scope_reason, ht as _scope_id, it as _existing_scope, j as btnSm, jt as writeScope, k as setPrimaryHost, kt as attrTag, l as iconBtn$2, lt as _html, mt as _resume_branch, n as findInput, nt as _el_resume, o as icon_search_default, ot as _for_of, pt as _resume, q as _attr_style, r as icon_sidebar_default, rt as _escape, s as icon_back_default, st as _hoist, t as findIconBtn, tt as _el_read_error, u as row, ut as _id, v as setTheme, vt as _script, w as icon_xmark_default, wt as _template, x as theme, xt as _serialize_if, y as setWorkspaceTab, yt as _sep, z as $global } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BdPU13C_.js";
|
|
3
|
+
import { $ as _dynamic_tag, A as btnLg, At as withPageAssets, B as _attr, C as toast_default, Ct as _subscribe, D as repoLabel, Dt as _try, E as parseRepoUrl, Et as _trailers, F as inputLg, G as _attr_or, I as metaTrunc, J as _attrs, K as _attr_select_value, L as phase, N as iconBtnRow, O as repoWebUrl$1, Ot as _var, P as iconBtnXs, Q as _content_resume, R as tone, S as workspaceTab, St as _set_serialize_reason, T as icon_base_default, Tt as _to_text, U as _attr_input_value, V as _attr_class, W as _attr_option_value, X as _await, Y as _attrs_partial, Z as _content, _t as _scope_with_id, a as rankRepos, at as _flush_head, b as sideNavOpen, bt as _serialize_guard, c as icon_refresh_default, ct as _hoist_read_error, d as sectionCount$1, dt as _if, ft as _peek_scope_id, gt as _scope_reason, ht as _scope_id, it as _existing_scope, j as btnSm, jt as writeScope, k as setPrimaryHost, kt as attrTag, l as iconBtn$2, lt as _html, mt as _resume_branch, n as findInput, nt as _el_resume, o as icon_search_default, ot as _for_of, pt as _resume, q as _attr_style, r as icon_sidebar_default, rt as _escape, s as icon_back_default, st as _hoist, t as findIconBtn, tt as _el_read_error, u as row, ut as _id, v as setTheme, vt as _script, w as icon_xmark_default, wt as _template, x as theme, xt as _serialize_if, y as setWorkspaceTab, yt as _sep, z as $global } from "./_BaBpI2_Z.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2287,12 +2287,14 @@ async function revParse(cwd, ref) {
|
|
|
2287
2287
|
* Fresh branch → cut from `origin/<base>` after fetch (ensureBare).
|
|
2288
2288
|
* Existing `origin/<ws-branch>` (re-add, open PR, prior push) → restore
|
|
2289
2289
|
* that branch then rebase onto `origin/<base>` so the checkout is not
|
|
2290
|
-
* stuck on an old main tip.
|
|
2291
|
-
*
|
|
2290
|
+
* stuck on an old main tip. Empty upstream (GitHub "no commits yet") →
|
|
2291
|
+
* `worktree add --orphan` so the first real commit can be the root.
|
|
2292
|
+
* Leftover local branches with no worktree are deleted so
|
|
2293
|
+
* `worktree add -b` can recreate them.
|
|
2292
2294
|
*/
|
|
2293
2295
|
async function addWorkspaceWorktree(bare, dest, branch, base) {
|
|
2294
2296
|
const baseRef = `origin/${base}`;
|
|
2295
|
-
|
|
2297
|
+
const baseOid = await revParse(bare, baseRef);
|
|
2296
2298
|
await git(["worktree", "prune"], bare).catch(() => {});
|
|
2297
2299
|
if (await revParse(bare, `refs/heads/${branch}`)) {
|
|
2298
2300
|
if ((await git([
|
|
@@ -2306,9 +2308,21 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
|
|
|
2306
2308
|
branch
|
|
2307
2309
|
], bare);
|
|
2308
2310
|
}
|
|
2309
|
-
const remoteWs = await revParse(bare, `refs/remotes/origin/${branch}`);
|
|
2310
2311
|
const label = path.basename(dest);
|
|
2311
|
-
if (
|
|
2312
|
+
if (!baseOid) {
|
|
2313
|
+
if (await remoteHasHeads(bare)) throw new Error(`missing ${baseRef} after fetch`);
|
|
2314
|
+
progress$1(`Adding empty worktree ${label}/…`);
|
|
2315
|
+
await git([
|
|
2316
|
+
"worktree",
|
|
2317
|
+
"add",
|
|
2318
|
+
"--orphan",
|
|
2319
|
+
"-b",
|
|
2320
|
+
branch,
|
|
2321
|
+
dest
|
|
2322
|
+
], bare);
|
|
2323
|
+
return;
|
|
2324
|
+
}
|
|
2325
|
+
if (await revParse(bare, `refs/remotes/origin/${branch}`)) {
|
|
2312
2326
|
progress$1(`Restoring ${label}/ from origin/${branch}…`);
|
|
2313
2327
|
await git([
|
|
2314
2328
|
"worktree",
|
|
@@ -2322,7 +2336,7 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
|
|
|
2322
2336
|
"merge-base",
|
|
2323
2337
|
branch,
|
|
2324
2338
|
baseRef
|
|
2325
|
-
], dest) !==
|
|
2339
|
+
], dest) !== baseOid) {
|
|
2326
2340
|
progress$1(`Rebasing ${label}/ onto ${base}…`);
|
|
2327
2341
|
try {
|
|
2328
2342
|
await git(["rebase", baseRef], dest);
|
|
@@ -2344,6 +2358,15 @@ async function addWorkspaceWorktree(bare, dest, branch, base) {
|
|
|
2344
2358
|
], bare);
|
|
2345
2359
|
}
|
|
2346
2360
|
}
|
|
2361
|
+
/** Any `refs/remotes/origin/<branch>` tip — not `origin/HEAD`, which can
|
|
2362
|
+
* exist as a symref even when the pointed-to branch has no commits yet. */
|
|
2363
|
+
async function remoteHasHeads(bare) {
|
|
2364
|
+
return (await git([
|
|
2365
|
+
"for-each-ref",
|
|
2366
|
+
"--format=%(refname)",
|
|
2367
|
+
"refs/remotes/origin/"
|
|
2368
|
+
], bare).catch(() => "")).split("\n").some((ref) => ref.startsWith("refs/remotes/origin/") && ref !== "refs/remotes/origin/HEAD");
|
|
2369
|
+
}
|
|
2347
2370
|
/** `ref` is this workspace branch or a `-topic` lane of it. Another
|
|
2348
2371
|
* workspace's branch can extend this prefix, so callers must also
|
|
2349
2372
|
* subtract `otherWorkspaceBranches`. */
|
|
@@ -3494,15 +3517,15 @@ function applyInstance(inst) {
|
|
|
3494
3517
|
}
|
|
3495
3518
|
//#endregion
|
|
3496
3519
|
//#region src/tags/settings-page.css.ts
|
|
3497
|
-
var content$2 = "_ca
|
|
3498
|
-
var agentGrid = "_ce
|
|
3499
|
-
var toolGrid = "_co
|
|
3520
|
+
var content$2 = "_ca _bB _bC";
|
|
3521
|
+
var agentGrid = "_ce _bm";
|
|
3522
|
+
var toolGrid = "_co _bm";
|
|
3500
3523
|
//#endregion
|
|
3501
3524
|
//#region src/tags/page-head.marko
|
|
3502
3525
|
var page_head_default = _template("q", (input) => {
|
|
3503
3526
|
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);
|
|
3504
3527
|
const $scope0_id = _scope_id();
|
|
3505
|
-
_html(`<header${_attr_class("
|
|
3528
|
+
_html(`<header${_attr_class("_bD")}>`);
|
|
3506
3529
|
_if(() => {
|
|
3507
3530
|
if (input.backHref) {
|
|
3508
3531
|
const $scope1_id = _scope_id();
|
|
@@ -3521,11 +3544,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3521
3544
|
return 1;
|
|
3522
3545
|
}
|
|
3523
3546
|
}, $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);
|
|
3524
|
-
_html(`<div${_attr_class("
|
|
3547
|
+
_html(`<div${_attr_class("_bF")}><h1${_attr("id", input.titleId)}${_attr_class("_bE")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3525
3548
|
_if(() => {
|
|
3526
3549
|
if (input.meta) {
|
|
3527
3550
|
const $scope3_id = _scope_id();
|
|
3528
|
-
_html(`<p${_attr_class("
|
|
3551
|
+
_html(`<p${_attr_class("_bG")}>`);
|
|
3529
3552
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3530
3553
|
_html("</p>");
|
|
3531
3554
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3536,7 +3559,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3536
3559
|
_if(() => {
|
|
3537
3560
|
if (input.actions) {
|
|
3538
3561
|
const $scope4_id = _scope_id();
|
|
3539
|
-
_html(`<div${_attr_class("
|
|
3562
|
+
_html(`<div${_attr_class("_bH")}>`);
|
|
3540
3563
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3541
3564
|
_html("</div>");
|
|
3542
3565
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3604,7 +3627,7 @@ var icon_agent_default = _template("E", (input) => {
|
|
|
3604
3627
|
n: $badge__closures
|
|
3605
3628
|
});
|
|
3606
3629
|
});
|
|
3607
|
-
var usageNote = "
|
|
3630
|
+
var usageNote = "_eR _S";
|
|
3608
3631
|
//#endregion
|
|
3609
3632
|
//#region src/tags/usage-meters.marko
|
|
3610
3633
|
function duration(ms) {
|
|
@@ -3628,11 +3651,11 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3628
3651
|
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);
|
|
3629
3652
|
const $scope0_id = _scope_id();
|
|
3630
3653
|
const agent = input.agent;
|
|
3631
|
-
_html(`<div${_attr_class(["
|
|
3654
|
+
_html(`<div${_attr_class(["_eL", { ["_eM"]: input.hideName }])}><div${_attr_class("_eN")}>`);
|
|
3632
3655
|
_if(() => {
|
|
3633
3656
|
if (!input.hideName) {
|
|
3634
3657
|
const $scope1_id = _scope_id();
|
|
3635
|
-
_html(`<strong${_attr_class("
|
|
3658
|
+
_html(`<strong${_attr_class("_e6")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3636
3659
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3637
3660
|
return 0;
|
|
3638
3661
|
}
|
|
@@ -3640,7 +3663,7 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3640
3663
|
_if(() => {
|
|
3641
3664
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3642
3665
|
const $scope2_id = _scope_id();
|
|
3643
|
-
_html(`<span${_attr_class("
|
|
3666
|
+
_html(`<span${_attr_class("_eO")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3644
3667
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3645
3668
|
return 0;
|
|
3646
3669
|
}
|
|
@@ -3648,19 +3671,19 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3648
3671
|
_if(() => {
|
|
3649
3672
|
if (agent.stale_seconds != null) {
|
|
3650
3673
|
const $scope3_id = _scope_id();
|
|
3651
|
-
_html(`<span${_attr_class("
|
|
3674
|
+
_html(`<span${_attr_class("_eP")}${_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)}`);
|
|
3652
3675
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3653
3676
|
return 0;
|
|
3654
3677
|
}
|
|
3655
3678
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3656
|
-
_html(`</div><div${_attr_class(["
|
|
3679
|
+
_html(`</div><div${_attr_class(["_eQ", { ["_e7"]: agent.stale_seconds != null }])}>`);
|
|
3657
3680
|
_for_of(agent.windows || [], (win) => {
|
|
3658
3681
|
const $scope4_id = _scope_id();
|
|
3659
3682
|
const pct = pctText$1(win.used_percent);
|
|
3660
3683
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3661
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3662
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3663
|
-
_html(`<div${_attr_class("
|
|
3684
|
+
const fillClass = win.used_percent >= 90 ? "_eZ" : win.used_percent >= 70 ? "_eY" : win.used_percent >= 40 ? "_eX" : "_eW";
|
|
3685
|
+
const pctClass = win.used_percent >= 90 ? "_e4" : win.used_percent >= 70 ? "_e3" : win.used_percent >= 40 ? "_e2" : "_e1";
|
|
3686
|
+
_html(`<div${_attr_class("_eS")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eT")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eU")}><span${_attr_class(["_eV", 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(["_e0", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e5")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3664
3687
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3665
3688
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3666
3689
|
_if(() => {
|
|
@@ -3719,7 +3742,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3719
3742
|
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;
|
|
3720
3743
|
const dismissable = input.dismissable !== false;
|
|
3721
3744
|
let open = input.open;
|
|
3722
|
-
_html(`<dialog${_attr_class(["
|
|
3745
|
+
_html(`<dialog${_attr_class(["_g2", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3723
3746
|
...htmlInput,
|
|
3724
3747
|
open: null
|
|
3725
3748
|
}, {
|
|
@@ -3729,20 +3752,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3729
3752
|
closedby: 1,
|
|
3730
3753
|
"on-cancel": 1,
|
|
3731
3754
|
"on-close": 1
|
|
3732
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3755
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g3")}>`);
|
|
3733
3756
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3734
3757
|
_html("</div>");
|
|
3735
3758
|
_if(() => {
|
|
3736
3759
|
if (footer) {
|
|
3737
3760
|
const $scope1_id = _scope_id();
|
|
3738
|
-
_html(`<form method=dialog${_attr_class("
|
|
3761
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
3739
3762
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3740
3763
|
_html("</form>");
|
|
3741
3764
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3742
3765
|
return 0;
|
|
3743
3766
|
} else if (input.openChange) {
|
|
3744
3767
|
const $scope2_id = _scope_id();
|
|
3745
|
-
_html(`<form method=dialog${_attr_class("
|
|
3768
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
3746
3769
|
dialog_close_default({
|
|
3747
3770
|
class: ["_o", "_p"],
|
|
3748
3771
|
content: _content("o0", () => {
|
|
@@ -3801,7 +3824,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
3801
3824
|
const $childScope = _peek_scope_id();
|
|
3802
3825
|
modal_view_default({
|
|
3803
3826
|
label: input.label,
|
|
3804
|
-
class: "
|
|
3827
|
+
class: "_eJ",
|
|
3805
3828
|
open: input.open,
|
|
3806
3829
|
openChange: input.openChange,
|
|
3807
3830
|
"aria-labelledby": titleId,
|
|
@@ -3824,7 +3847,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
3824
3847
|
content: _content("r6", () => {
|
|
3825
3848
|
_scope_reason();
|
|
3826
3849
|
const $scope2_id = _scope_id();
|
|
3827
|
-
_html(`<h2${_attr_class("
|
|
3850
|
+
_html(`<h2${_attr_class("_eK")}${_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) => {
|
|
3828
3851
|
value = _new_value;
|
|
3829
3852
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3830
3853
|
_script($scope2_id, "r4");
|
|
@@ -4132,7 +4155,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4132
4155
|
const appearanceId = _id();
|
|
4133
4156
|
const githubId = _id();
|
|
4134
4157
|
const machineId = _id();
|
|
4135
|
-
_html(`<div${_attr_class("
|
|
4158
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$2)}>`);
|
|
4136
4159
|
_set_serialize_reason({
|
|
4137
4160
|
0: _serialize_guard($scope0_reason, 3),
|
|
4138
4161
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4239,7 +4262,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4239
4262
|
return 0;
|
|
4240
4263
|
}
|
|
4241
4264
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4242
|
-
_html(`<section${_attr_class("
|
|
4265
|
+
_html(`<section${_attr_class("_bj")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bk")}><h2${_attr("id", agentsId)}${_attr_class("_by")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4243
4266
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4244
4267
|
setPreferred(v);
|
|
4245
4268
|
}, "u1", $scope0_id), () => {
|
|
@@ -4264,14 +4287,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4264
4287
|
const rows = lone ? [] : a.instances;
|
|
4265
4288
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4266
4289
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4267
|
-
_html(`<li${_attr_class(["
|
|
4290
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
|
|
4268
4291
|
_set_serialize_reason(12);
|
|
4269
4292
|
const $childScope4 = _peek_scope_id();
|
|
4270
4293
|
icon_agent_default({
|
|
4271
4294
|
agent: a.id,
|
|
4272
4295
|
size: 18
|
|
4273
4296
|
});
|
|
4274
|
-
_html(`<div${_attr_class("
|
|
4297
|
+
_html(`<div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class("_bq")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4275
4298
|
_if(() => {
|
|
4276
4299
|
if (lone && input.preferred === lone.id) {
|
|
4277
4300
|
const $scope54_id = _scope_id();
|
|
@@ -4289,7 +4312,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4289
4312
|
return 0;
|
|
4290
4313
|
} else if (!a.installed) {
|
|
4291
4314
|
const $scope55_id = _scope_id();
|
|
4292
|
-
_html(`<span${_attr_class("
|
|
4315
|
+
_html(`<span${_attr_class("_bs")}>Not installed</span>`);
|
|
4293
4316
|
writeScope($scope55_id, {});
|
|
4294
4317
|
return 1;
|
|
4295
4318
|
}
|
|
@@ -4407,7 +4430,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4407
4430
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4408
4431
|
_for_of(otherUsage, (u) => {
|
|
4409
4432
|
const $scope60_id = _scope_id();
|
|
4410
|
-
_html(`<li${_attr_class(["
|
|
4433
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}>`);
|
|
4411
4434
|
_set_serialize_reason(6);
|
|
4412
4435
|
const $childScope9 = _peek_scope_id();
|
|
4413
4436
|
usage_meters_default({ agent: u });
|
|
@@ -4418,21 +4441,21 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4418
4441
|
_if(() => {
|
|
4419
4442
|
if (!usage && families.length) {
|
|
4420
4443
|
const $scope61_id = _scope_id();
|
|
4421
|
-
_html(`<p${_attr_class("
|
|
4444
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4422
4445
|
writeScope($scope61_id, {});
|
|
4423
4446
|
return 0;
|
|
4424
4447
|
} else if (usage?.error) {
|
|
4425
4448
|
const $scope7_id = _scope_id();
|
|
4426
|
-
_html(`<p${_attr_class("
|
|
4449
|
+
_html(`<p${_attr_class("_bu")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4427
4450
|
writeScope($scope7_id, {});
|
|
4428
4451
|
return 1;
|
|
4429
4452
|
}
|
|
4430
4453
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4431
|
-
_html(`</section><section${_attr_class("
|
|
4454
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bk")}><h2${_attr("id", githubId)}${_attr_class("_by")}>GitHub</h2></div><ul${_attr_class("_bm")}>`);
|
|
4432
4455
|
_for_of(setup?.github || [], (h) => {
|
|
4433
4456
|
const $scope12_id = _scope_id();
|
|
4434
4457
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
4435
|
-
_html(`<li${_attr_class("
|
|
4458
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class(["_bq", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "e")}</span>`);
|
|
4436
4459
|
_if(() => {
|
|
4437
4460
|
if (h.isEnterprise) {
|
|
4438
4461
|
const $scope64_id = _scope_id();
|
|
@@ -4455,12 +4478,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4455
4478
|
return 1;
|
|
4456
4479
|
} else if (h.authed) {
|
|
4457
4480
|
const $scope62_id = _scope_id();
|
|
4458
|
-
_html(`<span${_attr_class("
|
|
4481
|
+
_html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope62_id, "b")}</span>`);
|
|
4459
4482
|
writeScope($scope62_id, {});
|
|
4460
4483
|
return 2;
|
|
4461
4484
|
} else {
|
|
4462
4485
|
const $scope63_id = _scope_id();
|
|
4463
|
-
_html(`<span${_attr_class("
|
|
4486
|
+
_html(`<span${_attr_class("_bs")}>${_escape(h.error || "Not signed in")}${_el_resume($scope63_id, "b")}</span>`);
|
|
4464
4487
|
writeScope($scope63_id, {});
|
|
4465
4488
|
return 3;
|
|
4466
4489
|
}
|
|
@@ -4491,7 +4514,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4491
4514
|
if (h.isEnterprise) {
|
|
4492
4515
|
const $scope26_id = _scope_id();
|
|
4493
4516
|
_html(`<button${_attr_class([
|
|
4494
|
-
"
|
|
4517
|
+
"_bt",
|
|
4495
4518
|
"_2",
|
|
4496
4519
|
"_3",
|
|
4497
4520
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4534,7 +4557,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4534
4557
|
_if(() => {
|
|
4535
4558
|
if (setup && !setup.github.length) {
|
|
4536
4559
|
const $scope67_id = _scope_id();
|
|
4537
|
-
_html(`<p${_attr_class("
|
|
4560
|
+
_html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4538
4561
|
writeScope($scope67_id, {});
|
|
4539
4562
|
return 0;
|
|
4540
4563
|
}
|
|
@@ -4555,7 +4578,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4555
4578
|
return 0;
|
|
4556
4579
|
}
|
|
4557
4580
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4558
|
-
_html(`</section><section${_attr_class("
|
|
4581
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bk")}><h2${_attr("id", machineId)}${_attr_class("_by")}>Machine</h2>`);
|
|
4559
4582
|
_if(() => {
|
|
4560
4583
|
if (missingCount) {
|
|
4561
4584
|
const $scope48_id = _scope_id();
|
|
@@ -4595,7 +4618,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4595
4618
|
_if(() => {
|
|
4596
4619
|
if (setup && !setup.mise.installed) {
|
|
4597
4620
|
const $scope16_id = _scope_id();
|
|
4598
|
-
_html(`<p${_attr_class("
|
|
4621
|
+
_html(`<p${_attr_class("_bu")}>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($scope16_id, "c")}</button>${_el_resume($scope16_id, "b")}</p>`);
|
|
4599
4622
|
_script($scope16_id, "u42");
|
|
4600
4623
|
writeScope($scope16_id, {});
|
|
4601
4624
|
return 0;
|
|
@@ -4791,7 +4814,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4791
4814
|
_html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
|
|
4792
4815
|
_for_of(hits, (h) => {
|
|
4793
4816
|
const $scope21_id = _scope_id();
|
|
4794
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4817
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bp")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope21_id, "d")}</span>`);
|
|
4795
4818
|
_if(() => {
|
|
4796
4819
|
if (active.has(h.name)) {
|
|
4797
4820
|
const $scope22_id = _scope_id();
|
|
@@ -4800,7 +4823,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4800
4823
|
return 0;
|
|
4801
4824
|
} else if (h.description) {
|
|
4802
4825
|
const $scope78_id = _scope_id();
|
|
4803
|
-
_html(`<span${_attr_class("
|
|
4826
|
+
_html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope78_id, "b")}</span>${_el_resume($scope78_id, "a")}`);
|
|
4804
4827
|
writeScope($scope78_id, {});
|
|
4805
4828
|
return 1;
|
|
4806
4829
|
}
|
|
@@ -4839,7 +4862,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4839
4862
|
return 0;
|
|
4840
4863
|
} else if (hits && !searching) {
|
|
4841
4864
|
const $scope35_id = _scope_id();
|
|
4842
|
-
_html(`<p${_attr_class("
|
|
4865
|
+
_html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope35_id, "b")}".</p>`);
|
|
4843
4866
|
_subscribe($query__closures, writeScope($scope35_id, {}));
|
|
4844
4867
|
return 1;
|
|
4845
4868
|
}
|
|
@@ -4850,7 +4873,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4850
4873
|
return 0;
|
|
4851
4874
|
}
|
|
4852
4875
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
4853
|
-
_html(`</section><section${_attr_class("
|
|
4876
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bk")}><h2${_attr("id", appearanceId)}${_attr_class("_by")}>Appearance</h2></div><div${_attr_class(["_bo", "_cx"])}><label${_attr_class("_cy")}><span${_attr_class("_cz")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
4854
4877
|
setInstance({ name: v });
|
|
4855
4878
|
}, "u3", $scope0_id))}${_attr_class(["_U", "_cA"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cB"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cy")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cz")}>Theme</span><span${_attr_class("_cC")}>`);
|
|
4856
4879
|
_for_of([
|
|
@@ -5008,12 +5031,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5008
5031
|
});
|
|
5009
5032
|
//#endregion
|
|
5010
5033
|
//#region src/tags/new-workspace.css.ts
|
|
5011
|
-
var content$1 = "_bI
|
|
5012
|
-
var section$1 = "_bM
|
|
5034
|
+
var content$1 = "_bI _bB";
|
|
5035
|
+
var section$1 = "_bM _bj";
|
|
5013
5036
|
var curBase = "_bR _T _S";
|
|
5014
|
-
var archived = "_bW
|
|
5037
|
+
var archived = "_bW _bj";
|
|
5015
5038
|
var archivedHint = "_bX _S";
|
|
5016
|
-
var archivedCard = "_bY
|
|
5039
|
+
var archivedCard = "_bY _bo";
|
|
5017
5040
|
var resultBranch = "_cW _Z _j";
|
|
5018
5041
|
//#endregion
|
|
5019
5042
|
//#region src/tags/branch-pick.marko
|
|
@@ -5029,7 +5052,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5029
5052
|
_if(() => {
|
|
5030
5053
|
{
|
|
5031
5054
|
const $scope4_id = _scope_id();
|
|
5032
|
-
_html(`<p${_attr_class("
|
|
5055
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5033
5056
|
writeScope($scope4_id, {});
|
|
5034
5057
|
return 0;
|
|
5035
5058
|
}
|
|
@@ -5152,7 +5175,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5152
5175
|
return 0;
|
|
5153
5176
|
} else if (filter && !catalog) {
|
|
5154
5177
|
const $scope8_id = _scope_id();
|
|
5155
|
-
_html(`<p${_attr_class("
|
|
5178
|
+
_html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
|
|
5156
5179
|
writeScope($scope8_id, {});
|
|
5157
5180
|
return 1;
|
|
5158
5181
|
}
|
|
@@ -5201,7 +5224,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5201
5224
|
return 0;
|
|
5202
5225
|
} else if (filter && catalog && !pasted) {
|
|
5203
5226
|
const $scope6_id = _scope_id();
|
|
5204
|
-
_html(`<p${_attr_class("
|
|
5227
|
+
_html(`<p${_attr_class("_bu")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5205
5228
|
writeScope($scope6_id, {});
|
|
5206
5229
|
return 1;
|
|
5207
5230
|
}
|
|
@@ -5339,7 +5362,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5339
5362
|
}
|
|
5340
5363
|
}, "p6", $scope0_id);
|
|
5341
5364
|
const titleId = _id();
|
|
5342
|
-
_html(`<div${_attr_class("
|
|
5365
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$1)}>`);
|
|
5343
5366
|
_set_serialize_reason({
|
|
5344
5367
|
0: _serialize_guard($scope0_reason, 2),
|
|
5345
5368
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5378,9 +5401,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5378
5401
|
return 0;
|
|
5379
5402
|
}
|
|
5380
5403
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5381
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5404
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_by")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5382
5405
|
name = _new_name;
|
|
5383
|
-
}, "p0", $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("_bN")}><h2${_attr_class("
|
|
5406
|
+
}, "p0", $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("_bN")}><h2${_attr_class("_by")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5384
5407
|
_set_serialize_reason(1);
|
|
5385
5408
|
const $childScope2 = _peek_scope_id();
|
|
5386
5409
|
icon_refresh_default({
|
|
@@ -5437,7 +5460,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5437
5460
|
_if(() => {
|
|
5438
5461
|
if (!selected.length) {
|
|
5439
5462
|
const $scope12_id = _scope_id();
|
|
5440
|
-
_html(`<li${_attr_class("
|
|
5463
|
+
_html(`<li${_attr_class("_bu")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5441
5464
|
writeScope($scope12_id, {});
|
|
5442
5465
|
return 0;
|
|
5443
5466
|
}
|
|
@@ -5504,10 +5527,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5504
5527
|
_if(() => {
|
|
5505
5528
|
if (archived$1.length) {
|
|
5506
5529
|
const $scope4_id = _scope_id();
|
|
5507
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5530
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_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("_bm")}>`);
|
|
5508
5531
|
_for_of(archived$1, (ws) => {
|
|
5509
5532
|
const $scope5_id = _scope_id();
|
|
5510
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5533
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bp")}><span${_attr_class("_bq")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5511
5534
|
_if(() => {
|
|
5512
5535
|
if (restoring === ws.id) {
|
|
5513
5536
|
const $scope15_id = _scope_id();
|
|
@@ -5652,8 +5675,8 @@ function activeAgent(session) {
|
|
|
5652
5675
|
const command = session.state?.command?.trim();
|
|
5653
5676
|
return command && agentFromCommand(command) || session.agent;
|
|
5654
5677
|
}
|
|
5655
|
-
var iconBtn$1 = "
|
|
5656
|
-
var navToggle = "
|
|
5678
|
+
var iconBtn$1 = "_c6 _j";
|
|
5679
|
+
var navToggle = "_da _j";
|
|
5657
5680
|
_template("H", (input) => {
|
|
5658
5681
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5659
5682
|
const $scope0_id = _scope_id();
|
|
@@ -5696,12 +5719,12 @@ var ARM_MS = 3500;
|
|
|
5696
5719
|
function disarmLater(fn) {
|
|
5697
5720
|
return setTimeout(fn, ARM_MS);
|
|
5698
5721
|
}
|
|
5699
|
-
var railBtn = "
|
|
5700
|
-
var rowIcon = "
|
|
5701
|
-
var close = "
|
|
5722
|
+
var railBtn = "_f7 _j";
|
|
5723
|
+
var rowIcon = "_gf _Z _j";
|
|
5724
|
+
var close = "_gg _Z _j _2";
|
|
5702
5725
|
//#endregion
|
|
5703
5726
|
//#region src/styles/session-pop.css.ts
|
|
5704
|
-
var sessionPop = "
|
|
5727
|
+
var sessionPop = "_f3 _4";
|
|
5705
5728
|
//#endregion
|
|
5706
5729
|
//#region src/client/usage.ts
|
|
5707
5730
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -5762,22 +5785,22 @@ var usage_pcts_default = _template("C", (input) => {
|
|
|
5762
5785
|
if (windows.length) {
|
|
5763
5786
|
const $scope1_id = _scope_id();
|
|
5764
5787
|
_html(`<span${_attr_class([
|
|
5765
|
-
"
|
|
5788
|
+
"_fb",
|
|
5766
5789
|
input.class,
|
|
5767
|
-
{ ["
|
|
5790
|
+
{ ["_fc"]: agent.stale_seconds != null }
|
|
5768
5791
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5769
5792
|
_for_of(windows, (win$1, i) => {
|
|
5770
5793
|
const $scope2_id = _scope_id();
|
|
5771
|
-
_html(`<span${_attr_class("
|
|
5794
|
+
_html(`<span${_attr_class("_fd")}>`);
|
|
5772
5795
|
_if(() => {
|
|
5773
5796
|
if (i) {
|
|
5774
5797
|
const $scope3_id = _scope_id();
|
|
5775
|
-
_html(`<span${_attr_class("
|
|
5798
|
+
_html(`<span${_attr_class("_fg")} aria-hidden=true>·</span>`);
|
|
5776
5799
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5777
5800
|
return 0;
|
|
5778
5801
|
}
|
|
5779
5802
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5780
|
-
_html(`<span${_attr_class("
|
|
5803
|
+
_html(`<span${_attr_class("_fe")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_ff", win$1.used_percent >= 90 ? "_e4" : win$1.used_percent >= 70 ? "_e3" : win$1.used_percent >= 40 ? "_e2" : "_e1"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5781
5804
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5782
5805
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5783
5806
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6011,10 +6034,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6011
6034
|
_if(() => {
|
|
6012
6035
|
if (input.rail) {
|
|
6013
6036
|
const $scope2_id = _scope_id();
|
|
6014
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6037
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_f5"]: 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([
|
|
6015
6038
|
"_z",
|
|
6016
6039
|
phase[dot],
|
|
6017
|
-
"
|
|
6040
|
+
"_f8"
|
|
6018
6041
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6019
6042
|
_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) })))));
|
|
6020
6043
|
return 0;
|
|
@@ -6022,15 +6045,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6022
6045
|
const $scope3_id = _scope_id();
|
|
6023
6046
|
const sessions$1 = input.sessions || [];
|
|
6024
6047
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6025
|
-
_html(`<section${_attr_class(["
|
|
6026
|
-
["
|
|
6048
|
+
_html(`<section${_attr_class(["_f_", {
|
|
6049
|
+
["_f5"]: input.current,
|
|
6027
6050
|
["_5"]: input.current,
|
|
6028
|
-
["
|
|
6029
|
-
["
|
|
6030
|
-
}])}><div${_attr_class("
|
|
6051
|
+
["_ga"]: input.railPop,
|
|
6052
|
+
["_f9"]: input.page
|
|
6053
|
+
}])}><div${_attr_class("_gb")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gc")}><span${_attr_class([
|
|
6031
6054
|
"_z",
|
|
6032
6055
|
phase[dot],
|
|
6033
|
-
"
|
|
6056
|
+
"_gp"
|
|
6034
6057
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6035
6058
|
_if(() => {
|
|
6036
6059
|
if (sessions$1.length === 1) {
|
|
@@ -6043,7 +6066,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6043
6066
|
icon_agent_default({
|
|
6044
6067
|
agent: activeAgent(sessions$1[0]),
|
|
6045
6068
|
size: 12,
|
|
6046
|
-
class: "
|
|
6069
|
+
class: "_gh"
|
|
6047
6070
|
});
|
|
6048
6071
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6049
6072
|
_: _scope_with_id($scope3_id),
|
|
@@ -6053,16 +6076,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6053
6076
|
}
|
|
6054
6077
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6055
6078
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6056
|
-
_html(`<span${_attr_class("
|
|
6079
|
+
_html(`<span${_attr_class("_gi")}><span${_attr_class("_gj")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6057
6080
|
_if(() => {
|
|
6058
6081
|
if (input.page && metaText) {
|
|
6059
6082
|
const $scope16_id = _scope_id();
|
|
6060
|
-
_html(`<span${_attr_class("
|
|
6083
|
+
_html(`<span${_attr_class("_gn")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6061
6084
|
$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) });
|
|
6062
6085
|
return 0;
|
|
6063
6086
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6064
6087
|
const $scope15_id = _scope_id();
|
|
6065
|
-
_html(`<span${_attr_class("
|
|
6088
|
+
_html(`<span${_attr_class("_gk")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6066
6089
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6067
6090
|
return 1;
|
|
6068
6091
|
}
|
|
@@ -6075,7 +6098,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6075
6098
|
"_I",
|
|
6076
6099
|
"_R",
|
|
6077
6100
|
"_K",
|
|
6078
|
-
"
|
|
6101
|
+
"_go"
|
|
6079
6102
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6080
6103
|
$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, {
|
|
6081
6104
|
_: _scope_with_id($scope3_id),
|
|
@@ -6088,7 +6111,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6088
6111
|
_if(() => {
|
|
6089
6112
|
if (!input.page) {
|
|
6090
6113
|
const $scope5_id = _scope_id();
|
|
6091
|
-
_html(`<div${_attr_class("
|
|
6114
|
+
_html(`<div${_attr_class("_gd")}>`);
|
|
6092
6115
|
_if(() => {
|
|
6093
6116
|
if (input.onNewSession) {
|
|
6094
6117
|
const $scope6_id = _scope_id();
|
|
@@ -6102,7 +6125,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6102
6125
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6103
6126
|
_for_of([], (agent) => {
|
|
6104
6127
|
const $scope7_id = _scope_id();
|
|
6105
|
-
_html(`<button${_attr_class("
|
|
6128
|
+
_html(`<button${_attr_class("_f4")}>`);
|
|
6106
6129
|
_set_serialize_reason(12);
|
|
6107
6130
|
const $childScope2 = _peek_scope_id();
|
|
6108
6131
|
icon_agent_default({
|
|
@@ -6137,7 +6160,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6137
6160
|
return 0;
|
|
6138
6161
|
}
|
|
6139
6162
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6140
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6163
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_f6"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6141
6164
|
icon_manage_default({ size: 12 });
|
|
6142
6165
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6143
6166
|
_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, {
|
|
@@ -6147,7 +6170,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6147
6170
|
return 0;
|
|
6148
6171
|
}
|
|
6149
6172
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6150
|
-
_html(`</div><div${_attr_class("
|
|
6173
|
+
_html(`</div><div${_attr_class("_gu")}>`);
|
|
6151
6174
|
_if(() => {
|
|
6152
6175
|
if (sessions$1.length === 1 && openPlan) {
|
|
6153
6176
|
const $scope11_id = _scope_id();
|
|
@@ -6155,7 +6178,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6155
6178
|
const $childScope3 = _peek_scope_id();
|
|
6156
6179
|
usage_pcts_default({
|
|
6157
6180
|
agent: openPlan,
|
|
6158
|
-
class: "
|
|
6181
|
+
class: "_gl"
|
|
6159
6182
|
});
|
|
6160
6183
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6161
6184
|
a: _existing_scope($childScope3),
|
|
@@ -6166,14 +6189,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6166
6189
|
}, $scope3_id, "m");
|
|
6167
6190
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6168
6191
|
const $scope8_id = _scope_id();
|
|
6169
|
-
_html(`<div${_attr_class(["
|
|
6192
|
+
_html(`<div${_attr_class(["_ge", { ["_f5"]: s.id === input.currentTab }])}>`);
|
|
6170
6193
|
_if(() => {
|
|
6171
6194
|
if (renamingId === s.id) {
|
|
6172
6195
|
const $scope10_id = _scope_id();
|
|
6173
6196
|
_html(`<span${_attr_class([
|
|
6174
6197
|
"_z",
|
|
6175
6198
|
phase[sessionPhase(s.state)],
|
|
6176
|
-
"
|
|
6199
|
+
"_gs"
|
|
6177
6200
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6178
6201
|
_set_serialize_reason({
|
|
6179
6202
|
1: $sg__input_sessions,
|
|
@@ -6183,17 +6206,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6183
6206
|
icon_agent_default({
|
|
6184
6207
|
agent: activeAgent(s),
|
|
6185
6208
|
size: 13,
|
|
6186
|
-
class: "
|
|
6209
|
+
class: "_gw"
|
|
6187
6210
|
});
|
|
6188
6211
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6189
6212
|
renameValue = _new_renameValue;
|
|
6190
|
-
}, "w0", $scope10_id))}${_attr_class(["_U", "
|
|
6213
|
+
}, "w0", $scope10_id))}${_attr_class(["_U", "_gt"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6191
6214
|
_script($scope10_id, "w5");
|
|
6192
6215
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6193
6216
|
return 0;
|
|
6194
6217
|
} else {
|
|
6195
6218
|
const $scope9_id = _scope_id();
|
|
6196
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6219
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gv")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6197
6220
|
_set_serialize_reason({
|
|
6198
6221
|
1: $sg__input_sessions,
|
|
6199
6222
|
2: $sg__input_sessions
|
|
@@ -6202,9 +6225,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6202
6225
|
icon_agent_default({
|
|
6203
6226
|
agent: activeAgent(s),
|
|
6204
6227
|
size: 13,
|
|
6205
|
-
class: "
|
|
6228
|
+
class: "_gw"
|
|
6206
6229
|
});
|
|
6207
|
-
_html(`<span${_attr_class("
|
|
6230
|
+
_html(`<span${_attr_class("_gq")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gr")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6208
6231
|
icon_edit_default({ size: 12 });
|
|
6209
6232
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6210
6233
|
icon_xmark_default({ size: 12 });
|
|
@@ -6216,7 +6239,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6216
6239
|
const $childScope6 = _peek_scope_id();
|
|
6217
6240
|
usage_pcts_default({
|
|
6218
6241
|
agent: openPlan,
|
|
6219
|
-
class: "
|
|
6242
|
+
class: "_gm"
|
|
6220
6243
|
});
|
|
6221
6244
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6222
6245
|
a: _existing_scope($childScope6),
|
|
@@ -6419,34 +6442,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6419
6442
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6420
6443
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6421
6444
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6422
|
-
_html(`<aside${_attr_class(["
|
|
6423
|
-
["
|
|
6424
|
-
["
|
|
6445
|
+
_html(`<aside${_attr_class(["_c_", {
|
|
6446
|
+
["_c8"]: !navOpen,
|
|
6447
|
+
["_c9"]: isPage
|
|
6425
6448
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6426
6449
|
_if(() => {
|
|
6427
6450
|
if (isPage) {
|
|
6428
6451
|
const $scope1_id = _scope_id();
|
|
6429
|
-
_html(`<header${_attr_class("
|
|
6452
|
+
_html(`<header${_attr_class("_dc")}><div${_attr_class("_dl")}>`);
|
|
6430
6453
|
_if(() => {
|
|
6431
6454
|
if (input.instanceName) {
|
|
6432
6455
|
const $scope2_id = _scope_id();
|
|
6433
|
-
_html(`<div${_attr_class("
|
|
6456
|
+
_html(`<div${_attr_class("_di")} title="This work server (Settings → Appearance)"><img${_attr_class("_dj")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dk")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6434
6457
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6435
6458
|
return 0;
|
|
6436
6459
|
}
|
|
6437
6460
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6438
|
-
_html(`<h1${_attr_class("
|
|
6461
|
+
_html(`<h1${_attr_class("_dd")}>Workspaces</h1></div><div${_attr_class("_de")}>`);
|
|
6439
6462
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6440
6463
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6441
6464
|
iconBtn$1,
|
|
6442
|
-
"
|
|
6443
|
-
{ ["
|
|
6465
|
+
"_df",
|
|
6466
|
+
{ ["_c5"]: view === "settings" }
|
|
6444
6467
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6445
6468
|
icon_settings_default({ size: 16 });
|
|
6446
6469
|
_if(() => {
|
|
6447
6470
|
if (input.setupReady === false) {
|
|
6448
6471
|
const $scope12_id = _scope_id();
|
|
6449
|
-
_html(`<span${_attr_class(["_z", "
|
|
6472
|
+
_html(`<span${_attr_class(["_z", "_c7"])} title="Machine setup incomplete"></span>`);
|
|
6450
6473
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6451
6474
|
return 0;
|
|
6452
6475
|
}
|
|
@@ -6459,18 +6482,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6459
6482
|
_if(() => {
|
|
6460
6483
|
if (!isPage && input.instanceName) {
|
|
6461
6484
|
const $scope3_id = _scope_id();
|
|
6462
|
-
_html(`<div${_attr_class("
|
|
6485
|
+
_html(`<div${_attr_class("_di")} title="This work server (Settings → Appearance)"><img${_attr_class("_dj")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dk")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6463
6486
|
writeScope($scope3_id, {});
|
|
6464
6487
|
return 0;
|
|
6465
6488
|
}
|
|
6466
6489
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6467
|
-
_html(`<div${_attr_class("
|
|
6490
|
+
_html(`<div${_attr_class("_dm")}>`);
|
|
6468
6491
|
_for_of(listIds, (wsId) => {
|
|
6469
6492
|
const $scope4_id = _scope_id();
|
|
6470
6493
|
_if(() => {
|
|
6471
6494
|
if (isPage && wsId === ws.id) {
|
|
6472
6495
|
const $scope13_id = _scope_id();
|
|
6473
|
-
_html(`<h2${_attr_class(["
|
|
6496
|
+
_html(`<h2${_attr_class(["_by", "_dg"])}>Current</h2>`);
|
|
6474
6497
|
writeScope($scope13_id, {});
|
|
6475
6498
|
return 0;
|
|
6476
6499
|
}
|
|
@@ -6478,7 +6501,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6478
6501
|
_if(() => {
|
|
6479
6502
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6480
6503
|
const $scope14_id = _scope_id();
|
|
6481
|
-
_html(`<h2${_attr_class(["
|
|
6504
|
+
_html(`<h2${_attr_class(["_by", "_dg"])}>Other workspaces</h2>`);
|
|
6482
6505
|
writeScope($scope14_id, {});
|
|
6483
6506
|
return 0;
|
|
6484
6507
|
}
|
|
@@ -6565,7 +6588,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6565
6588
|
railHover = null;
|
|
6566
6589
|
}, 150);
|
|
6567
6590
|
}, "x6", $scope5_id);
|
|
6568
|
-
_html(`<div${_attr_class("
|
|
6591
|
+
_html(`<div${_attr_class("_dn")}>`);
|
|
6569
6592
|
_for_of(itemIds, (wsId, i) => {
|
|
6570
6593
|
const $scope6_id = _scope_id();
|
|
6571
6594
|
_html("<span>");
|
|
@@ -6619,7 +6642,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6619
6642
|
if (railHover) {
|
|
6620
6643
|
const $scope7_id = _scope_id();
|
|
6621
6644
|
const hoverId = railHover.id;
|
|
6622
|
-
_html(`<div${_attr_class(["_4", "
|
|
6645
|
+
_html(`<div${_attr_class(["_4", "_dq"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6623
6646
|
_set_serialize_reason({
|
|
6624
6647
|
0: 1,
|
|
6625
6648
|
1: 1,
|
|
@@ -6707,7 +6730,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6707
6730
|
return 0;
|
|
6708
6731
|
}
|
|
6709
6732
|
}, $scope0_id, "e");
|
|
6710
|
-
_html(`<div${_attr_class("
|
|
6733
|
+
_html(`<div${_attr_class("_do")}>`);
|
|
6711
6734
|
_if(() => {
|
|
6712
6735
|
if (isPage) {
|
|
6713
6736
|
const $scope9_id = _scope_id();
|
|
@@ -6715,7 +6738,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6715
6738
|
"_o",
|
|
6716
6739
|
"_p",
|
|
6717
6740
|
btnLg,
|
|
6718
|
-
"
|
|
6741
|
+
"_dh"
|
|
6719
6742
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6720
6743
|
icon_folder_plus_default({ size: 16 });
|
|
6721
6744
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -6737,19 +6760,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6737
6760
|
return 1;
|
|
6738
6761
|
}
|
|
6739
6762
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6740
|
-
_html(`<div${_attr_class(["_y", "
|
|
6763
|
+
_html(`<div${_attr_class(["_y", "_dp"])}></div>`);
|
|
6741
6764
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6742
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6765
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c5"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6743
6766
|
icon_settings_default({ size: 15 });
|
|
6744
6767
|
_if(() => {
|
|
6745
6768
|
if (input.setupReady === false) {
|
|
6746
6769
|
const $scope17_id = _scope_id();
|
|
6747
|
-
_html(`<span${_attr_class(["_z", "
|
|
6770
|
+
_html(`<span${_attr_class(["_z", "_c7"])} title="Machine setup incomplete"></span>`);
|
|
6748
6771
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6749
6772
|
return 0;
|
|
6750
6773
|
}
|
|
6751
6774
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6752
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6775
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c5"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6753
6776
|
icon_folder_plus_default({ size: 16 });
|
|
6754
6777
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
6755
6778
|
_script($scope8_id, "x15");
|
|
@@ -6814,11 +6837,11 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6814
6837
|
_resume_branch($scope0_id);
|
|
6815
6838
|
});
|
|
6816
6839
|
var iconBtn = "_0 _j";
|
|
6817
|
-
var sectionCount = "
|
|
6818
|
-
var content = "
|
|
6819
|
-
var pageMeta = "
|
|
6820
|
-
var pathMeta = "
|
|
6821
|
-
var dangerHint = "
|
|
6840
|
+
var sectionCount = "_bl _I _J";
|
|
6841
|
+
var content = "_dr _bB";
|
|
6842
|
+
var pageMeta = "_ds _bG";
|
|
6843
|
+
var pathMeta = "_dv _x";
|
|
6844
|
+
var dangerHint = "_dB _S";
|
|
6822
6845
|
//#endregion
|
|
6823
6846
|
//#region src/tags/manage-workspace.marko
|
|
6824
6847
|
var api$2;
|
|
@@ -6917,7 +6940,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6917
6940
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6918
6941
|
}, "n5", $scope0_id);
|
|
6919
6942
|
const titleId = _id();
|
|
6920
|
-
_html(`<div${_attr_class("
|
|
6943
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content)}>`);
|
|
6921
6944
|
_set_serialize_reason(30);
|
|
6922
6945
|
const $childScope = _peek_scope_id();
|
|
6923
6946
|
page_head_default({
|
|
@@ -6930,7 +6953,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6930
6953
|
meta: attrTag({ content: _content_resume("n11", () => {
|
|
6931
6954
|
_scope_reason();
|
|
6932
6955
|
const $scope8_id = _scope_id();
|
|
6933
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6956
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dt")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6934
6957
|
_if(() => {
|
|
6935
6958
|
if (ws.status !== "active") {
|
|
6936
6959
|
const $scope11_id = _scope_id();
|
|
@@ -6939,7 +6962,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6939
6962
|
return 0;
|
|
6940
6963
|
}
|
|
6941
6964
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6942
|
-
_html(`<span${_attr_class("
|
|
6965
|
+
_html(`<span${_attr_class("_du")} 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")}`);
|
|
6943
6966
|
_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) })))));
|
|
6944
6967
|
_resume_branch($scope8_id);
|
|
6945
6968
|
}, $scope0_id) })
|
|
@@ -6967,22 +6990,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6967
6990
|
_if(() => {
|
|
6968
6991
|
if (pendingAction && actionStep) {
|
|
6969
6992
|
const $scope7_id = _scope_id();
|
|
6970
|
-
_html(`<p${_attr_class("
|
|
6993
|
+
_html(`<p${_attr_class("_bi")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6971
6994
|
writeScope($scope7_id, {});
|
|
6972
6995
|
return 0;
|
|
6973
6996
|
}
|
|
6974
6997
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6975
|
-
_html(`<section${_attr_class("
|
|
6998
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6976
6999
|
_set_serialize_reason(1);
|
|
6977
7000
|
const $childScope2 = _peek_scope_id();
|
|
6978
7001
|
icon_refresh_default({
|
|
6979
7002
|
size: 14,
|
|
6980
7003
|
class: catalogRefreshing && "_E"
|
|
6981
7004
|
});
|
|
6982
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7005
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bm")}>`);
|
|
6983
7006
|
_for_of(ws.repos, (row) => {
|
|
6984
7007
|
const $scope1_id = _scope_id();
|
|
6985
|
-
_html(`<li${_attr_class("
|
|
7008
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class(["_bq", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_br")}><a${_attr_class(["_bs", "_dx"])}${_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")}`);
|
|
6986
7009
|
_if(() => {
|
|
6987
7010
|
if (row.base_branch !== row.default_branch) {
|
|
6988
7011
|
const $scope12_id = _scope_id();
|
|
@@ -7001,7 +7024,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7001
7024
|
} else {
|
|
7002
7025
|
const $scope6_id = _scope_id();
|
|
7003
7026
|
_html(`<button${_attr_class([
|
|
7004
|
-
"
|
|
7027
|
+
"_bt",
|
|
7005
7028
|
"_2",
|
|
7006
7029
|
"_3",
|
|
7007
7030
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7034,19 +7057,19 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7034
7057
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7035
7058
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7036
7059
|
const $scope16_id = _scope_id();
|
|
7037
|
-
_html(`<li${_attr_class(["
|
|
7060
|
+
_html(`<li${_attr_class(["_bo", "_bn"])}><span${_attr_class("_F")}></span><div${_attr_class("_bp")}><span${_attr_class("_bs")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7038
7061
|
writeScope($scope16_id, {});
|
|
7039
7062
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7040
7063
|
_html("</ul>");
|
|
7041
7064
|
_if(() => {
|
|
7042
7065
|
if (!ws.repos.length && !busy.size) {
|
|
7043
7066
|
const $scope17_id = _scope_id();
|
|
7044
|
-
_html(`<p${_attr_class("
|
|
7067
|
+
_html(`<p${_attr_class("_bu")}>No repos yet. Search below to add one.</p>`);
|
|
7045
7068
|
writeScope($scope17_id, {});
|
|
7046
7069
|
return 0;
|
|
7047
7070
|
}
|
|
7048
7071
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7049
|
-
_html(`<div${_attr_class("
|
|
7072
|
+
_html(`<div${_attr_class("_dw")}>`);
|
|
7050
7073
|
const $childScope3 = _peek_scope_id();
|
|
7051
7074
|
let refreshCatalog = repo_picker_default({
|
|
7052
7075
|
exclude: inWorkspace,
|
|
@@ -7066,17 +7089,17 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7066
7089
|
_if(() => {
|
|
7067
7090
|
if (running.length) {
|
|
7068
7091
|
const $scope9_id = _scope_id();
|
|
7069
|
-
_html(`<section${_attr_class("
|
|
7092
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bm")}>`);
|
|
7070
7093
|
_for_of(running, (p) => {
|
|
7071
7094
|
const $scope10_id = _scope_id();
|
|
7072
|
-
_html(`<li${_attr_class("
|
|
7095
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}${_attr("title", p.args)}><span${_attr_class(["_bq", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7073
7096
|
_if(() => {
|
|
7074
7097
|
if (p.ports.length) {
|
|
7075
7098
|
const $scope18_id = _scope_id();
|
|
7076
|
-
_html(`<span${_attr_class("
|
|
7099
|
+
_html(`<span${_attr_class("_br")}>`);
|
|
7077
7100
|
_for_of(p.ports, (port) => {
|
|
7078
7101
|
const $scope19_id = _scope_id();
|
|
7079
|
-
_html(`<button${_attr_class(["_s", "
|
|
7102
|
+
_html(`<button${_attr_class(["_s", "_dy"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7080
7103
|
_script($scope19_id, "n15");
|
|
7081
7104
|
writeScope($scope19_id, { d: port });
|
|
7082
7105
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7084,7 +7107,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7084
7107
|
return 0;
|
|
7085
7108
|
}
|
|
7086
7109
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7087
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7110
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bt", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7088
7111
|
icon_xmark_default({ size: 14 });
|
|
7089
7112
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7090
7113
|
_script($scope10_id, "n16");
|
|
@@ -7098,7 +7121,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7098
7121
|
return 0;
|
|
7099
7122
|
}
|
|
7100
7123
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7101
|
-
_html(`<section${_attr_class(["
|
|
7124
|
+
_html(`<section${_attr_class(["_bj", "_dz"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_dA")}>`);
|
|
7102
7125
|
_if(() => {
|
|
7103
7126
|
if (ws.status === "active") {
|
|
7104
7127
|
const $scope4_id = _scope_id();
|
|
@@ -7199,15 +7222,15 @@ var term_find_default = _template("y", (input) => {
|
|
|
7199
7222
|
const canStep = hasQuery && open;
|
|
7200
7223
|
const keybar = input.placement === "keybar";
|
|
7201
7224
|
_html(`<div${_attr_class([
|
|
7202
|
-
"
|
|
7203
|
-
keybar ? "
|
|
7204
|
-
!open && "
|
|
7205
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7225
|
+
"_fW",
|
|
7226
|
+
keybar ? "_fY" : "_fX",
|
|
7227
|
+
!open && "_f0"
|
|
7228
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fR", keybar ? "_fZ" : "_fT"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7206
7229
|
if (!open) return;
|
|
7207
7230
|
query = v;
|
|
7208
7231
|
live.query = v;
|
|
7209
7232
|
run(0);
|
|
7210
|
-
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7233
|
+
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "_f1"])} 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 && "_f2"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_f2"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_f2"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7211
7234
|
icon_xmark_default({ size: 14 });
|
|
7212
7235
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7213
7236
|
_script($scope0_id, "y4");
|
|
@@ -7481,7 +7504,7 @@ var term_default = _template("z", (input) => {
|
|
|
7481
7504
|
trapOpen = true;
|
|
7482
7505
|
}
|
|
7483
7506
|
}, "z14", $scope0_id);
|
|
7484
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7507
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_d5")}><div${_attr_class("_d6")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7485
7508
|
_if(() => {
|
|
7486
7509
|
if (findOpen) {
|
|
7487
7510
|
const $scope12_id = _scope_id();
|
|
@@ -7508,7 +7531,7 @@ var term_default = _template("z", (input) => {
|
|
|
7508
7531
|
_if(() => {
|
|
7509
7532
|
if (uploading) {
|
|
7510
7533
|
const $scope19_id = _scope_id();
|
|
7511
|
-
_html(`<div${_attr_class("
|
|
7534
|
+
_html(`<div${_attr_class("_eb")}>uploading…</div>`);
|
|
7512
7535
|
writeScope($scope19_id, {});
|
|
7513
7536
|
return 0;
|
|
7514
7537
|
}
|
|
@@ -7516,7 +7539,7 @@ var term_default = _template("z", (input) => {
|
|
|
7516
7539
|
_if(() => {
|
|
7517
7540
|
if (copiedFlash) {
|
|
7518
7541
|
const $scope20_id = _scope_id();
|
|
7519
|
-
_html(`<div${_attr_class("
|
|
7542
|
+
_html(`<div${_attr_class("_ea")}>Copied</div>`);
|
|
7520
7543
|
writeScope($scope20_id, {});
|
|
7521
7544
|
return 0;
|
|
7522
7545
|
}
|
|
@@ -7525,7 +7548,7 @@ var term_default = _template("z", (input) => {
|
|
|
7525
7548
|
_if(() => {
|
|
7526
7549
|
if (trapOpen) {
|
|
7527
7550
|
const $scope11_id = _scope_id();
|
|
7528
|
-
_html(`<div${_attr_class("
|
|
7551
|
+
_html(`<div${_attr_class("_ec")}><div${_attr_class("_ed")}><p${_attr_class("_eI")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
7529
7552
|
_script($scope11_id, "z25");
|
|
7530
7553
|
_script($scope11_id, "z26");
|
|
7531
7554
|
writeScope($scope11_id, {});
|
|
@@ -7628,7 +7651,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7628
7651
|
let DiffView = null;
|
|
7629
7652
|
const loadDiffView = _resume(() => {
|
|
7630
7653
|
if (DiffView) return;
|
|
7631
|
-
import("./
|
|
7654
|
+
import("./_BNW7lzU5.js").then((m) => {
|
|
7632
7655
|
DiffView = m.default;
|
|
7633
7656
|
});
|
|
7634
7657
|
}, "D6", $scope0_id);
|
|
@@ -8097,7 +8120,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
8097
8120
|
_if(() => {
|
|
8098
8121
|
if (!shownSessions.length && view === "term") {
|
|
8099
8122
|
const $scope7_id = _scope_id();
|
|
8100
|
-
_html(`<div${_attr_class("
|
|
8123
|
+
_html(`<div${_attr_class("_bv")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
8101
8124
|
_script($scope7_id, "D49");
|
|
8102
8125
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8103
8126
|
return 0;
|
|
@@ -8107,7 +8130,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
8107
8130
|
return 0;
|
|
8108
8131
|
} else {
|
|
8109
8132
|
const $scope10_id = _scope_id();
|
|
8110
|
-
_html(`<p${_attr_class("
|
|
8133
|
+
_html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
|
|
8111
8134
|
writeScope($scope10_id, {});
|
|
8112
8135
|
return 1;
|
|
8113
8136
|
}
|
|
@@ -16050,4 +16073,4 @@ server.listen(port, () => {
|
|
|
16050
16073
|
//#endregion
|
|
16051
16074
|
export {};
|
|
16052
16075
|
|
|
16053
|
-
;var __MARKO_MANIFEST__={"
|
|
16076
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/new-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/settings-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w._-CBB1WWUj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CBB1WWUj.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DJ2ivnX8.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DJ2ivnX8.css\"",">"],"defer":[2,"/assets/w._-DYgthMaF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DYgthMaF.js\"","></script>",2,"modulepreload#/assets/_DLnZn5vf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DLnZn5vf.js\"",">"]}};
|