@dylanpiercey/work 0.0.132 → 0.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_B-QvNFcB.js +2 -0
- package/dist/{_BmehTmY7.js → _C04hN9Ui.js} +35 -35
- package/dist/_CmQFz3S6.js +2 -0
- package/dist/{_CM_NBV_t.js → _D2Ne8oPk.js} +1 -1
- package/dist/{_CqM296sK.js → _DBPJnjxF.js} +221 -222
- package/dist/{_Dud_1oT_.js → _wkybTEDR.js} +12 -11
- package/dist/index.mjs +291 -291
- package/dist/public/assets/{_Bkd2RrDB.js → _0Sd4iAaq.js} +1 -1
- package/dist/public/assets/_0Sd4iAaq.js.br +0 -0
- package/dist/public/assets/{_Bt1-SrE72.js → _2XPzfLYp2.js} +1 -1
- package/dist/public/assets/_2XPzfLYp2.js.br +0 -0
- package/dist/public/assets/{_CJG6qwI-.js → _38lLOyV4.js} +1 -1
- package/dist/public/assets/_38lLOyV4.js.br +0 -0
- package/dist/public/assets/{_Cab51apU.js → _3M8rHd9q.js} +1 -1
- package/dist/public/assets/_3M8rHd9q.js.br +0 -0
- package/dist/public/assets/{_YRgqCV0B.js → _57VaSNVh.js} +1 -1
- package/dist/public/assets/_57VaSNVh.js.br +0 -0
- package/dist/public/assets/{_BrEa8F3X2.js → _9k941mBT2.js} +1 -1
- package/dist/public/assets/_9k941mBT2.js.br +0 -0
- package/dist/public/assets/{_CG-OQNOZ2.js → _B68ws5JM2.js} +1 -1
- package/dist/public/assets/_B68ws5JM2.js.br +0 -0
- package/dist/public/assets/{_BoobytPS2.js → _B8CJtOsm2.js} +1 -1
- package/dist/public/assets/_B8CJtOsm2.js.br +0 -0
- package/dist/public/assets/{_BHFCLlXz.js → _B9J_gfIE.js} +1 -1
- package/dist/public/assets/_B9J_gfIE.js.br +0 -0
- package/dist/public/assets/{_3_5qYa6-.js → _BAI6pIEH.js} +1 -1
- package/dist/public/assets/_BAI6pIEH.js.br +0 -0
- package/dist/public/assets/{_ByD0TAjn.js → _BCzjrlAy.js} +1 -1
- package/dist/public/assets/_BCzjrlAy.js.br +0 -0
- package/dist/public/assets/{_BJh8D3qW.js → _BOP03gps.js} +1 -1
- package/dist/public/assets/_BOP03gps.js.br +0 -0
- package/dist/public/assets/{_Bnt57OEW.js → _BOmDUiov.js} +1 -1
- package/dist/public/assets/_BOmDUiov.js.br +0 -0
- package/dist/public/assets/{_B7n3-kL52.js → _BR7X2c7n2.js} +1 -1
- package/dist/public/assets/_BR7X2c7n2.js.br +0 -0
- package/dist/public/assets/{_DfapBFzb2.js → _BV1EiprI2.js} +1 -1
- package/dist/public/assets/_BV1EiprI2.js.br +0 -0
- package/dist/public/assets/{_gVOw7z_U.js → _BWm6t6g5.js} +1 -1
- package/dist/public/assets/_BWm6t6g5.js.br +0 -0
- package/dist/public/assets/{_Kv6TCblP.js → _BXT4rVWU.js} +1 -1
- package/dist/public/assets/_BXT4rVWU.js.br +0 -0
- package/dist/public/assets/{_A7sNq6fk.js → _BdlhFWPk.js} +1 -1
- package/dist/public/assets/_BdlhFWPk.js.br +0 -0
- package/dist/public/assets/{_CIyLcguf.js → _BhUQVKu8.js} +1 -1
- package/dist/public/assets/_BhUQVKu8.js.br +0 -0
- package/dist/public/assets/{_Cqk9ouKm.js → _Bjw4rVxX.js} +1 -1
- package/dist/public/assets/_Bjw4rVxX.js.br +0 -0
- package/dist/public/assets/{_Dx2lcZiQ.js → _Bpy8lJQH.js} +43 -43
- package/dist/public/assets/_Bpy8lJQH.js.br +0 -0
- package/dist/public/assets/{_B32SpLBe.js → _BsFBQnPe.js} +1 -1
- package/dist/public/assets/_BsFBQnPe.js.br +0 -0
- package/dist/public/assets/{_DzRSIURI2.js → _BwsOUnJq2.js} +1 -1
- package/dist/public/assets/_BwsOUnJq2.js.br +0 -0
- package/dist/public/assets/{_BhANGmaO2.js → _BzyjsnUO2.js} +1 -1
- package/dist/public/assets/_BzyjsnUO2.js.br +0 -0
- package/dist/public/assets/{_8ss8-nn02.js → _C0TsHYWM2.js} +1 -1
- package/dist/public/assets/_C0TsHYWM2.js.br +0 -0
- package/dist/public/assets/{_Cctx-7LR.js → _C45W_Lp6.js} +1 -1
- package/dist/public/assets/_C45W_Lp6.js.br +0 -0
- package/dist/public/assets/{_CwVPNFv7.js → _C5N9J9W_.js} +1 -1
- package/dist/public/assets/_C5N9J9W_.js.br +0 -0
- package/dist/public/assets/{_Cqi0PhlU.js → _C7yOUMH5.js} +1 -1
- package/dist/public/assets/_C7yOUMH5.js.br +0 -0
- package/dist/public/assets/{_Q9lzDqkU.js → _C9FxJoow.js} +1 -1
- package/dist/public/assets/_C9FxJoow.js.br +0 -0
- package/dist/public/assets/{_DbdkND1z.js → _CIn4drK7.js} +1 -1
- package/dist/public/assets/_CIn4drK7.js.br +0 -0
- package/dist/public/assets/{_qXDfPJm92.js → _CJZ6lGU-2.js} +1 -1
- package/dist/public/assets/_CJZ6lGU-2.js.br +0 -0
- package/dist/public/assets/{_BOEjuShp.js → _CMnrd6fU.js} +1 -1
- package/dist/public/assets/_CMnrd6fU.js.br +0 -0
- package/dist/public/assets/{_BHC6iqql2.js → _CPpT_bAp2.js} +1 -1
- package/dist/public/assets/_CPpT_bAp2.js.br +0 -0
- package/dist/public/assets/{_DagM7b-M.js → _CUBLnmSA.js} +1 -1
- package/dist/public/assets/_CUBLnmSA.js.br +0 -0
- package/dist/public/assets/{_CfVhXgPK.js → _CUmRJQ35.js} +1 -1
- package/dist/public/assets/_CUmRJQ35.js.br +0 -0
- package/dist/public/assets/{_DVjFp6nh.js → _CZZwvo0u.js} +1 -1
- package/dist/public/assets/_CZZwvo0u.js.br +0 -0
- package/dist/public/assets/{_DpLz5REE.js → _C_bD7OU6.js} +1 -1
- package/dist/public/assets/_C_bD7OU6.js.br +0 -0
- package/dist/public/assets/{_DTkPzh302.js → _Ci6_nT4t2.js} +1 -1
- package/dist/public/assets/_Ci6_nT4t2.js.br +0 -0
- package/dist/public/assets/{_CCO2PugV.js → _CisgNUxd.js} +1 -1
- package/dist/public/assets/_CisgNUxd.js.br +0 -0
- package/dist/public/assets/{_DjAhGM2z.js → _Cj36gP3r.js} +1 -1
- package/dist/public/assets/_Cj36gP3r.js.br +0 -0
- package/dist/public/assets/{_9gyt8Ef4.js → _CjUGol_X.js} +1 -1
- package/dist/public/assets/_CjUGol_X.js.br +0 -0
- package/dist/public/assets/{_CFPEMLUu2.js → _CoA5CmM72.js} +1 -1
- package/dist/public/assets/_CoA5CmM72.js.br +0 -0
- package/dist/public/assets/{_Dmp_xxSZ2.js → _CqiVQVB42.js} +1 -1
- package/dist/public/assets/_CqiVQVB42.js.br +0 -0
- package/dist/public/assets/{_BG4VW3cl2.js → _Ct4sne2O2.js} +1 -1
- package/dist/public/assets/{_CXPmC6NE.js → _CunZWZvv.js} +1 -1
- package/dist/public/assets/_CunZWZvv.js.br +0 -0
- package/dist/public/assets/{_ByyO2uv9.js → _D2zeYViB.js} +1 -1
- package/dist/public/assets/_D2zeYViB.js.br +0 -0
- package/dist/public/assets/{_D1zBIhxz.js → _D3Hpj9Te.js} +1 -1
- package/dist/public/assets/_D3Hpj9Te.js.br +0 -0
- package/dist/public/assets/{_DCNnOdO6.js → _DBUO8PvB.js} +1 -1
- package/dist/public/assets/_DBUO8PvB.js.br +0 -0
- package/dist/public/assets/{_DZJj2xg0.js → _DFT7BTpC.js} +1 -1
- package/dist/public/assets/_DFT7BTpC.js.br +0 -0
- package/dist/public/assets/{_1FTKiB6W.js → _DQdzo5vx.js} +1 -1
- package/dist/public/assets/_DQdzo5vx.js.br +0 -0
- package/dist/public/assets/{_DkL5BkQV2.js → _DQqrsLS52.js} +1 -1
- package/dist/public/assets/_DQqrsLS52.js.br +0 -0
- package/dist/public/assets/{_DkYgaF912.js → _DR6v6KT22.js} +1 -1
- package/dist/public/assets/_DR6v6KT22.js.br +0 -0
- package/dist/public/assets/{_ZC6g-efq2.js → _DU8uUGV12.js} +1 -1
- package/dist/public/assets/_DU8uUGV12.js.br +0 -0
- package/dist/public/assets/{_c-AH25-U.js → _DWACLLAl.js} +7 -7
- package/dist/public/assets/_DWACLLAl.js.br +0 -0
- package/dist/public/assets/{_E4SJtZ0M.js → _DXSlYsr0.js} +1 -1
- package/dist/public/assets/_DXSlYsr0.js.br +0 -0
- package/dist/public/assets/{_BKQt0gIG.js → _DaN82C7i.js} +1 -1
- package/dist/public/assets/_DaN82C7i.js.br +0 -0
- package/dist/public/assets/{_CO8HGTig.js → _DlIwuzEd.js} +1 -1
- package/dist/public/assets/_DlIwuzEd.js.br +0 -0
- package/dist/public/assets/{_CkQN8W2W.js → _Ds61v8vi.js} +1 -1
- package/dist/public/assets/_Ds61v8vi.js.br +0 -0
- package/dist/public/assets/{_BueP-mK92.js → _Dse6xAP22.js} +1 -1
- package/dist/public/assets/_Dse6xAP22.js.br +0 -0
- package/dist/public/assets/{_Bj728eQC2.js → _DubxV47f2.js} +1 -1
- package/dist/public/assets/_DubxV47f2.js.br +0 -0
- package/dist/public/assets/{_X7oeV97U.js → _DupM9eEV.js} +1 -1
- package/dist/public/assets/{_DbtHL3e2.js → _KOmqCPbm.js} +1 -1
- package/dist/public/assets/_KOmqCPbm.js.br +0 -0
- package/dist/public/assets/{_C2-KTnpY.js → _NrBF2lTC.js} +1 -1
- package/dist/public/assets/_NrBF2lTC.js.br +0 -0
- package/dist/public/assets/{_CWaNJy-J2.js → _Nss91pW_2.js} +1 -1
- package/dist/public/assets/_Nss91pW_2.js.br +0 -0
- package/dist/public/assets/{_Dk6VPGbU.js → _SlpmB-w5.js} +1 -1
- package/dist/public/assets/_SlpmB-w5.js.br +0 -0
- package/dist/public/assets/{_h_azL_wj.js → _UuRzi2Pg.js} +1 -1
- package/dist/public/assets/_UuRzi2Pg.js.br +0 -0
- package/dist/public/assets/{_DDWOAsrh.js → _Yk-TslqA.js} +1 -1
- package/dist/public/assets/_Yk-TslqA.js.br +0 -0
- package/dist/public/assets/{_DBdqzrLe.js → _cBrUsk6q.js} +1 -1
- package/dist/public/assets/_cBrUsk6q.js.br +0 -0
- package/dist/public/assets/{_Bl1QpyKH2.js → _d-TodGvp2.js} +1 -1
- package/dist/public/assets/_d-TodGvp2.js.br +0 -0
- package/dist/public/assets/{_DGfcjSes.js → _ghOVZPKq.js} +1 -1
- package/dist/public/assets/_ghOVZPKq.js.br +0 -0
- package/dist/public/assets/{_eO0_jWUk.js → _lhQ_uGs7.js} +1 -1
- package/dist/public/assets/_lhQ_uGs7.js.br +0 -0
- package/dist/public/assets/{_DqTkzDr3.js → _m0jpMRnx.js} +1 -1
- package/dist/public/assets/_m0jpMRnx.js.br +0 -0
- package/dist/public/assets/{_C6SPTUZW.js → _mzG-3m6a.js} +1 -1
- package/dist/public/assets/_mzG-3m6a.js.br +0 -0
- package/dist/public/assets/{_DN8gjTIq2.js → _nq_IIC6O2.js} +1 -1
- package/dist/public/assets/{_D3yMNP3F.js → _q9s2TQk5.js} +1 -1
- package/dist/public/assets/_q9s2TQk5.js.br +0 -0
- package/dist/public/assets/{_LCJxjac-2.js → _sMtpt30w2.js} +1 -1
- package/dist/public/assets/_sMtpt30w2.js.br +0 -0
- package/dist/public/assets/{app-page-CAc78zsq.css → app-page-CMazjI1P.css} +1 -1
- package/dist/public/assets/app-page-CMazjI1P.css.br +0 -0
- package/dist/public/assets/diff-view-BhaHll01.css +1 -0
- package/dist/public/assets/diff-view-BhaHll01.css.br +0 -0
- package/dist/public/assets/new-DUxUh5q7.js +1 -0
- package/dist/public/assets/settings-DUxUh5q7.js +1 -0
- package/dist/public/assets/w-DUxUh5q7.js +1 -0
- package/dist/public/assets/w._-BpgzbM86.js +1 -0
- package/dist/public/assets/w._-DUxUh5q7.js +1 -0
- package/package.json +1 -1
- package/dist/_B4-5M9y6.js +0 -2
- package/dist/_DaZ1KKTE.js +0 -2
- package/dist/public/assets/_1FTKiB6W.js.br +0 -0
- package/dist/public/assets/_3_5qYa6-.js.br +0 -0
- package/dist/public/assets/_8ss8-nn02.js.br +0 -0
- package/dist/public/assets/_9gyt8Ef4.js.br +0 -0
- package/dist/public/assets/_A7sNq6fk.js.br +0 -0
- package/dist/public/assets/_B32SpLBe.js.br +0 -0
- package/dist/public/assets/_B7n3-kL52.js.br +0 -0
- package/dist/public/assets/_BHC6iqql2.js.br +0 -0
- package/dist/public/assets/_BHFCLlXz.js.br +0 -0
- package/dist/public/assets/_BJh8D3qW.js.br +0 -0
- package/dist/public/assets/_BKQt0gIG.js.br +0 -0
- package/dist/public/assets/_BOEjuShp.js.br +0 -0
- package/dist/public/assets/_BhANGmaO2.js.br +0 -0
- package/dist/public/assets/_Bj728eQC2.js.br +0 -0
- package/dist/public/assets/_Bkd2RrDB.js.br +0 -0
- package/dist/public/assets/_Bl1QpyKH2.js.br +0 -0
- package/dist/public/assets/_Bnt57OEW.js.br +0 -0
- package/dist/public/assets/_BoobytPS2.js.br +0 -0
- package/dist/public/assets/_BrEa8F3X2.js.br +0 -0
- package/dist/public/assets/_Bt1-SrE72.js.br +0 -0
- package/dist/public/assets/_BueP-mK92.js.br +0 -0
- package/dist/public/assets/_ByD0TAjn.js.br +0 -0
- package/dist/public/assets/_ByyO2uv9.js.br +0 -0
- package/dist/public/assets/_C2-KTnpY.js.br +0 -0
- package/dist/public/assets/_C6SPTUZW.js.br +0 -0
- package/dist/public/assets/_CCO2PugV.js.br +0 -0
- package/dist/public/assets/_CFPEMLUu2.js.br +0 -0
- package/dist/public/assets/_CG-OQNOZ2.js.br +0 -0
- package/dist/public/assets/_CIyLcguf.js.br +0 -0
- package/dist/public/assets/_CJG6qwI-.js.br +0 -0
- package/dist/public/assets/_CO8HGTig.js.br +0 -0
- package/dist/public/assets/_CWaNJy-J2.js.br +0 -0
- package/dist/public/assets/_CXPmC6NE.js.br +0 -0
- package/dist/public/assets/_Cab51apU.js.br +0 -0
- package/dist/public/assets/_Cctx-7LR.js.br +0 -0
- package/dist/public/assets/_CfVhXgPK.js.br +0 -0
- package/dist/public/assets/_CkQN8W2W.js.br +0 -0
- package/dist/public/assets/_Cqi0PhlU.js.br +0 -0
- package/dist/public/assets/_Cqk9ouKm.js.br +0 -0
- package/dist/public/assets/_CwVPNFv7.js.br +0 -0
- package/dist/public/assets/_D1zBIhxz.js.br +0 -0
- package/dist/public/assets/_D3yMNP3F.js.br +0 -0
- package/dist/public/assets/_DBdqzrLe.js.br +0 -0
- package/dist/public/assets/_DCNnOdO6.js.br +0 -0
- package/dist/public/assets/_DDWOAsrh.js.br +0 -0
- package/dist/public/assets/_DGfcjSes.js.br +0 -0
- package/dist/public/assets/_DTkPzh302.js.br +0 -0
- package/dist/public/assets/_DVjFp6nh.js.br +0 -0
- package/dist/public/assets/_DZJj2xg0.js.br +0 -0
- package/dist/public/assets/_DagM7b-M.js.br +0 -0
- package/dist/public/assets/_DbdkND1z.js.br +0 -0
- package/dist/public/assets/_DbtHL3e2.js.br +0 -0
- package/dist/public/assets/_DfapBFzb2.js.br +0 -0
- package/dist/public/assets/_DjAhGM2z.js.br +0 -0
- package/dist/public/assets/_Dk6VPGbU.js.br +0 -0
- package/dist/public/assets/_DkL5BkQV2.js.br +0 -0
- package/dist/public/assets/_DkYgaF912.js.br +0 -0
- package/dist/public/assets/_Dmp_xxSZ2.js.br +0 -0
- package/dist/public/assets/_DpLz5REE.js.br +0 -0
- package/dist/public/assets/_DqTkzDr3.js.br +0 -0
- package/dist/public/assets/_Dx2lcZiQ.js.br +0 -0
- package/dist/public/assets/_DzRSIURI2.js.br +0 -0
- package/dist/public/assets/_E4SJtZ0M.js.br +0 -0
- package/dist/public/assets/_Kv6TCblP.js.br +0 -0
- package/dist/public/assets/_LCJxjac-2.js.br +0 -0
- package/dist/public/assets/_Q9lzDqkU.js.br +0 -0
- package/dist/public/assets/_YRgqCV0B.js.br +0 -0
- package/dist/public/assets/_ZC6g-efq2.js.br +0 -0
- package/dist/public/assets/_c-AH25-U.js.br +0 -0
- package/dist/public/assets/_eO0_jWUk.js.br +0 -0
- package/dist/public/assets/_gVOw7z_U.js.br +0 -0
- package/dist/public/assets/_h_azL_wj.js.br +0 -0
- package/dist/public/assets/_qXDfPJm92.js.br +0 -0
- package/dist/public/assets/app-page-CAc78zsq.css.br +0 -0
- package/dist/public/assets/diff-view-CefOBxx9.css +0 -1
- package/dist/public/assets/diff-view-CefOBxx9.css.br +0 -0
- package/dist/public/assets/new-3qSpO9bT.js +0 -1
- package/dist/public/assets/settings-3qSpO9bT.js +0 -1
- package/dist/public/assets/w-3qSpO9bT.js +0 -1
- package/dist/public/assets/w._-3qSpO9bT.js +0 -1
- package/dist/public/assets/w._-B0kRn52l.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as 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, V as publish, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, h as sendToSession, ht as TMUX_SOCKET, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, o as getSession, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_BBmEhpPH.js";
|
|
3
|
-
import { B as withLock, C as revParse, D as ensureAllPushHooks, E as workspaceBranches, F as repoBranches, G as ensureGitCredentials, H as addHost, I as repoCatalog, K as forgetToken, L as repoDefaultBranch, M as headOid, N as remoteHasHeads, O as hookToken, P as pendingSsoOrgs, Q as ownsBranch, S as resumePendingWorkspaces, T as withProgressOp, U as cloneUrl, V as DEFAULT_HOST, W as configuredHosts, X as removeHost, Z as splitRepo, _ as progress$1, b as queueMaterialize, c as setAutoPush, d as createWorkspace, f as deleteWorkspace, g as otherWorkspaceBranches, h as listWorkspaces, i as noteRemoteRef, j as workspaceProcs, k as killWorkspaceProc, l as addRepo$1, m as insertPendingWorkspace, p as getWorkspace, r as noteLocalRefs, s as pushWorkspaceRepo, t as autoPushEnabled, u as barePath, v as progressSince, w as setWorkspaceStatus, x as removeRepo, y as pruneLaneBranch, z as swr } from "./
|
|
4
|
-
import { a as statusForAllFresh, c as refreshPrsBatch, i as statusForAll, l as workspacePrs, n as pokeStatusWatch, o as dismissPr, r as startStatusWatch, s as notePushActivity, t as activeRepoTargets } from "./
|
|
5
|
-
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./
|
|
3
|
+
import { B as withLock, C as revParse, D as ensureAllPushHooks, E as workspaceBranches, F as repoBranches, G as ensureGitCredentials, H as addHost, I as repoCatalog, K as forgetToken, L as repoDefaultBranch, M as headOid, N as remoteHasHeads, O as hookToken, P as pendingSsoOrgs, Q as ownsBranch, S as resumePendingWorkspaces, T as withProgressOp, U as cloneUrl, V as DEFAULT_HOST, W as configuredHosts, X as removeHost, Z as splitRepo, _ as progress$1, b as queueMaterialize, c as setAutoPush, d as createWorkspace, f as deleteWorkspace, g as otherWorkspaceBranches, h as listWorkspaces, i as noteRemoteRef, j as workspaceProcs, k as killWorkspaceProc, l as addRepo$1, m as insertPendingWorkspace, p as getWorkspace, r as noteLocalRefs, s as pushWorkspaceRepo, t as autoPushEnabled, u as barePath, v as progressSince, w as setWorkspaceStatus, x as removeRepo, y as pruneLaneBranch, z as swr } from "./_wkybTEDR.js";
|
|
4
|
+
import { a as statusForAllFresh, c as refreshPrsBatch, i as statusForAll, l as workspacePrs, n as pokeStatusWatch, o as dismissPr, r as startStatusWatch, s as notePushActivity, t as activeRepoTargets } from "./_D2Ne8oPk.js";
|
|
5
|
+
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./_C04hN9Ui.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import path from "node:path";
|
|
@@ -2325,18 +2325,18 @@ function applyInstance(inst) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
//#endregion
|
|
2327
2327
|
//#region src/tags/settings-page.css.ts
|
|
2328
|
-
var content$2 = "_cc
|
|
2328
|
+
var content$2 = "_cc _bp _bq";
|
|
2329
2329
|
var agentGrid = "_ci _bA";
|
|
2330
2330
|
var toolGrid = "_cs _bA";
|
|
2331
|
-
var themeSeg = "_cH
|
|
2332
|
-
var swatches = "_cP
|
|
2331
|
+
var themeSeg = "_cH _6";
|
|
2332
|
+
var swatches = "_cP _6";
|
|
2333
2333
|
var checkList = "_de _bA";
|
|
2334
2334
|
//#endregion
|
|
2335
2335
|
//#region src/tags/page-head.marko
|
|
2336
2336
|
var page_head_default = _template("t", (input) => {
|
|
2337
2337
|
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);
|
|
2338
2338
|
const $scope0_id = _scope_id();
|
|
2339
|
-
_html(`<header${_attr_class("
|
|
2339
|
+
_html(`<header${_attr_class("_br")}>`);
|
|
2340
2340
|
_if(() => {
|
|
2341
2341
|
if (input.backHref) {
|
|
2342
2342
|
const $scope1_id = _scope_id();
|
|
@@ -2355,11 +2355,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
2355
2355
|
return 1;
|
|
2356
2356
|
}
|
|
2357
2357
|
}, $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);
|
|
2358
|
-
_html(`<div${_attr_class("
|
|
2358
|
+
_html(`<div${_attr_class("_bt")}><h1${_attr("id", input.titleId)}${_attr_class("_bs")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
2359
2359
|
_if(() => {
|
|
2360
2360
|
if (input.meta) {
|
|
2361
2361
|
const $scope3_id = _scope_id();
|
|
2362
|
-
_html(`<p${_attr_class("
|
|
2362
|
+
_html(`<p${_attr_class("_bu")}>`);
|
|
2363
2363
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
2364
2364
|
_html("</p>");
|
|
2365
2365
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2370,7 +2370,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
2370
2370
|
_if(() => {
|
|
2371
2371
|
if (input.actions) {
|
|
2372
2372
|
const $scope4_id = _scope_id();
|
|
2373
|
-
_html(`<div${_attr_class("
|
|
2373
|
+
_html(`<div${_attr_class("_bv")}>`);
|
|
2374
2374
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
2375
2375
|
_html("</div>");
|
|
2376
2376
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2398,7 +2398,7 @@ var icon_agent_default = _template("I", (input) => {
|
|
|
2398
2398
|
_if(() => {
|
|
2399
2399
|
if (d) {
|
|
2400
2400
|
const $scope1_id = _scope_id();
|
|
2401
|
-
_html(`<svg${_attr_class(["
|
|
2401
|
+
_html(`<svg${_attr_class(["_k", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
|
|
2402
2402
|
_if(() => {
|
|
2403
2403
|
if (badge) {
|
|
2404
2404
|
const $scope3_id = _scope_id();
|
|
@@ -2438,7 +2438,7 @@ var icon_agent_default = _template("I", (input) => {
|
|
|
2438
2438
|
n: $badge__closures
|
|
2439
2439
|
});
|
|
2440
2440
|
});
|
|
2441
|
-
var usageNote = "
|
|
2441
|
+
var usageNote = "_fG _R";
|
|
2442
2442
|
//#endregion
|
|
2443
2443
|
//#region src/tags/icons/icon-warning.marko
|
|
2444
2444
|
var icon_warning_default = _template("mb", (input) => {
|
|
@@ -2468,11 +2468,11 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2468
2468
|
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);
|
|
2469
2469
|
const $scope0_id = _scope_id();
|
|
2470
2470
|
const agent = input.agent;
|
|
2471
|
-
_html(`<div${_attr_class(["
|
|
2471
|
+
_html(`<div${_attr_class(["_fA", { ["_fB"]: input.hideName }])}><div${_attr_class("_fC")}>`);
|
|
2472
2472
|
_if(() => {
|
|
2473
2473
|
if (!input.hideName) {
|
|
2474
2474
|
const $scope1_id = _scope_id();
|
|
2475
|
-
_html(`<strong${_attr_class("
|
|
2475
|
+
_html(`<strong${_attr_class("_fV")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
2476
2476
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
2477
2477
|
return 0;
|
|
2478
2478
|
}
|
|
@@ -2480,7 +2480,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2480
2480
|
_if(() => {
|
|
2481
2481
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
2482
2482
|
const $scope2_id = _scope_id();
|
|
2483
|
-
_html(`<span${_attr_class("
|
|
2483
|
+
_html(`<span${_attr_class("_fD")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
2484
2484
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2485
2485
|
return 0;
|
|
2486
2486
|
}
|
|
@@ -2488,21 +2488,21 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2488
2488
|
_if(() => {
|
|
2489
2489
|
if (agent.stale_seconds != null) {
|
|
2490
2490
|
const $scope3_id = _scope_id();
|
|
2491
|
-
_html(`<span${_attr_class("
|
|
2491
|
+
_html(`<span${_attr_class("_fE")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
2492
2492
|
icon_warning_default({ size: 12 });
|
|
2493
2493
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
2494
2494
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
2495
2495
|
return 0;
|
|
2496
2496
|
}
|
|
2497
2497
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
2498
|
-
_html(`</div><div${_attr_class(["
|
|
2498
|
+
_html(`</div><div${_attr_class(["_fF", { ["_fW"]: agent.stale_seconds != null }])}>`);
|
|
2499
2499
|
_for_of(agent.windows || [], (win) => {
|
|
2500
2500
|
const $scope4_id = _scope_id();
|
|
2501
2501
|
const pct = pctText(win.used_percent);
|
|
2502
2502
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
2503
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
2504
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
2505
|
-
_html(`<div${_attr_class("
|
|
2503
|
+
const fillClass = win.used_percent >= 90 ? "_fO" : win.used_percent >= 70 ? "_fN" : win.used_percent >= 40 ? "_fM" : "_fL";
|
|
2504
|
+
const pctClass = win.used_percent >= 90 ? "_fT" : win.used_percent >= 70 ? "_fS" : win.used_percent >= 40 ? "_fR" : "_fQ";
|
|
2505
|
+
_html(`<div${_attr_class("_fH")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_fI")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_fJ")}><span${_attr_class(["_fK", 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(["_fP", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fU")}>`);
|
|
2506
2506
|
_if(() => {
|
|
2507
2507
|
if (label) {
|
|
2508
2508
|
const $scope6_id = _scope_id();
|
|
@@ -2534,7 +2534,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2534
2534
|
q: $si__input_agent && agent?.note
|
|
2535
2535
|
});
|
|
2536
2536
|
});
|
|
2537
|
-
var orgSkip = "
|
|
2537
|
+
var orgSkip = "_fr _1 _j";
|
|
2538
2538
|
//#endregion
|
|
2539
2539
|
//#region src/tags/sso-auth.marko
|
|
2540
2540
|
var api$7;
|
|
@@ -2581,14 +2581,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2581
2581
|
localCode = null;
|
|
2582
2582
|
}
|
|
2583
2583
|
}, "B0", $scope0_id);
|
|
2584
|
-
_html(`<div${_attr_class("
|
|
2584
|
+
_html(`<div${_attr_class("_fo")}>`);
|
|
2585
2585
|
_if(() => {
|
|
2586
2586
|
if (input.items.length) {
|
|
2587
2587
|
const $scope1_id = _scope_id();
|
|
2588
|
-
_html(`<p${_attr_class("
|
|
2588
|
+
_html(`<p${_attr_class("_fz")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_fp")}>`);
|
|
2589
2589
|
_for_of(input.items, (s) => {
|
|
2590
2590
|
const $scope2_id = _scope_id();
|
|
2591
|
-
_html(`<li${_attr_class("
|
|
2591
|
+
_html(`<li${_attr_class("_fq")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class(orgSkip)}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
2592
2592
|
icon_xmark_default({ size: 11 });
|
|
2593
2593
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
2594
2594
|
_script($scope2_id, "B1");
|
|
@@ -2597,17 +2597,17 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2597
2597
|
_: _scope_with_id($scope1_id)
|
|
2598
2598
|
}));
|
|
2599
2599
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
2600
|
-
_html(`<div${_attr_class("
|
|
2600
|
+
_html(`<div${_attr_class("_fs")}>`);
|
|
2601
2601
|
_if(() => {
|
|
2602
2602
|
if (localBusy && localCode) {
|
|
2603
2603
|
const $scope5_id = _scope_id();
|
|
2604
|
-
_html(`<span${_attr_class("
|
|
2604
|
+
_html(`<span${_attr_class("_ft")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_fu")}>${_escape(localCode)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_fv")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
2605
2605
|
_script($scope5_id, "B2");
|
|
2606
2606
|
_subscribe($localCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
2607
2607
|
return 0;
|
|
2608
2608
|
} else if (localBusy) {
|
|
2609
2609
|
const $scope8_id = _scope_id();
|
|
2610
|
-
_html(`<span${_attr_class("
|
|
2610
|
+
_html(`<span${_attr_class("_ft")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
|
|
2611
2611
|
writeScope($scope8_id, {});
|
|
2612
2612
|
return 1;
|
|
2613
2613
|
} else if (!busy) {
|
|
@@ -2621,7 +2621,7 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2621
2621
|
_if(() => {
|
|
2622
2622
|
if (localError) {
|
|
2623
2623
|
const $scope6_id = _scope_id();
|
|
2624
|
-
_html(`<p${_attr_class("
|
|
2624
|
+
_html(`<p${_attr_class("_fz")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
2625
2625
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
2626
2626
|
return 0;
|
|
2627
2627
|
}
|
|
@@ -2633,10 +2633,10 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2633
2633
|
_if(() => {
|
|
2634
2634
|
if (skipped$1.length) {
|
|
2635
2635
|
const $scope3_id = _scope_id();
|
|
2636
|
-
_html(`<p${_attr_class("
|
|
2636
|
+
_html(`<p${_attr_class("_fw")}>Skipped SSO for `);
|
|
2637
2637
|
_for_of(skipped$1, (s) => {
|
|
2638
2638
|
const $scope4_id = _scope_id();
|
|
2639
|
-
_html(`<span${_attr_class("
|
|
2639
|
+
_html(`<span${_attr_class("_fx")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_fy")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
2640
2640
|
_script($scope4_id, "B4");
|
|
2641
2641
|
writeScope($scope4_id, {
|
|
2642
2642
|
f: s?.org,
|
|
@@ -2709,7 +2709,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2709
2709
|
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;
|
|
2710
2710
|
const dismissable = input.dismissable !== false;
|
|
2711
2711
|
let open = input.open;
|
|
2712
|
-
_html(`<dialog${_attr_class(["
|
|
2712
|
+
_html(`<dialog${_attr_class(["_fX", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
2713
2713
|
...htmlInput,
|
|
2714
2714
|
open: null
|
|
2715
2715
|
}, {
|
|
@@ -2719,22 +2719,22 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2719
2719
|
closedby: 1,
|
|
2720
2720
|
"on-cancel": 1,
|
|
2721
2721
|
"on-close": 1
|
|
2722
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
2722
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fY")}>`);
|
|
2723
2723
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
2724
2724
|
_html("</div>");
|
|
2725
2725
|
_if(() => {
|
|
2726
2726
|
if (footer) {
|
|
2727
2727
|
const $scope1_id = _scope_id();
|
|
2728
|
-
_html(`<form method=dialog${_attr_class("
|
|
2728
|
+
_html(`<form method=dialog${_attr_class("_fZ")}>`);
|
|
2729
2729
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
2730
2730
|
_html("</form>");
|
|
2731
2731
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
2732
2732
|
return 0;
|
|
2733
2733
|
} else if (input.openChange) {
|
|
2734
2734
|
const $scope2_id = _scope_id();
|
|
2735
|
-
_html(`<form method=dialog${_attr_class("
|
|
2735
|
+
_html(`<form method=dialog${_attr_class("_fZ")}>`);
|
|
2736
2736
|
dialog_close_default({
|
|
2737
|
-
class: ["
|
|
2737
|
+
class: ["_o", "_p"],
|
|
2738
2738
|
content: _content("r0", () => {
|
|
2739
2739
|
_scope_reason();
|
|
2740
2740
|
_scope_id();
|
|
@@ -2791,16 +2791,16 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2791
2791
|
const $childScope = _peek_scope_id();
|
|
2792
2792
|
modal_view_default({
|
|
2793
2793
|
label: input.label,
|
|
2794
|
-
class: "
|
|
2794
|
+
class: "_fm",
|
|
2795
2795
|
open: input.open,
|
|
2796
2796
|
openChange: input.openChange,
|
|
2797
2797
|
"aria-labelledby": titleId,
|
|
2798
2798
|
footer: attrTag({ content: _content_resume("u5", () => {
|
|
2799
2799
|
_scope_reason();
|
|
2800
2800
|
const $scope1_id = _scope_id();
|
|
2801
|
-
_html(`<button type=button${_attr_class(["
|
|
2801
|
+
_html(`<button type=button${_attr_class(["_o", "_p"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_x")}></div>`);
|
|
2802
2802
|
dialog_close_default({
|
|
2803
|
-
class: "
|
|
2803
|
+
class: "_o",
|
|
2804
2804
|
content: _content("u2", () => {
|
|
2805
2805
|
_scope_reason();
|
|
2806
2806
|
_scope_id();
|
|
@@ -2814,7 +2814,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2814
2814
|
content: _content("u6", () => {
|
|
2815
2815
|
_scope_reason();
|
|
2816
2816
|
const $scope2_id = _scope_id();
|
|
2817
|
-
_html(`<h2${_attr_class("
|
|
2817
|
+
_html(`<h2${_attr_class("_fn")}${_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) => {
|
|
2818
2818
|
value = _new_value;
|
|
2819
2819
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
2820
2820
|
_script($scope2_id, "u4");
|
|
@@ -3348,7 +3348,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3348
3348
|
const backupId = _id();
|
|
3349
3349
|
const machineId = _id();
|
|
3350
3350
|
const skillsId = _id();
|
|
3351
|
-
_html(`<div${_attr_class("
|
|
3351
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$2)}>`);
|
|
3352
3352
|
_set_serialize_reason({
|
|
3353
3353
|
0: _serialize_guard($scope0_reason, 4),
|
|
3354
3354
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -3379,7 +3379,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3379
3379
|
const $childScope = _peek_scope_id();
|
|
3380
3380
|
icon_refresh_default({
|
|
3381
3381
|
size: 14,
|
|
3382
|
-
class: refreshing && "
|
|
3382
|
+
class: refreshing && "_D"
|
|
3383
3383
|
});
|
|
3384
3384
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
3385
3385
|
_script($scope10_id, "x44");
|
|
@@ -3417,7 +3417,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3417
3417
|
_if(() => {
|
|
3418
3418
|
if (selfUpdating) {
|
|
3419
3419
|
const $scope82_id = _scope_id();
|
|
3420
|
-
_html(`<span${_attr_class("_cN")}><span${_attr_class("
|
|
3420
|
+
_html(`<span${_attr_class("_cN")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_cO")}>The app restarts and reloads when it is done.</span>`);
|
|
3421
3421
|
writeScope($scope82_id, {});
|
|
3422
3422
|
return 0;
|
|
3423
3423
|
} else {
|
|
@@ -3430,7 +3430,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3430
3430
|
_if(() => {
|
|
3431
3431
|
if (!selfUpdating) {
|
|
3432
3432
|
const $scope48_id = _scope_id();
|
|
3433
|
-
_html(`<button${_attr_class(["
|
|
3433
|
+
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope48_id, "a")}`);
|
|
3434
3434
|
_script($scope48_id, "x48");
|
|
3435
3435
|
_subscribe($self_latest__closures, writeScope($scope48_id, { Cgv: 1 }));
|
|
3436
3436
|
return 0;
|
|
@@ -3441,11 +3441,11 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3441
3441
|
return 0;
|
|
3442
3442
|
}
|
|
3443
3443
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
3444
|
-
_html(`<section${_attr_class("_bx")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_by")}><h2${_attr("id", agentsId)}${_attr_class("_bL")}>Agents</h2><div${_attr_class("
|
|
3444
|
+
_html(`<section${_attr_class("_bx")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_by")}><h2${_attr("id", agentsId)}${_attr_class("_bL")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ck")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
|
|
3445
3445
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
3446
3446
|
setPreferred(v);
|
|
3447
3447
|
}, "x2", $scope0_id), () => {
|
|
3448
|
-
_html(`<select${_attr_class(["
|
|
3448
|
+
_html(`<select${_attr_class(["_n", "_cl"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
3449
3449
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3450
3450
|
const $scope83_id = _scope_id();
|
|
3451
3451
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope83_id, "b", $sg__input_agents)}</option>${_el_resume($scope83_id, "a", $sg__input_agents)}`);
|
|
@@ -3457,7 +3457,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3457
3457
|
const $childScope3 = _peek_scope_id();
|
|
3458
3458
|
icon_refresh_default({
|
|
3459
3459
|
size: 14,
|
|
3460
|
-
class: usageRefreshing && "
|
|
3460
|
+
class: usageRefreshing && "_D"
|
|
3461
3461
|
});
|
|
3462
3462
|
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class(agentGrid)}>`);
|
|
3463
3463
|
_for_of(families, (a) => {
|
|
@@ -3477,7 +3477,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3477
3477
|
_if(() => {
|
|
3478
3478
|
if (lone && input.preferred === lone.id) {
|
|
3479
3479
|
const $scope84_id = _scope_id();
|
|
3480
|
-
_html(`<span${_attr_class(["
|
|
3480
|
+
_html(`<span${_attr_class(["_H", tone.accent])}>default</span>`);
|
|
3481
3481
|
writeScope($scope84_id, {});
|
|
3482
3482
|
return 0;
|
|
3483
3483
|
}
|
|
@@ -3486,7 +3486,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3486
3486
|
_if(() => {
|
|
3487
3487
|
if (active.has(a.id)) {
|
|
3488
3488
|
const $scope11_id = _scope_id();
|
|
3489
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
3489
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
3490
3490
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
3491
3491
|
return 0;
|
|
3492
3492
|
} else if (!a.installed) {
|
|
@@ -3510,8 +3510,8 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3510
3510
|
if (lone) {
|
|
3511
3511
|
const $scope79_id = _scope_id();
|
|
3512
3512
|
_html(`<button${_attr_class([
|
|
3513
|
-
"
|
|
3514
|
-
"
|
|
3513
|
+
"_H",
|
|
3514
|
+
"_J",
|
|
3515
3515
|
{ [tone.ok]: lone.enabled }
|
|
3516
3516
|
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope79_id, "b")}</button>${_el_resume($scope79_id, "a")}`);
|
|
3517
3517
|
_script($scope79_id, "x50");
|
|
@@ -3534,18 +3534,18 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3534
3534
|
agent: inst.id,
|
|
3535
3535
|
size: 15
|
|
3536
3536
|
});
|
|
3537
|
-
_html(`<span${_attr_class(["_cq", "
|
|
3537
|
+
_html(`<span${_attr_class(["_cq", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3538
3538
|
_if(() => {
|
|
3539
3539
|
if (input.preferred === inst.id) {
|
|
3540
3540
|
const $scope86_id = _scope_id();
|
|
3541
|
-
_html(`<span${_attr_class(["
|
|
3541
|
+
_html(`<span${_attr_class(["_H", tone.accent])}>default</span>`);
|
|
3542
3542
|
writeScope($scope86_id, {});
|
|
3543
3543
|
return 0;
|
|
3544
3544
|
}
|
|
3545
3545
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
3546
|
-
_html(`<span${_attr_class("
|
|
3547
|
-
"
|
|
3548
|
-
"
|
|
3546
|
+
_html(`<span${_attr_class("_x")}></span><button${_attr_class([
|
|
3547
|
+
"_H",
|
|
3548
|
+
"_J",
|
|
3549
3549
|
{ [tone.ok]: inst.enabled }
|
|
3550
3550
|
])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
|
|
3551
3551
|
_for_of(accounts, (u) => {
|
|
@@ -3620,7 +3620,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3620
3620
|
_if(() => {
|
|
3621
3621
|
if (!usage && families.length) {
|
|
3622
3622
|
const $scope91_id = _scope_id();
|
|
3623
|
-
_html(`<p${_attr_class("_bI")}><span${_attr_class("
|
|
3623
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
3624
3624
|
writeScope($scope91_id, {});
|
|
3625
3625
|
return 0;
|
|
3626
3626
|
} else if (usage?.error) {
|
|
@@ -3644,11 +3644,11 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3644
3644
|
const skippedSso = (() => {
|
|
3645
3645
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
3646
3646
|
})();
|
|
3647
|
-
_html(`<li${_attr_class(["_bC", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "
|
|
3647
|
+
_html(`<li${_attr_class(["_bC", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
3648
3648
|
_if(() => {
|
|
3649
3649
|
if (h.isEnterprise) {
|
|
3650
3650
|
const $scope94_id = _scope_id();
|
|
3651
|
-
_html(`<span${_attr_class("
|
|
3651
|
+
_html(`<span${_attr_class("_H")}>Enterprise</span>`);
|
|
3652
3652
|
writeScope($scope94_id, {});
|
|
3653
3653
|
return 0;
|
|
3654
3654
|
}
|
|
@@ -3657,12 +3657,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3657
3657
|
_if(() => {
|
|
3658
3658
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3659
3659
|
const $scope33_id = _scope_id();
|
|
3660
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
3660
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_cz")}>${_escape(authCodes.get(h.host))}${_el_resume($scope33_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cA")}>${_escape(h.host)}${_el_resume($scope33_id, "f")}/login/device</a>${_el_resume($scope33_id, "e")}</span>`);
|
|
3661
3661
|
_subscribe($authCodes__closures, writeScope($scope33_id, {}));
|
|
3662
3662
|
return 0;
|
|
3663
3663
|
} else if (active.has(h.host)) {
|
|
3664
3664
|
const $scope13_id = _scope_id();
|
|
3665
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
3665
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
3666
3666
|
_subscribe($active__closures, writeScope($scope13_id, { Cgi: 1 }));
|
|
3667
3667
|
return 1;
|
|
3668
3668
|
} else if (h.authed) {
|
|
@@ -3691,8 +3691,8 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3691
3691
|
} else {
|
|
3692
3692
|
const $scope35_id = _scope_id();
|
|
3693
3693
|
_html(`<button${_attr_class([btnSm, {
|
|
3694
|
-
["
|
|
3695
|
-
["
|
|
3694
|
+
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
3695
|
+
["_q"]: confirmingRemove === `out:${h.host}`
|
|
3696
3696
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope35_id, "b")}</button>${_el_resume($scope35_id, "a")}`);
|
|
3697
3697
|
_script($scope35_id, "x53");
|
|
3698
3698
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, {})));
|
|
@@ -3704,9 +3704,9 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3704
3704
|
const $scope36_id = _scope_id();
|
|
3705
3705
|
_html(`<button${_attr_class([
|
|
3706
3706
|
"_bH",
|
|
3707
|
-
"
|
|
3708
|
-
"
|
|
3709
|
-
{ ["
|
|
3707
|
+
"_2",
|
|
3708
|
+
"_3",
|
|
3709
|
+
{ ["_q"]: confirmingRemove === h.host }
|
|
3710
3710
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
3711
3711
|
_if(() => {
|
|
3712
3712
|
if (confirmingRemove === h.host) {
|
|
@@ -3787,8 +3787,8 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3787
3787
|
if (autoPush !== null) {
|
|
3788
3788
|
const $scope65_id = _scope_id();
|
|
3789
3789
|
_html(`<div${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class("_cu")}>Auto-push</span><span${_attr_class("_bG")}>Every commit on a workspace branch goes to origin. A push that fails shows on the workspace.</span></div><button${_attr_class([
|
|
3790
|
-
"
|
|
3791
|
-
"
|
|
3790
|
+
"_H",
|
|
3791
|
+
"_J",
|
|
3792
3792
|
{ [tone.ok]: autoPush }
|
|
3793
3793
|
])} role=switch aria-checked=${autoPush ? "true" : "false"} title=${autoPush ? "\"Workspace branches are pushed on every commit. Turn off\"" : "\"Workspace branches are only pushed by hand. Turn on\""}>${autoPush ? "on" : "off"}${_el_resume($scope65_id, "f")}</button>${_el_resume($scope65_id, "e")}</div>`);
|
|
3794
3794
|
_script($scope65_id, "x55");
|
|
@@ -3799,14 +3799,14 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3799
3799
|
_if(() => {
|
|
3800
3800
|
if (setup) {
|
|
3801
3801
|
const $scope44_id = _scope_id();
|
|
3802
|
-
_html(`<form${_attr_class("_cy")}><label${_attr_class("
|
|
3802
|
+
_html(`<form${_attr_class("_cy")}><label${_attr_class("_V")}>`);
|
|
3803
3803
|
icon_plus_default({
|
|
3804
3804
|
size: 14,
|
|
3805
|
-
class: "
|
|
3805
|
+
class: "_W"
|
|
3806
3806
|
});
|
|
3807
3807
|
_html(`<input${_attr_input_value($scope44_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
3808
3808
|
hostInput = _new_hostInput;
|
|
3809
|
-
}, "x3", $scope44_id))}${_attr_class([inputLg, "
|
|
3809
|
+
}, "x3", $scope44_id))}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope44_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope44_id, "f")}</button>${_el_resume($scope44_id, "e")}</form>${_el_resume($scope44_id, "a")}`);
|
|
3810
3810
|
_script($scope44_id, "x56");
|
|
3811
3811
|
writeScope($scope44_id, {});
|
|
3812
3812
|
return 0;
|
|
@@ -3836,7 +3836,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3836
3836
|
return 0;
|
|
3837
3837
|
}
|
|
3838
3838
|
}, $scope0_id, "a7", 1, 1, 1, 0, 1);
|
|
3839
|
-
_html(`<div${_attr_class("
|
|
3839
|
+
_html(`<div${_attr_class("_x")}></div>`);
|
|
3840
3840
|
_if(() => {
|
|
3841
3841
|
if (machineOpen && outdatedIds.length > 1) {
|
|
3842
3842
|
const $scope15_id = _scope_id();
|
|
@@ -3872,16 +3872,16 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3872
3872
|
_if(() => {
|
|
3873
3873
|
if (self) {
|
|
3874
3874
|
const $scope49_id = _scope_id();
|
|
3875
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["_cu", "
|
|
3875
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cu", "_w"])}>work</span>`);
|
|
3876
3876
|
_if(() => {
|
|
3877
3877
|
if (selfUpdating) {
|
|
3878
3878
|
const $scope98_id = _scope_id();
|
|
3879
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
3879
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
3880
3880
|
writeScope($scope98_id, {});
|
|
3881
3881
|
return 0;
|
|
3882
3882
|
} else {
|
|
3883
3883
|
const $scope50_id = _scope_id();
|
|
3884
|
-
_html(`<span${_attr_class(["
|
|
3884
|
+
_html(`<span${_attr_class(["_w", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope50_id, "b")}</span>`);
|
|
3885
3885
|
_if(() => {
|
|
3886
3886
|
if (self.install === "source") {
|
|
3887
3887
|
const $scope99_id = _scope_id();
|
|
@@ -3910,11 +3910,11 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3910
3910
|
return 1;
|
|
3911
3911
|
}
|
|
3912
3912
|
}, $scope49_id, "c");
|
|
3913
|
-
_html(`<span${_attr_class("
|
|
3913
|
+
_html(`<span${_attr_class("_x")}></span>`);
|
|
3914
3914
|
_if(() => {
|
|
3915
3915
|
if (!selfUpdating) {
|
|
3916
3916
|
const $scope101_id = _scope_id();
|
|
3917
|
-
_html(`<span${_attr_class("
|
|
3917
|
+
_html(`<span${_attr_class("_H")}>app</span>`);
|
|
3918
3918
|
writeScope($scope101_id, {});
|
|
3919
3919
|
return 0;
|
|
3920
3920
|
}
|
|
@@ -3931,11 +3931,11 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3931
3931
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
3932
3932
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
3933
3933
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
3934
|
-
_html(`<li${_attr_class([row, { ["_ct"]: !t.installed }])}><span${_attr_class(["_cu", "
|
|
3934
|
+
_html(`<li${_attr_class([row, { ["_ct"]: !t.installed }])}><span${_attr_class(["_cu", "_w"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
3935
3935
|
_if(() => {
|
|
3936
3936
|
if (active.has(t.id)) {
|
|
3937
3937
|
const $scope19_id = _scope_id();
|
|
3938
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
3938
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
3939
3939
|
_subscribe($active__closures, writeScope($scope19_id, { Cgi: 5 }));
|
|
3940
3940
|
return 0;
|
|
3941
3941
|
} else if (t.installed) {
|
|
@@ -3943,13 +3943,13 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3943
3943
|
_if(() => {
|
|
3944
3944
|
if (t.version) {
|
|
3945
3945
|
const $scope41_id = _scope_id();
|
|
3946
|
-
_html(`<button${_attr_class(["_cv", "
|
|
3946
|
+
_html(`<button${_attr_class(["_cv", "_w"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
3947
3947
|
_script($scope41_id, "x61");
|
|
3948
3948
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
|
|
3949
3949
|
return 0;
|
|
3950
3950
|
} else {
|
|
3951
3951
|
const $scope102_id = _scope_id();
|
|
3952
|
-
_html(`<span${_attr_class([metaTrunc, "
|
|
3952
|
+
_html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope102_id, "b")}</span>${_el_resume($scope102_id, "a")}`);
|
|
3953
3953
|
_subscribe($for_content5__t_path__closures, writeScope($scope102_id, { Cx: 1 }));
|
|
3954
3954
|
return 1;
|
|
3955
3955
|
}
|
|
@@ -3979,14 +3979,14 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3979
3979
|
return 3;
|
|
3980
3980
|
}
|
|
3981
3981
|
}, $scope18_id, "d");
|
|
3982
|
-
_html(`<span${_attr_class("
|
|
3982
|
+
_html(`<span${_attr_class("_x")}></span>`);
|
|
3983
3983
|
_if(() => {
|
|
3984
3984
|
if (!active.has(t.id)) {
|
|
3985
3985
|
const $scope37_id = _scope_id();
|
|
3986
3986
|
_if(() => {
|
|
3987
3987
|
if (t.required) {
|
|
3988
3988
|
const $scope105_id = _scope_id();
|
|
3989
|
-
_html(`<span${_attr_class("
|
|
3989
|
+
_html(`<span${_attr_class("_H")}>required</span>`);
|
|
3990
3990
|
writeScope($scope105_id, {});
|
|
3991
3991
|
return 0;
|
|
3992
3992
|
}
|
|
@@ -4002,9 +4002,9 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4002
4002
|
const $scope38_id = _scope_id();
|
|
4003
4003
|
_html(`<button${_attr_class([
|
|
4004
4004
|
iconBtnXs,
|
|
4005
|
-
"
|
|
4006
|
-
"
|
|
4007
|
-
{ ["
|
|
4005
|
+
"_2",
|
|
4006
|
+
"_3",
|
|
4007
|
+
{ ["_q"]: confirmingRemove === t.id }
|
|
4008
4008
|
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
4009
4009
|
_if(() => {
|
|
4010
4010
|
if (confirmingRemove === t.id) {
|
|
@@ -4051,23 +4051,23 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4051
4051
|
_if(() => {
|
|
4052
4052
|
if (setup && setup.mise.installed) {
|
|
4053
4053
|
const $scope20_id = _scope_id();
|
|
4054
|
-
_html(`<div><label${_attr_class("
|
|
4054
|
+
_html(`<div><label${_attr_class("_V")}>`);
|
|
4055
4055
|
icon_search_default({
|
|
4056
4056
|
size: 14,
|
|
4057
|
-
class: "
|
|
4057
|
+
class: "_W"
|
|
4058
4058
|
});
|
|
4059
|
-
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "
|
|
4059
|
+
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_X"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
|
|
4060
4060
|
_if(() => {
|
|
4061
4061
|
if (hits && hits.length) {
|
|
4062
4062
|
const $scope21_id = _scope_id();
|
|
4063
4063
|
_html(`<ul${_attr_class([toolGrid, "_cx"])}>`);
|
|
4064
4064
|
_for_of(hits, (h) => {
|
|
4065
4065
|
const $scope22_id = _scope_id();
|
|
4066
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_cu", "
|
|
4066
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_cu", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
4067
4067
|
_if(() => {
|
|
4068
4068
|
if (active.has(h.name)) {
|
|
4069
4069
|
const $scope23_id = _scope_id();
|
|
4070
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4070
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
4071
4071
|
_subscribe($active__closures, writeScope($scope23_id, { Cgi: 7 }));
|
|
4072
4072
|
return 0;
|
|
4073
4073
|
} else if (h.description) {
|
|
@@ -4084,7 +4084,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4084
4084
|
_if(() => {
|
|
4085
4085
|
if (h.installed) {
|
|
4086
4086
|
const $scope109_id = _scope_id();
|
|
4087
|
-
_html(`<span${_attr_class("
|
|
4087
|
+
_html(`<span${_attr_class("_H")}>installed</span>`);
|
|
4088
4088
|
writeScope($scope109_id, {});
|
|
4089
4089
|
return 0;
|
|
4090
4090
|
} else {
|
|
@@ -4160,21 +4160,21 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4160
4160
|
];
|
|
4161
4161
|
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_by")}><h2${_attr("id", appearanceId)}${_attr_class("_bL")}>Appearance</h2></div><div${_attr_class(["_bC", "_cD"])}><label${_attr_class("_cE")}><span${_attr_class("_cF")}>Name</span><input${_attr_input_value($scope0_id, "ap", input.instance.name, _resume(function(v) {
|
|
4162
4162
|
setInstance({ name: v });
|
|
4163
|
-
}, "x4", $scope0_id))}${_attr_class(["
|
|
4163
|
+
}, "x4", $scope0_id))}${_attr_class(["_T", "_cG"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ap")}</label><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Theme</span><span${_attr_class("_cI")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
4164
4164
|
_for_of(themeOpts, (opt) => {
|
|
4165
4165
|
const $scope52_id = _scope_id();
|
|
4166
|
-
_html(`<button type=button${_attr_class(["
|
|
4166
|
+
_html(`<button type=button${_attr_class(["_8", { ["_7"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope52_id, "a")}`);
|
|
4167
4167
|
_script($scope52_id, "x74");
|
|
4168
4168
|
writeScope($scope52_id, {
|
|
4169
4169
|
e: opt?.id,
|
|
4170
4170
|
_: _scope_with_id($scope0_id)
|
|
4171
4171
|
});
|
|
4172
4172
|
}, "id", $scope0_id, "at", 1, 0, 1, 0, 1);
|
|
4173
|
-
_html(`</span><span${_attr_class(["
|
|
4173
|
+
_html(`</span><span${_attr_class(["_m", "_cJ"])}>`);
|
|
4174
4174
|
_attr_select_value($scope0_id, "av", themeMode, _resume(function(v) {
|
|
4175
4175
|
setThemeMode(v);
|
|
4176
4176
|
}, "x5", $scope0_id), () => {
|
|
4177
|
-
_html(`<select${_attr_class(["
|
|
4177
|
+
_html(`<select${_attr_class(["_n", "_cK"])} aria-label="Color theme">`);
|
|
4178
4178
|
forOf(themeOpts, (opt) => {
|
|
4179
4179
|
_scope_id();
|
|
4180
4180
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
@@ -4206,7 +4206,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4206
4206
|
_if(() => {
|
|
4207
4207
|
if (backupBusy === "preflight" || backupBusy === "push") {
|
|
4208
4208
|
const $scope66_id = _scope_id();
|
|
4209
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4209
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || (backupBusy === "push" ? "Pushing…" : "Checking workspaces…"))}${_el_resume($scope66_id, "c")}</span>`);
|
|
4210
4210
|
writeScope($scope66_id, {});
|
|
4211
4211
|
return 0;
|
|
4212
4212
|
} else {
|
|
@@ -4255,14 +4255,14 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4255
4255
|
_for_of(w.repos, (r) => {
|
|
4256
4256
|
const $scope127_id = _scope_id();
|
|
4257
4257
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
4258
|
-
_html(`<li${_attr_class("_c9")}><span${_attr_class("_c_")}><span${_attr_class("
|
|
4258
|
+
_html(`<li${_attr_class("_c9")}><span${_attr_class("_c_")}><span${_attr_class("_w")}>${_escape(r.worktree)}${_el_resume($scope127_id, "d")}/</span>`);
|
|
4259
4259
|
_for_of(r.unpushed, (b) => {
|
|
4260
4260
|
const $scope128_id = _scope_id();
|
|
4261
|
-
_html(`<span${_attr_class(["
|
|
4261
|
+
_html(`<span${_attr_class(["_H", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_escape(b.count)}${_el_resume($scope128_id, "b")} unpushed `);
|
|
4262
4262
|
_if(() => {
|
|
4263
4263
|
if (b.branch !== w.name) {
|
|
4264
4264
|
const $scope131_id = _scope_id();
|
|
4265
|
-
_html(`<span${_attr_class("
|
|
4265
|
+
_html(`<span${_attr_class("_w")}>${_escape(b.branch)}${_el_resume($scope131_id, "b")}</span>`);
|
|
4266
4266
|
writeScope($scope131_id, {});
|
|
4267
4267
|
return 0;
|
|
4268
4268
|
}
|
|
@@ -4278,26 +4278,26 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4278
4278
|
_for_of(r.modified, (f) => {
|
|
4279
4279
|
const $scope132_id = _scope_id();
|
|
4280
4280
|
_html(`<li${_attr_class("_db")}><span${_attr_class([
|
|
4281
|
-
"
|
|
4282
|
-
"
|
|
4281
|
+
"_H",
|
|
4282
|
+
"_J",
|
|
4283
4283
|
tone.warn
|
|
4284
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["
|
|
4284
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_w", "_dc"])}>${_escape(f)}${_el_resume($scope132_id, "d")}</span></li>`);
|
|
4285
4285
|
writeScope($scope132_id, {});
|
|
4286
4286
|
}, (f) => f, $scope129_id, "b", 1, 1, 1, 0, 1);
|
|
4287
4287
|
_for_of(r.untracked, (f) => {
|
|
4288
4288
|
const $scope133_id = _scope_id();
|
|
4289
|
-
_html(`<li${_attr_class("_db")}><span${_attr_class(["
|
|
4289
|
+
_html(`<li${_attr_class("_db")}><span${_attr_class(["_H", "_J"])} title=Untracked>?</span><span${_attr_class(["_w", "_dc"])}>${_escape(f)}${_el_resume($scope133_id, "d")}</span></li>`);
|
|
4290
4290
|
writeScope($scope133_id, {});
|
|
4291
4291
|
}, (f) => f, $scope129_id, "c", 1, 1, 1, 0, 1);
|
|
4292
4292
|
_for_of(r.ignored, (f) => {
|
|
4293
4293
|
const $scope134_id = _scope_id();
|
|
4294
|
-
_html(`<li${_attr_class("_db")}><span${_attr_class(["
|
|
4294
|
+
_html(`<li${_attr_class("_db")}><span${_attr_class(["_H", "_J"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_w", "_dc"])}>${_escape(f)}${_el_resume($scope134_id, "d")}</span></li>`);
|
|
4295
4295
|
writeScope($scope134_id, {});
|
|
4296
4296
|
}, (f) => f, $scope129_id, "d", 1, 1, 1, 0, 1);
|
|
4297
4297
|
_if(() => {
|
|
4298
4298
|
if (r.more) {
|
|
4299
4299
|
const $scope130_id = _scope_id();
|
|
4300
|
-
_html(`<li${_attr_class(["_db", "
|
|
4300
|
+
_html(`<li${_attr_class(["_db", "_v"])}>+<!>${_escape(r.more)}${_el_resume($scope130_id, "b")} more</li>`);
|
|
4301
4301
|
_subscribe($for_content19__r_more__closures, writeScope($scope130_id, {}));
|
|
4302
4302
|
return 0;
|
|
4303
4303
|
}
|
|
@@ -4326,13 +4326,13 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4326
4326
|
_if(() => {
|
|
4327
4327
|
if (preflight.unpushed) {
|
|
4328
4328
|
const $scope77_id = _scope_id();
|
|
4329
|
-
_html(`<button${_attr_class([btnSm, "
|
|
4329
|
+
_html(`<button${_attr_class([btnSm, "_p"])} title="Push every workspace branch, then export">Push and export</button>${_el_resume($scope77_id, "a")}`);
|
|
4330
4330
|
_script($scope77_id, "x77");
|
|
4331
4331
|
writeScope($scope77_id, {});
|
|
4332
4332
|
return 0;
|
|
4333
4333
|
}
|
|
4334
4334
|
}, $scope68_id, "q", 1, 1, 1, 0, 1);
|
|
4335
|
-
_html(`<button${_attr_class([btnSm, { ["
|
|
4335
|
+
_html(`<button${_attr_class([btnSm, { ["_p"]: !preflight.unpushed }])}>${preflight.unpushed ? "Export anyway" : "Export"}${_el_resume($scope68_id, "s")}</button>${_el_resume($scope68_id, "r")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "t")}</div></div>`);
|
|
4336
4336
|
_script($scope68_id, "x78");
|
|
4337
4337
|
writeScope($scope68_id, {});
|
|
4338
4338
|
return 0;
|
|
@@ -4342,7 +4342,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4342
4342
|
_if(() => {
|
|
4343
4343
|
if (backupBusy === "restore") {
|
|
4344
4344
|
const $scope67_id = _scope_id();
|
|
4345
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4345
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Restoring…")}${_el_resume($scope67_id, "c")}</span>`);
|
|
4346
4346
|
writeScope($scope67_id, {});
|
|
4347
4347
|
return 0;
|
|
4348
4348
|
} else if (restoreDone) {
|
|
@@ -4383,7 +4383,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4383
4383
|
_if(() => {
|
|
4384
4384
|
if (w.status === "archived") {
|
|
4385
4385
|
const $scope139_id = _scope_id();
|
|
4386
|
-
_html(`<span${_attr_class(["
|
|
4386
|
+
_html(`<span${_attr_class(["_H", "_J"])}>archived</span>`);
|
|
4387
4387
|
writeScope($scope139_id, {});
|
|
4388
4388
|
return 0;
|
|
4389
4389
|
}
|
|
@@ -4391,12 +4391,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4391
4391
|
_if(() => {
|
|
4392
4392
|
if (w.exists) {
|
|
4393
4393
|
const $scope140_id = _scope_id();
|
|
4394
|
-
_html(`<span${_attr_class("
|
|
4394
|
+
_html(`<span${_attr_class("_H")}>already here</span>`);
|
|
4395
4395
|
writeScope($scope140_id, {});
|
|
4396
4396
|
return 0;
|
|
4397
4397
|
} else if (w.unknownHost) {
|
|
4398
4398
|
const $scope138_id = _scope_id();
|
|
4399
|
-
_html(`<span${_attr_class(["
|
|
4399
|
+
_html(`<span${_attr_class(["_H", tone.warn])} title="Add this GitHub host above first">unknown host <!>${_escape(w.unknownHost)}${_el_resume($scope138_id, "b")}</span>`);
|
|
4400
4400
|
writeScope($scope138_id, {});
|
|
4401
4401
|
return 1;
|
|
4402
4402
|
}
|
|
@@ -4499,7 +4499,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4499
4499
|
i: $for_content11__p_total__closures
|
|
4500
4500
|
});
|
|
4501
4501
|
}, "key", $scope70_id, "h");
|
|
4502
|
-
_html(`</ul><div${_attr_class("_dd")}><button${_attr_class([btnSm, "
|
|
4502
|
+
_html(`</ul><div${_attr_class("_dd")}><button${_attr_class([btnSm, "_p"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
4503
4503
|
_script($scope70_id, "x82");
|
|
4504
4504
|
writeScope($scope70_id, {});
|
|
4505
4505
|
return 0;
|
|
@@ -4689,11 +4689,11 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4689
4689
|
});
|
|
4690
4690
|
//#endregion
|
|
4691
4691
|
//#region src/tags/new-workspace.css.ts
|
|
4692
|
-
var content$1 = "_bM
|
|
4692
|
+
var content$1 = "_bM _bp";
|
|
4693
4693
|
var section$1 = "_bQ _bx";
|
|
4694
|
-
var curBase = "_bV
|
|
4694
|
+
var curBase = "_bV _S _R";
|
|
4695
4695
|
var archived = "_b0 _bx";
|
|
4696
|
-
var archivedHint = "_b1
|
|
4696
|
+
var archivedHint = "_b1 _R";
|
|
4697
4697
|
var archivedCard = "_b2 _bC";
|
|
4698
4698
|
//#endregion
|
|
4699
4699
|
//#region src/tags/icons/icon-group.marko
|
|
@@ -4746,7 +4746,7 @@ var icon_branch_default = _template("Q", (input) => {
|
|
|
4746
4746
|
});
|
|
4747
4747
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4748
4748
|
});
|
|
4749
|
-
var resultBranch = "_dq
|
|
4749
|
+
var resultBranch = "_dq _Y _j";
|
|
4750
4750
|
//#endregion
|
|
4751
4751
|
//#region src/tags/branch-pick.marko
|
|
4752
4752
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -4763,7 +4763,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
4763
4763
|
_if(() => {
|
|
4764
4764
|
{
|
|
4765
4765
|
const $scope4_id = _scope_id();
|
|
4766
|
-
_html(`<p${_attr_class("_bI")}><span${_attr_class("
|
|
4766
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
4767
4767
|
writeScope($scope4_id, {});
|
|
4768
4768
|
return 0;
|
|
4769
4769
|
}
|
|
@@ -4862,16 +4862,16 @@ var repo_picker_default = _template("v", (input) => {
|
|
|
4862
4862
|
return 0;
|
|
4863
4863
|
}
|
|
4864
4864
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
4865
|
-
_html(`<label${_attr_class("
|
|
4865
|
+
_html(`<label${_attr_class("_V")}>`);
|
|
4866
4866
|
icon_search_default({
|
|
4867
4867
|
size: 14,
|
|
4868
|
-
class: "
|
|
4868
|
+
class: "_W"
|
|
4869
4869
|
});
|
|
4870
4870
|
_html(`<input${_attr_input_value($scope0_id, "e", filter, _resume(function(v) {
|
|
4871
4871
|
filter = v;
|
|
4872
4872
|
highlight = 0;
|
|
4873
4873
|
pasteWillFork = false;
|
|
4874
|
-
}, "v0", $scope0_id))}${_attr_class([inputLg, "
|
|
4874
|
+
}, "v0", $scope0_id))}${_attr_class([inputLg, "_X"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "e")}</label>`);
|
|
4875
4875
|
_if(() => {
|
|
4876
4876
|
if (pasted) {
|
|
4877
4877
|
const $scope1_id = _scope_id();
|
|
@@ -5134,7 +5134,7 @@ function parseInvite(text) {
|
|
|
5134
5134
|
repos
|
|
5135
5135
|
};
|
|
5136
5136
|
}
|
|
5137
|
-
var hint = "_dC
|
|
5137
|
+
var hint = "_dC _R";
|
|
5138
5138
|
//#endregion
|
|
5139
5139
|
//#region src/tags/join-dialog.marko
|
|
5140
5140
|
var api$4;
|
|
@@ -5255,7 +5255,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5255
5255
|
footer: attrTag({ content: _content_resume("o11", () => {
|
|
5256
5256
|
_scope_reason();
|
|
5257
5257
|
const $scope2_id = _scope_id();
|
|
5258
|
-
_html(`<button type=button${_attr_class(["
|
|
5258
|
+
_html(`<button type=button${_attr_class(["_o", "_p"])}${_attr("disabled", busy || !parsed.ok || !name.trim())}>${busy ? "Joining…" : "Join workspace"}${_el_resume($scope2_id, "b")}</button>${_el_resume($scope2_id, "a")}<div${_attr_class("_x")}></div><button type=button${_attr_class("_o")}>Cancel</button>${_el_resume($scope2_id, "d")}`);
|
|
5259
5259
|
_script($scope2_id, "o7");
|
|
5260
5260
|
_subscribe($parsed_ok__closures, _subscribe($busy__closures, _subscribe($name__closures, writeScope($scope2_id, {
|
|
5261
5261
|
_: _scope_with_id($scope0_id),
|
|
@@ -5268,8 +5268,8 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5268
5268
|
_scope_reason();
|
|
5269
5269
|
const $scope1_id = _scope_id();
|
|
5270
5270
|
_html(`<h2${_attr_class("_dB")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
5271
|
-
"
|
|
5272
|
-
"
|
|
5271
|
+
"_T",
|
|
5272
|
+
"_w",
|
|
5273
5273
|
"_dE"
|
|
5274
5274
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
5275
5275
|
_if(() => {
|
|
@@ -5286,9 +5286,9 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5286
5286
|
_html(`<li${_attr_class("_dG")}><span${_attr_class("_dH")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
5287
5287
|
writeScope($scope9_id, {});
|
|
5288
5288
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5289
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("
|
|
5289
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_dI")}><span${_attr_class("_bL")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
5290
5290
|
name = _new_name;
|
|
5291
|
-
}, "o1", $scope3_id))}${_attr_class("
|
|
5291
|
+
}, "o1", $scope3_id))}${_attr_class("_T")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
5292
5292
|
_script($scope3_id, "o8");
|
|
5293
5293
|
_subscribe($parsed_ok_name__closures, _subscribe($parsed_ok_branch__closures, _subscribe($parsed_ok_repos__closures, _subscribe($busy__closures, _subscribe($name__closures, writeScope($scope3_id, {
|
|
5294
5294
|
Ca6: 1,
|
|
@@ -5330,7 +5330,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5330
5330
|
_if(() => {
|
|
5331
5331
|
if (i === steps$2.length - 1) {
|
|
5332
5332
|
const $scope10_id = _scope_id();
|
|
5333
|
-
_html(`<span${_attr_class("
|
|
5333
|
+
_html(`<span${_attr_class("_E")}></span>`);
|
|
5334
5334
|
writeScope($scope10_id, {});
|
|
5335
5335
|
return 0;
|
|
5336
5336
|
} else {
|
|
@@ -5490,7 +5490,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5490
5490
|
}
|
|
5491
5491
|
}, "s6", $scope0_id);
|
|
5492
5492
|
const titleId = _id();
|
|
5493
|
-
_html(`<div${_attr_class("
|
|
5493
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$1)}>`);
|
|
5494
5494
|
_set_serialize_reason({
|
|
5495
5495
|
0: _serialize_guard($scope0_reason, 2),
|
|
5496
5496
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5546,7 +5546,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5546
5546
|
const $childScope2 = _peek_scope_id();
|
|
5547
5547
|
icon_refresh_default({
|
|
5548
5548
|
size: 14,
|
|
5549
|
-
class: catalogRefreshing && "
|
|
5549
|
+
class: catalogRefreshing && "_D"
|
|
5550
5550
|
});
|
|
5551
5551
|
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bS")}>`);
|
|
5552
5552
|
_for_of(selected, (repo) => {
|
|
@@ -5577,11 +5577,11 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5577
5577
|
}, $scope4_id, "d", 1, 1, 1, 0, 1);
|
|
5578
5578
|
_html(`<button${_attr_class([
|
|
5579
5579
|
curBase,
|
|
5580
|
-
"
|
|
5580
|
+
"_w",
|
|
5581
5581
|
{ ["_bU"]: branchesFor === repo.fullName }
|
|
5582
5582
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5583
5583
|
icon_branch_default({ size: 12 });
|
|
5584
|
-
_html(`<!>${repo.baseBranch ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope4_id, "g")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "
|
|
5584
|
+
_html(`<!>${repo.baseBranch ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope4_id, "g")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5585
5585
|
icon_xmark_default({ size: 12 });
|
|
5586
5586
|
_html(`</button>${_el_resume($scope4_id, "h")}</div>`);
|
|
5587
5587
|
_if(() => {
|
|
@@ -5646,7 +5646,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5646
5646
|
_if(() => {
|
|
5647
5647
|
if (i === steps.length - 1) {
|
|
5648
5648
|
const $scope17_id = _scope_id();
|
|
5649
|
-
_html(`<span${_attr_class("
|
|
5649
|
+
_html(`<span${_attr_class("_E")}></span>`);
|
|
5650
5650
|
writeScope($scope17_id, {});
|
|
5651
5651
|
return 0;
|
|
5652
5652
|
} else {
|
|
@@ -5677,7 +5677,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5677
5677
|
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
5678
5678
|
_html(`<button type=button${_attr_class([
|
|
5679
5679
|
btnLg,
|
|
5680
|
-
"
|
|
5680
|
+
"_p",
|
|
5681
5681
|
"_bO"
|
|
5682
5682
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
5683
5683
|
_if(() => {
|
|
@@ -5686,11 +5686,11 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5686
5686
|
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("_bL")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope6_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("_bA")}>`);
|
|
5687
5687
|
_for_of(archived$1, (ws) => {
|
|
5688
5688
|
const $scope7_id = _scope_id();
|
|
5689
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>${_escape(ws.name)}${_el_resume($scope7_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "
|
|
5689
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>${_escape(ws.name)}${_el_resume($scope7_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope7_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5690
5690
|
_if(() => {
|
|
5691
5691
|
if (restoring === ws.id) {
|
|
5692
5692
|
const $scope19_id = _scope_id();
|
|
5693
|
-
_html(`<span${_attr_class("
|
|
5693
|
+
_html(`<span${_attr_class("_E")}></span> Restoring…`);
|
|
5694
5694
|
writeScope($scope19_id, {});
|
|
5695
5695
|
return 0;
|
|
5696
5696
|
} else {
|
|
@@ -5810,8 +5810,8 @@ function vapidKey(base64) {
|
|
|
5810
5810
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
5811
5811
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
5812
5812
|
}
|
|
5813
|
-
var iconBtn$1 = "_dX
|
|
5814
|
-
var navToggle = "_d2
|
|
5813
|
+
var iconBtn$1 = "_dX _j";
|
|
5814
|
+
var navToggle = "_d2 _j";
|
|
5815
5815
|
_template("P", (input) => {
|
|
5816
5816
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5817
5817
|
const $scope0_id = _scope_id();
|
|
@@ -5854,12 +5854,12 @@ var ARM_MS = 3500;
|
|
|
5854
5854
|
function disarmLater(fn) {
|
|
5855
5855
|
return setTimeout(fn, ARM_MS);
|
|
5856
5856
|
}
|
|
5857
|
-
var railBtn = "
|
|
5858
|
-
var rowIcon = "
|
|
5859
|
-
var close = "
|
|
5857
|
+
var railBtn = "_g0 _j";
|
|
5858
|
+
var rowIcon = "_g9 _Y _j";
|
|
5859
|
+
var close = "_g_ _1 _j _2";
|
|
5860
5860
|
//#endregion
|
|
5861
5861
|
//#region src/styles/session-pop.css.ts
|
|
5862
|
-
var sessionPop = "
|
|
5862
|
+
var sessionPop = "_gW _4";
|
|
5863
5863
|
//#endregion
|
|
5864
5864
|
//#region src/client/status.ts
|
|
5865
5865
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -5926,22 +5926,22 @@ var usage_pcts_default = _template("G", (input) => {
|
|
|
5926
5926
|
if (windows.length) {
|
|
5927
5927
|
const $scope1_id = _scope_id();
|
|
5928
5928
|
_html(`<span${_attr_class([
|
|
5929
|
-
"
|
|
5929
|
+
"_f4",
|
|
5930
5930
|
input.class,
|
|
5931
|
-
{ ["
|
|
5931
|
+
{ ["_f5"]: agent.stale_seconds != null }
|
|
5932
5932
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5933
5933
|
_for_of(windows, (win$1, i) => {
|
|
5934
5934
|
const $scope2_id = _scope_id();
|
|
5935
|
-
_html(`<span${_attr_class("
|
|
5935
|
+
_html(`<span${_attr_class("_f6")}>`);
|
|
5936
5936
|
_if(() => {
|
|
5937
5937
|
if (i) {
|
|
5938
5938
|
const $scope3_id = _scope_id();
|
|
5939
|
-
_html(`<span${_attr_class("
|
|
5939
|
+
_html(`<span${_attr_class("_f9")} aria-hidden=true>·</span>`);
|
|
5940
5940
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5941
5941
|
return 0;
|
|
5942
5942
|
}
|
|
5943
5943
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5944
|
-
_html(`<span${_attr_class("
|
|
5944
|
+
_html(`<span${_attr_class("_f7")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f8", win$1.used_percent >= 90 ? "_fT" : win$1.used_percent >= 70 ? "_fS" : win$1.used_percent >= 40 ? "_fR" : "_fQ"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5945
5945
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5946
5946
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5947
5947
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5972,12 +5972,12 @@ var icon_edit_default = _template("Z", (input) => {
|
|
|
5972
5972
|
});
|
|
5973
5973
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5974
5974
|
});
|
|
5975
|
-
var prChip = "
|
|
5976
|
-
var portChip = "
|
|
5975
|
+
var prChip = "_h6 _s _h5";
|
|
5976
|
+
var portChip = "_h7 _s _h5";
|
|
5977
5977
|
var prState = {
|
|
5978
|
-
open: "
|
|
5979
|
-
merged: "
|
|
5980
|
-
closed: "
|
|
5978
|
+
open: "_ia",
|
|
5979
|
+
merged: "_ib",
|
|
5980
|
+
closed: "_ic"
|
|
5981
5981
|
};
|
|
5982
5982
|
//#endregion
|
|
5983
5983
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6050,10 +6050,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6050
6050
|
const name = repo.full_name.split("/").at(-1);
|
|
6051
6051
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6052
6052
|
}, "y4", $scope1_id);
|
|
6053
|
-
_html(`<div${_attr_class("
|
|
6053
|
+
_html(`<div${_attr_class("_h4")}>`);
|
|
6054
6054
|
_for_of(unpushed, (repo) => {
|
|
6055
6055
|
const $scope7_id = _scope_id();
|
|
6056
|
-
_html(`<span${_attr_class(["
|
|
6056
|
+
_html(`<span${_attr_class(["_s", tone.warn])}${_attr("title", `${repo.worktree}: ${repo.unpushed}`)}>${_escape(repoLabel$1(repo))}${_el_resume($scope7_id, "b")}<!>${repoLabel$1(repo) ? _escape(`${_to_text(" ")}`) : ""}${_el_resume($scope7_id, "c")} unpushed</span>${_el_resume($scope7_id, "a")}`);
|
|
6057
6057
|
writeScope($scope7_id, {});
|
|
6058
6058
|
}, "full_name", $scope1_id, "b", 1, 1, 1, 0, 1);
|
|
6059
6059
|
_for_of(repos, (repo) => {
|
|
@@ -6063,19 +6063,19 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6063
6063
|
const $scope3_id = _scope_id();
|
|
6064
6064
|
const open = isOpen(pr);
|
|
6065
6065
|
_html(`<span${_attr_class([
|
|
6066
|
-
"
|
|
6066
|
+
"_s",
|
|
6067
6067
|
prChip,
|
|
6068
6068
|
{
|
|
6069
|
-
["
|
|
6070
|
-
["
|
|
6069
|
+
["_t"]: open && !pr.isDraft,
|
|
6070
|
+
["_u"]: open && pr.isDraft,
|
|
6071
6071
|
[prState.merged]: pr.state === "MERGED",
|
|
6072
6072
|
[prState.closed]: pr.state === "CLOSED"
|
|
6073
6073
|
}
|
|
6074
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6074
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_h8", { ["_ie"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
6075
6075
|
_if(() => {
|
|
6076
6076
|
if (open) {
|
|
6077
6077
|
const $scope4_id = _scope_id();
|
|
6078
|
-
_html(`<a${_attr_class(["
|
|
6078
|
+
_html(`<a${_attr_class(["_h8", "_h9"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6079
6079
|
icon_diff_default({ size: 12 });
|
|
6080
6080
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
6081
6081
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -6083,9 +6083,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6083
6083
|
} else {
|
|
6084
6084
|
const $scope6_id = _scope_id();
|
|
6085
6085
|
_html(`<button type=button${_attr_class([
|
|
6086
|
+
"_h8",
|
|
6086
6087
|
"_h9",
|
|
6087
|
-
"_h_"
|
|
6088
|
-
"_ia"
|
|
6088
|
+
"_h_"
|
|
6089
6089
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6090
6090
|
icon_xmark_default({ size: 12 });
|
|
6091
6091
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6109,11 +6109,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6109
6109
|
}, "full_name", $scope1_id, "c");
|
|
6110
6110
|
_for_of(ports, (p) => {
|
|
6111
6111
|
const $scope5_id = _scope_id();
|
|
6112
|
-
_html(`<span${_attr_class(["
|
|
6112
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_h8", "_id"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6113
|
+
"_h8",
|
|
6113
6114
|
"_h9",
|
|
6114
6115
|
"_h_",
|
|
6115
|
-
"
|
|
6116
|
-
{ ["_k"]: armedPid === p.pid }
|
|
6116
|
+
{ ["_q"]: armedPid === p.pid }
|
|
6117
6117
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6118
6118
|
icon_xmark_default({ size: 12 });
|
|
6119
6119
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a")}`);
|
|
@@ -6214,40 +6214,40 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6214
6214
|
_if(() => {
|
|
6215
6215
|
if (input.rail) {
|
|
6216
6216
|
const $scope2_id = _scope_id();
|
|
6217
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6218
|
-
"
|
|
6217
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gY"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${input.index === void 0 ? "·" : _escape(input.index + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 26))}<span${_attr_class([
|
|
6218
|
+
"_y",
|
|
6219
6219
|
phase[dot],
|
|
6220
|
-
"
|
|
6220
|
+
"_g1"
|
|
6221
6221
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6222
6222
|
_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_workspaces__OR__input_workspaceId && $ws_pending__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))))));
|
|
6223
6223
|
return 0;
|
|
6224
6224
|
} else if (ws$1.pending) {
|
|
6225
6225
|
const $scope3_id = _scope_id();
|
|
6226
6226
|
_html(`<section${_attr_class([
|
|
6227
|
-
"
|
|
6228
|
-
"
|
|
6227
|
+
"_g3",
|
|
6228
|
+
"_hp",
|
|
6229
6229
|
{
|
|
6230
|
-
["
|
|
6231
|
-
["
|
|
6230
|
+
["_g4"]: input.railPop,
|
|
6231
|
+
["_g2"]: input.page
|
|
6232
6232
|
}
|
|
6233
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
6233
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_g5")}><div${_attr_class("_g6")}>`);
|
|
6234
6234
|
_if(() => {
|
|
6235
6235
|
if (ws$1.pending_error) {
|
|
6236
6236
|
const $scope15_id = _scope_id();
|
|
6237
6237
|
icon_warning_default({
|
|
6238
6238
|
size: 12,
|
|
6239
|
-
class: "
|
|
6239
|
+
class: "_hr"
|
|
6240
6240
|
});
|
|
6241
6241
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
6242
6242
|
return 0;
|
|
6243
6243
|
} else {
|
|
6244
6244
|
const $scope16_id = _scope_id();
|
|
6245
|
-
_html(`<span${_attr_class(["
|
|
6245
|
+
_html(`<span${_attr_class(["_E", "_hq"])}></span>`);
|
|
6246
6246
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
6247
6247
|
return 1;
|
|
6248
6248
|
}
|
|
6249
6249
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
6250
|
-
_html(`<span${_attr_class("
|
|
6250
|
+
_html(`<span${_attr_class("_hb")}><span${_attr_class("_hc")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "g", $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_hs")}${_attr("title", ws$1.pending_error || restoreLine)}>${ws$1.pending_error ? `Restore failed: ${_escape(`${ws$1.pending_error}`)}` : _escape("Restoring…")}${_el_resume($scope3_id, "i")}</span>${_el_resume($scope3_id, "h")}</span></div></div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 10))}`);
|
|
6251
6251
|
_subscribe($restoreLine__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_pending_error__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
6252
6252
|
_: _scope_with_id($scope1_id),
|
|
6253
6253
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -6257,15 +6257,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6257
6257
|
const $scope4_id = _scope_id();
|
|
6258
6258
|
const sessions$1 = input.sessions || [];
|
|
6259
6259
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6260
|
-
_html(`<section${_attr_class(["
|
|
6261
|
-
["
|
|
6262
|
-
["
|
|
6263
|
-
["
|
|
6264
|
-
["
|
|
6265
|
-
}])}><div${_attr_class("
|
|
6266
|
-
"
|
|
6260
|
+
_html(`<section${_attr_class(["_g3", {
|
|
6261
|
+
["_gY"]: input.current,
|
|
6262
|
+
["_5"]: input.current,
|
|
6263
|
+
["_g4"]: input.railPop,
|
|
6264
|
+
["_g2"]: input.page
|
|
6265
|
+
}])}><div${_attr_class("_g5")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_g6")}><span${_attr_class([
|
|
6266
|
+
"_y",
|
|
6267
6267
|
phase[dot],
|
|
6268
|
-
"
|
|
6268
|
+
"_hh"
|
|
6269
6269
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6270
6270
|
_if(() => {
|
|
6271
6271
|
if (sessions$1.length === 1) {
|
|
@@ -6278,7 +6278,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6278
6278
|
icon_agent_default({
|
|
6279
6279
|
agent: activeAgent(sessions$1[0]),
|
|
6280
6280
|
size: 12,
|
|
6281
|
-
class: "
|
|
6281
|
+
class: "_ha"
|
|
6282
6282
|
});
|
|
6283
6283
|
$si__input_sessions && writeScope($scope17_id, {
|
|
6284
6284
|
_: _scope_with_id($scope4_id),
|
|
@@ -6288,11 +6288,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6288
6288
|
}
|
|
6289
6289
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6290
6290
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
6291
|
-
_html(`<span${_attr_class("
|
|
6291
|
+
_html(`<span${_attr_class("_hb")}><span${_attr_class("_hc")}>${_escape(ws$1.name)}${_el_resume($scope4_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6292
6292
|
_if(() => {
|
|
6293
6293
|
if (input.page && metaText) {
|
|
6294
6294
|
const $scope18_id = _scope_id();
|
|
6295
|
-
_html(`<span${_attr_class("
|
|
6295
|
+
_html(`<span${_attr_class("_hf")}>${_escape(metaText)}${_el_resume($scope18_id, "b", _serialize_guard($scope0_reason, 6))}</span>`);
|
|
6296
6296
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 6) && _scope_with_id($scope4_id) });
|
|
6297
6297
|
return 0;
|
|
6298
6298
|
}
|
|
@@ -6302,10 +6302,10 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6302
6302
|
if (input.page) {
|
|
6303
6303
|
const $scope5_id = _scope_id();
|
|
6304
6304
|
_html(`<span${_attr_class([
|
|
6305
|
-
"
|
|
6306
|
-
"
|
|
6307
|
-
"
|
|
6308
|
-
"
|
|
6305
|
+
"_H",
|
|
6306
|
+
"_Q",
|
|
6307
|
+
"_J",
|
|
6308
|
+
"_hg"
|
|
6309
6309
|
])}>${input.current ? "Open" : ""}${_el_resume($scope5_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6310
6310
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
6311
6311
|
_: _scope_with_id($scope4_id),
|
|
@@ -6318,7 +6318,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6318
6318
|
_if(() => {
|
|
6319
6319
|
if (!input.page) {
|
|
6320
6320
|
const $scope6_id = _scope_id();
|
|
6321
|
-
_html(`<div${_attr_class("
|
|
6321
|
+
_html(`<div${_attr_class("_g7")}>`);
|
|
6322
6322
|
_if(() => {
|
|
6323
6323
|
if (input.onNewSession) {
|
|
6324
6324
|
const $scope7_id = _scope_id();
|
|
@@ -6332,7 +6332,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6332
6332
|
_html(`</button>${_el_resume($scope7_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6333
6333
|
_for_of([], (agent) => {
|
|
6334
6334
|
const $scope8_id = _scope_id();
|
|
6335
|
-
_html(`<button${_attr_class("
|
|
6335
|
+
_html(`<button${_attr_class("_gX")}>`);
|
|
6336
6336
|
_set_serialize_reason(12);
|
|
6337
6337
|
const $childScope2 = _peek_scope_id();
|
|
6338
6338
|
icon_agent_default({
|
|
@@ -6367,7 +6367,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6367
6367
|
return 0;
|
|
6368
6368
|
}
|
|
6369
6369
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6370
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6370
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gZ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6371
6371
|
icon_manage_default({ size: 12 });
|
|
6372
6372
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
6373
6373
|
_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($scope6_id, {
|
|
@@ -6377,7 +6377,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6377
6377
|
return 0;
|
|
6378
6378
|
}
|
|
6379
6379
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6380
|
-
_html(`</div><div${_attr_class("
|
|
6380
|
+
_html(`</div><div${_attr_class("_hm")}>`);
|
|
6381
6381
|
_if(() => {
|
|
6382
6382
|
if (sessions$1.length === 1 && openPlan) {
|
|
6383
6383
|
const $scope12_id = _scope_id();
|
|
@@ -6385,7 +6385,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6385
6385
|
const $childScope3 = _peek_scope_id();
|
|
6386
6386
|
usage_pcts_default({
|
|
6387
6387
|
agent: openPlan,
|
|
6388
|
-
class: "
|
|
6388
|
+
class: "_hd"
|
|
6389
6389
|
});
|
|
6390
6390
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6391
6391
|
a: _existing_scope($childScope3),
|
|
@@ -6396,14 +6396,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6396
6396
|
}, $scope4_id, "m");
|
|
6397
6397
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6398
6398
|
const $scope9_id = _scope_id();
|
|
6399
|
-
_html(`<div${_attr_class(["
|
|
6399
|
+
_html(`<div${_attr_class(["_g8", { ["_gY"]: s.id === input.currentTab }])}>`);
|
|
6400
6400
|
_if(() => {
|
|
6401
6401
|
if (renamingId === s.id) {
|
|
6402
6402
|
const $scope11_id = _scope_id();
|
|
6403
6403
|
_html(`<span${_attr_class([
|
|
6404
|
-
"
|
|
6404
|
+
"_y",
|
|
6405
6405
|
phase[sessionPhase(s.state)],
|
|
6406
|
-
"
|
|
6406
|
+
"_hk"
|
|
6407
6407
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
6408
6408
|
_set_serialize_reason({
|
|
6409
6409
|
1: $sg__input_sessions,
|
|
@@ -6413,17 +6413,17 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6413
6413
|
icon_agent_default({
|
|
6414
6414
|
agent: activeAgent(s),
|
|
6415
6415
|
size: 13,
|
|
6416
|
-
class: "
|
|
6416
|
+
class: "_ho"
|
|
6417
6417
|
});
|
|
6418
6418
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6419
6419
|
renameValue = _new_renameValue;
|
|
6420
|
-
}, "z0", $scope11_id))}${_attr_class(["
|
|
6420
|
+
}, "z0", $scope11_id))}${_attr_class(["_T", "_hl"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
6421
6421
|
_script($scope11_id, "z5");
|
|
6422
6422
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6423
6423
|
return 0;
|
|
6424
6424
|
} else {
|
|
6425
6425
|
const $scope10_id = _scope_id();
|
|
6426
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6426
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_hn")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
6427
6427
|
_set_serialize_reason({
|
|
6428
6428
|
1: $sg__input_sessions,
|
|
6429
6429
|
2: $sg__input_sessions
|
|
@@ -6432,11 +6432,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6432
6432
|
icon_agent_default({
|
|
6433
6433
|
agent: activeAgent(s),
|
|
6434
6434
|
size: 13,
|
|
6435
|
-
class: "
|
|
6435
|
+
class: "_ho"
|
|
6436
6436
|
});
|
|
6437
|
-
_html(`<span${_attr_class("
|
|
6437
|
+
_html(`<span${_attr_class("_hi")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_hj")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6438
6438
|
icon_edit_default({ size: 12 });
|
|
6439
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["
|
|
6439
|
+
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6440
6440
|
icon_xmark_default({ size: 12 });
|
|
6441
6441
|
_html(`</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
6442
6442
|
_if(() => {
|
|
@@ -6446,7 +6446,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6446
6446
|
const $childScope6 = _peek_scope_id();
|
|
6447
6447
|
usage_pcts_default({
|
|
6448
6448
|
agent: openPlan,
|
|
6449
|
-
class: "
|
|
6449
|
+
class: "_he"
|
|
6450
6450
|
});
|
|
6451
6451
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
6452
6452
|
a: _existing_scope($childScope6),
|
|
@@ -6689,7 +6689,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6689
6689
|
_if(() => {
|
|
6690
6690
|
if (input.setupReady === false) {
|
|
6691
6691
|
const $scope12_id = _scope_id();
|
|
6692
|
-
_html(`<span${_attr_class(["
|
|
6692
|
+
_html(`<span${_attr_class(["_y", "_dY"])} title="Machine setup incomplete"></span>`);
|
|
6693
6693
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6694
6694
|
return 0;
|
|
6695
6695
|
}
|
|
@@ -6859,7 +6859,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6859
6859
|
if (railHover) {
|
|
6860
6860
|
const $scope7_id = _scope_id();
|
|
6861
6861
|
const hoverId = railHover.id;
|
|
6862
|
-
_html(`<div${_attr_class(["
|
|
6862
|
+
_html(`<div${_attr_class(["_4", "_eh"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6863
6863
|
_set_serialize_reason({
|
|
6864
6864
|
0: 1,
|
|
6865
6865
|
1: 1,
|
|
@@ -6949,8 +6949,8 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6949
6949
|
if (isPage) {
|
|
6950
6950
|
const $scope9_id = _scope_id();
|
|
6951
6951
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
6952
|
-
"
|
|
6953
|
-
"
|
|
6952
|
+
"_o",
|
|
6953
|
+
"_p",
|
|
6954
6954
|
btnLg,
|
|
6955
6955
|
"_d9"
|
|
6956
6956
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
@@ -6974,14 +6974,14 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6974
6974
|
return 1;
|
|
6975
6975
|
}
|
|
6976
6976
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6977
|
-
_html(`<div${_attr_class(["
|
|
6977
|
+
_html(`<div${_attr_class(["_x", "_eg"])}></div>`);
|
|
6978
6978
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6979
6979
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dW"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6980
6980
|
icon_settings_default({ size: 15 });
|
|
6981
6981
|
_if(() => {
|
|
6982
6982
|
if (input.setupReady === false) {
|
|
6983
6983
|
const $scope17_id = _scope_id();
|
|
6984
|
-
_html(`<span${_attr_class(["
|
|
6984
|
+
_html(`<span${_attr_class(["_y", "_dY"])} title="Machine setup incomplete"></span>`);
|
|
6985
6985
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6986
6986
|
return 0;
|
|
6987
6987
|
}
|
|
@@ -7054,12 +7054,12 @@ var side_nav_default = _template("A", (input) => {
|
|
|
7054
7054
|
});
|
|
7055
7055
|
_resume_branch($scope0_id);
|
|
7056
7056
|
});
|
|
7057
|
-
var iconBtn = "
|
|
7058
|
-
var sectionCount = "_bz
|
|
7059
|
-
var content = "
|
|
7060
|
-
var pageMeta = "
|
|
7061
|
-
var pathMeta = "
|
|
7062
|
-
var dangerHint = "
|
|
7057
|
+
var iconBtn = "_Z _j";
|
|
7058
|
+
var sectionCount = "_bz _H _I";
|
|
7059
|
+
var content = "_ei _bp";
|
|
7060
|
+
var pageMeta = "_ej _bu";
|
|
7061
|
+
var pathMeta = "_em _w";
|
|
7062
|
+
var dangerHint = "_er _R";
|
|
7063
7063
|
//#endregion
|
|
7064
7064
|
//#region src/tags/icons/icon-clipboard.marko
|
|
7065
7065
|
var icon_clipboard_default = _template("U", (input) => {
|
|
@@ -7225,7 +7225,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7225
7225
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7226
7226
|
}, "q8", $scope0_id);
|
|
7227
7227
|
const titleId = _id();
|
|
7228
|
-
_html(`<div${_attr_class("
|
|
7228
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content)}>`);
|
|
7229
7229
|
_set_serialize_reason(286);
|
|
7230
7230
|
let $actions;
|
|
7231
7231
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q16", () => {
|
|
@@ -7261,16 +7261,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7261
7261
|
meta: attrTag({ content: _content_resume("q15", () => {
|
|
7262
7262
|
_scope_reason();
|
|
7263
7263
|
const $scope14_id = _scope_id();
|
|
7264
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7264
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_ek")}>${_escape(ws.name)}${_el_resume($scope14_id, "c")}</span>`);
|
|
7265
7265
|
_if(() => {
|
|
7266
7266
|
if (ws.status !== "active") {
|
|
7267
7267
|
const $scope18_id = _scope_id();
|
|
7268
|
-
_html(`<span${_attr_class(["
|
|
7268
|
+
_html(`<span${_attr_class(["_H", "_J"])}>Archived</span>`);
|
|
7269
7269
|
writeScope($scope18_id, {});
|
|
7270
7270
|
return 0;
|
|
7271
7271
|
}
|
|
7272
7272
|
}, $scope14_id, "d", 1, 1, 1, 0, 1);
|
|
7273
|
-
_html(`<span${_attr_class("
|
|
7273
|
+
_html(`<span${_attr_class("_el")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope14_id, "g")}</span></span>${_el_resume($scope14_id, "a")}`);
|
|
7274
7274
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope14_id, { _: _scope_with_id($scope0_id) })))));
|
|
7275
7275
|
_resume_branch($scope14_id);
|
|
7276
7276
|
}, $scope0_id) })
|
|
@@ -7298,12 +7298,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7298
7298
|
_if(() => {
|
|
7299
7299
|
if (pendingAction && actionStep) {
|
|
7300
7300
|
const $scope11_id = _scope_id();
|
|
7301
|
-
_html(`<p${_attr_class("_bw")}><span${_attr_class("
|
|
7301
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
7302
7302
|
writeScope($scope11_id, {});
|
|
7303
7303
|
return 0;
|
|
7304
7304
|
}
|
|
7305
7305
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7306
|
-
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Workspace</h2></div><div${_attr_class("
|
|
7306
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Workspace</h2></div><div${_attr_class("_eq")}>`);
|
|
7307
7307
|
_if(() => {
|
|
7308
7308
|
if (ws.status === "active") {
|
|
7309
7309
|
const $scope8_id = _scope_id();
|
|
@@ -7321,23 +7321,23 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7321
7321
|
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
7322
7322
|
_html(`<button type=button${_attr_class([
|
|
7323
7323
|
btnLg,
|
|
7324
|
-
"
|
|
7325
|
-
{ ["
|
|
7326
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("
|
|
7324
|
+
"_r",
|
|
7325
|
+
{ ["_q"]: confirmingDelete }
|
|
7326
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7327
7327
|
_set_serialize_reason(1);
|
|
7328
7328
|
const $childScope2 = _peek_scope_id();
|
|
7329
7329
|
icon_refresh_default({
|
|
7330
7330
|
size: 14,
|
|
7331
|
-
class: catalogRefreshing && "
|
|
7331
|
+
class: catalogRefreshing && "_D"
|
|
7332
7332
|
});
|
|
7333
7333
|
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("_bA")}>`);
|
|
7334
7334
|
_for_of(ws.repos, (row) => {
|
|
7335
7335
|
const $scope1_id = _scope_id();
|
|
7336
|
-
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "
|
|
7336
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bF")}><a${_attr_class(["_bG", "_eo"])}${_attr("href", repoWebUrl(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")}`);
|
|
7337
7337
|
_if(() => {
|
|
7338
7338
|
if (row.base_branch !== row.default_branch) {
|
|
7339
7339
|
const $scope21_id = _scope_id();
|
|
7340
|
-
_html(`<span${_attr_class(["
|
|
7340
|
+
_html(`<span${_attr_class(["_H", "_w"])} title="Base branch">`);
|
|
7341
7341
|
icon_branch_default({ size: 12 });
|
|
7342
7342
|
_html(` <!>${_escape(row.base_branch)}${_el_resume($scope21_id, "c")}</span>`);
|
|
7343
7343
|
writeScope($scope21_id, {});
|
|
@@ -7348,16 +7348,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7348
7348
|
_if(() => {
|
|
7349
7349
|
if (busy.has(row.full_name)) {
|
|
7350
7350
|
const $scope22_id = _scope_id();
|
|
7351
|
-
_html(`<span${_attr_class("
|
|
7351
|
+
_html(`<span${_attr_class("_E")}></span>`);
|
|
7352
7352
|
writeScope($scope22_id, {});
|
|
7353
7353
|
return 0;
|
|
7354
7354
|
} else {
|
|
7355
7355
|
const $scope10_id = _scope_id();
|
|
7356
7356
|
_html(`<button${_attr_class([
|
|
7357
7357
|
"_bH",
|
|
7358
|
-
"
|
|
7359
|
-
"
|
|
7360
|
-
{ ["
|
|
7358
|
+
"_2",
|
|
7359
|
+
"_3",
|
|
7360
|
+
{ ["_q"]: confirmingRemove === row.full_name }
|
|
7361
7361
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
7362
7362
|
_if(() => {
|
|
7363
7363
|
if (confirmingRemove === row.full_name) {
|
|
@@ -7387,7 +7387,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7387
7387
|
}, "full_name", $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
7388
7388
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7389
7389
|
const $scope25_id = _scope_id();
|
|
7390
|
-
_html(`<li${_attr_class(["_bC", "_bB"])}><span${_attr_class("
|
|
7390
|
+
_html(`<li${_attr_class(["_bC", "_bB"])}><span${_attr_class("_E")}></span><div${_attr_class("_bD")}><span${_attr_class("_bG")}>Adding <!>${_escape(name)}${_el_resume($scope25_id, "e")}…</span></div></li>`);
|
|
7391
7391
|
writeScope($scope25_id, {});
|
|
7392
7392
|
}, (n) => n, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
7393
7393
|
_html("</ul>");
|
|
@@ -7399,7 +7399,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7399
7399
|
return 0;
|
|
7400
7400
|
}
|
|
7401
7401
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
7402
|
-
_html(`<div${_attr_class("
|
|
7402
|
+
_html(`<div${_attr_class("_en")}>`);
|
|
7403
7403
|
const $childScope3 = _peek_scope_id();
|
|
7404
7404
|
let refreshCatalog = repo_picker_default({
|
|
7405
7405
|
exclude: inWorkspace,
|
|
@@ -7432,20 +7432,20 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7432
7432
|
_html(`</div><ul${_attr_class("_bA")}>`);
|
|
7433
7433
|
_for_of(wsSkills, (s) => {
|
|
7434
7434
|
const $scope3_id = _scope_id();
|
|
7435
|
-
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "
|
|
7435
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bF")}>`);
|
|
7436
7436
|
_if(() => {
|
|
7437
7437
|
if (s.broken) {
|
|
7438
7438
|
const $scope28_id = _scope_id();
|
|
7439
7439
|
_html(`<span${_attr_class([
|
|
7440
|
-
"
|
|
7441
|
-
"
|
|
7440
|
+
"_H",
|
|
7441
|
+
"_J",
|
|
7442
7442
|
tone.danger
|
|
7443
7443
|
])}${_attr("title", `Points into ${s.worktree || "a repo"} that is no longer here`)}>broken link</span>${_el_resume($scope28_id, "a")}`);
|
|
7444
7444
|
writeScope($scope28_id, {});
|
|
7445
7445
|
return 0;
|
|
7446
7446
|
} else if (s.worktree) {
|
|
7447
7447
|
const $scope29_id = _scope_id();
|
|
7448
|
-
_html(`<span${_attr_class(["
|
|
7448
|
+
_html(`<span${_attr_class(["_H", "_w"])}>from <!>${_escape(s.worktree)}${_el_resume($scope29_id, "b")}/</span>`);
|
|
7449
7449
|
writeScope($scope29_id, {});
|
|
7450
7450
|
return 1;
|
|
7451
7451
|
}
|
|
@@ -7453,7 +7453,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7453
7453
|
_if(() => {
|
|
7454
7454
|
if (s.shadows === "global") {
|
|
7455
7455
|
const $scope33_id = _scope_id();
|
|
7456
|
-
_html(`<span${_attr_class("
|
|
7456
|
+
_html(`<span${_attr_class("_H")} title="Used instead of the system skill of the same name">overrides system</span>`);
|
|
7457
7457
|
writeScope($scope33_id, {});
|
|
7458
7458
|
return 0;
|
|
7459
7459
|
}
|
|
@@ -7461,7 +7461,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7461
7461
|
_if(() => {
|
|
7462
7462
|
if (skills && s.agents.length < skills.agents.length) {
|
|
7463
7463
|
const $scope30_id = _scope_id();
|
|
7464
|
-
_html(`<span${_attr_class("
|
|
7464
|
+
_html(`<span${_attr_class("_H")}${_attr("title", `Only for ${s.agents.map(agentLabel).join(", ")}`)}>${_escape(s.agents.map(agentLabel).join(", "))}${_el_resume($scope30_id, "b")} only</span>${_el_resume($scope30_id, "a")}`);
|
|
7465
7465
|
writeScope($scope30_id, {});
|
|
7466
7466
|
return 0;
|
|
7467
7467
|
}
|
|
@@ -7478,7 +7478,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7478
7478
|
_if(() => {
|
|
7479
7479
|
if (s.sourceUrl) {
|
|
7480
7480
|
const $scope32_id = _scope_id();
|
|
7481
|
-
_html(`<a${_attr_class(["_bG", "
|
|
7481
|
+
_html(`<a${_attr_class(["_bG", "_eo"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope32_id, "b")}</a>${_el_resume($scope32_id, "a")}`);
|
|
7482
7482
|
writeScope($scope32_id, {});
|
|
7483
7483
|
return 0;
|
|
7484
7484
|
}
|
|
@@ -7487,16 +7487,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7487
7487
|
_if(() => {
|
|
7488
7488
|
if (busy.has(s.id)) {
|
|
7489
7489
|
const $scope34_id = _scope_id();
|
|
7490
|
-
_html(`<span${_attr_class("
|
|
7490
|
+
_html(`<span${_attr_class("_E")}></span>`);
|
|
7491
7491
|
writeScope($scope34_id, {});
|
|
7492
7492
|
return 0;
|
|
7493
7493
|
} else {
|
|
7494
7494
|
const $scope12_id = _scope_id();
|
|
7495
7495
|
_html(`<button${_attr_class([
|
|
7496
7496
|
"_bH",
|
|
7497
|
-
"
|
|
7498
|
-
"
|
|
7499
|
-
{ ["
|
|
7497
|
+
"_2",
|
|
7498
|
+
"_3",
|
|
7499
|
+
{ ["_q"]: confirmingSkill === s.id }
|
|
7500
7500
|
])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
7501
7501
|
_if(() => {
|
|
7502
7502
|
if (confirmingSkill === s.id) {
|
|
@@ -7534,11 +7534,11 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7534
7534
|
_html(`<ul${_attr_class("_bA")}>`);
|
|
7535
7535
|
_for_of(repoSkills, (s) => {
|
|
7536
7536
|
const $scope5_id = _scope_id();
|
|
7537
|
-
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "
|
|
7537
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bF")}><span${_attr_class(["_bG", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
|
|
7538
7538
|
_if(() => {
|
|
7539
7539
|
if (s.shadows) {
|
|
7540
7540
|
const $scope37_id = _scope_id();
|
|
7541
|
-
_html(`<span${_attr_class("
|
|
7541
|
+
_html(`<span${_attr_class("_H")}${_attr("title", `A ${s.shadows} skill of the same name already exists`)}>name taken</span>${_el_resume($scope37_id, "a")}`);
|
|
7542
7542
|
writeScope($scope37_id, {});
|
|
7543
7543
|
return 0;
|
|
7544
7544
|
}
|
|
@@ -7556,7 +7556,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7556
7556
|
_if(() => {
|
|
7557
7557
|
if (busy.has(s.id)) {
|
|
7558
7558
|
const $scope39_id = _scope_id();
|
|
7559
|
-
_html(`<span${_attr_class("
|
|
7559
|
+
_html(`<span${_attr_class("_E")}></span>`);
|
|
7560
7560
|
writeScope($scope39_id, {});
|
|
7561
7561
|
return 0;
|
|
7562
7562
|
} else if (!s.shadows) {
|
|
@@ -7593,14 +7593,14 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7593
7593
|
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope16_id, "e")}</span></div><ul${_attr_class("_bA")}>`);
|
|
7594
7594
|
_for_of(running, (p) => {
|
|
7595
7595
|
const $scope17_id = _scope_id();
|
|
7596
|
-
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}${_attr("title", p.args)}><span${_attr_class(["_bE", "
|
|
7596
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}${_attr("title", p.args)}><span${_attr_class(["_bE", "_w"])}>${_escape(p.cmd)}${_el_resume($scope17_id, "d")}</span>`);
|
|
7597
7597
|
_if(() => {
|
|
7598
7598
|
if (p.ports.length) {
|
|
7599
7599
|
const $scope40_id = _scope_id();
|
|
7600
7600
|
_html(`<span${_attr_class("_bF")}>`);
|
|
7601
7601
|
_for_of(p.ports, (port) => {
|
|
7602
7602
|
const $scope41_id = _scope_id();
|
|
7603
|
-
_html(`<button${_attr_class(["
|
|
7603
|
+
_html(`<button${_attr_class(["_s", "_ep"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
7604
7604
|
_script($scope41_id, "q24");
|
|
7605
7605
|
writeScope($scope41_id, { d: port });
|
|
7606
7606
|
}, (x) => String(x), $scope40_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7608,7 +7608,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7608
7608
|
return 0;
|
|
7609
7609
|
}
|
|
7610
7610
|
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
7611
|
-
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["_bH", "
|
|
7611
|
+
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["_bH", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7612
7612
|
icon_xmark_default({ size: 14 });
|
|
7613
7613
|
_html(`</button>${_el_resume($scope17_id, "f")}</li>`);
|
|
7614
7614
|
_script($scope17_id, "q25");
|
|
@@ -7689,10 +7689,10 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7689
7689
|
});
|
|
7690
7690
|
_resume_branch($scope0_id);
|
|
7691
7691
|
});
|
|
7692
|
-
var kbtn = "_dV
|
|
7693
|
-
var dpadPaste = "
|
|
7694
|
-
var repeat = "
|
|
7695
|
-
var dpadEsc = "
|
|
7692
|
+
var kbtn = "_dV _0 _j";
|
|
7693
|
+
var dpadPaste = "_fh _fg";
|
|
7694
|
+
var repeat = "_fi _fg";
|
|
7695
|
+
var dpadEsc = "_fk _fg";
|
|
7696
7696
|
//#endregion
|
|
7697
7697
|
//#region src/tags/term-find.marko
|
|
7698
7698
|
var term_find_default = _template("C", (input) => {
|
|
@@ -7729,19 +7729,19 @@ var term_find_default = _template("C", (input) => {
|
|
|
7729
7729
|
const canStep = hasQuery && open;
|
|
7730
7730
|
const keybar = input.placement === "keybar";
|
|
7731
7731
|
_html(`<div${_attr_class([
|
|
7732
|
-
"
|
|
7733
|
-
keybar ? "
|
|
7734
|
-
!open && "
|
|
7735
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7732
|
+
"_gP",
|
|
7733
|
+
keybar ? "_gR" : "_gQ",
|
|
7734
|
+
!open && "_gT"
|
|
7735
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_gK", keybar ? "_gS" : "_gM"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7736
7736
|
if (!open) return;
|
|
7737
7737
|
query = v;
|
|
7738
7738
|
live.query = v;
|
|
7739
7739
|
run(0);
|
|
7740
|
-
}, "C0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7740
|
+
}, "C0", $scope0_id))}${_attr_class([findInput, keybar && "_gU"])} 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 && "_gV"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7741
7741
|
icon_arrow_up_default({ size: 14 });
|
|
7742
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7742
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gV"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7743
7743
|
icon_arrow_down_default({ size: 14 });
|
|
7744
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7744
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_gV"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7745
7745
|
icon_xmark_default({ size: 14 });
|
|
7746
7746
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7747
7747
|
_script($scope0_id, "C4");
|
|
@@ -8154,7 +8154,7 @@ var term_default = _template("D", (input) => {
|
|
|
8154
8154
|
trapOpen = true;
|
|
8155
8155
|
}
|
|
8156
8156
|
}, "D14", $scope0_id);
|
|
8157
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8157
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eS")}><div${_attr_class("_eT")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8158
8158
|
_if(() => {
|
|
8159
8159
|
if (findOpen) {
|
|
8160
8160
|
const $scope12_id = _scope_id();
|
|
@@ -8181,7 +8181,7 @@ var term_default = _template("D", (input) => {
|
|
|
8181
8181
|
_if(() => {
|
|
8182
8182
|
if (uploading) {
|
|
8183
8183
|
const $scope21_id = _scope_id();
|
|
8184
|
-
_html(`<div${_attr_class("
|
|
8184
|
+
_html(`<div${_attr_class("_eZ")}>uploading…</div>`);
|
|
8185
8185
|
writeScope($scope21_id, {});
|
|
8186
8186
|
return 0;
|
|
8187
8187
|
}
|
|
@@ -8189,7 +8189,7 @@ var term_default = _template("D", (input) => {
|
|
|
8189
8189
|
_if(() => {
|
|
8190
8190
|
if (copiedFlash) {
|
|
8191
8191
|
const $scope22_id = _scope_id();
|
|
8192
|
-
_html(`<div${_attr_class("
|
|
8192
|
+
_html(`<div${_attr_class("_eY")}>Copied</div>`);
|
|
8193
8193
|
writeScope($scope22_id, {});
|
|
8194
8194
|
return 0;
|
|
8195
8195
|
}
|
|
@@ -8198,7 +8198,7 @@ var term_default = _template("D", (input) => {
|
|
|
8198
8198
|
_if(() => {
|
|
8199
8199
|
if (trapOpen) {
|
|
8200
8200
|
const $scope11_id = _scope_id();
|
|
8201
|
-
_html(`<div${_attr_class("
|
|
8201
|
+
_html(`<div${_attr_class("_e0")}><div${_attr_class("_e1")}><p${_attr_class("_fl")}>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")}`);
|
|
8202
8202
|
_script($scope11_id, "D26");
|
|
8203
8203
|
_script($scope11_id, "D27");
|
|
8204
8204
|
writeScope($scope11_id, {});
|
|
@@ -8272,7 +8272,7 @@ var term_default = _template("D", (input) => {
|
|
|
8272
8272
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
8273
8273
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
8274
8274
|
}, "D20", $scope4_id);
|
|
8275
|
-
_html(`<button${_attr_class([kbtn, "
|
|
8275
|
+
_html(`<button${_attr_class([kbtn, "_e2"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
8276
8276
|
_set_serialize_reason({
|
|
8277
8277
|
1: $sg__input_agent__OR__input_sessionState,
|
|
8278
8278
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -8283,10 +8283,10 @@ var term_default = _template("D", (input) => {
|
|
|
8283
8283
|
size: 16
|
|
8284
8284
|
});
|
|
8285
8285
|
_html(`<span${_attr_class([
|
|
8286
|
-
"
|
|
8287
|
-
"
|
|
8286
|
+
"_y",
|
|
8287
|
+
"_e3",
|
|
8288
8288
|
phase[sessionPhase(input.sessionState)]
|
|
8289
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["
|
|
8289
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_4", "_e4"])}>`);
|
|
8290
8290
|
_if(() => {
|
|
8291
8291
|
if ((input.sessions || []).length > 0) {
|
|
8292
8292
|
const $scope5_id = _scope_id();
|
|
@@ -8302,11 +8302,11 @@ var term_default = _template("D", (input) => {
|
|
|
8302
8302
|
const $scope6_id = _scope_id();
|
|
8303
8303
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
8304
8304
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
8305
|
-
_html(`<div${_attr_class(["
|
|
8305
|
+
_html(`<div${_attr_class(["_e6", { ["_e5"]: s.id === input.sessionId }])}>`);
|
|
8306
8306
|
_if(() => {
|
|
8307
8307
|
if (renamingId === s.id) {
|
|
8308
8308
|
const $scope24_id = _scope_id();
|
|
8309
|
-
_html(`<span${_attr_class(["
|
|
8309
|
+
_html(`<span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope24_id, "a", $sg__input_sessions)}`);
|
|
8310
8310
|
_set_serialize_reason({
|
|
8311
8311
|
1: $sg__input_sessions,
|
|
8312
8312
|
2: $sg__input_sessions
|
|
@@ -8318,13 +8318,13 @@ var term_default = _template("D", (input) => {
|
|
|
8318
8318
|
});
|
|
8319
8319
|
_html(`<input${_attr_input_value($scope24_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8320
8320
|
renameValue = _new_renameValue;
|
|
8321
|
-
}, "D0", $scope24_id))}${_attr_class(["
|
|
8321
|
+
}, "D0", $scope24_id))}${_attr_class(["_T", "_fa"])} aria-label="Session name">${_el_resume($scope24_id, "c")}`);
|
|
8322
8322
|
_script($scope24_id, "D28");
|
|
8323
8323
|
_subscribe($if_content4__renameValue__closures, writeScope($scope24_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
8324
8324
|
return 0;
|
|
8325
8325
|
} else {
|
|
8326
8326
|
const $scope7_id = _scope_id();
|
|
8327
|
-
_html(`<button${_attr_class("
|
|
8327
|
+
_html(`<button${_attr_class("_e7")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope7_id, "b", $sg__input_sessions)}`);
|
|
8328
8328
|
_set_serialize_reason({
|
|
8329
8329
|
1: $sg__input_sessions,
|
|
8330
8330
|
2: $sg__input_sessions
|
|
@@ -8334,7 +8334,7 @@ var term_default = _template("D", (input) => {
|
|
|
8334
8334
|
agent: activeAgent(s),
|
|
8335
8335
|
size: 14
|
|
8336
8336
|
});
|
|
8337
|
-
_html(`<span${_attr_class("
|
|
8337
|
+
_html(`<span${_attr_class("_e8")}><span${_attr_class("_e_")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
8338
8338
|
_if(() => {
|
|
8339
8339
|
if (s.id === input.sessionId) {
|
|
8340
8340
|
const $scope23_id = _scope_id();
|
|
@@ -8346,7 +8346,7 @@ var term_default = _template("D", (input) => {
|
|
|
8346
8346
|
const $childScope6 = _peek_scope_id();
|
|
8347
8347
|
usage_pcts_default({
|
|
8348
8348
|
agent: plan,
|
|
8349
|
-
class: "
|
|
8349
|
+
class: "_e9"
|
|
8350
8350
|
});
|
|
8351
8351
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
8352
8352
|
return 0;
|
|
@@ -8363,7 +8363,7 @@ var term_default = _template("D", (input) => {
|
|
|
8363
8363
|
_if(() => {
|
|
8364
8364
|
if (input.onRenameSession) {
|
|
8365
8365
|
const $scope25_id = _scope_id();
|
|
8366
|
-
_html(`<button${_attr_class(["
|
|
8366
|
+
_html(`<button${_attr_class(["_fb", "_fc"])} title="Rename session">`);
|
|
8367
8367
|
icon_edit_default({ size: 12 });
|
|
8368
8368
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
8369
8369
|
_script($scope25_id, "D29");
|
|
@@ -8375,9 +8375,9 @@ var term_default = _template("D", (input) => {
|
|
|
8375
8375
|
if (input.onCloseSession) {
|
|
8376
8376
|
const $scope8_id = _scope_id();
|
|
8377
8377
|
_html(`<button${_attr_class([
|
|
8378
|
-
"
|
|
8379
|
-
"
|
|
8380
|
-
{ ["
|
|
8378
|
+
"_fb",
|
|
8379
|
+
"_2",
|
|
8380
|
+
{ ["_q"]: armedClose === s.id }
|
|
8381
8381
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
8382
8382
|
icon_xmark_default({ size: 12 });
|
|
8383
8383
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
@@ -8417,7 +8417,7 @@ var term_default = _template("D", (input) => {
|
|
|
8417
8417
|
return 0;
|
|
8418
8418
|
}
|
|
8419
8419
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
8420
|
-
_html(`<div${_attr_class("
|
|
8420
|
+
_html(`<div${_attr_class("_fd")}><span${_attr_class("_fe")}>New session</span>`);
|
|
8421
8421
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
8422
8422
|
const $scope9_id = _scope_id();
|
|
8423
8423
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -8482,7 +8482,7 @@ var term_default = _template("D", (input) => {
|
|
|
8482
8482
|
overlay: attrTag({ content: _content_resume("D46", () => {
|
|
8483
8483
|
_scope_reason();
|
|
8484
8484
|
const $scope15_id = _scope_id();
|
|
8485
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
8485
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_ff")}>`);
|
|
8486
8486
|
forOf(DPAD, (row) => {
|
|
8487
8487
|
const $scope16_id = _scope_id();
|
|
8488
8488
|
forOf(row, (cell) => {
|
|
@@ -8502,7 +8502,7 @@ var term_default = _template("D", (input) => {
|
|
|
8502
8502
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
8503
8503
|
} else {
|
|
8504
8504
|
const $scope19_id = _scope_id();
|
|
8505
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
8505
|
+
_html(`<button${_attr_class([repeat, { ["_fj"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
8506
8506
|
if (cell.icon === "arrow-up") {
|
|
8507
8507
|
_scope_id();
|
|
8508
8508
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -8642,7 +8642,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
8642
8642
|
let DiffView = null;
|
|
8643
8643
|
const loadDiffView = _resume(() => {
|
|
8644
8644
|
if (DiffView) return;
|
|
8645
|
-
import("./
|
|
8645
|
+
import("./_DBPJnjxF.js").then((m) => {
|
|
8646
8646
|
DiffView = m.default;
|
|
8647
8647
|
});
|
|
8648
8648
|
}, "H6", $scope0_id);
|
|
@@ -9121,7 +9121,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
9121
9121
|
_if(() => {
|
|
9122
9122
|
if (!shownSessions.length && view === "term") {
|
|
9123
9123
|
const $scope7_id = _scope_id();
|
|
9124
|
-
_html(`<div${_attr_class("_bJ")}><span>No sessions in this workspace.</span><button${_attr_class(["
|
|
9124
|
+
_html(`<div${_attr_class("_bJ")}><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>`);
|
|
9125
9125
|
_script($scope7_id, "H51");
|
|
9126
9126
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
9127
9127
|
return 0;
|
|
@@ -9407,7 +9407,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9407
9407
|
};
|
|
9408
9408
|
navNonce++;
|
|
9409
9409
|
}, "c6", $scope0_id);
|
|
9410
|
-
_html(`<div${_attr_class("
|
|
9410
|
+
_html(`<div${_attr_class("_d")}>`);
|
|
9411
9411
|
_if(() => {
|
|
9412
9412
|
if (error) {
|
|
9413
9413
|
const $scope5_id = _scope_id();
|
|
@@ -9431,7 +9431,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9431
9431
|
_if(() => {
|
|
9432
9432
|
if (!selectedId && showSetup) {
|
|
9433
9433
|
const $scope4_id = _scope_id();
|
|
9434
|
-
_html(`<div${_attr_class("
|
|
9434
|
+
_html(`<div${_attr_class("_h")}>`);
|
|
9435
9435
|
_set_serialize_reason(210);
|
|
9436
9436
|
const $childScope = _peek_scope_id();
|
|
9437
9437
|
settings_page_default({
|
|
@@ -9465,7 +9465,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9465
9465
|
};
|
|
9466
9466
|
}, "c11", $scope4_id)
|
|
9467
9467
|
});
|
|
9468
|
-
_html(`<div${_attr_class("
|
|
9468
|
+
_html(`<div${_attr_class("_i")}><button type=button${_attr_class("_o")}>Later, go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
9469
9469
|
_script($scope4_id, "c27");
|
|
9470
9470
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
9471
9471
|
return 0;
|
|
@@ -9490,14 +9490,14 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9490
9490
|
return 1;
|
|
9491
9491
|
}
|
|
9492
9492
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9493
|
-
_html(`<div${_attr_class(["
|
|
9493
|
+
_html(`<div${_attr_class(["_e", { ["_f"]: !selectedId }])}>`);
|
|
9494
9494
|
_for_of(openIds, (id) => {
|
|
9495
9495
|
const $scope1_id = _scope_id();
|
|
9496
9496
|
const ws = workspaces.find((w) => w.id === id);
|
|
9497
9497
|
_if(() => {
|
|
9498
9498
|
if (ws) {
|
|
9499
9499
|
const $scope2_id = _scope_id();
|
|
9500
|
-
_html(`<div${_attr_class("
|
|
9500
|
+
_html(`<div${_attr_class("_g")}${_attr("inert", ws.id !== selectedId)}>`);
|
|
9501
9501
|
_set_serialize_reason(262142);
|
|
9502
9502
|
const $childScope3 = _peek_scope_id();
|
|
9503
9503
|
work_view_default({
|
|
@@ -18597,4 +18597,4 @@ server.listen(port, () => {
|
|
|
18597
18597
|
//#endregion
|
|
18598
18598
|
export {};
|
|
18599
18599
|
|
|
18600
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-
|
|
18600
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-CMazjI1P.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CMazjI1P.css\"",">"],"defer":[2,"/assets/new-DUxUh5q7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DUxUh5q7.js\"","></script>",2,"modulepreload#/assets/_DWACLLAl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWACLLAl.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-CMazjI1P.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CMazjI1P.css\"",">"],"defer":[2,"/assets/settings-DUxUh5q7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DUxUh5q7.js\"","></script>",2,"modulepreload#/assets/_DWACLLAl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWACLLAl.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-CMazjI1P.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CMazjI1P.css\"",">"],"defer":[2,"/assets/w._-DUxUh5q7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DUxUh5q7.js\"","></script>",2,"modulepreload#/assets/_DWACLLAl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWACLLAl.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-CMazjI1P.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CMazjI1P.css\"",">"],"defer":[2,"/assets/w._-BpgzbM86.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BpgzbM86.js\"","></script>",2,"modulepreload#/assets/_DWACLLAl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWACLLAl.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-CMazjI1P.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CMazjI1P.css\"",">"],"defer":[2,"/assets/w-DUxUh5q7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DUxUh5q7.js\"","></script>",2,"modulepreload#/assets/_DWACLLAl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DWACLLAl.js\"",">"]}};
|