@dylanpiercey/work 0.0.138 → 0.0.140
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/README.md +24 -0
- package/bin/work.mjs +4 -0
- package/dist/{_NJRrlQSH.js → _BVHQZ1Ks.js} +4 -4
- package/dist/{_BJg54Xa1.js → _BXzfMZ_J.js} +11 -4
- package/dist/{_BU4viilP.js → _CZd0I4nH.js} +56 -56
- package/dist/_D2thrkJX.js +2 -0
- package/dist/index.mjs +480 -356
- package/dist/public/assets/_8J7bPMB9.js +1 -0
- package/dist/public/assets/_8J7bPMB9.js.br +0 -0
- package/dist/public/assets/{_Dhua8ybj2.js → _AXvUJPqu2.js} +1 -1
- package/dist/public/assets/_AXvUJPqu2.js.br +0 -0
- package/dist/public/assets/{_DnuQIvTk.js → _B-G2jcQS.js} +1 -1
- package/dist/public/assets/_B-G2jcQS.js.br +0 -0
- package/dist/public/assets/_B3yGzEa9.js +1 -0
- package/dist/public/assets/_B3yGzEa9.js.br +0 -0
- package/dist/public/assets/{_3OKw54FH.js → _B9ZAbzhF.js} +1 -1
- package/dist/public/assets/_B9ZAbzhF.js.br +0 -0
- package/dist/public/assets/{_DmgOfIwN.js → _BAC2OLTW.js} +1 -1
- package/dist/public/assets/_BAC2OLTW.js.br +0 -0
- package/dist/public/assets/{_CPTI4WQL2.js → _BAQCbH2P2.js} +1 -1
- package/dist/public/assets/_BAQCbH2P2.js.br +0 -0
- package/dist/public/assets/{_Z4atEQ98.js → _BC1i3jO8.js} +1 -1
- package/dist/public/assets/_BC1i3jO8.js.br +0 -0
- package/dist/public/assets/{_C5TRZT17.js → _BCaOQTDy.js} +1 -1
- package/dist/public/assets/{_DwNwW4jm.js → _BEIP10I4.js} +46 -46
- package/dist/public/assets/_BEIP10I4.js.br +0 -0
- package/dist/public/assets/{_OIJzbHVo.js → _BKuREDTF.js} +1 -1
- package/dist/public/assets/_BKuREDTF.js.br +0 -0
- package/dist/public/assets/{_BcpUdCHG.js → _BMpT9JnR.js} +1 -1
- package/dist/public/assets/_BMpT9JnR.js.br +0 -0
- package/dist/public/assets/{_BEzGQSOa.js → _BbYPTPnv.js} +1 -1
- package/dist/public/assets/_BbYPTPnv.js.br +0 -0
- package/dist/public/assets/{_AiXBpuzB.js → _BcNyP4hq.js} +1 -1
- package/dist/public/assets/_BcNyP4hq.js.br +0 -0
- package/dist/public/assets/{_BysVGK9V2.js → _BfitEsfk2.js} +1 -1
- package/dist/public/assets/_BfitEsfk2.js.br +0 -0
- package/dist/public/assets/{_PcBwrdGV2.js → _Bg6nm0G42.js} +1 -1
- package/dist/public/assets/_Bg6nm0G42.js.br +0 -0
- package/dist/public/assets/{_BSISAs7U2.js → _BgRQhjCQ2.js} +1 -1
- package/dist/public/assets/_BgRQhjCQ2.js.br +0 -0
- package/dist/public/assets/_Bg_QV64o.js +1 -0
- package/dist/public/assets/_Bg_QV64o.js.br +0 -0
- package/dist/public/assets/{_CvFrnNxs.js → _BhFgAjkS.js} +1 -1
- package/dist/public/assets/_BhFgAjkS.js.br +0 -0
- package/dist/public/assets/{_CPQ8yLEU.js → _Bhm39j0U.js} +1 -1
- package/dist/public/assets/_Bhm39j0U.js.br +0 -0
- package/dist/public/assets/_Bmj60xc8.js +1 -0
- package/dist/public/assets/_Bmj60xc8.js.br +0 -0
- package/dist/public/assets/{_kDA0ZntT.js → _BoPD9t5q.js} +1 -1
- package/dist/public/assets/_BoPD9t5q.js.br +0 -0
- package/dist/public/assets/{_C4-Fa9cE2.js → _BufLBhD52.js} +1 -1
- package/dist/public/assets/_BufLBhD52.js.br +0 -0
- package/dist/public/assets/_BuwtIM5I.js +1 -0
- package/dist/public/assets/_BuwtIM5I.js.br +0 -0
- package/dist/public/assets/{_CU93C2BH2.js → _C3Zk3OTU2.js} +1 -1
- package/dist/public/assets/_C3Zk3OTU2.js.br +0 -0
- package/dist/public/assets/_C4Z5tewe.js +1 -0
- package/dist/public/assets/_C4Z5tewe.js.br +0 -0
- package/dist/public/assets/{_BIwmkApM.js → _C7fBne76.js} +1 -1
- package/dist/public/assets/_C7fBne76.js.br +0 -0
- package/dist/public/assets/{_BEQN3C3b2.js → _CHRR_tdf2.js} +1 -1
- package/dist/public/assets/_CHRR_tdf2.js.br +0 -0
- package/dist/public/assets/{_Dml9mocl.js → _CHkTCCZL.js} +1 -1
- package/dist/public/assets/_CHkTCCZL.js.br +0 -0
- package/dist/public/assets/{_CUiuEswY2.js → _CJ9NIpKB2.js} +1 -1
- package/dist/public/assets/_CQ3jYFa7.js +1 -0
- package/dist/public/assets/_CQ3jYFa7.js.br +0 -0
- package/dist/public/assets/_CQtiXk-1.js +1 -0
- package/dist/public/assets/_CQtiXk-1.js.br +0 -0
- package/dist/public/assets/{_B9-bF7w4.js → _CTE7ghx3.js} +1 -1
- package/dist/public/assets/_CTE7ghx3.js.br +0 -0
- package/dist/public/assets/_CTM65Tgs2.js +1 -0
- package/dist/public/assets/_CTM65Tgs2.js.br +0 -0
- package/dist/public/assets/{_cvUAeKFs2.js → _CWfLljks2.js} +1 -1
- package/dist/public/assets/_CWfLljks2.js.br +0 -0
- package/dist/public/assets/{_B9xv7qS42.js → _CXkMfc5M2.js} +1 -1
- package/dist/public/assets/_CXkMfc5M2.js.br +0 -0
- package/dist/public/assets/{_BrvuWmpM2.js → _CZQJ7BmY2.js} +1 -1
- package/dist/public/assets/_CZQJ7BmY2.js.br +0 -0
- package/dist/public/assets/_CcOLUAUB.js +1 -0
- package/dist/public/assets/_CcOLUAUB.js.br +0 -0
- package/dist/public/assets/{_Bpbf18vi.js → _CgAhtyGH.js} +1 -1
- package/dist/public/assets/_CgAhtyGH.js.br +0 -0
- package/dist/public/assets/{_jOkJ6aek2.js → _CmFZdEqe2.js} +1 -1
- package/dist/public/assets/_CmFZdEqe2.js.br +0 -0
- package/dist/public/assets/{_B6Kqixfk2.js → _CmHQ_mnt2.js} +1 -1
- package/dist/public/assets/_Cp2jGFuU.js +1 -0
- package/dist/public/assets/_Cp2jGFuU.js.br +0 -0
- package/dist/public/assets/{_Dd1-18Hp.js → _CpSY65dR.js} +1 -1
- package/dist/public/assets/_CpSY65dR.js.br +0 -0
- package/dist/public/assets/_D2D61dAJ2.js +1 -0
- package/dist/public/assets/_D2D61dAJ2.js.br +0 -0
- package/dist/public/assets/_D4OqQzgl.js +1 -0
- package/dist/public/assets/_D4OqQzgl.js.br +0 -0
- package/dist/public/assets/_D6-73p3r.js +1 -0
- package/dist/public/assets/_D6-73p3r.js.br +0 -0
- package/dist/public/assets/{_DaXvCDxA.js → _DB76xuHC.js} +1 -1
- package/dist/public/assets/_DB76xuHC.js.br +0 -0
- package/dist/public/assets/{_Cl4_PEdC2.js → _DFMDH4tV2.js} +1 -1
- package/dist/public/assets/_DFMDH4tV2.js.br +0 -0
- package/dist/public/assets/{_DXu4guU2.js → _DJ2tTUOp.js} +1 -1
- package/dist/public/assets/_DJ2tTUOp.js.br +0 -0
- package/dist/public/assets/_DKY8j24h.js +1 -0
- package/dist/public/assets/_DKY8j24h.js.br +0 -0
- package/dist/public/assets/{_Dt9ju-f-.js → _DMmYo41H.js} +1 -1
- package/dist/public/assets/_DMmYo41H.js.br +0 -0
- package/dist/public/assets/{_vbrsGoKV.js → _DPI9uiRH.js} +1 -1
- package/dist/public/assets/_DPI9uiRH.js.br +0 -0
- package/dist/public/assets/{_T8YOpcQj2.js → _DTBjw9eZ2.js} +1 -1
- package/dist/public/assets/_DTBjw9eZ2.js.br +0 -0
- package/dist/public/assets/_DUP19um8.js +1 -0
- package/dist/public/assets/_DUP19um8.js.br +0 -0
- package/dist/public/assets/_Dbx8VtKF.js +1 -0
- package/dist/public/assets/_Dbx8VtKF.js.br +0 -0
- package/dist/public/assets/_DmqG9yJU.js +1 -0
- package/dist/public/assets/_DmqG9yJU.js.br +0 -0
- package/dist/public/assets/{_BnB3kxXv2.js → _DnGbQ0u92.js} +1 -1
- package/dist/public/assets/_DnGbQ0u92.js.br +0 -0
- package/dist/public/assets/{_DSR5YMpz.js → _DsmPrDz6.js} +1 -1
- package/dist/public/assets/_DsmPrDz6.js.br +0 -0
- package/dist/public/assets/_DxmtmcQJ.js +1 -0
- package/dist/public/assets/_DxmtmcQJ.js.br +0 -0
- package/dist/public/assets/{_D0T5xgdm.js → _IHwiKLGt.js} +1 -1
- package/dist/public/assets/_IHwiKLGt.js.br +0 -0
- package/dist/public/assets/{_DReNRAce2.js → _NBVVn24L2.js} +1 -1
- package/dist/public/assets/_NBVVn24L2.js.br +0 -0
- package/dist/public/assets/{_n5HhfX_m2.js → _Vg-VYt882.js} +1 -1
- package/dist/public/assets/_Vg-VYt882.js.br +0 -0
- package/dist/public/assets/_VnhmzZ9q.js +89 -0
- package/dist/public/assets/_VnhmzZ9q.js.br +0 -0
- package/dist/public/assets/{_Bd-KABgY.js → _W3k8p4Ek.js} +1 -1
- package/dist/public/assets/_W3k8p4Ek.js.br +0 -0
- package/dist/public/assets/{_BTXpXWX_.js → _YCkwa36v.js} +1 -1
- package/dist/public/assets/_YCkwa36v.js.br +0 -0
- package/dist/public/assets/{_CaX7kwGj.js → _YjXp8Fa7.js} +1 -1
- package/dist/public/assets/_YjXp8Fa7.js.br +0 -0
- package/dist/public/assets/{_DaiUj3cu2.js → _a2HWPwTI2.js} +1 -1
- package/dist/public/assets/_a2HWPwTI2.js.br +0 -0
- package/dist/public/assets/{_B3XWXwYh.js → _aNDhwIJ9.js} +1 -1
- package/dist/public/assets/_aNDhwIJ9.js.br +0 -0
- package/dist/public/assets/{_xEbKAoEJ.js → _bjzjp9qV.js} +1 -1
- package/dist/public/assets/_bjzjp9qV.js.br +0 -0
- package/dist/public/assets/_cJ8FGCbf.js +1 -0
- package/dist/public/assets/_cJ8FGCbf.js.br +0 -0
- package/dist/public/assets/_gGP1uofp.js +1 -0
- package/dist/public/assets/_gGP1uofp.js.br +0 -0
- package/dist/public/assets/_jDIdu88k2.js +1 -0
- package/dist/public/assets/_jDIdu88k2.js.br +0 -0
- package/dist/public/assets/{_pq7cZIB5.js → _pTrFhub3.js} +1 -1
- package/dist/public/assets/_pTrFhub3.js.br +0 -0
- package/dist/public/assets/{_C8z0AqL9.js → _wtrNcQUN.js} +1 -1
- package/dist/public/assets/_wtrNcQUN.js.br +0 -0
- package/dist/public/assets/{_CtoSA4u9.js → _xrYLiFvZ.js} +1 -1
- package/dist/public/assets/_xrYLiFvZ.js.br +0 -0
- package/dist/public/assets/_yDHOPHcI2.js +1 -0
- package/dist/public/assets/_yDHOPHcI2.js.br +0 -0
- package/dist/public/assets/app-page-DD8AAZI2.css +1 -0
- package/dist/public/assets/app-page-DD8AAZI2.css.br +0 -0
- package/dist/public/assets/diff-view-CigyjzyU.css +1 -0
- package/dist/public/assets/diff-view-CigyjzyU.css.br +0 -0
- package/dist/public/assets/new-CeNxYCDk.js +1 -0
- package/dist/public/assets/settings-CeNxYCDk.js +1 -0
- package/dist/public/assets/w-CeNxYCDk.js +1 -0
- package/dist/public/assets/w._-CY06s2qp.js +1 -0
- package/dist/public/assets/w._-CeNxYCDk.js +1 -0
- package/lib/setup/catalog.mjs +3 -2
- package/lib/share/manifest.mjs +3 -3
- package/package.json +1 -1
- package/dist/_B3qThpAM.js +0 -2
- package/dist/public/assets/_3OKw54FH.js.br +0 -0
- package/dist/public/assets/_AiXBpuzB.js.br +0 -0
- package/dist/public/assets/_B3XWXwYh.js.br +0 -0
- package/dist/public/assets/_B7PLqair2.js +0 -1
- package/dist/public/assets/_B7PLqair2.js.br +0 -0
- package/dist/public/assets/_B9-bF7w4.js.br +0 -0
- package/dist/public/assets/_B9xv7qS42.js.br +0 -0
- package/dist/public/assets/_BEQN3C3b2.js.br +0 -0
- package/dist/public/assets/_BEzGQSOa.js.br +0 -0
- package/dist/public/assets/_BIwmkApM.js.br +0 -0
- package/dist/public/assets/_BSISAs7U2.js.br +0 -0
- package/dist/public/assets/_BTXpXWX_.js.br +0 -0
- package/dist/public/assets/_BWxRtsYe.js +0 -1
- package/dist/public/assets/_BWxRtsYe.js.br +0 -0
- package/dist/public/assets/_Ba_fRTxl.js +0 -1
- package/dist/public/assets/_Ba_fRTxl.js.br +0 -0
- package/dist/public/assets/_BcpUdCHG.js.br +0 -0
- package/dist/public/assets/_Bd-KABgY.js.br +0 -0
- package/dist/public/assets/_BmbR7-Sm.js +0 -1
- package/dist/public/assets/_BmbR7-Sm.js.br +0 -0
- package/dist/public/assets/_BnB3kxXv2.js.br +0 -0
- package/dist/public/assets/_Bo25KMr2.js +0 -1
- package/dist/public/assets/_Bo25KMr2.js.br +0 -0
- package/dist/public/assets/_Bpbf18vi.js.br +0 -0
- package/dist/public/assets/_BpidOAFS.js +0 -1
- package/dist/public/assets/_BpidOAFS.js.br +0 -0
- package/dist/public/assets/_BrvuWmpM2.js.br +0 -0
- package/dist/public/assets/_BvJf61W8.js +0 -1
- package/dist/public/assets/_BvJf61W8.js.br +0 -0
- package/dist/public/assets/_BysVGK9V2.js.br +0 -0
- package/dist/public/assets/_C4-Fa9cE2.js.br +0 -0
- package/dist/public/assets/_C8z0AqL9.js.br +0 -0
- package/dist/public/assets/_CDd7pldP.js +0 -1
- package/dist/public/assets/_CDd7pldP.js.br +0 -0
- package/dist/public/assets/_CIL_tvto.js +0 -1
- package/dist/public/assets/_CIL_tvto.js.br +0 -0
- package/dist/public/assets/_CMWNil0b.js +0 -1
- package/dist/public/assets/_CMWNil0b.js.br +0 -0
- package/dist/public/assets/_CPQ8yLEU.js.br +0 -0
- package/dist/public/assets/_CPTI4WQL2.js.br +0 -0
- package/dist/public/assets/_CU93C2BH2.js.br +0 -0
- package/dist/public/assets/_CUgh4Geb.js +0 -1
- package/dist/public/assets/_CUgh4Geb.js.br +0 -0
- package/dist/public/assets/_CYNQgKbT.js +0 -89
- package/dist/public/assets/_CYNQgKbT.js.br +0 -0
- package/dist/public/assets/_CaX7kwGj.js.br +0 -0
- package/dist/public/assets/_CanSxUih.js +0 -1
- package/dist/public/assets/_CanSxUih.js.br +0 -0
- package/dist/public/assets/_Cl4_PEdC2.js.br +0 -0
- package/dist/public/assets/_CtoSA4u9.js.br +0 -0
- package/dist/public/assets/_Cv1rmZqs.js +0 -1
- package/dist/public/assets/_Cv1rmZqs.js.br +0 -0
- package/dist/public/assets/_CvFrnNxs.js.br +0 -0
- package/dist/public/assets/_CxuGj9Kh.js +0 -1
- package/dist/public/assets/_CxuGj9Kh.js.br +0 -0
- package/dist/public/assets/_CyUsS-Ew.js +0 -1
- package/dist/public/assets/_CyUsS-Ew.js.br +0 -0
- package/dist/public/assets/_D0T5xgdm.js.br +0 -0
- package/dist/public/assets/_D8uW-24S.js +0 -1
- package/dist/public/assets/_D8uW-24S.js.br +0 -0
- package/dist/public/assets/_DClX-kzp2.js +0 -1
- package/dist/public/assets/_DClX-kzp2.js.br +0 -0
- package/dist/public/assets/_DE6OIuaj.js +0 -1
- package/dist/public/assets/_DE6OIuaj.js.br +0 -0
- package/dist/public/assets/_DReNRAce2.js.br +0 -0
- package/dist/public/assets/_DSR5YMpz.js.br +0 -0
- package/dist/public/assets/_DXu4guU2.js.br +0 -0
- package/dist/public/assets/_DaXvCDxA.js.br +0 -0
- package/dist/public/assets/_DaiUj3cu2.js.br +0 -0
- package/dist/public/assets/_Dd1-18Hp.js.br +0 -0
- package/dist/public/assets/_DffLVIPj2.js +0 -1
- package/dist/public/assets/_DffLVIPj2.js.br +0 -0
- package/dist/public/assets/_Dhua8ybj2.js.br +0 -0
- package/dist/public/assets/_DmgOfIwN.js.br +0 -0
- package/dist/public/assets/_Dml9mocl.js.br +0 -0
- package/dist/public/assets/_DnuQIvTk.js.br +0 -0
- package/dist/public/assets/_Dt9ju-f-.js.br +0 -0
- package/dist/public/assets/_Dtcj4Vdb2.js +0 -1
- package/dist/public/assets/_Dtcj4Vdb2.js.br +0 -0
- package/dist/public/assets/_DwNwW4jm.js.br +0 -0
- package/dist/public/assets/_DwsYmrLF.js +0 -1
- package/dist/public/assets/_DwsYmrLF.js.br +0 -0
- package/dist/public/assets/_OIJzbHVo.js.br +0 -0
- package/dist/public/assets/_PcBwrdGV2.js.br +0 -0
- package/dist/public/assets/_SSrroa0Z.js +0 -1
- package/dist/public/assets/_SSrroa0Z.js.br +0 -0
- package/dist/public/assets/_T8YOpcQj2.js.br +0 -0
- package/dist/public/assets/_Z4atEQ98.js.br +0 -0
- package/dist/public/assets/_cvUAeKFs2.js.br +0 -0
- package/dist/public/assets/_jOkJ6aek2.js.br +0 -0
- package/dist/public/assets/_kDA0ZntT.js.br +0 -0
- package/dist/public/assets/_n5HhfX_m2.js.br +0 -0
- package/dist/public/assets/_pq7cZIB5.js.br +0 -0
- package/dist/public/assets/_quIdZaH6.js +0 -1
- package/dist/public/assets/_quIdZaH6.js.br +0 -0
- package/dist/public/assets/_vbrsGoKV.js.br +0 -0
- package/dist/public/assets/_xEbKAoEJ.js.br +0 -0
- package/dist/public/assets/app-page-D0e78Fao.css +0 -1
- package/dist/public/assets/app-page-D0e78Fao.css.br +0 -0
- package/dist/public/assets/diff-view-Csph_Zzt.css +0 -1
- package/dist/public/assets/diff-view-Csph_Zzt.css.br +0 -0
- package/dist/public/assets/new-5LeFVg_7.js +0 -1
- package/dist/public/assets/settings-5LeFVg_7.js +0 -1
- package/dist/public/assets/w-5LeFVg_7.js +0 -1
- package/dist/public/assets/w._-5LeFVg_7.js +0 -1
- package/dist/public/assets/w._-CYXtcUyN.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
|
-
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, gt as gh, h as sendToSession, ht as TMUX_SOCKET, i as disposeSessions, 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, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, 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, vt as run, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, gt as gh, h as sendToSession, ht as TMUX_SOCKET, i as disposeSessions, 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, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, 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, vt as run, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_BXzfMZ_J.js";
|
|
3
|
+
import { $ as _attr_or, A as iconSize, At as _serialize_if, B as iconBtnXs, Bt as writeScope, C as setWorkspaceTab, Ct as _resume_branch, D as toast_default, Dt as _script, E as workspaceTab, Et as _scope_with_id, F as btnLg, Ft as _trailers, G as $global, H as metaTrunc, I as btnSm, It as _var, K as _attr, L as chipBtn, Lt as attrTag, M as repoLabel, Mt as _subscribe, N as repoWebUrl$1, Nt as _template, O as icon_xmark_default, Ot as _sep, P as setPrimaryHost, Pt as _to_text, Q as _attr_option_value, Rt as forOf, S as setTheme, St as _resume, T as theme, Tt as _scope_reason, U as phase, V as inputLg, W as tone, X as _attr_input_value, Y as _attr_input_checked, Z as _attr_nonce, _t as _hoist_read_error, at as _content, bt as _if, c as icon_search_default, d as icon_refresh_default, dt as _escape, et as _attr_select_value, f as iconBtn$1, ft as _escape_script, gt as _hoist, ht as _for_of, i as icon_sidebar_default, it as _attrs_partial, j as parseRepoUrl, jt as _set_serialize_reason, k as icon_base_default, kt as _serialize_guard, l as icon_chevron_right_default, lt as _el_read_error, m as sectionCount, mt as _flush_head, n as findIconBtn, nt as _attr_textarea_value, o as rankRepos, ot as _content_resume, p as row, pt as _existing_scope, q as _attr_class, r as findInput, rt as _attrs, s as icon_arrow_up_default, st as _dynamic_tag, t as icon_arrow_down_default, tt as _attr_style, u as icon_back_default, ut as _el_resume, vt as _html, w as sideNavOpen, wt as _scope_id, xt as _peek_scope_id, y as ignoredSsoOrgs, yt as _id, z as iconBtnRow, zt as withPageAssets } from "./_BVHQZ1Ks.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
|
-
import { createServer } from "node:http";
|
|
5
|
+
import http, { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import zlib from "node:zlib";
|
|
@@ -12,6 +12,7 @@ import os from "node:os";
|
|
|
12
12
|
import { spawn } from "node:child_process";
|
|
13
13
|
import fs$1 from "node:fs/promises";
|
|
14
14
|
import crypto, { createHash } from "node:crypto";
|
|
15
|
+
import net from "node:net";
|
|
15
16
|
import pty from "node-pty";
|
|
16
17
|
//#region node_modules/.pnpm/@marko+run@0.11.10_@types+node@26.2.0_esbuild@0.27.7_marko@6.3.43/node_modules/@marko/run/dist/adapter/middleware.js
|
|
17
18
|
function getOrigin(req, trustProxy) {
|
|
@@ -3880,10 +3881,49 @@ var _middleware_default$2 = Run.ALL((ctx, next) => {
|
|
|
3880
3881
|
return next();
|
|
3881
3882
|
});
|
|
3882
3883
|
//#endregion
|
|
3884
|
+
//#region src/server/origin.ts
|
|
3885
|
+
/**
|
|
3886
|
+
* Cross-origin guard for the parts of work that act with the user's
|
|
3887
|
+
* session: the API's writes and the terminal / events websockets.
|
|
3888
|
+
*
|
|
3889
|
+
* Auth in front of work is a cookie, and once ports are proxied on
|
|
3890
|
+
* `<port>.<host>` that cookie is shared across the whole `.<host>` domain
|
|
3891
|
+
* — a page a workspace serves (any code an agent ran) sits on a sibling
|
|
3892
|
+
* origin and carries it. CORS stops such a page from *reading* API
|
|
3893
|
+
* responses, but not from sending simple POSTs, and websockets have no
|
|
3894
|
+
* CORS at all: an `Origin` check is the only thing between a dev server
|
|
3895
|
+
* and a terminal on this machine. Browsers always send `Origin` on
|
|
3896
|
+
* websocket upgrades and on cross-site POSTs; a request without one is a
|
|
3897
|
+
* CLI or a same-origin GET and passes.
|
|
3898
|
+
*/
|
|
3899
|
+
function crossOrigin(headers) {
|
|
3900
|
+
const origin = headers.origin;
|
|
3901
|
+
if (!origin || origin === "null") return false;
|
|
3902
|
+
const host = String(headers.host || "");
|
|
3903
|
+
let originHost;
|
|
3904
|
+
try {
|
|
3905
|
+
originHost = new URL(origin).host;
|
|
3906
|
+
} catch {
|
|
3907
|
+
return true;
|
|
3908
|
+
}
|
|
3909
|
+
if (originHost === host) return false;
|
|
3910
|
+
const forwarded = String(headers["x-forwarded-host"] || "").split(",")[0];
|
|
3911
|
+
return originHost !== forwarded.trim();
|
|
3912
|
+
}
|
|
3913
|
+
//#endregion
|
|
3883
3914
|
//#region src/routes/api/+middleware.ts
|
|
3884
3915
|
/** API error boundary: thrown errors become `{ error }` JSON responses,
|
|
3885
|
-
* with an `httpError`'s status or 500.
|
|
3916
|
+
* with an `httpError`'s status or 500. Writes from another origin are
|
|
3917
|
+
* refused first (see server/origin.ts). */
|
|
3886
3918
|
var _middleware_default$1 = Run.ALL(async (ctx, next) => {
|
|
3919
|
+
if (ctx.request.method !== "GET" && ctx.request.method !== "HEAD") {
|
|
3920
|
+
const h = ctx.request.headers;
|
|
3921
|
+
if (crossOrigin({
|
|
3922
|
+
origin: h.get("origin") ?? void 0,
|
|
3923
|
+
host: h.get("host") ?? void 0,
|
|
3924
|
+
"x-forwarded-host": h.get("x-forwarded-host") ?? void 0
|
|
3925
|
+
})) return Response.json({ error: "cross-origin request refused" }, { status: 403 });
|
|
3926
|
+
}
|
|
3887
3927
|
try {
|
|
3888
3928
|
return await next();
|
|
3889
3929
|
} catch (err) {
|
|
@@ -3957,7 +3997,7 @@ var _layout_default = _template("a", (input) => {
|
|
|
3957
3997
|
const tint = accent.slice(1);
|
|
3958
3998
|
const iconHref = `/api/instance/icon${tint && `?v=${tint}`}`;
|
|
3959
3999
|
const touchIconHref = `/api/instance/icon-png?art=apple${tint && `&v=${tint}`}`;
|
|
3960
|
-
_html(`<!doctype html><html lang=en${theme === "system" ? "" : _attr("data-theme", theme)}${accent ? _attr_style(`--accent:${accent}`) : ""}><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content">`);
|
|
4000
|
+
_html(`<!doctype html><html lang=en${theme === "system" ? "" : _attr("data-theme", theme)}${accent ? _attr_style(`--accent:${accent}`) : ""}><head><meta charset=utf-8><meta name=work-port-hosts${_attr("content", config.portHosts)}><meta name=viewport content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content">`);
|
|
3961
4001
|
if (theme === "light") {
|
|
3962
4002
|
_scope_id();
|
|
3963
4003
|
_html(`<meta name=theme-color${_attr_or("content", accent, " content=#fafafa")}>`);
|
|
@@ -3969,7 +4009,7 @@ var _layout_default = _template("a", (input) => {
|
|
|
3969
4009
|
_html(`<meta name=theme-color media="(prefers-color-scheme: light)"${_attr_or("content", accent, " content=#fafafa")}><meta name=theme-color media="(prefers-color-scheme: dark)"${_attr_or("content", accent, " content=#131316")}>`);
|
|
3970
4010
|
}
|
|
3971
4011
|
_html(`<link rel=manifest href=/api/instance/manifest crossorigin=use-credentials><link rel=icon${_attr("href", iconHref)} type=image/svg+xml><link rel=apple-touch-icon${_attr("href", touchIconHref)}><meta name=apple-mobile-web-app-title${_attr("content", name)}><title>${_escape(name)}</title>${_flush_head()}</head><body>`);
|
|
3972
|
-
_dynamic_tag($scope0_id, "
|
|
4012
|
+
_dynamic_tag($scope0_id, "h", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0));
|
|
3973
4013
|
_trailers("</body></html>");
|
|
3974
4014
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
|
|
3975
4015
|
}, 1);
|
|
@@ -4249,35 +4289,35 @@ function applyInstance(inst) {
|
|
|
4249
4289
|
}
|
|
4250
4290
|
//#endregion
|
|
4251
4291
|
//#region src/tags/settings-page.css.ts
|
|
4252
|
-
var content$2 = "
|
|
4253
|
-
var agentGrid = "
|
|
4254
|
-
var toolGrid = "_cN
|
|
4255
|
-
var toolRow = "_cO
|
|
4256
|
-
var themeSeg = "
|
|
4257
|
-
var swatches = "
|
|
4258
|
-
var checkList = "
|
|
4259
|
-
var flatCardRow = "
|
|
4260
|
-
var pop$1 = "
|
|
4261
|
-
var spinner = "
|
|
4262
|
-
var busy = "
|
|
4263
|
-
var pop = "
|
|
4292
|
+
var content$2 = "_cQ _bx _by";
|
|
4293
|
+
var agentGrid = "_cT _bI";
|
|
4294
|
+
var toolGrid = "_c3 _cN";
|
|
4295
|
+
var toolRow = "_c4 _cO";
|
|
4296
|
+
var themeSeg = "_dq _bc";
|
|
4297
|
+
var swatches = "_dy _bc";
|
|
4298
|
+
var checkList = "_dP _bI";
|
|
4299
|
+
var flatCardRow = "_cP _cO";
|
|
4300
|
+
var pop$1 = "_co _8";
|
|
4301
|
+
var spinner = "_cr _0 _E";
|
|
4302
|
+
var busy = "_cv _cu";
|
|
4303
|
+
var pop = "_cx _8";
|
|
4264
4304
|
//#endregion
|
|
4265
4305
|
//#region src/tags/page-head.marko
|
|
4266
4306
|
var page_head_default = _template("t", (input) => {
|
|
4267
4307
|
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);
|
|
4268
4308
|
const $scope0_id = _scope_id();
|
|
4269
|
-
_html(`<header${_attr_class("
|
|
4309
|
+
_html(`<header${_attr_class("_bz")}>`);
|
|
4270
4310
|
_if(() => {
|
|
4271
4311
|
if (input.backHref) {
|
|
4272
4312
|
const $scope1_id = _scope_id();
|
|
4273
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
4313
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_ea"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4274
4314
|
icon_back_default({ size: 16 });
|
|
4275
4315
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
4276
4316
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
4277
4317
|
return 0;
|
|
4278
4318
|
} else if (input.onBack) {
|
|
4279
4319
|
const $scope2_id = _scope_id();
|
|
4280
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
4320
|
+
_html(`<button${_attr_class([iconBtnRow, "_ea"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
4281
4321
|
icon_back_default({ size: 16 });
|
|
4282
4322
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
4283
4323
|
_script($scope2_id, "t0");
|
|
@@ -4285,11 +4325,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
4285
4325
|
return 1;
|
|
4286
4326
|
}
|
|
4287
4327
|
}, $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);
|
|
4288
|
-
_html(`<div${_attr_class("
|
|
4328
|
+
_html(`<div${_attr_class("_bB")}><h1${_attr("id", input.titleId)}${_attr_class("_bA")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
4289
4329
|
_if(() => {
|
|
4290
4330
|
if (input.meta) {
|
|
4291
4331
|
const $scope3_id = _scope_id();
|
|
4292
|
-
_html(`<p${_attr_class("
|
|
4332
|
+
_html(`<p${_attr_class("_bC")}>`);
|
|
4293
4333
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
4294
4334
|
_html("</p>");
|
|
4295
4335
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4300,7 +4340,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
4300
4340
|
_if(() => {
|
|
4301
4341
|
if (input.actions) {
|
|
4302
4342
|
const $scope4_id = _scope_id();
|
|
4303
|
-
_html(`<div${_attr_class("
|
|
4343
|
+
_html(`<div${_attr_class("_bD")}>`);
|
|
4304
4344
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4305
4345
|
_html("</div>");
|
|
4306
4346
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4368,7 +4408,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
4368
4408
|
n: $badge__closures
|
|
4369
4409
|
});
|
|
4370
4410
|
});
|
|
4371
|
-
var usageNote = "
|
|
4411
|
+
var usageNote = "_gf _V";
|
|
4372
4412
|
//#endregion
|
|
4373
4413
|
//#region src/tags/icons/icon-warning.marko
|
|
4374
4414
|
var icon_warning_default = _template("ob", (input) => {
|
|
@@ -4398,11 +4438,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4398
4438
|
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);
|
|
4399
4439
|
const $scope0_id = _scope_id();
|
|
4400
4440
|
const agent = input.agent;
|
|
4401
|
-
_html(`<div${_attr_class(["
|
|
4441
|
+
_html(`<div${_attr_class(["_f_", { ["_ga"]: input.hideName }])}><div${_attr_class("_gb")}>`);
|
|
4402
4442
|
_if(() => {
|
|
4403
4443
|
if (!input.hideName) {
|
|
4404
4444
|
const $scope1_id = _scope_id();
|
|
4405
|
-
_html(`<strong${_attr_class("
|
|
4445
|
+
_html(`<strong${_attr_class("_gu")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4406
4446
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4407
4447
|
return 0;
|
|
4408
4448
|
}
|
|
@@ -4410,7 +4450,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4410
4450
|
_if(() => {
|
|
4411
4451
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4412
4452
|
const $scope2_id = _scope_id();
|
|
4413
|
-
_html(`<span${_attr_class("
|
|
4453
|
+
_html(`<span${_attr_class("_gc")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4414
4454
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4415
4455
|
return 0;
|
|
4416
4456
|
}
|
|
@@ -4418,21 +4458,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
4418
4458
|
_if(() => {
|
|
4419
4459
|
if (agent.stale_seconds != null) {
|
|
4420
4460
|
const $scope3_id = _scope_id();
|
|
4421
|
-
_html(`<span${_attr_class("
|
|
4461
|
+
_html(`<span${_attr_class("_gd")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4422
4462
|
icon_warning_default({ size: 12 });
|
|
4423
4463
|
_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)}`);
|
|
4424
4464
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4425
4465
|
return 0;
|
|
4426
4466
|
}
|
|
4427
4467
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4428
|
-
_html(`</div><div${_attr_class(["
|
|
4468
|
+
_html(`</div><div${_attr_class(["_ge", { ["_gv"]: agent.stale_seconds != null }])}>`);
|
|
4429
4469
|
_for_of(agent.windows || [], (win) => {
|
|
4430
4470
|
const $scope4_id = _scope_id();
|
|
4431
4471
|
const pct = pctText(win.used_percent);
|
|
4432
4472
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4433
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4434
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4435
|
-
_html(`<div${_attr_class("
|
|
4473
|
+
const fillClass = win.used_percent >= 90 ? "_gn" : win.used_percent >= 70 ? "_gm" : win.used_percent >= 40 ? "_gl" : "_gk";
|
|
4474
|
+
const pctClass = win.used_percent >= 90 ? "_gs" : win.used_percent >= 70 ? "_gr" : win.used_percent >= 40 ? "_gq" : "_gp";
|
|
4475
|
+
_html(`<div${_attr_class("_gg")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gh")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_gi")}><span${_attr_class(["_gj", 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(["_go", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_gt")}>`);
|
|
4436
4476
|
_if(() => {
|
|
4437
4477
|
if (label) {
|
|
4438
4478
|
const $scope6_id = _scope_id();
|
|
@@ -4549,14 +4589,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4549
4589
|
localCode = null;
|
|
4550
4590
|
}
|
|
4551
4591
|
}, "C0", $scope0_id);
|
|
4552
|
-
_html(`<div${_attr_class(["
|
|
4592
|
+
_html(`<div${_attr_class(["_fY", input.class])}>`);
|
|
4553
4593
|
_for_of(input.items, (s) => {
|
|
4554
4594
|
const $scope1_id = _scope_id();
|
|
4555
|
-
_html(`<div${_attr_class("
|
|
4595
|
+
_html(`<div${_attr_class("_fZ")}><span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_escape(s.org)}${_el_resume($scope1_id, "d", $sg__input_items)}</span><span${_attr_class(["_f3", "_f4"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
4556
4596
|
_if(() => {
|
|
4557
4597
|
if (!busy) {
|
|
4558
4598
|
const $scope2_id = _scope_id();
|
|
4559
|
-
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
4599
|
+
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_f5"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
4560
4600
|
_script($scope2_id, "C1");
|
|
4561
4601
|
writeScope($scope2_id, {});
|
|
4562
4602
|
return 0;
|
|
@@ -4571,13 +4611,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4571
4611
|
_if(() => {
|
|
4572
4612
|
if (localBusy && localCode) {
|
|
4573
4613
|
const $scope4_id = _scope_id();
|
|
4574
|
-
_html(`<div${_attr_class(["
|
|
4614
|
+
_html(`<div${_attr_class(["_fZ", "_f6"])}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_f7")}>${_escape(localCode)}${_el_resume($scope4_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_f8")}>${_escape(host)}${_el_resume($scope4_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
4575
4615
|
_script($scope4_id, "C2");
|
|
4576
4616
|
writeScope($scope4_id, {});
|
|
4577
4617
|
return 0;
|
|
4578
4618
|
} else if (localBusy) {
|
|
4579
4619
|
const $scope6_id = _scope_id();
|
|
4580
|
-
_html(`<div${_attr_class(["
|
|
4620
|
+
_html(`<div${_attr_class(["_fZ", "_f6"])}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</div>`);
|
|
4581
4621
|
writeScope($scope6_id, {});
|
|
4582
4622
|
return 1;
|
|
4583
4623
|
}
|
|
@@ -4585,14 +4625,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
4585
4625
|
_if(() => {
|
|
4586
4626
|
if (localError) {
|
|
4587
4627
|
const $scope5_id = _scope_id();
|
|
4588
|
-
_html(`<p${_attr_class(["
|
|
4628
|
+
_html(`<p${_attr_class(["_fZ", "_f9"])}>${_escape(localError)}${_el_resume($scope5_id, "b")}</p>`);
|
|
4589
4629
|
writeScope($scope5_id, {});
|
|
4590
4630
|
return 0;
|
|
4591
4631
|
}
|
|
4592
4632
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
4593
4633
|
_for_of(skipped, (s) => {
|
|
4594
4634
|
const $scope3_id = _scope_id();
|
|
4595
|
-
_html(`<div${_attr_class(["
|
|
4635
|
+
_html(`<div${_attr_class(["_fZ", "_f0"])}><span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_escape(s.org)}${_el_resume($scope3_id, "d", $sg__input_skipped)}</span><span${_attr_class("_f3")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_f5"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
4596
4636
|
_script($scope3_id, "C3");
|
|
4597
4637
|
writeScope($scope3_id, {
|
|
4598
4638
|
i: s?.org,
|
|
@@ -4626,7 +4666,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4626
4666
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
4627
4667
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
4628
4668
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
4629
|
-
_html(`<li${_attr_class("
|
|
4669
|
+
_html(`<li${_attr_class("_ct")}>`);
|
|
4630
4670
|
_if(() => {
|
|
4631
4671
|
if (input.busy != null) {
|
|
4632
4672
|
const $scope1_id = _scope_id();
|
|
@@ -4636,20 +4676,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4636
4676
|
} else {
|
|
4637
4677
|
const $scope2_id = _scope_id();
|
|
4638
4678
|
const popId = _id();
|
|
4639
|
-
_html(`<button${_attr_class("
|
|
4679
|
+
_html(`<button${_attr_class("_cu")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_escape(input.name)}${_el_resume($scope2_id, "b", $sg__input_name)}`);
|
|
4640
4680
|
_if(() => {
|
|
4641
4681
|
if (input.hint) {
|
|
4642
4682
|
const $scope3_id = _scope_id();
|
|
4643
|
-
_html(`<span${_attr_class("
|
|
4683
|
+
_html(`<span${_attr_class("_cw")}>${_escape(input.hint)}${_el_resume($scope3_id, "b", $sg__input_hint)}</span>`);
|
|
4644
4684
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
4645
4685
|
return 0;
|
|
4646
4686
|
}
|
|
4647
4687
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
4648
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
4688
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_bM", "_w"])}>${_escape(input.name)}${_el_resume($scope2_id, "f", $sg__input_name)}</span>`);
|
|
4649
4689
|
_if(() => {
|
|
4650
4690
|
if (input.description) {
|
|
4651
4691
|
const $scope4_id = _scope_id();
|
|
4652
|
-
_html(`<span${_attr_class("
|
|
4692
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", input.description)}>${_escape(input.description)}${_el_resume($scope4_id, "b", $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
4653
4693
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
4654
4694
|
return 0;
|
|
4655
4695
|
}
|
|
@@ -4657,12 +4697,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4657
4697
|
_if(() => {
|
|
4658
4698
|
if (input.sourceUrl) {
|
|
4659
4699
|
const $scope5_id = _scope_id();
|
|
4660
|
-
_html(`<a${_attr_class(["
|
|
4700
|
+
_html(`<a${_attr_class(["_bO", "_I"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_escape(input.source)}${_el_resume($scope5_id, "b", $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
4661
4701
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
4662
4702
|
return 0;
|
|
4663
4703
|
} else if (input.source) {
|
|
4664
4704
|
const $scope6_id = _scope_id();
|
|
4665
|
-
_html(`<span${_attr_class("
|
|
4705
|
+
_html(`<span${_attr_class("_bO")}>${_escape(input.source)}${_el_resume($scope6_id, "b", $sg__input_source)}</span>`);
|
|
4666
4706
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
4667
4707
|
_: _scope_with_id($scope2_id),
|
|
4668
4708
|
Cs: $si__input_source && 1
|
|
@@ -4670,7 +4710,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4670
4710
|
return 1;
|
|
4671
4711
|
} else if (input.noteLocal) {
|
|
4672
4712
|
const $scope10_id = _scope_id();
|
|
4673
|
-
_html(`<span${_attr_class(["
|
|
4713
|
+
_html(`<span${_attr_class(["_bO", "_v"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
4674
4714
|
_serialize_if($scope0_reason, 9) && writeScope($scope10_id, {});
|
|
4675
4715
|
return 2;
|
|
4676
4716
|
}
|
|
@@ -4678,7 +4718,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4678
4718
|
_if(() => {
|
|
4679
4719
|
if (input.tags) {
|
|
4680
4720
|
const $scope7_id = _scope_id();
|
|
4681
|
-
_html(`<span${_attr_class("
|
|
4721
|
+
_html(`<span${_attr_class("_bN")}>`);
|
|
4682
4722
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
4683
4723
|
_html("</span>");
|
|
4684
4724
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4688,7 +4728,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4688
4728
|
_if(() => {
|
|
4689
4729
|
if (input.actions) {
|
|
4690
4730
|
const $scope8_id = _scope_id();
|
|
4691
|
-
_html(`<div${_attr_class("
|
|
4731
|
+
_html(`<div${_attr_class("_cy")}>`);
|
|
4692
4732
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
4693
4733
|
_html("</div>");
|
|
4694
4734
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -4731,7 +4771,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
4731
4771
|
});
|
|
4732
4772
|
//#endregion
|
|
4733
4773
|
//#region src/tags/prompt-dialog.css.ts
|
|
4734
|
-
var promptDlg = "
|
|
4774
|
+
var promptDlg = "_fX _eI";
|
|
4735
4775
|
//#endregion
|
|
4736
4776
|
//#region src/tags/dialog-close.marko
|
|
4737
4777
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -4755,7 +4795,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4755
4795
|
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;
|
|
4756
4796
|
const dismissable = input.dismissable !== false;
|
|
4757
4797
|
let open = input.open;
|
|
4758
|
-
_html(`<dialog${_attr_class(["
|
|
4798
|
+
_html(`<dialog${_attr_class(["_eH", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4759
4799
|
...htmlInput,
|
|
4760
4800
|
open: null
|
|
4761
4801
|
}, {
|
|
@@ -4765,20 +4805,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
4765
4805
|
closedby: 1,
|
|
4766
4806
|
"on-cancel": 1,
|
|
4767
4807
|
"on-close": 1
|
|
4768
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4808
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_eK")}>`);
|
|
4769
4809
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4770
4810
|
_html("</div>");
|
|
4771
4811
|
_if(() => {
|
|
4772
4812
|
if (footer) {
|
|
4773
4813
|
const $scope1_id = _scope_id();
|
|
4774
|
-
_html(`<form method=dialog${_attr_class("
|
|
4814
|
+
_html(`<form method=dialog${_attr_class("_eL")}>`);
|
|
4775
4815
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4776
4816
|
_html("</form>");
|
|
4777
4817
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4778
4818
|
return 0;
|
|
4779
4819
|
} else if (input.openChange) {
|
|
4780
4820
|
const $scope2_id = _scope_id();
|
|
4781
|
-
_html(`<form method=dialog${_attr_class("
|
|
4821
|
+
_html(`<form method=dialog${_attr_class("_eL")}>`);
|
|
4782
4822
|
dialog_close_default({
|
|
4783
4823
|
class: ["_o", "_p"],
|
|
4784
4824
|
content: _content("r0", () => {
|
|
@@ -4861,7 +4901,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
4861
4901
|
content: _content("u6", () => {
|
|
4862
4902
|
_scope_reason();
|
|
4863
4903
|
const $scope2_id = _scope_id();
|
|
4864
|
-
_html(`<h2${_attr_class("
|
|
4904
|
+
_html(`<h2${_attr_class("_eJ")}${_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) => {
|
|
4865
4905
|
value = _new_value;
|
|
4866
4906
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4867
4907
|
_script($scope2_id, "u4");
|
|
@@ -5381,7 +5421,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5381
5421
|
const githubId = _id();
|
|
5382
5422
|
const backupId = _id();
|
|
5383
5423
|
const machineId = _id();
|
|
5384
|
-
_html(`<div${_attr_class("
|
|
5424
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content$2)}>`);
|
|
5385
5425
|
_set_serialize_reason({
|
|
5386
5426
|
0: _serialize_guard($scope0_reason, 4),
|
|
5387
5427
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5393,7 +5433,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5393
5433
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x43", () => {
|
|
5394
5434
|
_scope_reason();
|
|
5395
5435
|
const $scope5_id = _scope_id();
|
|
5396
|
-
_html(`<span${_attr_class("
|
|
5436
|
+
_html(`<span${_attr_class("_cS")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope5_id, "b")}.`);
|
|
5397
5437
|
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
5398
5438
|
_resume_branch($scope5_id);
|
|
5399
5439
|
}, $scope0_id) });
|
|
@@ -5446,16 +5486,16 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5446
5486
|
_if(() => {
|
|
5447
5487
|
if (selfUpdatePending || selfUpdating) {
|
|
5448
5488
|
const $scope45_id = _scope_id();
|
|
5449
|
-
_html(`<div${_attr_class("
|
|
5489
|
+
_html(`<div${_attr_class("_du")} role=status><div${_attr_class("_dv")}>`);
|
|
5450
5490
|
_if(() => {
|
|
5451
5491
|
if (selfUpdating) {
|
|
5452
5492
|
const $scope78_id = _scope_id();
|
|
5453
|
-
_html(`<span${_attr_class("
|
|
5493
|
+
_html(`<span${_attr_class("_dw")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_dx")}>The app restarts and reloads when it is done.</span>`);
|
|
5454
5494
|
writeScope($scope78_id, {});
|
|
5455
5495
|
return 0;
|
|
5456
5496
|
} else {
|
|
5457
5497
|
const $scope46_id = _scope_id();
|
|
5458
|
-
_html(`<span${_attr_class("
|
|
5498
|
+
_html(`<span${_attr_class("_dw")}>Update available</span><span${_attr_class("_dx")}>v<!>${_escape(self.version)}${_el_resume($scope46_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope46_id, "d")}</span>`);
|
|
5459
5499
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
5460
5500
|
return 1;
|
|
5461
5501
|
}
|
|
@@ -5474,11 +5514,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5474
5514
|
return 0;
|
|
5475
5515
|
}
|
|
5476
5516
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
5477
|
-
_html(`<section${_attr_class("
|
|
5517
|
+
_html(`<section${_attr_class("_bF")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bG")}><h2${_attr("id", agentsId)}${_attr_class("_bT")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_cV")}><span${_attr_class("_V")}>Default</span><span${_attr_class("_m")}>`);
|
|
5478
5518
|
_attr_select_value($scope0_id, "n", input$2.preferred, _resume(function(v) {
|
|
5479
5519
|
setPreferred(v);
|
|
5480
5520
|
}, "x2", $scope0_id), () => {
|
|
5481
|
-
_html(`<select${_attr_class(["_n", "
|
|
5521
|
+
_html(`<select${_attr_class(["_n", "_cW"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
5482
5522
|
_for_of(input$2.agents.filter((a) => a !== "shell"), (id) => {
|
|
5483
5523
|
const $scope79_id = _scope_id();
|
|
5484
5524
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope79_id, "b", $sg__input_agents)}</option>${_el_resume($scope79_id, "a", $sg__input_agents)}`);
|
|
@@ -5492,14 +5532,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5492
5532
|
const rows = lone ? [] : a.instances;
|
|
5493
5533
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
5494
5534
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
5495
|
-
_html(`<li${_attr_class(["
|
|
5535
|
+
_html(`<li${_attr_class(["_bK", "_cU"])}><div${_attr_class(["_cX", { ["_c0"]: lone && !lone.enabled }])}>`);
|
|
5496
5536
|
_set_serialize_reason(12);
|
|
5497
5537
|
const $childScope3 = _peek_scope_id();
|
|
5498
5538
|
icon_agent_default({
|
|
5499
5539
|
agent: a.id,
|
|
5500
5540
|
size: 18
|
|
5501
5541
|
});
|
|
5502
|
-
_html(`<div${_attr_class("
|
|
5542
|
+
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
5503
5543
|
_if(() => {
|
|
5504
5544
|
if (lone && input$2.preferred === lone.id) {
|
|
5505
5545
|
const $scope80_id = _scope_id();
|
|
@@ -5512,12 +5552,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5512
5552
|
_if(() => {
|
|
5513
5553
|
if (active.has(a.id)) {
|
|
5514
5554
|
const $scope13_id = _scope_id();
|
|
5515
|
-
_html(`<span${_attr_class("
|
|
5555
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
5516
5556
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
5517
5557
|
return 0;
|
|
5518
5558
|
} else if (!a.installed) {
|
|
5519
5559
|
const $scope81_id = _scope_id();
|
|
5520
|
-
_html(`<span${_attr_class("
|
|
5560
|
+
_html(`<span${_attr_class("_bO")}>Not installed</span>`);
|
|
5521
5561
|
writeScope($scope81_id, {});
|
|
5522
5562
|
return 1;
|
|
5523
5563
|
}
|
|
@@ -5545,15 +5585,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5545
5585
|
_if(() => {
|
|
5546
5586
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
5547
5587
|
const $scope2_id = _scope_id();
|
|
5548
|
-
_html(`<ul${_attr_class(["
|
|
5588
|
+
_html(`<ul${_attr_class(["_c2", { ["_c0"]: lone && !lone.enabled }])}>`);
|
|
5549
5589
|
_for_of(rows, (inst) => {
|
|
5550
5590
|
const $scope3_id = _scope_id();
|
|
5551
5591
|
const accounts = accountsFor(inst.id);
|
|
5552
|
-
_html(`<li${_attr_class(["
|
|
5592
|
+
_html(`<li${_attr_class(["_cY", { ["_c0"]: !inst.enabled }])}><div${_attr_class("_cZ")}>`);
|
|
5553
5593
|
_set_serialize_reason(12);
|
|
5554
5594
|
const $childScope4 = _peek_scope_id();
|
|
5555
5595
|
icon_agent_default({ agent: inst.id });
|
|
5556
|
-
_html(`<span${_attr_class(["
|
|
5596
|
+
_html(`<span${_attr_class(["_c1", "_w"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
5557
5597
|
_if(() => {
|
|
5558
5598
|
if (input$2.preferred === inst.id) {
|
|
5559
5599
|
const $scope82_id = _scope_id();
|
|
@@ -5624,7 +5664,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5624
5664
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
5625
5665
|
_for_of(otherUsage, (u) => {
|
|
5626
5666
|
const $scope86_id = _scope_id();
|
|
5627
|
-
_html(`<li${_attr_class(["
|
|
5667
|
+
_html(`<li${_attr_class(["_bK", "_cU"])}>`);
|
|
5628
5668
|
_set_serialize_reason(6);
|
|
5629
5669
|
const $childScope8 = _peek_scope_id();
|
|
5630
5670
|
usage_meters_default({ agent: u });
|
|
@@ -5635,21 +5675,21 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5635
5675
|
_if(() => {
|
|
5636
5676
|
if (!usage && families.length) {
|
|
5637
5677
|
const $scope87_id = _scope_id();
|
|
5638
|
-
_html(`<p${_attr_class("
|
|
5678
|
+
_html(`<p${_attr_class("_bQ")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
5639
5679
|
writeScope($scope87_id, {});
|
|
5640
5680
|
return 0;
|
|
5641
5681
|
} else if (usage?.error) {
|
|
5642
5682
|
const $scope9_id = _scope_id();
|
|
5643
|
-
_html(`<p${_attr_class("
|
|
5683
|
+
_html(`<p${_attr_class("_bQ")}>${_escape(usage.error)}${_el_resume($scope9_id, "b")}</p>`);
|
|
5644
5684
|
writeScope($scope9_id, {});
|
|
5645
5685
|
return 1;
|
|
5646
5686
|
}
|
|
5647
5687
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5648
|
-
_html(`</section><section${_attr_class("
|
|
5688
|
+
_html(`</section><section${_attr_class("_bF")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bG")}><h2${_attr("id", githubId)}${_attr_class("_bT")}>GitHub</h2>`);
|
|
5649
5689
|
_if(() => {
|
|
5650
5690
|
if (setup && !addingHost) {
|
|
5651
5691
|
const $scope43_id = _scope_id();
|
|
5652
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
5692
|
+
_html(`<button${_attr_class([iconBtnRow, "_c_"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
5653
5693
|
icon_plus_default({ size: 16 });
|
|
5654
5694
|
_html(`</button>${_el_resume($scope43_id, "a")}`);
|
|
5655
5695
|
_script($scope43_id, "x50");
|
|
@@ -5661,10 +5701,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5661
5701
|
if (setup) {
|
|
5662
5702
|
const $scope42_id = _scope_id();
|
|
5663
5703
|
_html(`<form${_attr_class([
|
|
5664
|
-
"
|
|
5665
|
-
"
|
|
5666
|
-
{ ["
|
|
5667
|
-
])}><label${_attr_class(["_Z", "
|
|
5704
|
+
"_cj",
|
|
5705
|
+
"_c_",
|
|
5706
|
+
{ ["_ck"]: !addingHost }
|
|
5707
|
+
])}><label${_attr_class(["_Z", "_cl"])}>`);
|
|
5668
5708
|
icon_github_default({
|
|
5669
5709
|
size: 14,
|
|
5670
5710
|
class: "_0"
|
|
@@ -5674,12 +5714,12 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5674
5714
|
}, "x3", $scope42_id))}${_attr_class([
|
|
5675
5715
|
"_X",
|
|
5676
5716
|
"_1",
|
|
5677
|
-
"
|
|
5717
|
+
"_cm"
|
|
5678
5718
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope42_id, "d")}</label><button${_attr_class([
|
|
5679
5719
|
btnSm,
|
|
5680
5720
|
"_p",
|
|
5681
|
-
"
|
|
5682
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add"}${_el_resume($scope42_id, "f")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
5721
|
+
"_c9"
|
|
5722
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add"}${_el_resume($scope42_id, "f")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "_cn"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
5683
5723
|
icon_xmark_default({ size: 12 });
|
|
5684
5724
|
_html(`</button>${_el_resume($scope42_id, "g")}</form>${_el_resume($scope42_id, "a")}`);
|
|
5685
5725
|
_script($scope42_id, "x51");
|
|
@@ -5687,19 +5727,19 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5687
5727
|
return 0;
|
|
5688
5728
|
}
|
|
5689
5729
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
5690
|
-
_html(`</div><div${_attr_class(["
|
|
5730
|
+
_html(`</div><div${_attr_class(["_bK", "_cz"])}>`);
|
|
5691
5731
|
_for_of(setup?.github || [], (h) => {
|
|
5692
5732
|
const $scope7_id = _scope_id();
|
|
5693
5733
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
5694
5734
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
5695
5735
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5696
5736
|
const busy = active.has(h.host);
|
|
5697
|
-
_html(`<div${_attr_class(["
|
|
5737
|
+
_html(`<div${_attr_class(["_cA", "_da"])}><div${_attr_class("_db")}>`);
|
|
5698
5738
|
icon_github_default({
|
|
5699
5739
|
size: 18,
|
|
5700
|
-
class: "
|
|
5740
|
+
class: "_dc"
|
|
5701
5741
|
});
|
|
5702
|
-
_html(`<div${_attr_class("
|
|
5742
|
+
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(h.host)}${_el_resume($scope7_id, "g")}</span>`);
|
|
5703
5743
|
_if(() => {
|
|
5704
5744
|
if (h.isEnterprise) {
|
|
5705
5745
|
const $scope90_id = _scope_id();
|
|
@@ -5712,25 +5752,25 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5712
5752
|
_if(() => {
|
|
5713
5753
|
if (busy) {
|
|
5714
5754
|
const $scope14_id = _scope_id();
|
|
5715
|
-
_html(`<span${_attr_class(["
|
|
5755
|
+
_html(`<span${_attr_class(["_bO", "_dd"])}><span${_attr_class("_E")}></span><!>${authCodes.has(h.host) ? "Waiting for the browser…" : _escape(active.get(h.host) || "Starting…")}${_el_resume($scope14_id, "c")}</span>`);
|
|
5716
5756
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Cgt: 1 })));
|
|
5717
5757
|
return 0;
|
|
5718
5758
|
} else if (h.authed) {
|
|
5719
5759
|
const $scope88_id = _scope_id();
|
|
5720
|
-
_html(`<span${_attr_class(["
|
|
5760
|
+
_html(`<span${_attr_class(["_bO", "_dd"])}>`);
|
|
5721
5761
|
icon_check_default({
|
|
5722
5762
|
size: 12,
|
|
5723
|
-
class: "
|
|
5763
|
+
class: "_de"
|
|
5724
5764
|
});
|
|
5725
|
-
_html(` Signed in as <strong${_attr_class("
|
|
5765
|
+
_html(` Signed in as <strong${_attr_class("_dg")}>${_escape(h.user || "?")}${_el_resume($scope88_id, "d")}</strong></span>`);
|
|
5726
5766
|
writeScope($scope88_id, {});
|
|
5727
5767
|
return 1;
|
|
5728
5768
|
} else if (h.error) {
|
|
5729
5769
|
const $scope89_id = _scope_id();
|
|
5730
5770
|
_html(`<span${_attr_class([
|
|
5731
|
-
"
|
|
5732
|
-
"
|
|
5733
|
-
"
|
|
5771
|
+
"_bO",
|
|
5772
|
+
"_dd",
|
|
5773
|
+
"_df"
|
|
5734
5774
|
])}>`);
|
|
5735
5775
|
icon_warning_default({ size: 12 });
|
|
5736
5776
|
_html(`<!>${_escape(h.error)}${_el_resume($scope89_id, "c")}</span>`);
|
|
@@ -5738,7 +5778,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5738
5778
|
return 2;
|
|
5739
5779
|
} else {
|
|
5740
5780
|
const $scope91_id = _scope_id();
|
|
5741
|
-
_html(`<span${_attr_class(["
|
|
5781
|
+
_html(`<span${_attr_class(["_bO", "_dd"])}>Not signed in</span>`);
|
|
5742
5782
|
writeScope($scope91_id, {});
|
|
5743
5783
|
return 3;
|
|
5744
5784
|
}
|
|
@@ -5769,7 +5809,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5769
5809
|
if (h.isEnterprise) {
|
|
5770
5810
|
const $scope34_id = _scope_id();
|
|
5771
5811
|
_html(`<button${_attr_class([
|
|
5772
|
-
"
|
|
5812
|
+
"_bP",
|
|
5773
5813
|
"_6",
|
|
5774
5814
|
"_7",
|
|
5775
5815
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -5803,7 +5843,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5803
5843
|
_if(() => {
|
|
5804
5844
|
if (busy && authCodes.has(h.host)) {
|
|
5805
5845
|
const $scope31_id = _scope_id();
|
|
5806
|
-
_html(`<div${_attr_class("
|
|
5846
|
+
_html(`<div${_attr_class("_dh")}><span${_attr_class("_di")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dk")}>${_escape(h.host)}${_el_resume($scope31_id, "d")}/login/device</a>${_el_resume($scope31_id, "c")}</span><code${_attr_class("_dj")}>${_escape(authCodes.get(h.host))}${_el_resume($scope31_id, "f")}</code></div>`);
|
|
5807
5847
|
_subscribe($authCodes__closures, writeScope($scope31_id, { Cgv: 1 }));
|
|
5808
5848
|
return 0;
|
|
5809
5849
|
}
|
|
@@ -5815,7 +5855,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5815
5855
|
_set_serialize_reason(30);
|
|
5816
5856
|
const $childScope9 = _peek_scope_id();
|
|
5817
5857
|
sso_auth_default({
|
|
5818
|
-
class: ["
|
|
5858
|
+
class: ["_cA", "_dl"],
|
|
5819
5859
|
items: hostSso$1,
|
|
5820
5860
|
skipped: skippedSso,
|
|
5821
5861
|
busy,
|
|
@@ -5849,23 +5889,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5849
5889
|
_if(() => {
|
|
5850
5890
|
if (setup && !setup.github.length) {
|
|
5851
5891
|
const $scope94_id = _scope_id();
|
|
5852
|
-
_html(`<p${_attr_class("
|
|
5892
|
+
_html(`<p${_attr_class("_bQ")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5853
5893
|
writeScope($scope94_id, {});
|
|
5854
5894
|
return 0;
|
|
5855
5895
|
}
|
|
5856
5896
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5857
|
-
_html(`</section><section${_attr_class("
|
|
5897
|
+
_html(`</section><section${_attr_class("_bF")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bG")}><h2${_attr("id", machineId)}${_attr_class("_bT")}>Machine</h2></div><div${_attr_class(["_bK", "_cz"])}><div${_attr_class(["_cA", "_cE"])}><div${_attr_class(["_cF", { ["_cG"]: skillsOpen }])}><button${_attr_class("_cH")} aria-expanded=true>`);
|
|
5858
5898
|
_set_serialize_reason(1);
|
|
5859
5899
|
const $childScope10 = _peek_scope_id();
|
|
5860
5900
|
icon_chevron_right_default({
|
|
5861
5901
|
size: 12,
|
|
5862
|
-
class: ["
|
|
5902
|
+
class: ["_cL", { ["_cM"]: skillsOpen }]
|
|
5863
5903
|
});
|
|
5864
|
-
_html(`<span${_attr_class("
|
|
5904
|
+
_html(`<span${_attr_class("_cI")}>Skills</span>`);
|
|
5865
5905
|
_if(() => {
|
|
5866
5906
|
if (skills?.global.length) {
|
|
5867
5907
|
const $scope52_id = _scope_id();
|
|
5868
|
-
_html(`<span${_attr_class("
|
|
5908
|
+
_html(`<span${_attr_class("_cJ")}>${_escape(skills.global.length)}${_el_resume($scope52_id, "b")} installed</span>`);
|
|
5869
5909
|
writeScope($scope52_id, {});
|
|
5870
5910
|
return 0;
|
|
5871
5911
|
}
|
|
@@ -5885,7 +5925,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5885
5925
|
_if(() => {
|
|
5886
5926
|
if (skills?.available && skills.agents.length) {
|
|
5887
5927
|
const $scope15_id = _scope_id();
|
|
5888
|
-
_html(`<div${_attr_class(["
|
|
5928
|
+
_html(`<div${_attr_class(["_cj", { ["_ck"]: true }])}><label${_attr_class(["_Z", "_cl"])}>`);
|
|
5889
5929
|
_if(() => {
|
|
5890
5930
|
if (skillSearching) {
|
|
5891
5931
|
const $scope95_id = _scope_id();
|
|
@@ -5905,14 +5945,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5905
5945
|
_html(`<input${_attr_input_value($scope15_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
5906
5946
|
"_X",
|
|
5907
5947
|
"_1",
|
|
5908
|
-
"
|
|
5909
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
5948
|
+
"_cm"
|
|
5949
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "_cn"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
5910
5950
|
icon_xmark_default({ size: 12 });
|
|
5911
|
-
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "
|
|
5951
|
+
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "_cp"])}${_attr("hidden", true)}>`);
|
|
5912
5952
|
_if(() => {
|
|
5913
5953
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
5914
5954
|
const $scope97_id = _scope_id();
|
|
5915
|
-
_html(`<li${_attr_class("
|
|
5955
|
+
_html(`<li${_attr_class("_cq")}>Searching skills.sh…</li>`);
|
|
5916
5956
|
writeScope($scope97_id, {});
|
|
5917
5957
|
return 0;
|
|
5918
5958
|
}
|
|
@@ -5920,11 +5960,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5920
5960
|
_if(() => {
|
|
5921
5961
|
if (looksLikeSource(skillQuery)) {
|
|
5922
5962
|
const $scope16_id = _scope_id();
|
|
5923
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5963
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_c6", "_w"])}>${_escape(skillQuery.trim())}${_el_resume($scope16_id, "d")}</span>`);
|
|
5924
5964
|
_if(() => {
|
|
5925
5965
|
if (active.has(skillQuery.trim())) {
|
|
5926
5966
|
const $scope17_id = _scope_id();
|
|
5927
|
-
_html(`<span${_attr_class("
|
|
5967
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(active.get(skillQuery.trim()) || "Starting…")}${_el_resume($scope17_id, "c")}</span>`);
|
|
5928
5968
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
5929
5969
|
Cgt: 3,
|
|
5930
5970
|
Chh: 1
|
|
@@ -5932,7 +5972,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5932
5972
|
return 0;
|
|
5933
5973
|
} else {
|
|
5934
5974
|
const $scope98_id = _scope_id();
|
|
5935
|
-
_html(`<span${_attr_class("
|
|
5975
|
+
_html(`<span${_attr_class("_bO")}>Add straight from this source</span>`);
|
|
5936
5976
|
writeScope($scope98_id, {});
|
|
5937
5977
|
return 1;
|
|
5938
5978
|
}
|
|
@@ -5955,16 +5995,16 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
5955
5995
|
_for_of(skillHits || [], (h) => {
|
|
5956
5996
|
const $scope18_id = _scope_id();
|
|
5957
5997
|
const $for_content5__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5958
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
5998
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_c6", "_w"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
5959
5999
|
_if(() => {
|
|
5960
6000
|
if (active.has(h.skillId)) {
|
|
5961
6001
|
const $scope19_id = _scope_id();
|
|
5962
|
-
_html(`<span${_attr_class("
|
|
6002
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5963
6003
|
_subscribe($active__closures, writeScope($scope19_id, { Cgt: 5 }));
|
|
5964
6004
|
return 0;
|
|
5965
6005
|
} else {
|
|
5966
6006
|
const $scope99_id = _scope_id();
|
|
5967
|
-
_html(`<span${_attr_class("
|
|
6007
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope99_id, "b")}</span>${_el_resume($scope99_id, "a")}`);
|
|
5968
6008
|
writeScope($scope99_id, {});
|
|
5969
6009
|
return 1;
|
|
5970
6010
|
}
|
|
@@ -6012,7 +6052,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6012
6052
|
_if(() => {
|
|
6013
6053
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
6014
6054
|
const $scope54_id = _scope_id();
|
|
6015
|
-
_html(`<li${_attr_class("
|
|
6055
|
+
_html(`<li${_attr_class("_cq")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</li>`);
|
|
6016
6056
|
_subscribe($skillQuery__closures, writeScope($scope54_id, { Chh: 2 }));
|
|
6017
6057
|
return 0;
|
|
6018
6058
|
}
|
|
@@ -6027,22 +6067,22 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6027
6067
|
_if(() => {
|
|
6028
6068
|
{
|
|
6029
6069
|
const $scope20_id = _scope_id();
|
|
6030
|
-
_html(`<div${_attr_class("
|
|
6070
|
+
_html(`<div${_attr_class("_cK")}>`);
|
|
6031
6071
|
_if(() => {
|
|
6032
6072
|
if (skills && !skills.agents.length) {
|
|
6033
6073
|
const $scope102_id = _scope_id();
|
|
6034
|
-
_html(`<p${_attr_class("
|
|
6074
|
+
_html(`<p${_attr_class("_bQ")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
6035
6075
|
writeScope($scope102_id, {});
|
|
6036
6076
|
return 0;
|
|
6037
6077
|
} else if (skills && !skills.available) {
|
|
6038
6078
|
const $scope21_id = _scope_id();
|
|
6039
|
-
_html(`<p${_attr_class("
|
|
6079
|
+
_html(`<p${_attr_class("_bQ")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope21_id, "c")}</button>${_el_resume($scope21_id, "b")}</p>`);
|
|
6040
6080
|
_script($scope21_id, "x59");
|
|
6041
6081
|
_subscribe($active__closures, writeScope($scope21_id, { Cgt: 6 }));
|
|
6042
6082
|
return 1;
|
|
6043
6083
|
}
|
|
6044
6084
|
}, $scope20_id, "b", 1, 1, 1, 0, 1);
|
|
6045
|
-
_html(`<ul${_attr_class("
|
|
6085
|
+
_html(`<ul${_attr_class("_cs")}>`);
|
|
6046
6086
|
_for_of(skills?.global || [], (s) => {
|
|
6047
6087
|
const $scope22_id = _scope_id();
|
|
6048
6088
|
const $for_content6__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -6118,7 +6158,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6118
6158
|
_if(() => {
|
|
6119
6159
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
6120
6160
|
const $scope107_id = _scope_id();
|
|
6121
|
-
_html(`<p${_attr_class("
|
|
6161
|
+
_html(`<p${_attr_class("_bQ")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
6122
6162
|
writeScope($scope107_id, {});
|
|
6123
6163
|
return 0;
|
|
6124
6164
|
}
|
|
@@ -6128,14 +6168,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6128
6168
|
return 0;
|
|
6129
6169
|
}
|
|
6130
6170
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
6131
|
-
_html(`</div><div${_attr_class(["
|
|
6171
|
+
_html(`</div><div${_attr_class(["_cA", "_cE"])}><div${_attr_class(["_cF", { ["_cG"]: machineOpen }])}><button${_attr_class("_cH")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
6132
6172
|
_set_serialize_reason(1);
|
|
6133
6173
|
const $childScope12 = _peek_scope_id();
|
|
6134
6174
|
icon_chevron_right_default({
|
|
6135
6175
|
size: 12,
|
|
6136
|
-
class: ["
|
|
6176
|
+
class: ["_cL", { ["_cM"]: machineOpen }]
|
|
6137
6177
|
});
|
|
6138
|
-
_html(`<span${_attr_class("
|
|
6178
|
+
_html(`<span${_attr_class("_cI")}>Tools</span><span${_attr_class("_cJ")}>${_escape(tools.filter((t) => t.installed).length)}${_el_resume($scope0_id, "ai")} installed <!>${missingCount ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(missingCount)}`)} missing` : ""}${_el_resume($scope0_id, "aj")}<!>${outdatedIds.length ? `${_escape(`${_to_text(" · ")}`)}${_escape(`${_to_text(outdatedIds.length)}`)} outdated` : ""}${_el_resume($scope0_id, "ak")}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
6139
6179
|
_if(() => {
|
|
6140
6180
|
if (outdatedIds.length > 1) {
|
|
6141
6181
|
const $scope23_id = _scope_id();
|
|
@@ -6168,7 +6208,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6168
6208
|
_if(() => {
|
|
6169
6209
|
if (setup && setup.mise.installed) {
|
|
6170
6210
|
const $scope25_id = _scope_id();
|
|
6171
|
-
_html(`<div${_attr_class(["
|
|
6211
|
+
_html(`<div${_attr_class(["_cj", { ["_ck"]: true }])}><label${_attr_class(["_Z", "_cl"])}>`);
|
|
6172
6212
|
_if(() => {
|
|
6173
6213
|
if (searching) {
|
|
6174
6214
|
const $scope108_id = _scope_id();
|
|
@@ -6188,14 +6228,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6188
6228
|
_html(`<input${_attr_input_value($scope25_id, "d", query, search)}${_attr_class([
|
|
6189
6229
|
"_X",
|
|
6190
6230
|
"_1",
|
|
6191
|
-
"
|
|
6192
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
6231
|
+
"_cm"
|
|
6232
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "_cn"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
6193
6233
|
icon_xmark_default({ size: 12 });
|
|
6194
|
-
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "
|
|
6234
|
+
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "_cp"])}${_attr("hidden", true)}>`);
|
|
6195
6235
|
_if(() => {
|
|
6196
6236
|
if (searching && !hits?.length) {
|
|
6197
6237
|
const $scope110_id = _scope_id();
|
|
6198
|
-
_html(`<li${_attr_class("
|
|
6238
|
+
_html(`<li${_attr_class("_cq")}>Searching the mise registry…</li>`);
|
|
6199
6239
|
writeScope($scope110_id, {});
|
|
6200
6240
|
return 0;
|
|
6201
6241
|
}
|
|
@@ -6203,23 +6243,23 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6203
6243
|
_if(() => {
|
|
6204
6244
|
if (hits && !hits.length && !searching) {
|
|
6205
6245
|
const $scope44_id = _scope_id();
|
|
6206
|
-
_html(`<li${_attr_class("
|
|
6246
|
+
_html(`<li${_attr_class("_cq")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</li>`);
|
|
6207
6247
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
6208
6248
|
return 0;
|
|
6209
6249
|
}
|
|
6210
6250
|
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
6211
6251
|
_for_of(hits || [], (h) => {
|
|
6212
6252
|
const $scope26_id = _scope_id();
|
|
6213
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
6253
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_c6", "_w"])}>${_escape(h.name)}${_el_resume($scope26_id, "d")}</span>`);
|
|
6214
6254
|
_if(() => {
|
|
6215
6255
|
if (active.has(h.name)) {
|
|
6216
6256
|
const $scope27_id = _scope_id();
|
|
6217
|
-
_html(`<span${_attr_class("
|
|
6257
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope27_id, "c")}</span>`);
|
|
6218
6258
|
_subscribe($active__closures, writeScope($scope27_id, { Cgt: 9 }));
|
|
6219
6259
|
return 0;
|
|
6220
6260
|
} else if (h.description) {
|
|
6221
6261
|
const $scope111_id = _scope_id();
|
|
6222
|
-
_html(`<span${_attr_class("
|
|
6262
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope111_id, "b")}</span>${_el_resume($scope111_id, "a")}`);
|
|
6223
6263
|
writeScope($scope111_id, {});
|
|
6224
6264
|
return 1;
|
|
6225
6265
|
}
|
|
@@ -6264,11 +6304,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6264
6304
|
_if(() => {
|
|
6265
6305
|
if (machineOpen) {
|
|
6266
6306
|
const $scope6_id = _scope_id();
|
|
6267
|
-
_html(`<div${_attr_class("
|
|
6307
|
+
_html(`<div${_attr_class("_cK")}>`);
|
|
6268
6308
|
_if(() => {
|
|
6269
6309
|
if (setup && !setup.mise.installed) {
|
|
6270
6310
|
const $scope28_id = _scope_id();
|
|
6271
|
-
_html(`<p${_attr_class("
|
|
6311
|
+
_html(`<p${_attr_class("_bQ")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope28_id, "c")}</button>${_el_resume($scope28_id, "b")}</p>`);
|
|
6272
6312
|
_script($scope28_id, "x70");
|
|
6273
6313
|
_subscribe($active__closures, writeScope($scope28_id, { Cgt: 10 }));
|
|
6274
6314
|
return 0;
|
|
@@ -6278,11 +6318,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6278
6318
|
_if(() => {
|
|
6279
6319
|
if (self) {
|
|
6280
6320
|
const $scope48_id = _scope_id();
|
|
6281
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
6321
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_c6", "_w"])}>work</span>`);
|
|
6282
6322
|
_if(() => {
|
|
6283
6323
|
if (selfUpdating) {
|
|
6284
6324
|
const $scope113_id = _scope_id();
|
|
6285
|
-
_html(`<span${_attr_class("
|
|
6325
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
6286
6326
|
writeScope($scope113_id, {});
|
|
6287
6327
|
return 0;
|
|
6288
6328
|
} else {
|
|
@@ -6296,7 +6336,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6296
6336
|
return 0;
|
|
6297
6337
|
} else if (self.latest && self.latest !== self.version) {
|
|
6298
6338
|
const $scope50_id = _scope_id();
|
|
6299
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6339
|
+
_html(`<button${_attr_class([btnSm, "_c8"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
6300
6340
|
icon_arrow_up_default({ size: 12 });
|
|
6301
6341
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope50_id, "c")}</button>${_el_resume($scope50_id, "a")}`);
|
|
6302
6342
|
_script($scope50_id, "x71");
|
|
@@ -6337,11 +6377,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6337
6377
|
const $for_content8__t_path__closures = /* @__PURE__ */ new Set();
|
|
6338
6378
|
const $for_content8__t_latest__closures = /* @__PURE__ */ new Set();
|
|
6339
6379
|
const $for_content8__t_id__closures = /* @__PURE__ */ new Set();
|
|
6340
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
6380
|
+
_html(`<li${_attr_class([toolRow, { ["_c5"]: !t.installed }])}><span${_attr_class(["_c6", "_w"])}>${_escape(t.label)}${_el_resume($scope29_id, "c")}</span>`);
|
|
6341
6381
|
_if(() => {
|
|
6342
6382
|
if (active.has(t.id)) {
|
|
6343
6383
|
const $scope30_id = _scope_id();
|
|
6344
|
-
_html(`<span${_attr_class("
|
|
6384
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope30_id, "c")}</span>`);
|
|
6345
6385
|
_subscribe($active__closures, writeScope($scope30_id, { Cgt: 12 }));
|
|
6346
6386
|
return 0;
|
|
6347
6387
|
} else if (t.installed) {
|
|
@@ -6349,7 +6389,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6349
6389
|
_if(() => {
|
|
6350
6390
|
if (t.version) {
|
|
6351
6391
|
const $scope41_id = _scope_id();
|
|
6352
|
-
_html(`<button${_attr_class(["
|
|
6392
|
+
_html(`<button${_attr_class(["_c7", "_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")}`);
|
|
6353
6393
|
_script($scope41_id, "x72");
|
|
6354
6394
|
_subscribe($for_content8__t_path__closures, _subscribe($for_content8__t_version__closures, _subscribe($for_content8__t_label__closures, writeScope($scope41_id, { Cu: 1 }))));
|
|
6355
6395
|
return 0;
|
|
@@ -6363,7 +6403,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6363
6403
|
_if(() => {
|
|
6364
6404
|
if (outdated(t)) {
|
|
6365
6405
|
const $scope60_id = _scope_id();
|
|
6366
|
-
_html(`<button${_attr_class([btnSm, "
|
|
6406
|
+
_html(`<button${_attr_class([btnSm, "_c8"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
6367
6407
|
icon_arrow_up_default({ size: 12 });
|
|
6368
6408
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope60_id, "c")}</button>${_el_resume($scope60_id, "a")}`);
|
|
6369
6409
|
_script($scope60_id, "x73");
|
|
@@ -6472,9 +6512,9 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6472
6512
|
label: "Dark"
|
|
6473
6513
|
}
|
|
6474
6514
|
];
|
|
6475
|
-
_html(`</div></div></section><section${_attr_class("
|
|
6515
|
+
_html(`</div></div></section><section${_attr_class("_bF")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bG")}><h2${_attr("id", appearanceId)}${_attr_class("_bT")}>Appearance</h2></div><div${_attr_class(["_bK", "_dm"])}><label${_attr_class("_dn")}><span${_attr_class("_do")}>Name</span><input${_attr_input_value($scope0_id, "aw", input$2.instance.name, _resume(function(v) {
|
|
6476
6516
|
setInstance({ name: v });
|
|
6477
|
-
}, "x4", $scope0_id))}${_attr_class(["_X", "
|
|
6517
|
+
}, "x4", $scope0_id))}${_attr_class(["_X", "_dp"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aw")}</label><div${_attr_class("_dn")}><span${_attr_class("_do")}>Theme</span><span${_attr_class("_dr")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
6478
6518
|
_for_of(themeOpts, (opt) => {
|
|
6479
6519
|
const $scope51_id = _scope_id();
|
|
6480
6520
|
_html(`<button type=button${_attr_class(["_be", { ["_bd"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
@@ -6484,25 +6524,25 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6484
6524
|
_: _scope_with_id($scope0_id)
|
|
6485
6525
|
});
|
|
6486
6526
|
}, "id", $scope0_id, "b0", 1, 0, 1, 0, 1);
|
|
6487
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
6527
|
+
_html(`</span><span${_attr_class(["_m", "_ds"])}>`);
|
|
6488
6528
|
_attr_select_value($scope0_id, "b2", themeMode, _resume(function(v) {
|
|
6489
6529
|
setThemeMode(v);
|
|
6490
6530
|
}, "x5", $scope0_id), () => {
|
|
6491
|
-
_html(`<select${_attr_class(["_n", "
|
|
6531
|
+
_html(`<select${_attr_class(["_n", "_dt"])} aria-label="Color theme">`);
|
|
6492
6532
|
forOf(themeOpts, (opt) => {
|
|
6493
6533
|
_scope_id();
|
|
6494
6534
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
6495
6535
|
});
|
|
6496
6536
|
_html("</select>");
|
|
6497
6537
|
});
|
|
6498
|
-
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("
|
|
6499
|
-
"
|
|
6500
|
-
"
|
|
6501
|
-
{ ["
|
|
6538
|
+
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("_dn")}><span${_attr_class("_do")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
6539
|
+
"_dz",
|
|
6540
|
+
"_dB",
|
|
6541
|
+
{ ["_dA"]: !input$2.instance.accent }
|
|
6502
6542
|
])} role=radio aria-checked=${!input$2.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b6")}`);
|
|
6503
6543
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
6504
6544
|
const $scope4_id = _scope_id();
|
|
6505
|
-
_html(`<button type=button${_attr_class(["
|
|
6545
|
+
_html(`<button type=button${_attr_class(["_dz", { ["_dA"]: input$2.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input$2.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
6506
6546
|
_script($scope4_id, "x77");
|
|
6507
6547
|
writeScope($scope4_id, {
|
|
6508
6548
|
d: p?.value,
|
|
@@ -6511,21 +6551,21 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6511
6551
|
}, "value", $scope0_id, "b7", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
6512
6552
|
const customOn = !!input$2.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input$2.instance.accent);
|
|
6513
6553
|
_html(`<label${_attr_class([
|
|
6514
|
-
"
|
|
6515
|
-
"
|
|
6516
|
-
{ ["
|
|
6554
|
+
"_dz",
|
|
6555
|
+
"_dC",
|
|
6556
|
+
{ ["_dA"]: customOn }
|
|
6517
6557
|
])}${customOn ? _attr_style(`--swatch:${input$2.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b9", input$2.instance.accent || "#3556d8", _resume(function(v) {
|
|
6518
6558
|
setInstance({ accent: v });
|
|
6519
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
6559
|
+
}, "x6", $scope0_id))}${_attr_class("_dD")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b9")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b8", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bF")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bG")}><h2${_attr("id", backupId)}${_attr_class("_bT")}>Backup</h2></div><div${_attr_class(["_bK", "_cz"])}><div${_attr_class("_cA")}><div${_attr_class("_dE")}><div${_attr_class("_bL")}>`);
|
|
6520
6560
|
_if(() => {
|
|
6521
6561
|
if (backupBusy === "preflight") {
|
|
6522
6562
|
const $scope65_id = _scope_id();
|
|
6523
|
-
_html(`<span${_attr_class("
|
|
6563
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Checking workspaces…")}${_el_resume($scope65_id, "c")}</span>`);
|
|
6524
6564
|
writeScope($scope65_id, {});
|
|
6525
6565
|
return 0;
|
|
6526
6566
|
} else {
|
|
6527
6567
|
const $scope124_id = _scope_id();
|
|
6528
|
-
_html(`<span${_attr_class("
|
|
6568
|
+
_html(`<span${_attr_class("_bO")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
6529
6569
|
writeScope($scope124_id, {});
|
|
6530
6570
|
return 1;
|
|
6531
6571
|
}
|
|
@@ -6543,7 +6583,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6543
6583
|
_if(() => {
|
|
6544
6584
|
if (preflight && !backupBusy) {
|
|
6545
6585
|
const $scope67_id = _scope_id();
|
|
6546
|
-
_html(`<div${_attr_class("
|
|
6586
|
+
_html(`<div${_attr_class("_dG")}><p${_attr_class("_dH")}>In the file: <!>${_escape(preflight.contents.workspaces)}${_el_resume($scope67_id, "c")} workspace<!>${preflight.contents.workspaces === 1 ? "" : "s"}${_el_resume($scope67_id, "d")}<!>${preflight.contents.archived ? `${_escape(`${_to_text(" ")}`)}(${_escape(`${_to_text(preflight.contents.archived)}`)} archived)` : ""}${_el_resume($scope67_id, "e")} , <!>${_escape(preflight.contents.tools)}${_el_resume($scope67_id, "f")} tool pin<!>${preflight.contents.tools === 1 ? "" : "s"}${_el_resume($scope67_id, "g")}, <!>${_escape(preflight.contents.skills)}${_el_resume($scope67_id, "h")} skill<!>${preflight.contents.skills === 1 ? "" : "s"}${_el_resume($scope67_id, "i")}, <!>${_escape(preflight.contents.agents)}${_el_resume($scope67_id, "j")} agent<!>${preflight.contents.agents === 1 ? "" : "s"}${_el_resume($scope67_id, "k")}.</p><p${_attr_class("_dH")}>Not in the file: `);
|
|
6547
6587
|
_if(() => {
|
|
6548
6588
|
if (preflight.unpushed) {
|
|
6549
6589
|
const $scope68_id = _scope_id();
|
|
@@ -6560,15 +6600,15 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6560
6600
|
return 0;
|
|
6561
6601
|
}
|
|
6562
6602
|
}, $scope67_id, "m");
|
|
6563
|
-
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("
|
|
6603
|
+
_html(`<!>${preflight.files ? `${_escape(`${_to_text(" ")}`)}${_escape(`${_to_text(preflight.files)}`)} uncommitted file${_escape(`${_to_text(preflight.files === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope67_id, "n")} .</p><ul${_attr_class("_dI")}>`);
|
|
6564
6604
|
_for_of(preflight.workspaces, (w) => {
|
|
6565
6605
|
const $scope126_id = _scope_id();
|
|
6566
6606
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
6567
|
-
_html(`<li${_attr_class("
|
|
6607
|
+
_html(`<li${_attr_class("_dJ")}><span${_attr_class("_bM")}>${_escape(w.name)}${_el_resume($scope126_id, "c")}</span><ul${_attr_class("_dI")}>`);
|
|
6568
6608
|
_for_of(w.repos, (r) => {
|
|
6569
6609
|
const $scope127_id = _scope_id();
|
|
6570
6610
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
6571
|
-
_html(`<li${_attr_class("
|
|
6611
|
+
_html(`<li${_attr_class("_dK")}><span${_attr_class("_dL")}><span${_attr_class("_w")}>${_escape(r.worktree)}${_el_resume($scope127_id, "d")}/</span>`);
|
|
6572
6612
|
_for_of(r.unpushed, (b) => {
|
|
6573
6613
|
const $scope128_id = _scope_id();
|
|
6574
6614
|
_html(`<span${_attr_class(["_L", 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 `);
|
|
@@ -6587,10 +6627,10 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6587
6627
|
_if(() => {
|
|
6588
6628
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
6589
6629
|
const $scope129_id = _scope_id();
|
|
6590
|
-
_html(`<ul${_attr_class("
|
|
6630
|
+
_html(`<ul${_attr_class("_dM")}>`);
|
|
6591
6631
|
_for_of(r.modified, (f) => {
|
|
6592
6632
|
const $scope132_id = _scope_id();
|
|
6593
|
-
_html(`<li${_attr_class("
|
|
6633
|
+
_html(`<li${_attr_class("_dN")}><span${_attr_class([
|
|
6594
6634
|
"_L",
|
|
6595
6635
|
"_N",
|
|
6596
6636
|
tone.warn
|
|
@@ -6599,18 +6639,18 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6599
6639
|
}, (f) => f, $scope129_id, "b", 1, 1, 1, 0, 1);
|
|
6600
6640
|
_for_of(r.untracked, (f) => {
|
|
6601
6641
|
const $scope133_id = _scope_id();
|
|
6602
|
-
_html(`<li${_attr_class("
|
|
6642
|
+
_html(`<li${_attr_class("_dN")}><span${_attr_class(["_L", "_N"])} title=Untracked>?</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope133_id, "d")}</span></li>`);
|
|
6603
6643
|
writeScope($scope133_id, {});
|
|
6604
6644
|
}, (f) => f, $scope129_id, "c", 1, 1, 1, 0, 1);
|
|
6605
6645
|
_for_of(r.ignored, (f) => {
|
|
6606
6646
|
const $scope134_id = _scope_id();
|
|
6607
|
-
_html(`<li${_attr_class("
|
|
6647
|
+
_html(`<li${_attr_class("_dN")}><span${_attr_class(["_L", "_N"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_w", "__"])}>${_escape(f)}${_el_resume($scope134_id, "d")}</span></li>`);
|
|
6608
6648
|
writeScope($scope134_id, {});
|
|
6609
6649
|
}, (f) => f, $scope129_id, "d", 1, 1, 1, 0, 1);
|
|
6610
6650
|
_if(() => {
|
|
6611
6651
|
if (r.more) {
|
|
6612
6652
|
const $scope130_id = _scope_id();
|
|
6613
|
-
_html(`<li${_attr_class(["
|
|
6653
|
+
_html(`<li${_attr_class(["_dN", "_v"])}>+<!>${_escape(r.more)}${_el_resume($scope130_id, "b")} more</li>`);
|
|
6614
6654
|
_subscribe($for_content19__r_more__closures, writeScope($scope130_id, {}));
|
|
6615
6655
|
return 0;
|
|
6616
6656
|
}
|
|
@@ -6635,27 +6675,27 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6635
6675
|
i: $for_content18__w_name__closures
|
|
6636
6676
|
});
|
|
6637
6677
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
6638
|
-
_html(`<div${_attr_class("
|
|
6678
|
+
_html(`<div${_attr_class("_dO")}><button${_attr_class([btnSm, { ["_p"]: !preflight.unpushed }])}>${preflight.unpushed ? "Export anyway" : "Export"}${_el_resume($scope67_id, "r")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
6639
6679
|
_script($scope67_id, "x79");
|
|
6640
6680
|
writeScope($scope67_id, {});
|
|
6641
6681
|
return 0;
|
|
6642
6682
|
}
|
|
6643
6683
|
}, $scope0_id, "bi", 1, 1, 1, 0, 1);
|
|
6644
|
-
_html(`</div><div${_attr_class("
|
|
6684
|
+
_html(`</div><div${_attr_class("_cA")}><div${_attr_class("_dE")}><div${_attr_class("_bL")}>`);
|
|
6645
6685
|
_if(() => {
|
|
6646
6686
|
if (backupBusy === "restore") {
|
|
6647
6687
|
const $scope66_id = _scope_id();
|
|
6648
|
-
_html(`<span${_attr_class("
|
|
6688
|
+
_html(`<span${_attr_class("_cR")}><span${_attr_class("_E")}></span><!>${_escape(backupLine || "Restoring…")}${_el_resume($scope66_id, "c")}</span>`);
|
|
6649
6689
|
writeScope($scope66_id, {});
|
|
6650
6690
|
return 0;
|
|
6651
6691
|
} else if (restoreDone) {
|
|
6652
6692
|
const $scope74_id = _scope_id();
|
|
6653
|
-
_html(`<span${_attr_class("
|
|
6693
|
+
_html(`<span${_attr_class("_bO")}>${_escape(restoreDone)}${_el_resume($scope74_id, "b")}</span>`);
|
|
6654
6694
|
writeScope($scope74_id, {});
|
|
6655
6695
|
return 1;
|
|
6656
6696
|
} else {
|
|
6657
6697
|
const $scope135_id = _scope_id();
|
|
6658
|
-
_html(`<span${_attr_class("
|
|
6698
|
+
_html(`<span${_attr_class("_bO")}>Load a backup file. Repos clone in the background.</span>`);
|
|
6659
6699
|
writeScope($scope135_id, {});
|
|
6660
6700
|
return 2;
|
|
6661
6701
|
}
|
|
@@ -6663,7 +6703,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6663
6703
|
_if(() => {
|
|
6664
6704
|
if (!restorePreview && backupBusy !== "restore") {
|
|
6665
6705
|
const $scope76_id = _scope_id();
|
|
6666
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
6706
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dF")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
6667
6707
|
_script($scope76_id, "x80");
|
|
6668
6708
|
writeScope($scope76_id, {});
|
|
6669
6709
|
return 0;
|
|
@@ -6674,14 +6714,14 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6674
6714
|
if (restorePreview && backupBusy !== "restore") {
|
|
6675
6715
|
const $scope69_id = _scope_id();
|
|
6676
6716
|
const { preview } = restorePreview;
|
|
6677
|
-
_html(`<div${_attr_class("
|
|
6717
|
+
_html(`<div${_attr_class("_dG")}><p${_attr_class("_dH")}>From <!>${_escape(preview.from.host)}${_el_resume($scope69_id, "c")} on <!>${_escape(new Date(preview.from.exportedAt).toLocaleDateString())}${_el_resume($scope69_id, "d")}<!>${preview.from.version ? ` (work ${_escape(`${preview.from.version}`)})` : ""}${_el_resume($scope69_id, "e")}.</p>`);
|
|
6678
6718
|
_if(() => {
|
|
6679
6719
|
if (preview.workspaces.length) {
|
|
6680
6720
|
const $scope70_id = _scope_id();
|
|
6681
6721
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
6682
6722
|
_for_of(preview.workspaces, (w) => {
|
|
6683
6723
|
const $scope71_id = _scope_id();
|
|
6684
|
-
_html(`<li><label${_attr_class(["
|
|
6724
|
+
_html(`<li><label${_attr_class(["_dQ", { ["_dS"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dR")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(w.name)}${_el_resume($scope71_id, "f")}</span>`);
|
|
6685
6725
|
_if(() => {
|
|
6686
6726
|
if (w.status === "archived") {
|
|
6687
6727
|
const $scope139_id = _scope_id();
|
|
@@ -6703,7 +6743,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6703
6743
|
return 1;
|
|
6704
6744
|
}
|
|
6705
6745
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
6706
|
-
_html(`</span><span${_attr_class("
|
|
6746
|
+
_html(`</span><span${_attr_class("_bO")}>${_escape(w.repos.join(", ") || "no repos")}${_el_resume($scope71_id, "j")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
6707
6747
|
_script($scope71_id, "x81");
|
|
6708
6748
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
6709
6749
|
n: w?.unknownHost,
|
|
@@ -6714,7 +6754,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6714
6754
|
return 0;
|
|
6715
6755
|
} else {
|
|
6716
6756
|
const $scope137_id = _scope_id();
|
|
6717
|
-
_html(`<p${_attr_class("
|
|
6757
|
+
_html(`<p${_attr_class("_bQ")}>No workspaces in this file.</p>`);
|
|
6718
6758
|
writeScope($scope137_id, {});
|
|
6719
6759
|
return 1;
|
|
6720
6760
|
}
|
|
@@ -6754,7 +6794,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6754
6794
|
_if(() => {
|
|
6755
6795
|
if (p.total) {
|
|
6756
6796
|
const $scope73_id = _scope_id();
|
|
6757
|
-
_html(`<li><label${_attr_class(["
|
|
6797
|
+
_html(`<li><label${_attr_class(["_dQ", { ["_dS"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dR")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_bL")}><span${_attr_class("_bM")}>${_escape(p.label)}${_el_resume($scope73_id, "e")}</span><span${_attr_class("_bO")}>`);
|
|
6758
6798
|
_if(() => {
|
|
6759
6799
|
if (p.key === "settings") {
|
|
6760
6800
|
const $scope136_id = _scope_id();
|
|
@@ -6801,7 +6841,7 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6801
6841
|
i: $for_content11__p_total__closures
|
|
6802
6842
|
});
|
|
6803
6843
|
}, "key", $scope69_id, "h");
|
|
6804
|
-
_html(`</ul><div${_attr_class("
|
|
6844
|
+
_html(`</ul><div${_attr_class("_dO")}><button${_attr_class([btnSm, "_p"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
6805
6845
|
_script($scope69_id, "x83");
|
|
6806
6846
|
writeScope($scope69_id, {});
|
|
6807
6847
|
return 0;
|
|
@@ -6987,11 +7027,11 @@ var settings_page_default = _template("x", (input$2) => {
|
|
|
6987
7027
|
});
|
|
6988
7028
|
//#endregion
|
|
6989
7029
|
//#region src/tags/new-workspace.css.ts
|
|
6990
|
-
var content$1 = "_bU
|
|
7030
|
+
var content$1 = "_bU _bx";
|
|
6991
7031
|
var curBase = "_b2 _W _V";
|
|
6992
|
-
var archived = "_b7
|
|
7032
|
+
var archived = "_b7 _bF";
|
|
6993
7033
|
var archivedHint = "_b8 _V";
|
|
6994
|
-
var archivedCard = "_b9
|
|
7034
|
+
var archivedCard = "_b9 _bK";
|
|
6995
7035
|
//#endregion
|
|
6996
7036
|
//#region src/tags/icons/icon-group.marko
|
|
6997
7037
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -7026,8 +7066,8 @@ var icon_branch_default = _template("R", (input) => {
|
|
|
7026
7066
|
});
|
|
7027
7067
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7028
7068
|
});
|
|
7029
|
-
var resultRow = "
|
|
7030
|
-
var resultBranch = "
|
|
7069
|
+
var resultRow = "_dZ _G";
|
|
7070
|
+
var resultBranch = "_d1 _2 _j";
|
|
7031
7071
|
//#endregion
|
|
7032
7072
|
//#region src/tags/branch-pick.marko
|
|
7033
7073
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -7040,11 +7080,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
7040
7080
|
let branchFilter = "";
|
|
7041
7081
|
let reloadTick = 0;
|
|
7042
7082
|
let refreshing = false;
|
|
7043
|
-
_html(`<div${_attr_class("
|
|
7083
|
+
_html(`<div${_attr_class("_d3")}>`);
|
|
7044
7084
|
_if(() => {
|
|
7045
7085
|
{
|
|
7046
7086
|
const $scope4_id = _scope_id();
|
|
7047
|
-
_html(`<p${_attr_class("
|
|
7087
|
+
_html(`<p${_attr_class("_bQ")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
7048
7088
|
writeScope($scope4_id, {});
|
|
7049
7089
|
return 0;
|
|
7050
7090
|
}
|
|
@@ -7146,18 +7186,18 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7146
7186
|
_resume_branch($scope8_id);
|
|
7147
7187
|
}, $scope0_id) };
|
|
7148
7188
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
7149
|
-
_html(`<div${_attr_class([compact ? "
|
|
7189
|
+
_html(`<div${_attr_class([compact ? "_cj" : "_dT", { ["_ck"]: compact && !input$1.open }])}>`);
|
|
7150
7190
|
_if(() => {
|
|
7151
7191
|
if (!compact && ssoPending.length) {
|
|
7152
7192
|
const $scope10_id = _scope_id();
|
|
7153
|
-
_html(`<div${_attr_class("
|
|
7193
|
+
_html(`<div${_attr_class("_dU")}>`);
|
|
7154
7194
|
ssoBlock.content({});
|
|
7155
7195
|
_html("</div>");
|
|
7156
7196
|
writeScope($scope10_id, {});
|
|
7157
7197
|
return 0;
|
|
7158
7198
|
}
|
|
7159
7199
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
7160
|
-
_html(`<label${_attr_class(["_Z", compact && "
|
|
7200
|
+
_html(`<label${_attr_class(["_Z", compact && "_cl"])}>`);
|
|
7161
7201
|
icon_search_default({
|
|
7162
7202
|
size: 14,
|
|
7163
7203
|
class: "_0"
|
|
@@ -7169,12 +7209,12 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7169
7209
|
}, "v0", $scope0_id))}${_attr_class([
|
|
7170
7210
|
compact ? "_X" : inputLg,
|
|
7171
7211
|
"_1",
|
|
7172
|
-
compact && "
|
|
7212
|
+
compact && "_cm"
|
|
7173
7213
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$1.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
7174
7214
|
_if(() => {
|
|
7175
7215
|
if (compact) {
|
|
7176
7216
|
const $scope1_id = _scope_id();
|
|
7177
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7217
|
+
_html(`<button${_attr_class([iconBtnRow, "_cn"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$1.open)}>`);
|
|
7178
7218
|
icon_xmark_default({ size: 12 });
|
|
7179
7219
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
7180
7220
|
_script($scope1_id, "v14");
|
|
@@ -7182,11 +7222,11 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7182
7222
|
return 0;
|
|
7183
7223
|
}
|
|
7184
7224
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
7185
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
7225
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_dV"])}${_attr("hidden", !hasBody || compact && !input$1.open)}>`);
|
|
7186
7226
|
_if(() => {
|
|
7187
7227
|
if (compact && ssoPending.length) {
|
|
7188
7228
|
const $scope11_id = _scope_id();
|
|
7189
|
-
_html(`<div${_attr_class("
|
|
7229
|
+
_html(`<div${_attr_class("_dU")}>`);
|
|
7190
7230
|
ssoBlock.content({});
|
|
7191
7231
|
_html("</div>");
|
|
7192
7232
|
writeScope($scope11_id, {});
|
|
@@ -7196,16 +7236,16 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7196
7236
|
_if(() => {
|
|
7197
7237
|
if (pasted) {
|
|
7198
7238
|
const $scope2_id = _scope_id();
|
|
7199
|
-
_html(`<ul${_attr_class("
|
|
7239
|
+
_html(`<ul${_attr_class("_dW")}><li><div${_attr_class(["_dY", "_dX"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
7200
7240
|
icon_plus_default({
|
|
7201
7241
|
size: 12,
|
|
7202
|
-
class: "
|
|
7242
|
+
class: "_d5"
|
|
7203
7243
|
});
|
|
7204
|
-
_html(`<span${_attr_class("
|
|
7244
|
+
_html(`<span${_attr_class("_d6")}>${_escape(repoLabel(pasted))}${_el_resume($scope2_id, "f")}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
7205
7245
|
_if(() => {
|
|
7206
7246
|
if (pastedForkable) {
|
|
7207
7247
|
const $scope9_id = _scope_id();
|
|
7208
|
-
_html(`<button${_attr_class(["
|
|
7248
|
+
_html(`<button${_attr_class(["_d2", { ["_d0"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
7209
7249
|
_if(() => {
|
|
7210
7250
|
if (pasteWillFork) {
|
|
7211
7251
|
const $scope13_id = _scope_id();
|
|
@@ -7225,7 +7265,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7225
7265
|
return 0;
|
|
7226
7266
|
}
|
|
7227
7267
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
7228
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
7268
|
+
_html(`<button${_attr_class([resultBranch, { ["_d0"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
7229
7269
|
icon_branch_default({ size: 12 });
|
|
7230
7270
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
7231
7271
|
_if(() => {
|
|
@@ -7252,7 +7292,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7252
7292
|
return 0;
|
|
7253
7293
|
} else if (filter && !catalog) {
|
|
7254
7294
|
const $scope12_id = _scope_id();
|
|
7255
|
-
_html(`<p${_attr_class("
|
|
7295
|
+
_html(`<p${_attr_class("_bQ")}>Loading repos…</p>`);
|
|
7256
7296
|
writeScope($scope12_id, {});
|
|
7257
7297
|
return 1;
|
|
7258
7298
|
}
|
|
@@ -7260,15 +7300,15 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7260
7300
|
_if(() => {
|
|
7261
7301
|
if (results.length) {
|
|
7262
7302
|
const $scope4_id = _scope_id();
|
|
7263
|
-
_html(`<ul${_attr_class("
|
|
7303
|
+
_html(`<ul${_attr_class("_dW")}>`);
|
|
7264
7304
|
_for_of(results, (repo, i) => {
|
|
7265
7305
|
const $scope5_id = _scope_id();
|
|
7266
|
-
_html(`<li><div${_attr_class(["
|
|
7306
|
+
_html(`<li><div${_attr_class(["_dY", { ["_dX"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
7267
7307
|
icon_plus_default({
|
|
7268
7308
|
size: 12,
|
|
7269
|
-
class: "
|
|
7309
|
+
class: "_d5"
|
|
7270
7310
|
});
|
|
7271
|
-
_html(`<span${_attr_class("
|
|
7311
|
+
_html(`<span${_attr_class("_d6")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope5_id, "e")}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_d0"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
7272
7312
|
icon_branch_default({ size: 12 });
|
|
7273
7313
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
7274
7314
|
_if(() => {
|
|
@@ -7303,7 +7343,7 @@ var repo_picker_default = _template("v", (input$1) => {
|
|
|
7303
7343
|
return 0;
|
|
7304
7344
|
} else if (filter && catalog && !pasted) {
|
|
7305
7345
|
const $scope7_id = _scope_id();
|
|
7306
|
-
_html(`<p${_attr_class("
|
|
7346
|
+
_html(`<p${_attr_class("_bQ")}>No repos match "<!>${_escape(filter)}${_el_resume($scope7_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
7307
7347
|
writeScope($scope7_id, {});
|
|
7308
7348
|
return 1;
|
|
7309
7349
|
}
|
|
@@ -7468,8 +7508,8 @@ function parseInvite(text) {
|
|
|
7468
7508
|
}
|
|
7469
7509
|
//#endregion
|
|
7470
7510
|
//#region src/tags/join-dialog.css.ts
|
|
7471
|
-
var dlg = "
|
|
7472
|
-
var hint = "
|
|
7511
|
+
var dlg = "_eM _eI";
|
|
7512
|
+
var hint = "_eN _V";
|
|
7473
7513
|
//#endregion
|
|
7474
7514
|
//#region src/tags/join-dialog.marko
|
|
7475
7515
|
var api$4;
|
|
@@ -7602,26 +7642,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7602
7642
|
content: _content("o12", () => {
|
|
7603
7643
|
_scope_reason();
|
|
7604
7644
|
const $scope1_id = _scope_id();
|
|
7605
|
-
_html(`<h2${_attr_class("
|
|
7645
|
+
_html(`<h2${_attr_class("_eJ")}${_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([
|
|
7606
7646
|
"_X",
|
|
7607
7647
|
"_w",
|
|
7608
|
-
"
|
|
7648
|
+
"_eP"
|
|
7609
7649
|
])} 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")}`);
|
|
7610
7650
|
_if(() => {
|
|
7611
7651
|
if (parsed.error) {
|
|
7612
7652
|
const $scope8_id = _scope_id();
|
|
7613
|
-
_html(`<p${_attr_class([hint, "
|
|
7653
|
+
_html(`<p${_attr_class([hint, "_eO"])}>${_escape(parsed.error)}${_el_resume($scope8_id, "b")}</p>`);
|
|
7614
7654
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cae: 1 }));
|
|
7615
7655
|
return 0;
|
|
7616
7656
|
} else if (parsed.ok) {
|
|
7617
7657
|
const $scope3_id = _scope_id();
|
|
7618
|
-
_html(`<ul${_attr_class("
|
|
7658
|
+
_html(`<ul${_attr_class("_eQ")}>`);
|
|
7619
7659
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
7620
7660
|
const $scope9_id = _scope_id();
|
|
7621
|
-
_html(`<li${_attr_class("
|
|
7661
|
+
_html(`<li${_attr_class("_eR")}><span${_attr_class("_eS")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
7622
7662
|
writeScope($scope9_id, {});
|
|
7623
7663
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
7624
|
-
_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("
|
|
7664
|
+
_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("_eT")}><span${_attr_class("_bT")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
7625
7665
|
name = _new_name;
|
|
7626
7666
|
}, "o1", $scope3_id))}${_attr_class("_X")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
7627
7667
|
_script($scope3_id, "o8");
|
|
@@ -7658,10 +7698,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7658
7698
|
_if(() => {
|
|
7659
7699
|
if (busy && steps$2.length) {
|
|
7660
7700
|
const $scope6_id = _scope_id();
|
|
7661
|
-
_html(`<ul${_attr_class("
|
|
7701
|
+
_html(`<ul${_attr_class("_eU")}>`);
|
|
7662
7702
|
_for_of(steps$2, (step$2, i) => {
|
|
7663
7703
|
const $scope7_id = _scope_id();
|
|
7664
|
-
_html(`<li${_attr_class(["
|
|
7704
|
+
_html(`<li${_attr_class(["_eW", { ["_eV"]: i === steps$2.length - 1 }])}>`);
|
|
7665
7705
|
_if(() => {
|
|
7666
7706
|
if (i === steps$2.length - 1) {
|
|
7667
7707
|
const $scope10_id = _scope_id();
|
|
@@ -7670,7 +7710,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
7670
7710
|
return 0;
|
|
7671
7711
|
} else {
|
|
7672
7712
|
const $scope11_id = _scope_id();
|
|
7673
|
-
_html(`<span${_attr_class("
|
|
7713
|
+
_html(`<span${_attr_class("_eX")}>`);
|
|
7674
7714
|
icon_check_default({ size: 14 });
|
|
7675
7715
|
_html("</span>");
|
|
7676
7716
|
writeScope($scope11_id, {});
|
|
@@ -7825,7 +7865,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7825
7865
|
}
|
|
7826
7866
|
}, "s6", $scope0_id);
|
|
7827
7867
|
const titleId = _id();
|
|
7828
|
-
_html(`<div${_attr_class("
|
|
7868
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content$1)}>`);
|
|
7829
7869
|
_set_serialize_reason({
|
|
7830
7870
|
0: _serialize_guard($scope0_reason, 2),
|
|
7831
7871
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -7874,9 +7914,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7874
7914
|
return 0;
|
|
7875
7915
|
}
|
|
7876
7916
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
7877
|
-
_html(`<label${_attr_class("_bX")}><span${_attr_class("
|
|
7917
|
+
_html(`<label${_attr_class("_bX")}><span${_attr_class("_bT")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
7878
7918
|
name = _new_name;
|
|
7879
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
7919
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bF")}><div${_attr_class("_bY")}><h2${_attr_class("_bT")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7880
7920
|
_set_serialize_reason(1);
|
|
7881
7921
|
const $childScope2 = _peek_scope_id();
|
|
7882
7922
|
icon_refresh_default({
|
|
@@ -7949,7 +7989,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
7949
7989
|
_if(() => {
|
|
7950
7990
|
if (!selected.length) {
|
|
7951
7991
|
const $scope16_id = _scope_id();
|
|
7952
|
-
_html(`<li${_attr_class("
|
|
7992
|
+
_html(`<li${_attr_class("_bQ")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
7953
7993
|
writeScope($scope16_id, {});
|
|
7954
7994
|
return 0;
|
|
7955
7995
|
}
|
|
@@ -8018,10 +8058,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
8018
8058
|
_if(() => {
|
|
8019
8059
|
if (archived$1.length) {
|
|
8020
8060
|
const $scope6_id = _scope_id();
|
|
8021
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("
|
|
8061
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("_bT")}>Archived</h2><span${_attr_class(sectionCount)}>${_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("_bI")}>`);
|
|
8022
8062
|
_for_of(archived$1, (ws) => {
|
|
8023
8063
|
const $scope7_id = _scope_id();
|
|
8024
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
8064
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bL")}><span${_attr_class("_bM")}>${_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)}>`);
|
|
8025
8065
|
_if(() => {
|
|
8026
8066
|
if (restoring === ws.id) {
|
|
8027
8067
|
const $scope19_id = _scope_id();
|
|
@@ -8145,9 +8185,9 @@ function vapidKey(base64) {
|
|
|
8145
8185
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
8146
8186
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
8147
8187
|
}
|
|
8148
|
-
var iconBtn = "
|
|
8149
|
-
var settingsDot = "
|
|
8150
|
-
var navToggle = "
|
|
8188
|
+
var iconBtn = "_el _j";
|
|
8189
|
+
var settingsDot = "_em _ba";
|
|
8190
|
+
var navToggle = "_eq _j";
|
|
8151
8191
|
_template("Q", (input) => {
|
|
8152
8192
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
8153
8193
|
const $scope0_id = _scope_id();
|
|
@@ -8190,12 +8230,12 @@ var ARM_MS = 3500;
|
|
|
8190
8230
|
function disarmLater(fn) {
|
|
8191
8231
|
return setTimeout(fn, ARM_MS);
|
|
8192
8232
|
}
|
|
8193
|
-
var railBtn = "
|
|
8194
|
-
var wsBtn = "
|
|
8195
|
-
var rowIcon = "
|
|
8196
|
-
var close = "
|
|
8197
|
-
var sessRename$1 = "
|
|
8198
|
-
var sessBtn$1 = "
|
|
8233
|
+
var railBtn = "_hu _j";
|
|
8234
|
+
var wsBtn = "_hz _G";
|
|
8235
|
+
var rowIcon = "_hC _2 _j";
|
|
8236
|
+
var close = "_hD _5 _j _6";
|
|
8237
|
+
var sessRename$1 = "_hP _H";
|
|
8238
|
+
var sessBtn$1 = "_hR _G";
|
|
8199
8239
|
//#endregion
|
|
8200
8240
|
//#region src/styles/session-pop.css.ts
|
|
8201
8241
|
var sessionPop = "_hq _8";
|
|
@@ -8281,7 +8321,7 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
8281
8321
|
return 0;
|
|
8282
8322
|
}
|
|
8283
8323
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
8284
|
-
_html(`<span${_attr_class("_gz")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_gA", win$1.used_percent >= 90 ? "
|
|
8324
|
+
_html(`<span${_attr_class("_gz")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_gA", win$1.used_percent >= 90 ? "_gs" : win$1.used_percent >= 70 ? "_gr" : win$1.used_percent >= 40 ? "_gq" : "_gp"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
8285
8325
|
$si__input_agent && writeScope($scope2_id, {});
|
|
8286
8326
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
8287
8327
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -8443,7 +8483,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
8443
8483
|
}, "full_name", $scope1_id, "b");
|
|
8444
8484
|
_for_of(ports, (p) => {
|
|
8445
8485
|
const $scope5_id = _scope_id();
|
|
8446
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_iA", "_iG"])}${_attr("title", `Open
|
|
8486
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_iA", "_iG"])}${_attr("title", `Open port ${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
8447
8487
|
"_iA",
|
|
8448
8488
|
"_iB",
|
|
8449
8489
|
"_iC",
|
|
@@ -8546,7 +8586,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8546
8586
|
_if(() => {
|
|
8547
8587
|
if (input.rail) {
|
|
8548
8588
|
const $scope2_id = _scope_id();
|
|
8549
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
8589
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_hs"]: 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([
|
|
8550
8590
|
"_y",
|
|
8551
8591
|
phase[dot],
|
|
8552
8592
|
"_ba"
|
|
@@ -8556,30 +8596,30 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8556
8596
|
} else if (ws$1.pending) {
|
|
8557
8597
|
const $scope3_id = _scope_id();
|
|
8558
8598
|
_html(`<section${_attr_class([
|
|
8559
|
-
"
|
|
8560
|
-
"
|
|
8599
|
+
"_hw",
|
|
8600
|
+
"_hT",
|
|
8561
8601
|
{
|
|
8562
|
-
["
|
|
8563
|
-
["
|
|
8602
|
+
["_hx"]: input.railPop,
|
|
8603
|
+
["_hv"]: input.page
|
|
8564
8604
|
}
|
|
8565
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
8605
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_hy")}><div${_attr_class(wsBtn)}>`);
|
|
8566
8606
|
_if(() => {
|
|
8567
8607
|
if (ws$1.pending_error) {
|
|
8568
8608
|
const $scope15_id = _scope_id();
|
|
8569
8609
|
icon_warning_default({
|
|
8570
8610
|
size: 12,
|
|
8571
|
-
class: "
|
|
8611
|
+
class: "_hV"
|
|
8572
8612
|
});
|
|
8573
8613
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
8574
8614
|
return 0;
|
|
8575
8615
|
} else {
|
|
8576
8616
|
const $scope16_id = _scope_id();
|
|
8577
|
-
_html(`<span${_attr_class(["_E", "
|
|
8617
|
+
_html(`<span${_attr_class(["_E", "_hU"])}></span>`);
|
|
8578
8618
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
8579
8619
|
return 1;
|
|
8580
8620
|
}
|
|
8581
8621
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
8582
|
-
_html(`<span${_attr_class("
|
|
8622
|
+
_html(`<span${_attr_class("_hF")}><span${_attr_class("_hG")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "g", $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_hW")}${_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))}`);
|
|
8583
8623
|
_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, {
|
|
8584
8624
|
_: _scope_with_id($scope1_id),
|
|
8585
8625
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -8589,15 +8629,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8589
8629
|
const $scope4_id = _scope_id();
|
|
8590
8630
|
const sessions$1 = input.sessions || [];
|
|
8591
8631
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
8592
|
-
_html(`<section${_attr_class(["
|
|
8593
|
-
["
|
|
8632
|
+
_html(`<section${_attr_class(["_hw", {
|
|
8633
|
+
["_hs"]: input.current,
|
|
8594
8634
|
["_bb"]: input.current,
|
|
8595
|
-
["
|
|
8596
|
-
["
|
|
8597
|
-
}])}><div${_attr_class("
|
|
8635
|
+
["_hx"]: input.railPop,
|
|
8636
|
+
["_hv"]: input.page
|
|
8637
|
+
}])}><div${_attr_class("_hy")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
8598
8638
|
"_y",
|
|
8599
8639
|
phase[dot],
|
|
8600
|
-
"
|
|
8640
|
+
"_hL"
|
|
8601
8641
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
8602
8642
|
_if(() => {
|
|
8603
8643
|
if (sessions$1.length === 1) {
|
|
@@ -8610,7 +8650,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8610
8650
|
icon_agent_default({
|
|
8611
8651
|
agent: activeAgent(sessions$1[0]),
|
|
8612
8652
|
size: 12,
|
|
8613
|
-
class: "
|
|
8653
|
+
class: "_hE"
|
|
8614
8654
|
});
|
|
8615
8655
|
$si__input_sessions && writeScope($scope17_id, {
|
|
8616
8656
|
_: _scope_with_id($scope4_id),
|
|
@@ -8620,11 +8660,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8620
8660
|
}
|
|
8621
8661
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
8622
8662
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
8623
|
-
_html(`<span${_attr_class("
|
|
8663
|
+
_html(`<span${_attr_class("_hF")}><span${_attr_class("_hG")}>${_escape(ws$1.name)}${_el_resume($scope4_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
8624
8664
|
_if(() => {
|
|
8625
8665
|
if (input.page && metaText) {
|
|
8626
8666
|
const $scope18_id = _scope_id();
|
|
8627
|
-
_html(`<span${_attr_class("
|
|
8667
|
+
_html(`<span${_attr_class("_hJ")}>${_escape(metaText)}${_el_resume($scope18_id, "b", _serialize_guard($scope0_reason, 6))}</span>`);
|
|
8628
8668
|
$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) });
|
|
8629
8669
|
return 0;
|
|
8630
8670
|
}
|
|
@@ -8637,7 +8677,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8637
8677
|
"_L",
|
|
8638
8678
|
"_U",
|
|
8639
8679
|
"_N",
|
|
8640
|
-
"
|
|
8680
|
+
"_hK"
|
|
8641
8681
|
])}>${input.current ? "Open" : ""}${_el_resume($scope5_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
8642
8682
|
$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, {
|
|
8643
8683
|
_: _scope_with_id($scope4_id),
|
|
@@ -8650,7 +8690,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8650
8690
|
_if(() => {
|
|
8651
8691
|
if (!input.page) {
|
|
8652
8692
|
const $scope6_id = _scope_id();
|
|
8653
|
-
_html(`<div${_attr_class("
|
|
8693
|
+
_html(`<div${_attr_class("_hA")}>`);
|
|
8654
8694
|
_if(() => {
|
|
8655
8695
|
if (input.onNewSession) {
|
|
8656
8696
|
const $scope7_id = _scope_id();
|
|
@@ -8699,7 +8739,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8699
8739
|
return 0;
|
|
8700
8740
|
}
|
|
8701
8741
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
8702
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
8742
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_ht"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
8703
8743
|
icon_manage_default({ size: 12 });
|
|
8704
8744
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
8705
8745
|
_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, {
|
|
@@ -8709,7 +8749,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8709
8749
|
return 0;
|
|
8710
8750
|
}
|
|
8711
8751
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
8712
|
-
_html(`</div><div${_attr_class("
|
|
8752
|
+
_html(`</div><div${_attr_class("_hQ")}>`);
|
|
8713
8753
|
_if(() => {
|
|
8714
8754
|
if (sessions$1.length === 1 && openPlan) {
|
|
8715
8755
|
const $scope12_id = _scope_id();
|
|
@@ -8717,7 +8757,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8717
8757
|
const $childScope3 = _peek_scope_id();
|
|
8718
8758
|
usage_pcts_default({
|
|
8719
8759
|
agent: openPlan,
|
|
8720
|
-
class: "
|
|
8760
|
+
class: "_hH"
|
|
8721
8761
|
});
|
|
8722
8762
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
8723
8763
|
a: _existing_scope($childScope3),
|
|
@@ -8728,14 +8768,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8728
8768
|
}, $scope4_id, "m");
|
|
8729
8769
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
8730
8770
|
const $scope9_id = _scope_id();
|
|
8731
|
-
_html(`<div${_attr_class(["
|
|
8771
|
+
_html(`<div${_attr_class(["_hB", { ["_hs"]: s.id === input.currentTab }])}>`);
|
|
8732
8772
|
_if(() => {
|
|
8733
8773
|
if (renamingId === s.id) {
|
|
8734
8774
|
const $scope11_id = _scope_id();
|
|
8735
8775
|
_html(`<span${_attr_class([
|
|
8736
8776
|
"_y",
|
|
8737
8777
|
phase[sessionPhase(s.state)],
|
|
8738
|
-
"
|
|
8778
|
+
"_hO"
|
|
8739
8779
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
8740
8780
|
_set_serialize_reason({
|
|
8741
8781
|
1: $sg__input_sessions,
|
|
@@ -8745,7 +8785,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8745
8785
|
icon_agent_default({
|
|
8746
8786
|
agent: activeAgent(s),
|
|
8747
8787
|
size: 12,
|
|
8748
|
-
class: "
|
|
8788
|
+
class: "_hS"
|
|
8749
8789
|
});
|
|
8750
8790
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8751
8791
|
renameValue = _new_renameValue;
|
|
@@ -8764,9 +8804,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8764
8804
|
icon_agent_default({
|
|
8765
8805
|
agent: activeAgent(s),
|
|
8766
8806
|
size: 12,
|
|
8767
|
-
class: "
|
|
8807
|
+
class: "_hS"
|
|
8768
8808
|
});
|
|
8769
|
-
_html(`<span${_attr_class("
|
|
8809
|
+
_html(`<span${_attr_class("_hM")}>${_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("_hN")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
8770
8810
|
icon_edit_default({ size: 12 });
|
|
8771
8811
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
8772
8812
|
icon_xmark_default({ size: 12 });
|
|
@@ -8778,7 +8818,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
8778
8818
|
const $childScope6 = _peek_scope_id();
|
|
8779
8819
|
usage_pcts_default({
|
|
8780
8820
|
agent: openPlan,
|
|
8781
|
-
class: "
|
|
8821
|
+
class: "_hI"
|
|
8782
8822
|
});
|
|
8783
8823
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
8784
8824
|
a: _existing_scope($childScope6),
|
|
@@ -8994,28 +9034,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
8994
9034
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
8995
9035
|
_html(`<script${_attr_nonce()}>${_escape_script(`
|
|
8996
9036
|
${_to_text(`if (matchMedia("(max-width: 899px)").matches) document.documentElement.classList.add("work-no-rail");`)};
|
|
8997
|
-
`)}<\/script><aside${_attr_class(["
|
|
8998
|
-
["
|
|
8999
|
-
["
|
|
9037
|
+
`)}<\/script><aside${_attr_class(["_ep", {
|
|
9038
|
+
["_en"]: !navOpen,
|
|
9039
|
+
["_eo"]: isPage
|
|
9000
9040
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
9001
9041
|
_if(() => {
|
|
9002
9042
|
if (isPage) {
|
|
9003
9043
|
const $scope1_id = _scope_id();
|
|
9004
|
-
_html(`<header${_attr_class("
|
|
9044
|
+
_html(`<header${_attr_class("_es")}><div${_attr_class("_eB")}>`);
|
|
9005
9045
|
_if(() => {
|
|
9006
9046
|
if (input.instanceName) {
|
|
9007
9047
|
const $scope2_id = _scope_id();
|
|
9008
|
-
_html(`<div${_attr_class("
|
|
9048
|
+
_html(`<div${_attr_class("_ey")} title="This work server (Settings → Appearance)"><img${_attr_class("_ez")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eA")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9009
9049
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
9010
9050
|
return 0;
|
|
9011
9051
|
}
|
|
9012
9052
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
9013
|
-
_html(`<h1${_attr_class("
|
|
9053
|
+
_html(`<h1${_attr_class("_et")}>Workspaces</h1></div><div${_attr_class("_eu")}>`);
|
|
9014
9054
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
9015
9055
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
9016
9056
|
iconBtn,
|
|
9017
|
-
"
|
|
9018
|
-
{ ["
|
|
9057
|
+
"_ev",
|
|
9058
|
+
{ ["_ek"]: view === "settings" }
|
|
9019
9059
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9020
9060
|
icon_settings_default({ size: 16 });
|
|
9021
9061
|
_if(() => {
|
|
@@ -9034,18 +9074,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9034
9074
|
_if(() => {
|
|
9035
9075
|
if (!isPage && input.instanceName) {
|
|
9036
9076
|
const $scope3_id = _scope_id();
|
|
9037
|
-
_html(`<div${_attr_class("
|
|
9077
|
+
_html(`<div${_attr_class("_ey")} title="This work server (Settings → Appearance)"><img${_attr_class("_ez")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eA")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
9038
9078
|
writeScope($scope3_id, {});
|
|
9039
9079
|
return 0;
|
|
9040
9080
|
}
|
|
9041
9081
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9042
|
-
_html(`<div${_attr_class("
|
|
9082
|
+
_html(`<div${_attr_class("_eC")}>`);
|
|
9043
9083
|
_for_of(listIds, (wsId) => {
|
|
9044
9084
|
const $scope4_id = _scope_id();
|
|
9045
9085
|
_if(() => {
|
|
9046
9086
|
if (isPage && wsId === ws.id) {
|
|
9047
9087
|
const $scope13_id = _scope_id();
|
|
9048
|
-
_html(`<h2${_attr_class(["
|
|
9088
|
+
_html(`<h2${_attr_class(["_bT", "_ew"])}>Current</h2>`);
|
|
9049
9089
|
writeScope($scope13_id, {});
|
|
9050
9090
|
return 0;
|
|
9051
9091
|
}
|
|
@@ -9053,7 +9093,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9053
9093
|
_if(() => {
|
|
9054
9094
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
9055
9095
|
const $scope14_id = _scope_id();
|
|
9056
|
-
_html(`<h2${_attr_class(["
|
|
9096
|
+
_html(`<h2${_attr_class(["_bT", "_ew"])}>Other workspaces</h2>`);
|
|
9057
9097
|
writeScope($scope14_id, {});
|
|
9058
9098
|
return 0;
|
|
9059
9099
|
}
|
|
@@ -9137,7 +9177,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9137
9177
|
railHover = null;
|
|
9138
9178
|
}, 150);
|
|
9139
9179
|
}, "A6", $scope5_id);
|
|
9140
|
-
_html(`<div${_attr_class("
|
|
9180
|
+
_html(`<div${_attr_class("_eD")} data-rail>`);
|
|
9141
9181
|
_for_of(itemIds, (wsId, i) => {
|
|
9142
9182
|
const $scope6_id = _scope_id();
|
|
9143
9183
|
_html("<span>");
|
|
@@ -9191,7 +9231,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9191
9231
|
if (railHover) {
|
|
9192
9232
|
const $scope7_id = _scope_id();
|
|
9193
9233
|
const hoverId = railHover.id;
|
|
9194
|
-
_html(`<div${_attr_class(["_8", "
|
|
9234
|
+
_html(`<div${_attr_class(["_8", "_eG"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
9195
9235
|
_set_serialize_reason({
|
|
9196
9236
|
0: 1,
|
|
9197
9237
|
1: 1,
|
|
@@ -9276,7 +9316,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9276
9316
|
return 0;
|
|
9277
9317
|
}
|
|
9278
9318
|
}, $scope0_id, "f");
|
|
9279
|
-
_html(`<div${_attr_class("
|
|
9319
|
+
_html(`<div${_attr_class("_eE")}>`);
|
|
9280
9320
|
_if(() => {
|
|
9281
9321
|
if (isPage) {
|
|
9282
9322
|
const $scope9_id = _scope_id();
|
|
@@ -9284,7 +9324,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9284
9324
|
"_o",
|
|
9285
9325
|
"_p",
|
|
9286
9326
|
btnLg,
|
|
9287
|
-
"
|
|
9327
|
+
"_ex"
|
|
9288
9328
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9289
9329
|
icon_folder_plus_default({ size: 16 });
|
|
9290
9330
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -9306,9 +9346,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9306
9346
|
return 1;
|
|
9307
9347
|
}
|
|
9308
9348
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
9309
|
-
_html(`<div${_attr_class(["_x", "
|
|
9349
|
+
_html(`<div${_attr_class(["_x", "_eF"])}></div>`);
|
|
9310
9350
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
9311
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
9351
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_ek"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
9312
9352
|
icon_settings_default({});
|
|
9313
9353
|
_if(() => {
|
|
9314
9354
|
if (input.setupReady === false) {
|
|
@@ -9318,7 +9358,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9318
9358
|
return 0;
|
|
9319
9359
|
}
|
|
9320
9360
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
9321
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
9361
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_ek"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
9322
9362
|
icon_folder_plus_default({ size: 16 });
|
|
9323
9363
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
9324
9364
|
_script($scope8_id, "A15");
|
|
@@ -9388,9 +9428,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
9388
9428
|
});
|
|
9389
9429
|
//#endregion
|
|
9390
9430
|
//#region src/tags/manage-workspace.css.ts
|
|
9391
|
-
var content = "
|
|
9392
|
-
var pageMeta = "
|
|
9393
|
-
var pathMeta = "
|
|
9431
|
+
var content = "_fr _bx";
|
|
9432
|
+
var pageMeta = "_fs _bC";
|
|
9433
|
+
var pathMeta = "_fv _w";
|
|
9394
9434
|
//#endregion
|
|
9395
9435
|
//#region src/tags/icons/icon-clipboard.marko
|
|
9396
9436
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -9565,7 +9605,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9565
9605
|
setTimeout(() => loadProcs(void 0), 500);
|
|
9566
9606
|
}, "q9", $scope0_id);
|
|
9567
9607
|
const titleId = _id();
|
|
9568
|
-
_html(`<div${_attr_class("
|
|
9608
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content)}>`);
|
|
9569
9609
|
_set_serialize_reason(286);
|
|
9570
9610
|
let $actions;
|
|
9571
9611
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q18", () => {
|
|
@@ -9601,7 +9641,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9601
9641
|
meta: attrTag({ content: _content_resume("q17", () => {
|
|
9602
9642
|
_scope_reason();
|
|
9603
9643
|
const $scope15_id = _scope_id();
|
|
9604
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
9644
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_ft")}>${_escape(ws.name)}${_el_resume($scope15_id, "c")}</span>`);
|
|
9605
9645
|
_if(() => {
|
|
9606
9646
|
if (ws.status !== "active") {
|
|
9607
9647
|
const $scope19_id = _scope_id();
|
|
@@ -9610,7 +9650,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9610
9650
|
return 0;
|
|
9611
9651
|
}
|
|
9612
9652
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
9613
|
-
_html(`<span${_attr_class("
|
|
9653
|
+
_html(`<span${_attr_class("_fu")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope15_id, "g")}</span></span>${_el_resume($scope15_id, "a")}`);
|
|
9614
9654
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope15_id, { _: _scope_with_id($scope0_id) })))));
|
|
9615
9655
|
_resume_branch($scope15_id);
|
|
9616
9656
|
}, $scope0_id) })
|
|
@@ -9638,32 +9678,32 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9638
9678
|
_if(() => {
|
|
9639
9679
|
if (pendingAction && actionStep) {
|
|
9640
9680
|
const $scope11_id = _scope_id();
|
|
9641
|
-
_html(`<p${_attr_class("
|
|
9681
|
+
_html(`<p${_attr_class("_bE")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
9642
9682
|
writeScope($scope11_id, {});
|
|
9643
9683
|
return 0;
|
|
9644
9684
|
}
|
|
9645
9685
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
9646
|
-
_html(`<section${_attr_class("
|
|
9686
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Workspace</h2></div><div${_attr_class(["_bK", "_cz"])}><div${_attr_class(["_cA", "_cB"])}>`);
|
|
9647
9687
|
_if(() => {
|
|
9648
9688
|
if (ws.status === "active") {
|
|
9649
9689
|
const $scope8_id = _scope_id();
|
|
9650
|
-
_html(`<span${_attr_class("
|
|
9690
|
+
_html(`<span${_attr_class("_cD")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "c")}</button>${_el_resume($scope8_id, "b")}`);
|
|
9651
9691
|
_script($scope8_id, "q20");
|
|
9652
9692
|
writeScope($scope8_id, {});
|
|
9653
9693
|
return 0;
|
|
9654
9694
|
} else {
|
|
9655
9695
|
const $scope9_id = _scope_id();
|
|
9656
|
-
_html(`<span${_attr_class("
|
|
9696
|
+
_html(`<span${_attr_class("_cD")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_p"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "restore" ? "Restoring…" : "Restore"}${_el_resume($scope9_id, "c")}</button>${_el_resume($scope9_id, "b")}`);
|
|
9657
9697
|
_script($scope9_id, "q21");
|
|
9658
9698
|
writeScope($scope9_id, {});
|
|
9659
9699
|
return 1;
|
|
9660
9700
|
}
|
|
9661
9701
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
9662
|
-
_html(`<div${_attr_class(["
|
|
9702
|
+
_html(`<div${_attr_class(["_cA", "_cB"])}><span${_attr_class("_cD")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
9663
9703
|
btnSm,
|
|
9664
9704
|
"_r",
|
|
9665
9705
|
{ ["_q"]: confirmingDelete }
|
|
9666
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "o")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("
|
|
9706
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "o")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtnRow)} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
9667
9707
|
icon_plus_default({ size: 16 });
|
|
9668
9708
|
_html(`</button>${_el_resume($scope0_id, "v")}`);
|
|
9669
9709
|
_set_serialize_reason(66);
|
|
@@ -9694,13 +9734,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9694
9734
|
class: catalogRefreshing && "_D"
|
|
9695
9735
|
});
|
|
9696
9736
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
9697
|
-
"
|
|
9698
|
-
"
|
|
9699
|
-
"
|
|
9737
|
+
"_bK",
|
|
9738
|
+
"_cz",
|
|
9739
|
+
"_cN"
|
|
9700
9740
|
])}>`);
|
|
9701
9741
|
_for_of(ws.repos, (row) => {
|
|
9702
9742
|
const $scope1_id = _scope_id();
|
|
9703
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9743
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bL")}><span${_attr_class(["_bM", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bN")}><a${_attr_class(["_bO", "_I"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
9704
9744
|
_if(() => {
|
|
9705
9745
|
if (row.base_branch !== row.default_branch) {
|
|
9706
9746
|
const $scope22_id = _scope_id();
|
|
@@ -9721,7 +9761,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9721
9761
|
} else {
|
|
9722
9762
|
const $scope10_id = _scope_id();
|
|
9723
9763
|
_html(`<button${_attr_class([
|
|
9724
|
-
"
|
|
9764
|
+
"_bP",
|
|
9725
9765
|
"_6",
|
|
9726
9766
|
"_7",
|
|
9727
9767
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -9754,13 +9794,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9754
9794
|
}, "full_name", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
9755
9795
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
9756
9796
|
const $scope26_id = _scope_id();
|
|
9757
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
9797
|
+
_html(`<li${_attr_class([flatCardRow, "_bJ"])}><span${_attr_class("_E")}></span><div${_attr_class("_bL")}><span${_attr_class("_bO")}>Adding <!>${_escape(name)}${_el_resume($scope26_id, "e")}…</span></div></li>`);
|
|
9758
9798
|
writeScope($scope26_id, {});
|
|
9759
9799
|
}, (n) => n, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
9760
9800
|
_if(() => {
|
|
9761
9801
|
if (!ws.repos.length && !busy.size) {
|
|
9762
9802
|
const $scope27_id = _scope_id();
|
|
9763
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
9803
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bO")}>No repos yet. Add one to start.</span></li>`);
|
|
9764
9804
|
writeScope($scope27_id, {});
|
|
9765
9805
|
return 0;
|
|
9766
9806
|
}
|
|
@@ -9771,7 +9811,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9771
9811
|
_if(() => {
|
|
9772
9812
|
if (wsSkills.length || repoSkills.length) {
|
|
9773
9813
|
const $scope2_id = _scope_id();
|
|
9774
|
-
_html(`<section${_attr_class("
|
|
9814
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Skills</h2>`);
|
|
9775
9815
|
_if(() => {
|
|
9776
9816
|
if (wsSkills.length) {
|
|
9777
9817
|
const $scope28_id = _scope_id();
|
|
@@ -9780,7 +9820,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9780
9820
|
return 0;
|
|
9781
9821
|
}
|
|
9782
9822
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
9783
|
-
_html(`</div><ul${_attr_class("
|
|
9823
|
+
_html(`</div><ul${_attr_class("_cs")}>`);
|
|
9784
9824
|
_for_of(wsSkills, (s) => {
|
|
9785
9825
|
const $scope3_id = _scope_id();
|
|
9786
9826
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -9888,7 +9928,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9888
9928
|
_if(() => {
|
|
9889
9929
|
if (repoSkills.length) {
|
|
9890
9930
|
const $scope4_id = _scope_id();
|
|
9891
|
-
_html(`<ul${_attr_class("
|
|
9931
|
+
_html(`<ul${_attr_class("_cs")}>`);
|
|
9892
9932
|
_for_of(repoSkills, (s) => {
|
|
9893
9933
|
const $scope5_id = _scope_id();
|
|
9894
9934
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -9944,22 +9984,22 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9944
9984
|
_if(() => {
|
|
9945
9985
|
if (running.length) {
|
|
9946
9986
|
const $scope17_id = _scope_id();
|
|
9947
|
-
_html(`<section${_attr_class("
|
|
9948
|
-
"
|
|
9949
|
-
"
|
|
9950
|
-
"
|
|
9987
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope17_id, "e")}</span></div><ul${_attr_class([
|
|
9988
|
+
"_bK",
|
|
9989
|
+
"_cz",
|
|
9990
|
+
"_cN"
|
|
9951
9991
|
])}>`);
|
|
9952
9992
|
_for_of(running, (p) => {
|
|
9953
9993
|
const $scope18_id = _scope_id();
|
|
9954
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
9955
|
-
"
|
|
9994
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class([
|
|
9995
|
+
"_bM",
|
|
9956
9996
|
"_w",
|
|
9957
|
-
"
|
|
9997
|
+
"_fw"
|
|
9958
9998
|
])}>${_escape(p.cmd)}${_el_resume($scope18_id, "d")}</span>`);
|
|
9959
9999
|
_if(() => {
|
|
9960
10000
|
if (p.ports.length) {
|
|
9961
10001
|
const $scope36_id = _scope_id();
|
|
9962
|
-
_html(`<span${_attr_class("
|
|
10002
|
+
_html(`<span${_attr_class("_bN")}>`);
|
|
9963
10003
|
_for_of(p.ports, (port) => {
|
|
9964
10004
|
const $scope37_id = _scope_id();
|
|
9965
10005
|
_html(`<button${_attr_class(["_s", "_I"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope37_id, "b")}</button>${_el_resume($scope37_id, "a")}`);
|
|
@@ -9970,7 +10010,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
9970
10010
|
return 0;
|
|
9971
10011
|
}
|
|
9972
10012
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
9973
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["
|
|
10013
|
+
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["_bP", "_6"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
9974
10014
|
icon_xmark_default({ size: 14 });
|
|
9975
10015
|
_html(`</button>${_el_resume($scope18_id, "f")}</li>`);
|
|
9976
10016
|
_script($scope18_id, "q31");
|
|
@@ -10054,12 +10094,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
10054
10094
|
});
|
|
10055
10095
|
_resume_branch($scope0_id);
|
|
10056
10096
|
});
|
|
10057
|
-
var kbtn = "
|
|
10058
|
-
var sessOpen = "
|
|
10059
|
-
var sessRename = "
|
|
10060
|
-
var dpadPaste = "
|
|
10061
|
-
var repeat = "
|
|
10062
|
-
var dpadEsc = "
|
|
10097
|
+
var kbtn = "_ej _4 _j";
|
|
10098
|
+
var sessOpen = "_fb _G";
|
|
10099
|
+
var sessRename = "_ff _H";
|
|
10100
|
+
var dpadPaste = "_fm _fl";
|
|
10101
|
+
var repeat = "_fn _fl";
|
|
10102
|
+
var dpadEsc = "_fp _fl";
|
|
10063
10103
|
//#endregion
|
|
10064
10104
|
//#region src/tags/term-find.marko
|
|
10065
10105
|
var term_find_default = _template("D", (input) => {
|
|
@@ -10096,19 +10136,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
10096
10136
|
const canStep = hasQuery && open;
|
|
10097
10137
|
const keybar = input.placement === "keybar";
|
|
10098
10138
|
_html(`<div${_attr_class([
|
|
10099
|
-
"
|
|
10100
|
-
keybar ? "
|
|
10101
|
-
!open && "
|
|
10102
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
10139
|
+
"_gM",
|
|
10140
|
+
keybar ? "_gO" : "_gN",
|
|
10141
|
+
!open && "_gQ"
|
|
10142
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_gH", keybar ? "_gP" : "_gJ"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
10103
10143
|
if (!open) return;
|
|
10104
10144
|
query = v;
|
|
10105
10145
|
live.query = v;
|
|
10106
10146
|
run(0);
|
|
10107
|
-
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
10147
|
+
}, "D0", $scope0_id))}${_attr_class([findInput, keybar && "_gR"])} 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 && "_gS"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10108
10148
|
icon_arrow_up_default({ size: 14 });
|
|
10109
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10149
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_gS"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
10110
10150
|
icon_arrow_down_default({ size: 14 });
|
|
10111
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
10151
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_gS"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
10112
10152
|
icon_xmark_default({ size: 14 });
|
|
10113
10153
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
10114
10154
|
_script($scope0_id, "D4");
|
|
@@ -10521,7 +10561,7 @@ var term_default = _template("E", (input) => {
|
|
|
10521
10561
|
trapOpen = true;
|
|
10522
10562
|
}
|
|
10523
10563
|
}, "E14", $scope0_id);
|
|
10524
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
10564
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eY")}><div${_attr_class("_eZ")}></div>${_el_resume($scope0_id, "b")}`);
|
|
10525
10565
|
_if(() => {
|
|
10526
10566
|
if (findOpen) {
|
|
10527
10567
|
const $scope12_id = _scope_id();
|
|
@@ -10548,7 +10588,7 @@ var term_default = _template("E", (input) => {
|
|
|
10548
10588
|
_if(() => {
|
|
10549
10589
|
if (uploading) {
|
|
10550
10590
|
const $scope21_id = _scope_id();
|
|
10551
|
-
_html(`<div${_attr_class("
|
|
10591
|
+
_html(`<div${_attr_class("_e5")}>uploading…</div>`);
|
|
10552
10592
|
writeScope($scope21_id, {});
|
|
10553
10593
|
return 0;
|
|
10554
10594
|
}
|
|
@@ -10556,7 +10596,7 @@ var term_default = _template("E", (input) => {
|
|
|
10556
10596
|
_if(() => {
|
|
10557
10597
|
if (copiedFlash) {
|
|
10558
10598
|
const $scope22_id = _scope_id();
|
|
10559
|
-
_html(`<div${_attr_class("
|
|
10599
|
+
_html(`<div${_attr_class("_e4")}>Copied</div>`);
|
|
10560
10600
|
writeScope($scope22_id, {});
|
|
10561
10601
|
return 0;
|
|
10562
10602
|
}
|
|
@@ -10565,7 +10605,7 @@ var term_default = _template("E", (input) => {
|
|
|
10565
10605
|
_if(() => {
|
|
10566
10606
|
if (trapOpen) {
|
|
10567
10607
|
const $scope11_id = _scope_id();
|
|
10568
|
-
_html(`<div${_attr_class("
|
|
10608
|
+
_html(`<div${_attr_class("_e6")}><div${_attr_class("_e7")}><p${_attr_class("_fq")}>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")}`);
|
|
10569
10609
|
_script($scope11_id, "E26");
|
|
10570
10610
|
_script($scope11_id, "E27");
|
|
10571
10611
|
writeScope($scope11_id, {});
|
|
@@ -10640,7 +10680,7 @@ var term_default = _template("E", (input) => {
|
|
|
10640
10680
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
10641
10681
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
10642
10682
|
}, "E20", $scope4_id);
|
|
10643
|
-
_html(`<button${_attr_class([kbtn, "
|
|
10683
|
+
_html(`<button${_attr_class([kbtn, "_e8"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
10644
10684
|
_set_serialize_reason({
|
|
10645
10685
|
1: $sg__input_agent__OR__input_sessionState,
|
|
10646
10686
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -10654,7 +10694,7 @@ var term_default = _template("E", (input) => {
|
|
|
10654
10694
|
"_y",
|
|
10655
10695
|
"_ba",
|
|
10656
10696
|
phase[sessionPhase(input.sessionState)]
|
|
10657
|
-
])}></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(["_8", "
|
|
10697
|
+
])}></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(["_8", "_e9"])}>`);
|
|
10658
10698
|
_if(() => {
|
|
10659
10699
|
if ((input.sessions || []).length > 0) {
|
|
10660
10700
|
const $scope5_id = _scope_id();
|
|
@@ -10670,7 +10710,7 @@ var term_default = _template("E", (input) => {
|
|
|
10670
10710
|
const $scope6_id = _scope_id();
|
|
10671
10711
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
10672
10712
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
10673
|
-
_html(`<div${_attr_class(["
|
|
10713
|
+
_html(`<div${_attr_class(["_fa", { ["_e_"]: s.id === input.sessionId }])}>`);
|
|
10674
10714
|
_if(() => {
|
|
10675
10715
|
if (renamingId === s.id) {
|
|
10676
10716
|
const $scope24_id = _scope_id();
|
|
@@ -10702,7 +10742,7 @@ var term_default = _template("E", (input) => {
|
|
|
10702
10742
|
agent: activeAgent(s),
|
|
10703
10743
|
size: 14
|
|
10704
10744
|
});
|
|
10705
|
-
_html(`<span${_attr_class("
|
|
10745
|
+
_html(`<span${_attr_class("_fc")}><span${_attr_class("_fe")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
10706
10746
|
_if(() => {
|
|
10707
10747
|
if (s.id === input.sessionId) {
|
|
10708
10748
|
const $scope23_id = _scope_id();
|
|
@@ -10714,7 +10754,7 @@ var term_default = _template("E", (input) => {
|
|
|
10714
10754
|
const $childScope6 = _peek_scope_id();
|
|
10715
10755
|
usage_pcts_default({
|
|
10716
10756
|
agent: plan,
|
|
10717
|
-
class: "
|
|
10757
|
+
class: "_fd"
|
|
10718
10758
|
});
|
|
10719
10759
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
10720
10760
|
return 0;
|
|
@@ -10731,7 +10771,7 @@ var term_default = _template("E", (input) => {
|
|
|
10731
10771
|
_if(() => {
|
|
10732
10772
|
if (input.onRenameSession) {
|
|
10733
10773
|
const $scope25_id = _scope_id();
|
|
10734
|
-
_html(`<button${_attr_class(["
|
|
10774
|
+
_html(`<button${_attr_class(["_fg", "_fh"])} title="Rename session">`);
|
|
10735
10775
|
icon_edit_default({ size: 12 });
|
|
10736
10776
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
10737
10777
|
_script($scope25_id, "E29");
|
|
@@ -10743,7 +10783,7 @@ var term_default = _template("E", (input) => {
|
|
|
10743
10783
|
if (input.onCloseSession) {
|
|
10744
10784
|
const $scope8_id = _scope_id();
|
|
10745
10785
|
_html(`<button${_attr_class([
|
|
10746
|
-
"
|
|
10786
|
+
"_fg",
|
|
10747
10787
|
"_6",
|
|
10748
10788
|
{ ["_q"]: armedClose === s.id }
|
|
10749
10789
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -10785,7 +10825,7 @@ var term_default = _template("E", (input) => {
|
|
|
10785
10825
|
return 0;
|
|
10786
10826
|
}
|
|
10787
10827
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
10788
|
-
_html(`<div${_attr_class("
|
|
10828
|
+
_html(`<div${_attr_class("_fi")}><span${_attr_class("_fj")}>New session</span>`);
|
|
10789
10829
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
10790
10830
|
const $scope9_id = _scope_id();
|
|
10791
10831
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -10830,9 +10870,9 @@ var term_default = _template("E", (input) => {
|
|
|
10830
10870
|
const dpadOpenBox = { open: false };
|
|
10831
10871
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
10832
10872
|
icon_dpad_default({ size: 16 });
|
|
10833
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
10873
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_ei"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
10834
10874
|
icon_search_default({ size: 16 });
|
|
10835
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
10875
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_ei"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
10836
10876
|
icon_keyboard_default({ size: 16 });
|
|
10837
10877
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
10838
10878
|
_script($scope10_id, "E35");
|
|
@@ -10848,7 +10888,7 @@ var term_default = _template("E", (input) => {
|
|
|
10848
10888
|
overlay: attrTag({ content: _content_resume("E46", () => {
|
|
10849
10889
|
_scope_reason();
|
|
10850
10890
|
const $scope15_id = _scope_id();
|
|
10851
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
10891
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_fk")}>`);
|
|
10852
10892
|
forOf(DPAD, (row) => {
|
|
10853
10893
|
const $scope16_id = _scope_id();
|
|
10854
10894
|
forOf(row, (cell) => {
|
|
@@ -10868,7 +10908,7 @@ var term_default = _template("E", (input) => {
|
|
|
10868
10908
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
10869
10909
|
} else {
|
|
10870
10910
|
const $scope19_id = _scope_id();
|
|
10871
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
10911
|
+
_html(`<button${_attr_class([repeat, { ["_fo"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
10872
10912
|
if (cell.icon === "arrow-up") {
|
|
10873
10913
|
_scope_id();
|
|
10874
10914
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -11008,7 +11048,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11008
11048
|
let DiffView = null;
|
|
11009
11049
|
const loadDiffView = _resume(() => {
|
|
11010
11050
|
if (DiffView) return;
|
|
11011
|
-
import("./
|
|
11051
|
+
import("./_CZd0I4nH.js").then((m) => {
|
|
11012
11052
|
DiffView = m.default;
|
|
11013
11053
|
});
|
|
11014
11054
|
}, "I6", $scope0_id);
|
|
@@ -11487,7 +11527,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11487
11527
|
_if(() => {
|
|
11488
11528
|
if (!shownSessions.length && view === "term") {
|
|
11489
11529
|
const $scope7_id = _scope_id();
|
|
11490
|
-
_html(`<div${_attr_class("
|
|
11530
|
+
_html(`<div${_attr_class("_bR")}><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>`);
|
|
11491
11531
|
_script($scope7_id, "I51");
|
|
11492
11532
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
11493
11533
|
return 0;
|
|
@@ -11497,7 +11537,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
11497
11537
|
return 0;
|
|
11498
11538
|
} else {
|
|
11499
11539
|
const $scope11_id = _scope_id();
|
|
11500
|
-
_html(`<p${_attr_class("
|
|
11540
|
+
_html(`<p${_attr_class("_bR")}>Loading sessions…</p>`);
|
|
11501
11541
|
writeScope($scope11_id, {});
|
|
11502
11542
|
return 1;
|
|
11503
11543
|
}
|
|
@@ -16808,6 +16848,81 @@ async function fetch$1(request, platform) {
|
|
|
16808
16848
|
}
|
|
16809
16849
|
}
|
|
16810
16850
|
//#endregion
|
|
16851
|
+
//#region src/server/port-proxy.ts
|
|
16852
|
+
/**
|
|
16853
|
+
* `<port>.<app host>` (or `<port>-<app host>`) → `localhost:<port>`. A dev server a workspace
|
|
16854
|
+
* started is only reachable on this machine, so the port chip's link is
|
|
16855
|
+
* dead from a phone or any other device that reaches work through a
|
|
16856
|
+
* tunnel. Routing a wildcard hostname to the app port lets work forward
|
|
16857
|
+
* the whole request (HTTP and WebSocket, so HMR works) to the port named
|
|
16858
|
+
* by the leading label. The app keeps running at `/`, which is what
|
|
16859
|
+
* makes this work where a path prefix (`/p/3000/…`) does not: dev servers
|
|
16860
|
+
* emit root-relative asset URLs.
|
|
16861
|
+
*
|
|
16862
|
+
* The Host header is rewritten to `localhost:<port>` — vite and friends
|
|
16863
|
+
* refuse unknown hostnames — with the public host kept in
|
|
16864
|
+
* `X-Forwarded-Host`. Any loopback port except work's own is reachable;
|
|
16865
|
+
* this sits behind the same auth the rest of the app does.
|
|
16866
|
+
*/
|
|
16867
|
+
function proxyPort(req) {
|
|
16868
|
+
const host = String(req.headers.host || "");
|
|
16869
|
+
const m = /^(\d{1,5})[.-]([^.:]+)/.exec(host);
|
|
16870
|
+
if (!m || /^\d+$/.test(m[2])) return null;
|
|
16871
|
+
const port = Number(m[1]);
|
|
16872
|
+
if (port < 1 || port > 65535 || port === config.appPort) return null;
|
|
16873
|
+
return port;
|
|
16874
|
+
}
|
|
16875
|
+
function upstreamHeaders(req, port) {
|
|
16876
|
+
const headers = { ...req.headers };
|
|
16877
|
+
headers.host = `localhost:${port}`;
|
|
16878
|
+
headers["x-forwarded-host"] = String(req.headers.host || "");
|
|
16879
|
+
headers["x-forwarded-proto"] = String(req.headers["x-forwarded-proto"] || "") || "http";
|
|
16880
|
+
return headers;
|
|
16881
|
+
}
|
|
16882
|
+
/** True when the request was taken; false leaves it to the app. */
|
|
16883
|
+
function proxyRequest(req, res) {
|
|
16884
|
+
const port = proxyPort(req);
|
|
16885
|
+
if (!port) return false;
|
|
16886
|
+
const up = http.request({
|
|
16887
|
+
host: "127.0.0.1",
|
|
16888
|
+
port,
|
|
16889
|
+
method: req.method,
|
|
16890
|
+
path: req.url,
|
|
16891
|
+
headers: upstreamHeaders(req, port)
|
|
16892
|
+
}, (r) => {
|
|
16893
|
+
res.writeHead(r.statusCode || 502, r.headers);
|
|
16894
|
+
r.pipe(res);
|
|
16895
|
+
});
|
|
16896
|
+
up.on("error", () => {
|
|
16897
|
+
if (!res.headersSent) res.writeHead(502, { "content-type": "text/plain; charset=utf-8" });
|
|
16898
|
+
res.end(`work: nothing is listening on port ${port}`);
|
|
16899
|
+
});
|
|
16900
|
+
req.pipe(up);
|
|
16901
|
+
return true;
|
|
16902
|
+
}
|
|
16903
|
+
/** Same for websocket upgrades: the raw request is replayed to the port
|
|
16904
|
+
* and the two sockets are joined. */
|
|
16905
|
+
function proxyUpgrade(req, socket, head) {
|
|
16906
|
+
const port = proxyPort(req);
|
|
16907
|
+
if (!port) return false;
|
|
16908
|
+
const up = net.connect(port, "127.0.0.1");
|
|
16909
|
+
up.on("connect", () => {
|
|
16910
|
+
const headers = upstreamHeaders(req, port);
|
|
16911
|
+
const lines = [`${req.method} ${req.url} HTTP/${req.httpVersion}`];
|
|
16912
|
+
for (const [name, value] of Object.entries(headers)) for (const v of Array.isArray(value) ? value : [value]) if (v !== void 0) lines.push(`${name}: ${v}`);
|
|
16913
|
+
up.write(lines.join("\r\n") + "\r\n\r\n");
|
|
16914
|
+
if (head.length) up.write(head);
|
|
16915
|
+
socket.pipe(up).pipe(socket);
|
|
16916
|
+
});
|
|
16917
|
+
const drop = () => {
|
|
16918
|
+
socket.destroy();
|
|
16919
|
+
up.destroy();
|
|
16920
|
+
};
|
|
16921
|
+
up.on("error", drop);
|
|
16922
|
+
socket.on("error", drop);
|
|
16923
|
+
return true;
|
|
16924
|
+
}
|
|
16925
|
+
//#endregion
|
|
16811
16926
|
//#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/constants.js
|
|
16812
16927
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16813
16928
|
var BINARY_TYPES = [
|
|
@@ -18869,8 +18984,8 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18869
18984
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18870
18985
|
var EventEmitter$1 = __require("events");
|
|
18871
18986
|
var https = __require("https");
|
|
18872
|
-
var http$
|
|
18873
|
-
var net = __require("net");
|
|
18987
|
+
var http$2 = __require("http");
|
|
18988
|
+
var net$1 = __require("net");
|
|
18874
18989
|
var tls = __require("tls");
|
|
18875
18990
|
var { randomBytes, createHash: createHash$2 } = __require("crypto");
|
|
18876
18991
|
var { Duplex: Duplex$2, Readable: Readable$1 } = __require("stream");
|
|
@@ -19442,7 +19557,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19442
19557
|
}
|
|
19443
19558
|
const defaultPort = isSecure ? 443 : 80;
|
|
19444
19559
|
const key = randomBytes(16).toString("base64");
|
|
19445
|
-
const request = isSecure ? https.request : http$
|
|
19560
|
+
const request = isSecure ? https.request : http$2.request;
|
|
19446
19561
|
const protocolSet = /* @__PURE__ */ new Set();
|
|
19447
19562
|
let perMessageDeflate;
|
|
19448
19563
|
opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
|
|
@@ -19620,7 +19735,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19620
19735
|
*/
|
|
19621
19736
|
function netConnect(options) {
|
|
19622
19737
|
options.path = options.socketPath;
|
|
19623
|
-
return net.connect(options);
|
|
19738
|
+
return net$1.connect(options);
|
|
19624
19739
|
}
|
|
19625
19740
|
/**
|
|
19626
19741
|
* Create a `tls.TLSSocket` and initiate a connection.
|
|
@@ -19631,7 +19746,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19631
19746
|
*/
|
|
19632
19747
|
function tlsConnect(options) {
|
|
19633
19748
|
options.path = void 0;
|
|
19634
|
-
if (!options.servername && options.servername !== "") options.servername = net.isIP(options.host) ? "" : options.host;
|
|
19749
|
+
if (!options.servername && options.servername !== "") options.servername = net$1.isIP(options.host) ? "" : options.host;
|
|
19635
19750
|
return tls.connect(options);
|
|
19636
19751
|
}
|
|
19637
19752
|
/**
|
|
@@ -20016,7 +20131,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20016
20131
|
//#region node_modules/.pnpm/ws@8.21.3/node_modules/ws/lib/websocket-server.js
|
|
20017
20132
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20018
20133
|
var EventEmitter = __require("events");
|
|
20019
|
-
var http = __require("http");
|
|
20134
|
+
var http$1 = __require("http");
|
|
20020
20135
|
var { Duplex } = __require("stream");
|
|
20021
20136
|
var { createHash: createHash$1 } = __require("crypto");
|
|
20022
20137
|
var extension = require_extension();
|
|
@@ -20097,8 +20212,8 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20097
20212
|
};
|
|
20098
20213
|
if (options.port == null && !options.server && !options.noServer || options.port != null && (options.server || options.noServer) || options.server && options.noServer) throw new TypeError("One and only one of the \"port\", \"server\", or \"noServer\" options must be specified");
|
|
20099
20214
|
if (options.port != null) {
|
|
20100
|
-
this._server = http.createServer((req, res) => {
|
|
20101
|
-
const body = http.STATUS_CODES[426];
|
|
20215
|
+
this._server = http$1.createServer((req, res) => {
|
|
20216
|
+
const body = http$1.STATUS_CODES[426];
|
|
20102
20217
|
res.writeHead(426, {
|
|
20103
20218
|
"Content-Length": body.length,
|
|
20104
20219
|
"Content-Type": "text/plain"
|
|
@@ -20369,7 +20484,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20369
20484
|
* @private
|
|
20370
20485
|
*/
|
|
20371
20486
|
function abortHandshake(socket, code, message, headers) {
|
|
20372
|
-
message = message || http.STATUS_CODES[code];
|
|
20487
|
+
message = message || http$1.STATUS_CODES[code];
|
|
20373
20488
|
headers = {
|
|
20374
20489
|
Connection: "close",
|
|
20375
20490
|
"Content-Type": "text/html",
|
|
@@ -20377,7 +20492,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20377
20492
|
...headers
|
|
20378
20493
|
};
|
|
20379
20494
|
socket.once("finish", socket.destroy);
|
|
20380
|
-
socket.end(`HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
|
|
20495
|
+
socket.end(`HTTP/1.1 ${code} ${http$1.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
|
|
20381
20496
|
}
|
|
20382
20497
|
/**
|
|
20383
20498
|
* Emit a `'wsClientError'` event on a `WebSocketServer` if there is at least
|
|
@@ -20549,7 +20664,8 @@ function attachTermServer(server) {
|
|
|
20549
20664
|
perMessageDeflate: { threshold: DEFLATE_THRESHOLD }
|
|
20550
20665
|
});
|
|
20551
20666
|
server.on("upgrade", (req, socket, head) => {
|
|
20552
|
-
if (!(req.url || "").startsWith("/term/")) return;
|
|
20667
|
+
if (proxyPort(req) || !(req.url || "").startsWith("/term/")) return;
|
|
20668
|
+
if (crossOrigin(req.headers)) return socket.destroy();
|
|
20553
20669
|
wss.handleUpgrade(req, socket, head, (ws) => wss.emit("connection", ws, req));
|
|
20554
20670
|
});
|
|
20555
20671
|
wss.on("connection", (ws, req) => {
|
|
@@ -20806,7 +20922,9 @@ function send(ws, type, data) {
|
|
|
20806
20922
|
function attachEventsServer(server) {
|
|
20807
20923
|
const wss = new import_websocket_server.default({ noServer: true });
|
|
20808
20924
|
server.on("upgrade", (req, socket, head) => {
|
|
20809
|
-
|
|
20925
|
+
const path = (req.url || "").split("?")[0];
|
|
20926
|
+
if (proxyPort(req) || path !== "/api/events") return;
|
|
20927
|
+
if (crossOrigin(req.headers)) return socket.destroy();
|
|
20810
20928
|
wss.handleUpgrade(req, socket, head, (ws) => {
|
|
20811
20929
|
wss.emit("connection", ws, req);
|
|
20812
20930
|
});
|
|
@@ -20832,6 +20950,8 @@ function attachEventsServer(server) {
|
|
|
20832
20950
|
//#region src/entry.ts
|
|
20833
20951
|
var port = Number(process.env.PORT || config.appPort);
|
|
20834
20952
|
var server = createServer();
|
|
20953
|
+
/** The app proper; a `<port>.` host bypasses it for the port proxy. */
|
|
20954
|
+
var app;
|
|
20835
20955
|
{
|
|
20836
20956
|
const { default: compression } = await import("./_B9zhiogp.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
20837
20957
|
const { default: serveStatic } = await import("./_JcAWG3K1.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
@@ -20893,7 +21013,7 @@ var server = createServer();
|
|
|
20893
21013
|
maxAge: "365 days",
|
|
20894
21014
|
setHeaders: brotliHeaders
|
|
20895
21015
|
});
|
|
20896
|
-
|
|
21016
|
+
app = (req, res) => compress(req, res, () => {
|
|
20897
21017
|
const url = req.url || "";
|
|
20898
21018
|
const pathname = url.split("?")[0];
|
|
20899
21019
|
const brotli = takesBrotli(req);
|
|
@@ -20908,11 +21028,15 @@ var server = createServer();
|
|
|
20908
21028
|
if (brotli) req.url = withBrotli(url, pathname.slice(1));
|
|
20909
21029
|
servePublic(req, res, () => middleware(req, res));
|
|
20910
21030
|
}
|
|
20911
|
-
})
|
|
21031
|
+
});
|
|
20912
21032
|
}
|
|
21033
|
+
server.on("request", (req, res) => {
|
|
21034
|
+
if (!proxyRequest(req, res)) app(req, res);
|
|
21035
|
+
});
|
|
20913
21036
|
attachTermServer(server);
|
|
20914
21037
|
attachEventsServer(server);
|
|
20915
|
-
server.on("upgrade", (req, socket) => {
|
|
21038
|
+
server.on("upgrade", (req, socket, head) => {
|
|
21039
|
+
if (proxyUpgrade(req, socket, head)) return;
|
|
20916
21040
|
const path = (req.url || "").split("?")[0];
|
|
20917
21041
|
if (path.startsWith("/term/") || path === "/api/events") return;
|
|
20918
21042
|
socket.destroy();
|
|
@@ -20923,4 +21047,4 @@ server.listen(port, () => {
|
|
|
20923
21047
|
//#endregion
|
|
20924
21048
|
export {};
|
|
20925
21049
|
|
|
20926
|
-
;var __MARKO_MANIFEST__={"
|
|
21050
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DD8AAZI2.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD8AAZI2.css\"",">"],"defer":[2,"/assets/settings-CeNxYCDk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CeNxYCDk.js\"","></script>",2,"modulepreload#/assets/_VnhmzZ9q.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_VnhmzZ9q.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DD8AAZI2.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD8AAZI2.css\"",">"],"defer":[2,"/assets/new-CeNxYCDk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CeNxYCDk.js\"","></script>",2,"modulepreload#/assets/_VnhmzZ9q.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_VnhmzZ9q.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DD8AAZI2.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD8AAZI2.css\"",">"],"defer":[2,"/assets/w-CeNxYCDk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CeNxYCDk.js\"","></script>",2,"modulepreload#/assets/_VnhmzZ9q.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_VnhmzZ9q.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DD8AAZI2.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD8AAZI2.css\"",">"],"defer":[2,"/assets/w._-CeNxYCDk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CeNxYCDk.js\"","></script>",2,"modulepreload#/assets/_VnhmzZ9q.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_VnhmzZ9q.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DD8AAZI2.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DD8AAZI2.css\"",">"],"defer":[2,"/assets/w._-CY06s2qp.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CY06s2qp.js\"","></script>",2,"modulepreload#/assets/_VnhmzZ9q.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_VnhmzZ9q.js\"",">"]}};
|