@dylanpiercey/work 0.0.130 → 0.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_CiRMn9AO.js → _10g8qIc8.js} +2 -2
- package/dist/_B4-5M9y6.js +2 -0
- package/dist/{_fNIR_clX.js → _BBmEhpPH.js} +7 -6
- package/dist/_BTtOB0g5.js +2 -0
- package/dist/{_C3FtpsED.js → _CM_NBV_t.js} +2 -2
- package/dist/{_CowXjuPj.js → _DHOrTC33.js} +38 -38
- package/dist/_DaZ1KKTE.js +2 -0
- package/dist/{_BXnpEUMe.js → _Dud_1oT_.js} +4 -4
- package/dist/index.mjs +743 -511
- package/dist/public/assets/{_Bh9MI1by.js → _B-Oizufs.js} +1 -1
- package/dist/public/assets/_B-Oizufs.js.br +0 -0
- package/dist/public/assets/{_Bk4O3G_O2.js → _B0ZasgU32.js} +1 -1
- package/dist/public/assets/_B0ZasgU32.js.br +0 -0
- package/dist/public/assets/{_gmruYy_C.js → _B1Deos8P.js} +1 -1
- package/dist/public/assets/_B1Deos8P.js.br +0 -0
- package/dist/public/assets/{_DmqnSuVa.js → _B5k82Eqg.js} +1 -1
- package/dist/public/assets/_B5k82Eqg.js.br +0 -0
- package/dist/public/assets/{_CoR2IY5I.js → _B83dkXl5.js} +1 -1
- package/dist/public/assets/_B83dkXl5.js.br +0 -0
- package/dist/public/assets/{_wrNucRqv.js → _BBaYArXD.js} +1 -1
- package/dist/public/assets/_BBaYArXD.js.br +0 -0
- package/dist/public/assets/{_DYPfDleI2.js → _BC765rQM2.js} +1 -1
- package/dist/public/assets/_BC765rQM2.js.br +0 -0
- package/dist/public/assets/{_SqmIgqwl.js → _BCeR8Wi3.js} +1 -1
- package/dist/public/assets/_BCeR8Wi3.js.br +0 -0
- package/dist/public/assets/{_B1xp-8RX2.js → _BDxu9d8F2.js} +1 -1
- package/dist/public/assets/_BDxu9d8F2.js.br +0 -0
- package/dist/public/assets/{_D1jbv1g5.js → _BFgfz8vD.js} +1 -1
- package/dist/public/assets/_BFgfz8vD.js.br +0 -0
- package/dist/public/assets/{_BZZ1YIH9.js → _BGwE63V1.js} +1 -1
- package/dist/public/assets/_BGwE63V1.js.br +0 -0
- package/dist/public/assets/{_7bOHqdxO.js → _BKXB5Gzk.js} +1 -1
- package/dist/public/assets/_BKXB5Gzk.js.br +0 -0
- package/dist/public/assets/{_D05yRb7F.js → _BQVCotdS.js} +1 -1
- package/dist/public/assets/{__ziruLxv2.js → _BY_N3inI2.js} +1 -1
- package/dist/public/assets/_BY_N3inI2.js.br +0 -0
- package/dist/public/assets/{_CrI5Ho6D.js → _BaTUny04.js} +5 -5
- package/dist/public/assets/_BaTUny04.js.br +0 -0
- package/dist/public/assets/{_CvILhJZQ.js → _BfbQ_TWq.js} +1 -1
- package/dist/public/assets/_BfbQ_TWq.js.br +0 -0
- package/dist/public/assets/{_CHS9mf8_.js → _Bj2ehRpY.js} +1 -1
- package/dist/public/assets/_Bj2ehRpY.js.br +0 -0
- package/dist/public/assets/{_BjfX9UqL.js → _BlnhNia1.js} +1 -1
- package/dist/public/assets/_BlnhNia1.js.br +0 -0
- package/dist/public/assets/{_DvkWj1SP2.js → _BpNyQVad2.js} +1 -1
- package/dist/public/assets/_BpNyQVad2.js.br +0 -0
- package/dist/public/assets/{_9YMeHT-e.js → _Bqq-t-3F.js} +1 -1
- package/dist/public/assets/_Bqq-t-3F.js.br +0 -0
- package/dist/public/assets/{_BJnUA9k5.js → _BrebqXsO.js} +1 -1
- package/dist/public/assets/_BrebqXsO.js.br +0 -0
- package/dist/public/assets/{_wagVpOy02.js → _BxqYnrLX2.js} +1 -1
- package/dist/public/assets/_BxqYnrLX2.js.br +0 -0
- package/dist/public/assets/{_D6BKPjx0.js → _C0kHUHUE.js} +1 -1
- package/dist/public/assets/_C0kHUHUE.js.br +0 -0
- package/dist/public/assets/{_DyMSk87d2.js → _C5skylMz2.js} +1 -1
- package/dist/public/assets/_C5skylMz2.js.br +0 -0
- package/dist/public/assets/{_h0_uQKFV2.js → _C8wBVJe52.js} +1 -1
- package/dist/public/assets/_C8wBVJe52.js.br +0 -0
- package/dist/public/assets/{_bWhSjZnQ.js → _CBhXgXaB.js} +1 -1
- package/dist/public/assets/_CBhXgXaB.js.br +0 -0
- package/dist/public/assets/{_D8n6QzII.js → _CEPYzGrE.js} +1 -1
- package/dist/public/assets/_CEPYzGrE.js.br +0 -0
- package/dist/public/assets/{_Br40XpBC2.js → _CKWwZeX42.js} +1 -1
- package/dist/public/assets/_CKWwZeX42.js.br +0 -0
- package/dist/public/assets/{_Bo0VOrXv2.js → _CMuZnE8q2.js} +1 -1
- package/dist/public/assets/_CMuZnE8q2.js.br +0 -0
- package/dist/public/assets/{_CTNoAHgp.js → _CNWvof5M.js} +1 -1
- package/dist/public/assets/_CNWvof5M.js.br +0 -0
- package/dist/public/assets/{_D06eTMkW.js → _CPa0T9jQ.js} +1 -1
- package/dist/public/assets/_CPa0T9jQ.js.br +0 -0
- package/dist/public/assets/{_q-ZaUMrN.js → _CPeunYNm.js} +1 -1
- package/dist/public/assets/_CPeunYNm.js.br +0 -0
- package/dist/public/assets/{_ZusQguOq.js → _CUNrZG7E.js} +1 -1
- package/dist/public/assets/_CUNrZG7E.js.br +0 -0
- package/dist/public/assets/{_DmBXdH0m.js → _CY7HxX7t.js} +1 -1
- package/dist/public/assets/_CY7HxX7t.js.br +0 -0
- package/dist/public/assets/{_Bq9D3N8E2.js → _CdVkF69T2.js} +1 -1
- package/dist/public/assets/_CdVkF69T2.js.br +0 -0
- package/dist/public/assets/{_BcZBn188.js → _Cf_vfReO.js} +1 -1
- package/dist/public/assets/_Cf_vfReO.js.br +0 -0
- package/dist/public/assets/{_DFEEfOqg.js → _CfzXkKIJ.js} +1 -1
- package/dist/public/assets/_CfzXkKIJ.js.br +0 -0
- package/dist/public/assets/{_DP5WtF2F2.js → _ChZnW2uc2.js} +1 -1
- package/dist/public/assets/_ChZnW2uc2.js.br +0 -0
- package/dist/public/assets/{_CJmyCr-s2.js → _ChaUCy6d2.js} +1 -1
- package/dist/public/assets/_ChaUCy6d2.js.br +0 -0
- package/dist/public/assets/{_C27Hkmsl.js → _CkbTOTHW.js} +6 -6
- package/dist/public/assets/_CkbTOTHW.js.br +0 -0
- package/dist/public/assets/{_DuH37q4J.js → _Cs933QiO.js} +1 -1
- package/dist/public/assets/_Cs933QiO.js.br +0 -0
- package/dist/public/assets/{_L8nNj1ck.js → _CtoPZi-N.js} +1 -1
- package/dist/public/assets/_CtoPZi-N.js.br +0 -0
- package/dist/public/assets/{_D33cyBQR.js → _CuGcfhCC.js} +1 -1
- package/dist/public/assets/_CuGcfhCC.js.br +0 -0
- package/dist/public/assets/{_CGhVDur7.js → _Cy2_E3w6.js} +1 -1
- package/dist/public/assets/_Cy2_E3w6.js.br +0 -0
- package/dist/public/assets/{_ll_lGA-X.js → _D-iy4ole.js} +1 -1
- package/dist/public/assets/_D-iy4ole.js.br +0 -0
- package/dist/public/assets/{_Dk3H6lep.js → _D6BgSm8I.js} +1 -1
- package/dist/public/assets/_D6BgSm8I.js.br +0 -0
- package/dist/public/assets/{_7RUEEWT42.js → _DBaVtUGT2.js} +1 -1
- package/dist/public/assets/_DBaVtUGT2.js.br +0 -0
- package/dist/public/assets/{_XHonkVEA.js → _DEvSOF5x.js} +1 -1
- package/dist/public/assets/_DEvSOF5x.js.br +0 -0
- package/dist/public/assets/{_BeykFgGp.js → _DHC8N21y.js} +1 -1
- package/dist/public/assets/_DHC8N21y.js.br +0 -0
- package/dist/public/assets/{_C5h2J0F-2.js → _DIkAaNEk2.js} +1 -1
- package/dist/public/assets/_DIkAaNEk2.js.br +0 -0
- package/dist/public/assets/{_CvWQW-8E.js → _DRB_fuRD.js} +1 -1
- package/dist/public/assets/_DRB_fuRD.js.br +0 -0
- package/dist/public/assets/{_Bca274-Q.js → _DVFhG-YJ.js} +1 -1
- package/dist/public/assets/_DVFhG-YJ.js.br +0 -0
- package/dist/public/assets/{_CBiqBZDL2.js → _DbxVD4e_2.js} +1 -1
- package/dist/public/assets/_DbxVD4e_2.js.br +0 -0
- package/dist/public/assets/{_BlCHICVF2.js → _Dc6E32jT2.js} +1 -1
- package/dist/public/assets/_Dc6E32jT2.js.br +0 -0
- package/dist/public/assets/{_CC0C1EPk.js → _DjxG7Xv-.js} +1 -1
- package/dist/public/assets/_DjxG7Xv-.js.br +0 -0
- package/dist/public/assets/{_CwojVICl.js → _Dpe-LofO.js} +1 -1
- package/dist/public/assets/_Dpe-LofO.js.br +0 -0
- package/dist/public/assets/{_CFSKoBDu.js → _Dr-8kAWc.js} +1 -1
- package/dist/public/assets/_Dr-8kAWc.js.br +0 -0
- package/dist/public/assets/{_DeSxv9J3.js → _DxmvpKLA.js} +1 -1
- package/dist/public/assets/_DxmvpKLA.js.br +0 -0
- package/dist/public/assets/{_CFdilFkj2.js → _DytyHjR62.js} +1 -1
- package/dist/public/assets/{_DZvJvsu32.js → _EDLNNimN2.js} +1 -1
- package/dist/public/assets/_EDLNNimN2.js.br +0 -0
- package/dist/public/assets/{_BqOBppXN2.js → _NPAItg1V2.js} +1 -1
- package/dist/public/assets/{_BFNV9fDC2.js → _Q7Soic6i2.js} +1 -1
- package/dist/public/assets/_Q7Soic6i2.js.br +0 -0
- package/dist/public/assets/{_C611KMu5.js → _Wx9WSBP6.js} +1 -1
- package/dist/public/assets/_Wx9WSBP6.js.br +0 -0
- package/dist/public/assets/{_CcKqKOMs2.js → _XePkgVjc2.js} +1 -1
- package/dist/public/assets/_XePkgVjc2.js.br +0 -0
- package/dist/public/assets/{_CEz2ZOyA.js → _ZjjLjHdi.js} +1 -1
- package/dist/public/assets/_ZjjLjHdi.js.br +0 -0
- package/dist/public/assets/{_Bj9z2EOh.js → __yNvUrYV.js} +1 -1
- package/dist/public/assets/__yNvUrYV.js.br +0 -0
- package/dist/public/assets/{_DvevQVhK.js → _agr_6Gvl.js} +1 -1
- package/dist/public/assets/_agr_6Gvl.js.br +0 -0
- package/dist/public/assets/{_CWIpDSbB2.js → _cqU8LAdj2.js} +1 -1
- package/dist/public/assets/_cqU8LAdj2.js.br +0 -0
- package/dist/public/assets/{_BTtTfKbh.js → _hYS1-tDW.js} +1 -1
- package/dist/public/assets/_hYS1-tDW.js.br +0 -0
- package/dist/public/assets/{_UAomfoF_.js → _o7Lw3qkT.js} +1 -1
- package/dist/public/assets/_o7Lw3qkT.js.br +0 -0
- package/dist/public/assets/{_BpentVHf.js → _r9PmPtgk.js} +1 -1
- package/dist/public/assets/_r9PmPtgk.js.br +0 -0
- package/dist/public/assets/{_C2KYdnet.js → _tNYCBUYs.js} +1 -1
- package/dist/public/assets/_tNYCBUYs.js.br +0 -0
- package/dist/public/assets/{_Dp5VVe6i.js → _v2WM4fMR.js} +1 -1
- package/dist/public/assets/_v2WM4fMR.js.br +0 -0
- package/dist/public/assets/{_DsnB1E5Q.js → _vwUOt5l-.js} +1 -1
- package/dist/public/assets/_vwUOt5l-.js.br +0 -0
- package/dist/public/assets/{_zBshawlw.js → _w9_qPUR0.js} +1 -1
- package/dist/public/assets/_w9_qPUR0.js.br +0 -0
- package/dist/public/assets/{_xmOY7nKx2.js → _wzycPEPJ2.js} +1 -1
- package/dist/public/assets/_wzycPEPJ2.js.br +0 -0
- package/dist/public/assets/{app-page-BUHctmeP.css → app-page-BkCzG8oJ.css} +1 -1
- package/dist/public/assets/app-page-BkCzG8oJ.css.br +0 -0
- package/dist/public/assets/{diff-view-Ib_cSgB2.css → diff-view-jTr6RE0J.css} +1 -1
- package/dist/public/assets/diff-view-jTr6RE0J.css.br +0 -0
- package/dist/public/assets/new-AHbbDzFl.js +1 -0
- package/dist/public/assets/settings-AHbbDzFl.js +1 -0
- package/dist/public/assets/w-AHbbDzFl.js +1 -0
- package/dist/public/assets/w._-AHbbDzFl.js +1 -0
- package/dist/public/assets/w._-DQf8RfTY.js +1 -0
- package/package.json +1 -1
- package/dist/_8iHmnCS9.js +0 -2
- package/dist/_Btz7jvxW.js +0 -2
- package/dist/_p28CBvIu.js +0 -2
- package/dist/public/assets/_7RUEEWT42.js.br +0 -0
- package/dist/public/assets/_7bOHqdxO.js.br +0 -0
- package/dist/public/assets/_9YMeHT-e.js.br +0 -0
- package/dist/public/assets/_B1xp-8RX2.js.br +0 -0
- package/dist/public/assets/_BFNV9fDC2.js.br +0 -0
- package/dist/public/assets/_BJnUA9k5.js.br +0 -0
- package/dist/public/assets/_BTtTfKbh.js.br +0 -0
- package/dist/public/assets/_BZZ1YIH9.js.br +0 -0
- package/dist/public/assets/_BcZBn188.js.br +0 -0
- package/dist/public/assets/_Bca274-Q.js.br +0 -0
- package/dist/public/assets/_BeykFgGp.js.br +0 -0
- package/dist/public/assets/_Bh9MI1by.js.br +0 -0
- package/dist/public/assets/_Bj9z2EOh.js.br +0 -0
- package/dist/public/assets/_BjfX9UqL.js.br +0 -0
- package/dist/public/assets/_Bk4O3G_O2.js.br +0 -0
- package/dist/public/assets/_BlCHICVF2.js.br +0 -0
- package/dist/public/assets/_Bo0VOrXv2.js.br +0 -0
- package/dist/public/assets/_BpentVHf.js.br +0 -0
- package/dist/public/assets/_Bq9D3N8E2.js.br +0 -0
- package/dist/public/assets/_Br40XpBC2.js.br +0 -0
- package/dist/public/assets/_C27Hkmsl.js.br +0 -0
- package/dist/public/assets/_C2KYdnet.js.br +0 -0
- package/dist/public/assets/_C5h2J0F-2.js.br +0 -0
- package/dist/public/assets/_C611KMu5.js.br +0 -0
- package/dist/public/assets/_CBiqBZDL2.js.br +0 -0
- package/dist/public/assets/_CC0C1EPk.js.br +0 -0
- package/dist/public/assets/_CEz2ZOyA.js.br +0 -0
- package/dist/public/assets/_CFSKoBDu.js.br +0 -0
- package/dist/public/assets/_CGhVDur7.js.br +0 -0
- package/dist/public/assets/_CHS9mf8_.js.br +0 -0
- package/dist/public/assets/_CJmyCr-s2.js.br +0 -0
- package/dist/public/assets/_CTNoAHgp.js.br +0 -0
- package/dist/public/assets/_CWIpDSbB2.js.br +0 -0
- package/dist/public/assets/_CcKqKOMs2.js.br +0 -0
- package/dist/public/assets/_CoR2IY5I.js.br +0 -0
- package/dist/public/assets/_CrI5Ho6D.js.br +0 -0
- package/dist/public/assets/_CvILhJZQ.js.br +0 -0
- package/dist/public/assets/_CvWQW-8E.js.br +0 -0
- package/dist/public/assets/_CwojVICl.js.br +0 -0
- package/dist/public/assets/_D06eTMkW.js.br +0 -0
- package/dist/public/assets/_D1jbv1g5.js.br +0 -0
- package/dist/public/assets/_D33cyBQR.js.br +0 -0
- package/dist/public/assets/_D6BKPjx0.js.br +0 -0
- package/dist/public/assets/_D8n6QzII.js.br +0 -0
- package/dist/public/assets/_DFEEfOqg.js.br +0 -0
- package/dist/public/assets/_DP5WtF2F2.js.br +0 -0
- package/dist/public/assets/_DYPfDleI2.js.br +0 -0
- package/dist/public/assets/_DZvJvsu32.js.br +0 -0
- package/dist/public/assets/_DeSxv9J3.js.br +0 -0
- package/dist/public/assets/_Dk3H6lep.js.br +0 -0
- package/dist/public/assets/_DmBXdH0m.js.br +0 -0
- package/dist/public/assets/_DmqnSuVa.js.br +0 -0
- package/dist/public/assets/_Dp5VVe6i.js.br +0 -0
- package/dist/public/assets/_DsnB1E5Q.js.br +0 -0
- package/dist/public/assets/_DuH37q4J.js.br +0 -0
- package/dist/public/assets/_DvevQVhK.js.br +0 -0
- package/dist/public/assets/_DvkWj1SP2.js.br +0 -0
- package/dist/public/assets/_DyMSk87d2.js.br +0 -0
- package/dist/public/assets/_L8nNj1ck.js.br +0 -0
- package/dist/public/assets/_SqmIgqwl.js.br +0 -0
- package/dist/public/assets/_UAomfoF_.js.br +0 -0
- package/dist/public/assets/_XHonkVEA.js.br +0 -0
- package/dist/public/assets/_ZusQguOq.js.br +0 -0
- package/dist/public/assets/__ziruLxv2.js.br +0 -0
- package/dist/public/assets/_bWhSjZnQ.js.br +0 -0
- package/dist/public/assets/_gmruYy_C.js.br +0 -0
- package/dist/public/assets/_h0_uQKFV2.js.br +0 -0
- package/dist/public/assets/_ll_lGA-X.js.br +0 -0
- package/dist/public/assets/_q-ZaUMrN.js.br +0 -0
- package/dist/public/assets/_wagVpOy02.js.br +0 -0
- package/dist/public/assets/_wrNucRqv.js.br +0 -0
- package/dist/public/assets/_xmOY7nKx2.js.br +0 -0
- package/dist/public/assets/_zBshawlw.js.br +0 -0
- package/dist/public/assets/app-page-BUHctmeP.css.br +0 -0
- package/dist/public/assets/diff-view-Ib_cSgB2.css.br +0 -0
- package/dist/public/assets/new-D04e4VBb.js +0 -1
- package/dist/public/assets/settings-D04e4VBb.js +0 -1
- package/dist/public/assets/w-D04e4VBb.js +0 -1
- package/dist/public/assets/w._-D04e4VBb.js +0 -1
- package/dist/public/assets/w._-DOaRv41v.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, V as publish, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, h as sendToSession, ht as TMUX_SOCKET, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, o as getSession, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./
|
|
3
|
-
import { B as withLock, C as revParse, D as ensureAllPushHooks, E as workspaceBranches, F as repoBranches, G as ensureGitCredentials, H as addHost, I as repoCatalog, K as forgetToken, L as repoDefaultBranch, M as headOid, N as remoteHasHeads, O as hookToken, P as pendingSsoOrgs, Q as ownsBranch, S as resumePendingWorkspaces, T as withProgressOp, U as cloneUrl, V as DEFAULT_HOST, W as configuredHosts, X as removeHost, Z as splitRepo, _ as progress$1, b as queueMaterialize, c as setAutoPush, d as createWorkspace, f as deleteWorkspace, g as otherWorkspaceBranches, h as listWorkspaces, i as noteRemoteRef, j as workspaceProcs, k as killWorkspaceProc, l as addRepo$1, m as insertPendingWorkspace, p as getWorkspace, r as noteLocalRefs, s as pushWorkspaceRepo, t as autoPushEnabled, u as barePath, v as progressSince, w as setWorkspaceStatus, x as removeRepo, y as pruneLaneBranch, z as swr } from "./
|
|
4
|
-
import { a as statusForAllFresh, c as refreshPrsBatch, i as statusForAll, l as workspacePrs, n as pokeStatusWatch, o as dismissPr, r as startStatusWatch, s as notePushActivity, t as activeRepoTargets } from "./
|
|
5
|
-
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, V as publish, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, h as sendToSession, ht as TMUX_SOCKET, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, o as getSession, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_BBmEhpPH.js";
|
|
3
|
+
import { B as withLock, C as revParse, D as ensureAllPushHooks, E as workspaceBranches, F as repoBranches, G as ensureGitCredentials, H as addHost, I as repoCatalog, K as forgetToken, L as repoDefaultBranch, M as headOid, N as remoteHasHeads, O as hookToken, P as pendingSsoOrgs, Q as ownsBranch, S as resumePendingWorkspaces, T as withProgressOp, U as cloneUrl, V as DEFAULT_HOST, W as configuredHosts, X as removeHost, Z as splitRepo, _ as progress$1, b as queueMaterialize, c as setAutoPush, d as createWorkspace, f as deleteWorkspace, g as otherWorkspaceBranches, h as listWorkspaces, i as noteRemoteRef, j as workspaceProcs, k as killWorkspaceProc, l as addRepo$1, m as insertPendingWorkspace, p as getWorkspace, r as noteLocalRefs, s as pushWorkspaceRepo, t as autoPushEnabled, u as barePath, v as progressSince, w as setWorkspaceStatus, x as removeRepo, y as pruneLaneBranch, z as swr } from "./_Dud_1oT_.js";
|
|
4
|
+
import { a as statusForAllFresh, c as refreshPrsBatch, i as statusForAll, l as workspacePrs, n as pokeStatusWatch, o as dismissPr, r as startStatusWatch, s as notePushActivity, t as activeRepoTargets } from "./_CM_NBV_t.js";
|
|
5
|
+
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./_10g8qIc8.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import path from "node:path";
|
|
@@ -1003,7 +1003,7 @@ function catchFn(reject) {
|
|
|
1003
1003
|
function finallyFn(resolve) {
|
|
1004
1004
|
return (this[kPromise] || (this[kPromise] = this[kReadFn]())).finally(resolve);
|
|
1005
1005
|
}
|
|
1006
|
-
var encode = encodeURIComponent;
|
|
1006
|
+
var encode$1 = encodeURIComponent;
|
|
1007
1007
|
var pathParts = /* @__PURE__ */ new Map();
|
|
1008
1008
|
function parsePathParts(path) {
|
|
1009
1009
|
let parts = pathParts.get(path);
|
|
@@ -1034,7 +1034,7 @@ function href_path(strings, ...params) {
|
|
|
1034
1034
|
if (!result || Array.isArray(result)) result = strings[i++];
|
|
1035
1035
|
while (i < strings.length) {
|
|
1036
1036
|
const param = params[j++];
|
|
1037
|
-
result += (Array.isArray(param) ? param.map(encode).join("/") : encode(param)) + strings[i++];
|
|
1037
|
+
result += (Array.isArray(param) ? param.map(encode$1).join("/") : encode$1(param)) + strings[i++];
|
|
1038
1038
|
}
|
|
1039
1039
|
return result;
|
|
1040
1040
|
}
|
|
@@ -1049,11 +1049,11 @@ function joinHref(path, { search, hash }) {
|
|
|
1049
1049
|
for (const key in search) {
|
|
1050
1050
|
const value = search[key];
|
|
1051
1051
|
if (value !== void 0) {
|
|
1052
|
-
path += `${sep}${encode(key)}=${encode(value)}`;
|
|
1052
|
+
path += `${sep}${encode$1(key)}=${encode$1(value)}`;
|
|
1053
1053
|
sep = "&";
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
|
-
return hash || hash === 0 ? `${path}#${encode(hash)}` : path;
|
|
1056
|
+
return hash || hash === 0 ? `${path}#${encode$1(hash)}` : path;
|
|
1057
1057
|
}
|
|
1058
1058
|
new Set(httpVerbs.map((v) => v.toUpperCase()));
|
|
1059
1059
|
var NotHandled = /* @__PURE__ */ Symbol.for("Run.Response.NotHandled");
|
|
@@ -1822,7 +1822,7 @@ async function runSetupAction(id, action, opts = {}) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
//#endregion
|
|
1824
1824
|
//#region __marko-run__index.js
|
|
1825
|
-
var getHandler$
|
|
1825
|
+
var getHandler$26 = normalizeHandler(Run.GET(async (ctx) => {
|
|
1826
1826
|
const active = listWorkspaces().filter((ws) => ws.status === "active");
|
|
1827
1827
|
const linked = ctx.url.searchParams.get("ws");
|
|
1828
1828
|
if (linked && active.some((ws) => ws.id === linked)) {
|
|
@@ -1839,10 +1839,10 @@ var getHandler$25 = normalizeHandler(Run.GET(async (ctx) => {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return ctx.redirect("/new", 302);
|
|
1841
1841
|
}), "GET");
|
|
1842
|
-
var get1_options = normalizeOptions("GET", getHandler$
|
|
1842
|
+
var get1_options = normalizeOptions("GET", getHandler$26);
|
|
1843
1843
|
var head1_options = {};
|
|
1844
1844
|
function get1(context) {
|
|
1845
|
-
return call(getHandler$
|
|
1845
|
+
return call(getHandler$26, noContent, context);
|
|
1846
1846
|
}
|
|
1847
1847
|
function head1(context) {
|
|
1848
1848
|
return stripResponseBody(get1(context));
|
|
@@ -1979,7 +1979,7 @@ var _middleware_default = Run.ALL((ctx, next) => {
|
|
|
1979
1979
|
var mware3 = normalizeHandler(_middleware_default$3);
|
|
1980
1980
|
var mware7 = normalizeHandler(_middleware_default$2);
|
|
1981
1981
|
var mware11 = normalizeHandler(_middleware_default$1);
|
|
1982
|
-
var
|
|
1982
|
+
var mware44 = normalizeHandler(_middleware_default);
|
|
1983
1983
|
//#endregion
|
|
1984
1984
|
//#region \0marko-link-assets.mjs
|
|
1985
1985
|
var base = "/";
|
|
@@ -2030,7 +2030,9 @@ var _layout_default = _template("a", (input) => {
|
|
|
2030
2030
|
const accent = inst?.accent || "";
|
|
2031
2031
|
const themePref = data?.prefs?.theme;
|
|
2032
2032
|
const theme = themePref === "light" || themePref === "dark" ? themePref : "system";
|
|
2033
|
-
const
|
|
2033
|
+
const tint = accent.slice(1);
|
|
2034
|
+
const iconHref = `/api/instance/icon${tint && `?v=${tint}`}`;
|
|
2035
|
+
const touchIconHref = `/api/instance/icon-png?art=apple${tint && `&v=${tint}`}`;
|
|
2034
2036
|
_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">`);
|
|
2035
2037
|
if (theme === "light") {
|
|
2036
2038
|
_scope_id();
|
|
@@ -2042,8 +2044,8 @@ var _layout_default = _template("a", (input) => {
|
|
|
2042
2044
|
_scope_id();
|
|
2043
2045
|
_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")}>`);
|
|
2044
2046
|
}
|
|
2045
|
-
_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
|
|
2046
|
-
_dynamic_tag($scope0_id, "
|
|
2047
|
+
_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>`);
|
|
2048
|
+
_dynamic_tag($scope0_id, "g", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0));
|
|
2047
2049
|
_trailers("</body></html>");
|
|
2048
2050
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
|
|
2049
2051
|
}, 1);
|
|
@@ -2323,18 +2325,18 @@ function applyInstance(inst) {
|
|
|
2323
2325
|
}
|
|
2324
2326
|
//#endregion
|
|
2325
2327
|
//#region src/tags/settings-page.css.ts
|
|
2326
|
-
var content$2 = "_cc
|
|
2327
|
-
var agentGrid = "_ci
|
|
2328
|
-
var toolGrid = "_cs
|
|
2328
|
+
var content$2 = "_cc _bF _bG";
|
|
2329
|
+
var agentGrid = "_ci _br";
|
|
2330
|
+
var toolGrid = "_cs _br";
|
|
2329
2331
|
var themeSeg = "_cH _6";
|
|
2330
2332
|
var swatches = "_cP _6";
|
|
2331
|
-
var checkList = "_de
|
|
2333
|
+
var checkList = "_de _br";
|
|
2332
2334
|
//#endregion
|
|
2333
2335
|
//#region src/tags/page-head.marko
|
|
2334
2336
|
var page_head_default = _template("t", (input) => {
|
|
2335
2337
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
2336
2338
|
const $scope0_id = _scope_id();
|
|
2337
|
-
_html(`<header${_attr_class("
|
|
2339
|
+
_html(`<header${_attr_class("_bH")}>`);
|
|
2338
2340
|
_if(() => {
|
|
2339
2341
|
if (input.backHref) {
|
|
2340
2342
|
const $scope1_id = _scope_id();
|
|
@@ -2353,11 +2355,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
2353
2355
|
return 1;
|
|
2354
2356
|
}
|
|
2355
2357
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
2356
|
-
_html(`<div${_attr_class("
|
|
2358
|
+
_html(`<div${_attr_class("_bJ")}><h1${_attr("id", input.titleId)}${_attr_class("_bI")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
2357
2359
|
_if(() => {
|
|
2358
2360
|
if (input.meta) {
|
|
2359
2361
|
const $scope3_id = _scope_id();
|
|
2360
|
-
_html(`<p${_attr_class("
|
|
2362
|
+
_html(`<p${_attr_class("_bK")}>`);
|
|
2361
2363
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
2362
2364
|
_html("</p>");
|
|
2363
2365
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2368,7 +2370,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
2368
2370
|
_if(() => {
|
|
2369
2371
|
if (input.actions) {
|
|
2370
2372
|
const $scope4_id = _scope_id();
|
|
2371
|
-
_html(`<div${_attr_class("
|
|
2373
|
+
_html(`<div${_attr_class("_bL")}>`);
|
|
2372
2374
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
2373
2375
|
_html("</div>");
|
|
2374
2376
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2436,7 +2438,7 @@ var icon_agent_default = _template("I", (input) => {
|
|
|
2436
2438
|
n: $badge__closures
|
|
2437
2439
|
});
|
|
2438
2440
|
});
|
|
2439
|
-
var usageNote = "
|
|
2441
|
+
var usageNote = "_fv _R";
|
|
2440
2442
|
//#endregion
|
|
2441
2443
|
//#region src/tags/icons/icon-warning.marko
|
|
2442
2444
|
var icon_warning_default = _template("mb", (input) => {
|
|
@@ -2466,11 +2468,11 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2466
2468
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
2467
2469
|
const $scope0_id = _scope_id();
|
|
2468
2470
|
const agent = input.agent;
|
|
2469
|
-
_html(`<div${_attr_class(["
|
|
2471
|
+
_html(`<div${_attr_class(["_fp", { ["_fq"]: input.hideName }])}><div${_attr_class("_fr")}>`);
|
|
2470
2472
|
_if(() => {
|
|
2471
2473
|
if (!input.hideName) {
|
|
2472
2474
|
const $scope1_id = _scope_id();
|
|
2473
|
-
_html(`<strong${_attr_class("
|
|
2475
|
+
_html(`<strong${_attr_class("_fK")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
2474
2476
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
2475
2477
|
return 0;
|
|
2476
2478
|
}
|
|
@@ -2478,7 +2480,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2478
2480
|
_if(() => {
|
|
2479
2481
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
2480
2482
|
const $scope2_id = _scope_id();
|
|
2481
|
-
_html(`<span${_attr_class("
|
|
2483
|
+
_html(`<span${_attr_class("_fs")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
2482
2484
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2483
2485
|
return 0;
|
|
2484
2486
|
}
|
|
@@ -2486,21 +2488,21 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2486
2488
|
_if(() => {
|
|
2487
2489
|
if (agent.stale_seconds != null) {
|
|
2488
2490
|
const $scope3_id = _scope_id();
|
|
2489
|
-
_html(`<span${_attr_class("
|
|
2491
|
+
_html(`<span${_attr_class("_ft")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
2490
2492
|
icon_warning_default({ size: 12 });
|
|
2491
2493
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
2492
2494
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
2493
2495
|
return 0;
|
|
2494
2496
|
}
|
|
2495
2497
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
2496
|
-
_html(`</div><div${_attr_class(["
|
|
2498
|
+
_html(`</div><div${_attr_class(["_fu", { ["_fL"]: agent.stale_seconds != null }])}>`);
|
|
2497
2499
|
_for_of(agent.windows || [], (win) => {
|
|
2498
2500
|
const $scope4_id = _scope_id();
|
|
2499
2501
|
const pct = pctText(win.used_percent);
|
|
2500
2502
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
2501
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
2502
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
2503
|
-
_html(`<div${_attr_class("
|
|
2503
|
+
const fillClass = win.used_percent >= 90 ? "_fD" : win.used_percent >= 70 ? "_fC" : win.used_percent >= 40 ? "_fB" : "_fA";
|
|
2504
|
+
const pctClass = win.used_percent >= 90 ? "_fI" : win.used_percent >= 70 ? "_fH" : win.used_percent >= 40 ? "_fG" : "_fF";
|
|
2505
|
+
_html(`<div${_attr_class("_fw")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_fx")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_fy")}><span${_attr_class(["_fz", 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(["_fE", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fJ")}>`);
|
|
2504
2506
|
_if(() => {
|
|
2505
2507
|
if (label) {
|
|
2506
2508
|
const $scope6_id = _scope_id();
|
|
@@ -2532,7 +2534,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2532
2534
|
q: $si__input_agent && agent?.note
|
|
2533
2535
|
});
|
|
2534
2536
|
});
|
|
2535
|
-
var orgSkip = "
|
|
2537
|
+
var orgSkip = "_fP _1 _j";
|
|
2536
2538
|
//#endregion
|
|
2537
2539
|
//#region src/tags/sso-auth.marko
|
|
2538
2540
|
var api$7;
|
|
@@ -2579,14 +2581,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2579
2581
|
localCode = null;
|
|
2580
2582
|
}
|
|
2581
2583
|
}, "B0", $scope0_id);
|
|
2582
|
-
_html(`<div${_attr_class("
|
|
2584
|
+
_html(`<div${_attr_class("_fM")}>`);
|
|
2583
2585
|
_if(() => {
|
|
2584
2586
|
if (input.items.length) {
|
|
2585
2587
|
const $scope1_id = _scope_id();
|
|
2586
|
-
_html(`<p${_attr_class("
|
|
2588
|
+
_html(`<p${_attr_class("_fX")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_fN")}>`);
|
|
2587
2589
|
_for_of(input.items, (s) => {
|
|
2588
2590
|
const $scope2_id = _scope_id();
|
|
2589
|
-
_html(`<li${_attr_class("
|
|
2591
|
+
_html(`<li${_attr_class("_fO")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class(orgSkip)}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
2590
2592
|
icon_xmark_default({ size: 11 });
|
|
2591
2593
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
2592
2594
|
_script($scope2_id, "B1");
|
|
@@ -2595,17 +2597,17 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2595
2597
|
_: _scope_with_id($scope1_id)
|
|
2596
2598
|
}));
|
|
2597
2599
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
2598
|
-
_html(`<div${_attr_class("
|
|
2600
|
+
_html(`<div${_attr_class("_fQ")}>`);
|
|
2599
2601
|
_if(() => {
|
|
2600
2602
|
if (localBusy && localCode) {
|
|
2601
2603
|
const $scope5_id = _scope_id();
|
|
2602
|
-
_html(`<span${_attr_class("
|
|
2604
|
+
_html(`<span${_attr_class("_fR")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_fS")}>${_escape(localCode)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_fT")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
2603
2605
|
_script($scope5_id, "B2");
|
|
2604
2606
|
_subscribe($localCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
2605
2607
|
return 0;
|
|
2606
2608
|
} else if (localBusy) {
|
|
2607
2609
|
const $scope8_id = _scope_id();
|
|
2608
|
-
_html(`<span${_attr_class("
|
|
2610
|
+
_html(`<span${_attr_class("_fR")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
|
|
2609
2611
|
writeScope($scope8_id, {});
|
|
2610
2612
|
return 1;
|
|
2611
2613
|
} else if (!busy) {
|
|
@@ -2619,7 +2621,7 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2619
2621
|
_if(() => {
|
|
2620
2622
|
if (localError) {
|
|
2621
2623
|
const $scope6_id = _scope_id();
|
|
2622
|
-
_html(`<p${_attr_class("
|
|
2624
|
+
_html(`<p${_attr_class("_fX")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
2623
2625
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
2624
2626
|
return 0;
|
|
2625
2627
|
}
|
|
@@ -2631,10 +2633,10 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2631
2633
|
_if(() => {
|
|
2632
2634
|
if (skipped$1.length) {
|
|
2633
2635
|
const $scope3_id = _scope_id();
|
|
2634
|
-
_html(`<p${_attr_class("
|
|
2636
|
+
_html(`<p${_attr_class("_fU")}>Skipped SSO for `);
|
|
2635
2637
|
_for_of(skipped$1, (s) => {
|
|
2636
2638
|
const $scope4_id = _scope_id();
|
|
2637
|
-
_html(`<span${_attr_class("
|
|
2639
|
+
_html(`<span${_attr_class("_fV")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_fW")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
2638
2640
|
_script($scope4_id, "B4");
|
|
2639
2641
|
writeScope($scope4_id, {
|
|
2640
2642
|
f: s?.org,
|
|
@@ -2707,7 +2709,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2707
2709
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
2708
2710
|
const dismissable = input.dismissable !== false;
|
|
2709
2711
|
let open = input.open;
|
|
2710
|
-
_html(`<dialog${_attr_class(["
|
|
2712
|
+
_html(`<dialog${_attr_class(["_fY", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
2711
2713
|
...htmlInput,
|
|
2712
2714
|
open: null
|
|
2713
2715
|
}, {
|
|
@@ -2717,20 +2719,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2717
2719
|
closedby: 1,
|
|
2718
2720
|
"on-cancel": 1,
|
|
2719
2721
|
"on-close": 1
|
|
2720
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
2722
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fZ")}>`);
|
|
2721
2723
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
2722
2724
|
_html("</div>");
|
|
2723
2725
|
_if(() => {
|
|
2724
2726
|
if (footer) {
|
|
2725
2727
|
const $scope1_id = _scope_id();
|
|
2726
|
-
_html(`<form method=dialog${_attr_class("
|
|
2728
|
+
_html(`<form method=dialog${_attr_class("_f0")}>`);
|
|
2727
2729
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
2728
2730
|
_html("</form>");
|
|
2729
2731
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
2730
2732
|
return 0;
|
|
2731
2733
|
} else if (input.openChange) {
|
|
2732
2734
|
const $scope2_id = _scope_id();
|
|
2733
|
-
_html(`<form method=dialog${_attr_class("
|
|
2735
|
+
_html(`<form method=dialog${_attr_class("_f0")}>`);
|
|
2734
2736
|
dialog_close_default({
|
|
2735
2737
|
class: ["_o", "_p"],
|
|
2736
2738
|
content: _content("r0", () => {
|
|
@@ -2789,7 +2791,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2789
2791
|
const $childScope = _peek_scope_id();
|
|
2790
2792
|
modal_view_default({
|
|
2791
2793
|
label: input.label,
|
|
2792
|
-
class: "
|
|
2794
|
+
class: "_fn",
|
|
2793
2795
|
open: input.open,
|
|
2794
2796
|
openChange: input.openChange,
|
|
2795
2797
|
"aria-labelledby": titleId,
|
|
@@ -2812,7 +2814,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2812
2814
|
content: _content("u6", () => {
|
|
2813
2815
|
_scope_reason();
|
|
2814
2816
|
const $scope2_id = _scope_id();
|
|
2815
|
-
_html(`<h2${_attr_class("
|
|
2817
|
+
_html(`<h2${_attr_class("_fo")}${_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) => {
|
|
2816
2818
|
value = _new_value;
|
|
2817
2819
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
2818
2820
|
_script($scope2_id, "u4");
|
|
@@ -3346,7 +3348,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3346
3348
|
const backupId = _id();
|
|
3347
3349
|
const machineId = _id();
|
|
3348
3350
|
const skillsId = _id();
|
|
3349
|
-
_html(`<div${_attr_class("
|
|
3351
|
+
_html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content$2)}>`);
|
|
3350
3352
|
_set_serialize_reason({
|
|
3351
3353
|
0: _serialize_guard($scope0_reason, 4),
|
|
3352
3354
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -3439,7 +3441,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3439
3441
|
return 0;
|
|
3440
3442
|
}
|
|
3441
3443
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
3442
|
-
_html(`<section${_attr_class("
|
|
3444
|
+
_html(`<section${_attr_class("_bo")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bp")}><h2${_attr("id", agentsId)}${_attr_class("_bC")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ck")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
|
|
3443
3445
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
3444
3446
|
setPreferred(v);
|
|
3445
3447
|
}, "x2", $scope0_id), () => {
|
|
@@ -3464,14 +3466,14 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3464
3466
|
const rows = lone ? [] : a.instances;
|
|
3465
3467
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3466
3468
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3467
|
-
_html(`<li${_attr_class(["
|
|
3469
|
+
_html(`<li${_attr_class(["_bt", "_cj"])}><div${_attr_class(["_cm", { ["_cp"]: lone && !lone.enabled }])}>`);
|
|
3468
3470
|
_set_serialize_reason(12);
|
|
3469
3471
|
const $childScope4 = _peek_scope_id();
|
|
3470
3472
|
icon_agent_default({
|
|
3471
3473
|
agent: a.id,
|
|
3472
3474
|
size: 18
|
|
3473
3475
|
});
|
|
3474
|
-
_html(`<div${_attr_class("
|
|
3476
|
+
_html(`<div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class("_bv")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3475
3477
|
_if(() => {
|
|
3476
3478
|
if (lone && input.preferred === lone.id) {
|
|
3477
3479
|
const $scope84_id = _scope_id();
|
|
@@ -3489,7 +3491,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3489
3491
|
return 0;
|
|
3490
3492
|
} else if (!a.installed) {
|
|
3491
3493
|
const $scope85_id = _scope_id();
|
|
3492
|
-
_html(`<span${_attr_class("
|
|
3494
|
+
_html(`<span${_attr_class("_bx")}>Not installed</span>`);
|
|
3493
3495
|
writeScope($scope85_id, {});
|
|
3494
3496
|
return 1;
|
|
3495
3497
|
}
|
|
@@ -3607,7 +3609,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3607
3609
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
3608
3610
|
_for_of(otherUsage, (u) => {
|
|
3609
3611
|
const $scope90_id = _scope_id();
|
|
3610
|
-
_html(`<li${_attr_class(["
|
|
3612
|
+
_html(`<li${_attr_class(["_bt", "_cj"])}>`);
|
|
3611
3613
|
_set_serialize_reason(6);
|
|
3612
3614
|
const $childScope9 = _peek_scope_id();
|
|
3613
3615
|
usage_meters_default({ agent: u });
|
|
@@ -3618,17 +3620,17 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3618
3620
|
_if(() => {
|
|
3619
3621
|
if (!usage && families.length) {
|
|
3620
3622
|
const $scope91_id = _scope_id();
|
|
3621
|
-
_html(`<p${_attr_class("
|
|
3623
|
+
_html(`<p${_attr_class("_bz")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
3622
3624
|
writeScope($scope91_id, {});
|
|
3623
3625
|
return 0;
|
|
3624
3626
|
} else if (usage?.error) {
|
|
3625
3627
|
const $scope7_id = _scope_id();
|
|
3626
|
-
_html(`<p${_attr_class("
|
|
3628
|
+
_html(`<p${_attr_class("_bz")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
3627
3629
|
writeScope($scope7_id, {});
|
|
3628
3630
|
return 1;
|
|
3629
3631
|
}
|
|
3630
3632
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
3631
|
-
_html(`</section><section${_attr_class("
|
|
3633
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bp")}><h2${_attr("id", githubId)}${_attr_class("_bC")}>GitHub</h2></div><ul${_attr_class("_br")}>`);
|
|
3632
3634
|
_for_of(setup?.github || [], (h) => {
|
|
3633
3635
|
const $scope12_id = _scope_id();
|
|
3634
3636
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -3642,7 +3644,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3642
3644
|
const skippedSso = (() => {
|
|
3643
3645
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
3644
3646
|
})();
|
|
3645
|
-
_html(`<li${_attr_class(["
|
|
3647
|
+
_html(`<li${_attr_class(["_bt", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class(["_bv", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
3646
3648
|
_if(() => {
|
|
3647
3649
|
if (h.isEnterprise) {
|
|
3648
3650
|
const $scope94_id = _scope_id();
|
|
@@ -3665,12 +3667,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3665
3667
|
return 1;
|
|
3666
3668
|
} else if (h.authed) {
|
|
3667
3669
|
const $scope92_id = _scope_id();
|
|
3668
|
-
_html(`<span${_attr_class("
|
|
3670
|
+
_html(`<span${_attr_class("_bx")}>Signed in <!>${h.user ? `${_escape(`${_to_text(" ")}`)}as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope92_id, "b")}</span>`);
|
|
3669
3671
|
writeScope($scope92_id, {});
|
|
3670
3672
|
return 2;
|
|
3671
3673
|
} else {
|
|
3672
3674
|
const $scope93_id = _scope_id();
|
|
3673
|
-
_html(`<span${_attr_class("
|
|
3675
|
+
_html(`<span${_attr_class("_bx")}>${_escape(h.error || "Not signed in")}${_el_resume($scope93_id, "b")}</span>`);
|
|
3674
3676
|
writeScope($scope93_id, {});
|
|
3675
3677
|
return 3;
|
|
3676
3678
|
}
|
|
@@ -3701,7 +3703,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3701
3703
|
if (h.isEnterprise) {
|
|
3702
3704
|
const $scope36_id = _scope_id();
|
|
3703
3705
|
_html(`<button${_attr_class([
|
|
3704
|
-
"
|
|
3706
|
+
"_by",
|
|
3705
3707
|
"_2",
|
|
3706
3708
|
"_3",
|
|
3707
3709
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -3776,7 +3778,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3776
3778
|
_if(() => {
|
|
3777
3779
|
if (setup && !setup.github.length) {
|
|
3778
3780
|
const $scope97_id = _scope_id();
|
|
3779
|
-
_html(`<p${_attr_class("
|
|
3781
|
+
_html(`<p${_attr_class("_bz")}>Install the GitHub CLI below to sign in.</p>`);
|
|
3780
3782
|
writeScope($scope97_id, {});
|
|
3781
3783
|
return 0;
|
|
3782
3784
|
}
|
|
@@ -3784,7 +3786,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3784
3786
|
_if(() => {
|
|
3785
3787
|
if (autoPush !== null) {
|
|
3786
3788
|
const $scope65_id = _scope_id();
|
|
3787
|
-
_html(`<div${_attr_class(row)}><div${_attr_class("
|
|
3789
|
+
_html(`<div${_attr_class(row)}><div${_attr_class("_bu")}><span${_attr_class("_cu")}>Auto-push</span><span${_attr_class("_bx")}>Every commit on a workspace branch goes to origin. A push that fails shows on the workspace.</span></div><button${_attr_class([
|
|
3788
3790
|
"_H",
|
|
3789
3791
|
"_J",
|
|
3790
3792
|
{ [tone.ok]: autoPush }
|
|
@@ -3810,7 +3812,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3810
3812
|
return 0;
|
|
3811
3813
|
}
|
|
3812
3814
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
3813
|
-
_html(`</section><section${_attr_class("
|
|
3815
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bp")}><h2${_attr("id", machineId)}${_attr_class("_bC")}><button${_attr_class("_cf")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
3814
3816
|
_set_serialize_reason(1);
|
|
3815
3817
|
const $childScope11 = _peek_scope_id();
|
|
3816
3818
|
icon_chevron_right_default({
|
|
@@ -3860,7 +3862,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3860
3862
|
_if(() => {
|
|
3861
3863
|
if (setup && !setup.mise.installed) {
|
|
3862
3864
|
const $scope17_id = _scope_id();
|
|
3863
|
-
_html(`<p${_attr_class("
|
|
3865
|
+
_html(`<p${_attr_class("_bz")}>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($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
3864
3866
|
_script($scope17_id, "x59");
|
|
3865
3867
|
_subscribe($active__closures, writeScope($scope17_id, { Cgi: 3 }));
|
|
3866
3868
|
return 0;
|
|
@@ -4061,7 +4063,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4061
4063
|
_html(`<ul${_attr_class([toolGrid, "_cx"])}>`);
|
|
4062
4064
|
_for_of(hits, (h) => {
|
|
4063
4065
|
const $scope22_id = _scope_id();
|
|
4064
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4066
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bu")}><span${_attr_class(["_cu", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
4065
4067
|
_if(() => {
|
|
4066
4068
|
if (active.has(h.name)) {
|
|
4067
4069
|
const $scope23_id = _scope_id();
|
|
@@ -4070,7 +4072,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4070
4072
|
return 0;
|
|
4071
4073
|
} else if (h.description) {
|
|
4072
4074
|
const $scope108_id = _scope_id();
|
|
4073
|
-
_html(`<span${_attr_class("
|
|
4075
|
+
_html(`<span${_attr_class("_bx")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope108_id, "b")}</span>${_el_resume($scope108_id, "a")}`);
|
|
4074
4076
|
writeScope($scope108_id, {});
|
|
4075
4077
|
return 1;
|
|
4076
4078
|
}
|
|
@@ -4109,7 +4111,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4109
4111
|
return 0;
|
|
4110
4112
|
} else if (hits && !searching) {
|
|
4111
4113
|
const $scope45_id = _scope_id();
|
|
4112
|
-
_html(`<p${_attr_class("
|
|
4114
|
+
_html(`<p${_attr_class("_bz")}>No tools match "<!>${_escape(query)}${_el_resume($scope45_id, "b")}".</p>`);
|
|
4113
4115
|
_subscribe($query__closures, writeScope($scope45_id, { Cgr: 1 }));
|
|
4114
4116
|
return 1;
|
|
4115
4117
|
}
|
|
@@ -4124,7 +4126,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4124
4126
|
return 0;
|
|
4125
4127
|
}
|
|
4126
4128
|
}, $scope0_id, "ab");
|
|
4127
|
-
_html(`</section><section${_attr_class("
|
|
4129
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_bp")}><h2${_attr("id", skillsId)}${_attr_class("_bC")}><button${_attr_class("_cf")} aria-expanded=false>`);
|
|
4128
4130
|
_set_serialize_reason(1);
|
|
4129
4131
|
const $childScope12 = _peek_scope_id();
|
|
4130
4132
|
icon_chevron_right_default({
|
|
@@ -4156,7 +4158,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4156
4158
|
label: "Dark"
|
|
4157
4159
|
}
|
|
4158
4160
|
];
|
|
4159
|
-
_html(`</section><section${_attr_class("
|
|
4161
|
+
_html(`</section><section${_attr_class("_bo")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bp")}><h2${_attr("id", appearanceId)}${_attr_class("_bC")}>Appearance</h2></div><div${_attr_class(["_bt", "_cD"])}><label${_attr_class("_cE")}><span${_attr_class("_cF")}>Name</span><input${_attr_input_value($scope0_id, "ap", input.instance.name, _resume(function(v) {
|
|
4160
4162
|
setInstance({ name: v });
|
|
4161
4163
|
}, "x4", $scope0_id))}${_attr_class(["_T", "_cG"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ap")}</label><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Theme</span><span${_attr_class("_cI")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
4162
4164
|
_for_of(themeOpts, (opt) => {
|
|
@@ -4200,7 +4202,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4200
4202
|
{ ["_cR"]: customOn }
|
|
4201
4203
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b2", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
4202
4204
|
setInstance({ accent: v });
|
|
4203
|
-
}, "x6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b2")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b1", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
4205
|
+
}, "x6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b2")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b1", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bo")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bp")}><h2${_attr("id", backupId)}${_attr_class("_bC")}>Backup</h2></div><ul${_attr_class("_br")}><li${_attr_class(["_bt", "_c2"])}><div${_attr_class("_c3")}><div${_attr_class("_bu")}><span${_attr_class("_bv")}>Export</span>`);
|
|
4204
4206
|
_if(() => {
|
|
4205
4207
|
if (backupBusy === "preflight" || backupBusy === "push") {
|
|
4206
4208
|
const $scope66_id = _scope_id();
|
|
@@ -4209,7 +4211,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4209
4211
|
return 0;
|
|
4210
4212
|
} else {
|
|
4211
4213
|
const $scope124_id = _scope_id();
|
|
4212
|
-
_html(`<span${_attr_class("
|
|
4214
|
+
_html(`<span${_attr_class("_bx")}>Workspaces and their branches, settings, skills and tool pins in one file. Code stays on GitHub.</span>`);
|
|
4213
4215
|
writeScope($scope124_id, {});
|
|
4214
4216
|
return 1;
|
|
4215
4217
|
}
|
|
@@ -4249,7 +4251,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4249
4251
|
_for_of(preflight.workspaces, (w) => {
|
|
4250
4252
|
const $scope126_id = _scope_id();
|
|
4251
4253
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
4252
|
-
_html(`<li${_attr_class("_c8")}><span${_attr_class("
|
|
4254
|
+
_html(`<li${_attr_class("_c8")}><span${_attr_class("_bv")}>${_escape(w.name)}${_el_resume($scope126_id, "c")}</span><ul${_attr_class("_c7")}>`);
|
|
4253
4255
|
_for_of(w.repos, (r) => {
|
|
4254
4256
|
const $scope127_id = _scope_id();
|
|
4255
4257
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
@@ -4336,7 +4338,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4336
4338
|
return 0;
|
|
4337
4339
|
}
|
|
4338
4340
|
}, $scope0_id, "bd", 1, 1, 1, 0, 1);
|
|
4339
|
-
_html(`</li><li${_attr_class(["
|
|
4341
|
+
_html(`</li><li${_attr_class(["_bt", "_c2"])}><div${_attr_class("_c3")}><div${_attr_class("_bu")}><span${_attr_class("_bv")}>Restore</span>`);
|
|
4340
4342
|
_if(() => {
|
|
4341
4343
|
if (backupBusy === "restore") {
|
|
4342
4344
|
const $scope67_id = _scope_id();
|
|
@@ -4345,12 +4347,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4345
4347
|
return 0;
|
|
4346
4348
|
} else if (restoreDone) {
|
|
4347
4349
|
const $scope75_id = _scope_id();
|
|
4348
|
-
_html(`<span${_attr_class("
|
|
4350
|
+
_html(`<span${_attr_class("_bx")}>${_escape(restoreDone)}${_el_resume($scope75_id, "b")}</span>`);
|
|
4349
4351
|
writeScope($scope75_id, {});
|
|
4350
4352
|
return 1;
|
|
4351
4353
|
} else {
|
|
4352
4354
|
const $scope135_id = _scope_id();
|
|
4353
|
-
_html(`<span${_attr_class("
|
|
4355
|
+
_html(`<span${_attr_class("_bx")}>From a file exported here or on another machine. Workspaces come back as they were; their repos clone in the background.</span>`);
|
|
4354
4356
|
writeScope($scope135_id, {});
|
|
4355
4357
|
return 2;
|
|
4356
4358
|
}
|
|
@@ -4377,7 +4379,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4377
4379
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
4378
4380
|
_for_of(preview.workspaces, (w) => {
|
|
4379
4381
|
const $scope72_id = _scope_id();
|
|
4380
|
-
_html(`<li><label${_attr_class(["_df", { ["_dh"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dg")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("
|
|
4382
|
+
_html(`<li><label${_attr_class(["_df", { ["_dh"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dg")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_bu")}><span${_attr_class("_bw")}><span${_attr_class("_bv")}>${_escape(w.name)}${_el_resume($scope72_id, "f")}</span>`);
|
|
4381
4383
|
_if(() => {
|
|
4382
4384
|
if (w.status === "archived") {
|
|
4383
4385
|
const $scope139_id = _scope_id();
|
|
@@ -4399,7 +4401,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4399
4401
|
return 1;
|
|
4400
4402
|
}
|
|
4401
4403
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
4402
|
-
_html(`</span><span${_attr_class("
|
|
4404
|
+
_html(`</span><span${_attr_class("_bx")}>${_escape(w.repos.join(", ") || "no repos")}${_el_resume($scope72_id, "j")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
4403
4405
|
_script($scope72_id, "x80");
|
|
4404
4406
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
4405
4407
|
n: w?.unknownHost,
|
|
@@ -4410,7 +4412,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4410
4412
|
return 0;
|
|
4411
4413
|
} else {
|
|
4412
4414
|
const $scope137_id = _scope_id();
|
|
4413
|
-
_html(`<p${_attr_class("
|
|
4415
|
+
_html(`<p${_attr_class("_bz")}>No workspaces in this file.</p>`);
|
|
4414
4416
|
writeScope($scope137_id, {});
|
|
4415
4417
|
return 1;
|
|
4416
4418
|
}
|
|
@@ -4450,7 +4452,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4450
4452
|
_if(() => {
|
|
4451
4453
|
if (p.total) {
|
|
4452
4454
|
const $scope74_id = _scope_id();
|
|
4453
|
-
_html(`<li><label${_attr_class(["_df", { ["_dh"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dg")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("
|
|
4455
|
+
_html(`<li><label${_attr_class(["_df", { ["_dh"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dg")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_bu")}><span${_attr_class("_bv")}>${_escape(p.label)}${_el_resume($scope74_id, "e")}</span><span${_attr_class("_bx")}>`);
|
|
4454
4456
|
_if(() => {
|
|
4455
4457
|
if (p.key === "settings") {
|
|
4456
4458
|
const $scope136_id = _scope_id();
|
|
@@ -4687,12 +4689,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4687
4689
|
});
|
|
4688
4690
|
//#endregion
|
|
4689
4691
|
//#region src/tags/new-workspace.css.ts
|
|
4690
|
-
var content$1 = "_bM
|
|
4691
|
-
var section$1 = "_bQ
|
|
4692
|
+
var content$1 = "_bM _bF";
|
|
4693
|
+
var section$1 = "_bQ _bo";
|
|
4692
4694
|
var curBase = "_bV _S _R";
|
|
4693
|
-
var archived = "_b0
|
|
4695
|
+
var archived = "_b0 _bo";
|
|
4694
4696
|
var archivedHint = "_b1 _R";
|
|
4695
|
-
var archivedCard = "_b2
|
|
4697
|
+
var archivedCard = "_b2 _bt";
|
|
4696
4698
|
//#endregion
|
|
4697
4699
|
//#region src/tags/icons/icon-group.marko
|
|
4698
4700
|
var icon_group_default = _template("cb", (input) => {
|
|
@@ -4761,7 +4763,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
4761
4763
|
_if(() => {
|
|
4762
4764
|
{
|
|
4763
4765
|
const $scope4_id = _scope_id();
|
|
4764
|
-
_html(`<p${_attr_class("
|
|
4766
|
+
_html(`<p${_attr_class("_bz")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
4765
4767
|
writeScope($scope4_id, {});
|
|
4766
4768
|
return 0;
|
|
4767
4769
|
}
|
|
@@ -4929,7 +4931,7 @@ var repo_picker_default = _template("v", (input) => {
|
|
|
4929
4931
|
return 0;
|
|
4930
4932
|
} else if (filter && !catalog) {
|
|
4931
4933
|
const $scope9_id = _scope_id();
|
|
4932
|
-
_html(`<p${_attr_class("
|
|
4934
|
+
_html(`<p${_attr_class("_bz")}>Loading repos…</p>`);
|
|
4933
4935
|
writeScope($scope9_id, {});
|
|
4934
4936
|
return 1;
|
|
4935
4937
|
}
|
|
@@ -4980,7 +4982,7 @@ var repo_picker_default = _template("v", (input) => {
|
|
|
4980
4982
|
return 0;
|
|
4981
4983
|
} else if (filter && catalog && !pasted) {
|
|
4982
4984
|
const $scope6_id = _scope_id();
|
|
4983
|
-
_html(`<p${_attr_class("
|
|
4985
|
+
_html(`<p${_attr_class("_bz")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
4984
4986
|
writeScope($scope6_id, {});
|
|
4985
4987
|
return 1;
|
|
4986
4988
|
}
|
|
@@ -5284,7 +5286,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5284
5286
|
_html(`<li${_attr_class("_dG")}><span${_attr_class("_dH")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
5285
5287
|
writeScope($scope9_id, {});
|
|
5286
5288
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5287
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_dI")}><span${_attr_class("
|
|
5289
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_dI")}><span${_attr_class("_bC")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
5288
5290
|
name = _new_name;
|
|
5289
5291
|
}, "o1", $scope3_id))}${_attr_class("_T")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
5290
5292
|
_script($scope3_id, "o8");
|
|
@@ -5488,7 +5490,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5488
5490
|
}
|
|
5489
5491
|
}, "s6", $scope0_id);
|
|
5490
5492
|
const titleId = _id();
|
|
5491
|
-
_html(`<div${_attr_class("
|
|
5493
|
+
_html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content$1)}>`);
|
|
5492
5494
|
_set_serialize_reason({
|
|
5493
5495
|
0: _serialize_guard($scope0_reason, 2),
|
|
5494
5496
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5537,9 +5539,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5537
5539
|
return 0;
|
|
5538
5540
|
}
|
|
5539
5541
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5540
|
-
_html(`<label${_attr_class("_bP")}><span${_attr_class("
|
|
5542
|
+
_html(`<label${_attr_class("_bP")}><span${_attr_class("_bC")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5541
5543
|
name = _new_name;
|
|
5542
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bR")}><h2${_attr_class("
|
|
5544
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bR")}><h2${_attr_class("_bC")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5543
5545
|
_set_serialize_reason(1);
|
|
5544
5546
|
const $childScope2 = _peek_scope_id();
|
|
5545
5547
|
icon_refresh_default({
|
|
@@ -5612,7 +5614,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5612
5614
|
_if(() => {
|
|
5613
5615
|
if (!selected.length) {
|
|
5614
5616
|
const $scope16_id = _scope_id();
|
|
5615
|
-
_html(`<li${_attr_class("
|
|
5617
|
+
_html(`<li${_attr_class("_bz")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5616
5618
|
writeScope($scope16_id, {});
|
|
5617
5619
|
return 0;
|
|
5618
5620
|
}
|
|
@@ -5681,10 +5683,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5681
5683
|
_if(() => {
|
|
5682
5684
|
if (archived$1.length) {
|
|
5683
5685
|
const $scope6_id = _scope_id();
|
|
5684
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("
|
|
5686
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("_bC")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope6_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_br")}>`);
|
|
5685
5687
|
_for_of(archived$1, (ws) => {
|
|
5686
5688
|
const $scope7_id = _scope_id();
|
|
5687
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5689
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bu")}><span${_attr_class("_bv")}>${_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)}>`);
|
|
5688
5690
|
_if(() => {
|
|
5689
5691
|
if (restoring === ws.id) {
|
|
5690
5692
|
const $scope19_id = _scope_id();
|
|
@@ -5808,8 +5810,8 @@ function vapidKey(base64) {
|
|
|
5808
5810
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
5809
5811
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
5810
5812
|
}
|
|
5811
|
-
var iconBtn$1 = "
|
|
5812
|
-
var navToggle = "
|
|
5813
|
+
var iconBtn$1 = "_d7 _j";
|
|
5814
|
+
var navToggle = "_eb _j";
|
|
5813
5815
|
_template("P", (input) => {
|
|
5814
5816
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5815
5817
|
const $scope0_id = _scope_id();
|
|
@@ -5857,7 +5859,7 @@ var rowIcon = "_g_ _Y _j";
|
|
|
5857
5859
|
var close = "_ha _1 _j _2";
|
|
5858
5860
|
//#endregion
|
|
5859
5861
|
//#region src/styles/session-pop.css.ts
|
|
5860
|
-
var sessionPop = "
|
|
5862
|
+
var sessionPop = "_gF _4";
|
|
5861
5863
|
//#endregion
|
|
5862
5864
|
//#region src/client/status.ts
|
|
5863
5865
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -5924,22 +5926,22 @@ var usage_pcts_default = _template("G", (input) => {
|
|
|
5924
5926
|
if (windows.length) {
|
|
5925
5927
|
const $scope1_id = _scope_id();
|
|
5926
5928
|
_html(`<span${_attr_class([
|
|
5927
|
-
"
|
|
5929
|
+
"_f1",
|
|
5928
5930
|
input.class,
|
|
5929
|
-
{ ["
|
|
5931
|
+
{ ["_f2"]: agent.stale_seconds != null }
|
|
5930
5932
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5931
5933
|
_for_of(windows, (win$1, i) => {
|
|
5932
5934
|
const $scope2_id = _scope_id();
|
|
5933
|
-
_html(`<span${_attr_class("
|
|
5935
|
+
_html(`<span${_attr_class("_f3")}>`);
|
|
5934
5936
|
_if(() => {
|
|
5935
5937
|
if (i) {
|
|
5936
5938
|
const $scope3_id = _scope_id();
|
|
5937
|
-
_html(`<span${_attr_class("
|
|
5939
|
+
_html(`<span${_attr_class("_f6")} aria-hidden=true>·</span>`);
|
|
5938
5940
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5939
5941
|
return 0;
|
|
5940
5942
|
}
|
|
5941
5943
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5942
|
-
_html(`<span${_attr_class("
|
|
5944
|
+
_html(`<span${_attr_class("_f4")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f5", win$1.used_percent >= 90 ? "_fI" : win$1.used_percent >= 70 ? "_fH" : win$1.used_percent >= 40 ? "_fG" : "_fF"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5943
5945
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5944
5946
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5945
5947
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5970,12 +5972,12 @@ var icon_edit_default = _template("Z", (input) => {
|
|
|
5970
5972
|
});
|
|
5971
5973
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5972
5974
|
});
|
|
5973
|
-
var prChip = "
|
|
5974
|
-
var portChip = "
|
|
5975
|
+
var prChip = "_h5 _s _h4";
|
|
5976
|
+
var portChip = "_h6 _s _h4";
|
|
5975
5977
|
var prState = {
|
|
5976
|
-
open: "
|
|
5977
|
-
merged: "
|
|
5978
|
-
closed: "
|
|
5978
|
+
open: "_h_",
|
|
5979
|
+
merged: "_ia",
|
|
5980
|
+
closed: "_ib"
|
|
5979
5981
|
};
|
|
5980
5982
|
//#endregion
|
|
5981
5983
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6048,7 +6050,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6048
6050
|
const name = repo.full_name.split("/").at(-1);
|
|
6049
6051
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6050
6052
|
}, "y4", $scope1_id);
|
|
6051
|
-
_html(`<div${_attr_class("
|
|
6053
|
+
_html(`<div${_attr_class("_h3")}>`);
|
|
6052
6054
|
_for_of(unpushed, (repo) => {
|
|
6053
6055
|
const $scope7_id = _scope_id();
|
|
6054
6056
|
_html(`<span${_attr_class(["_s", tone.warn])}${_attr("title", `${repo.worktree}: ${repo.unpushed}`)}>${_escape(repoLabel$1(repo))}${_el_resume($scope7_id, "b")}<!>${repoLabel$1(repo) ? _escape(`${_to_text(" ")}`) : ""}${_el_resume($scope7_id, "c")} unpushed</span>${_el_resume($scope7_id, "a")}`);
|
|
@@ -6069,11 +6071,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6069
6071
|
[prState.merged]: pr.state === "MERGED",
|
|
6070
6072
|
[prState.closed]: pr.state === "CLOSED"
|
|
6071
6073
|
}
|
|
6072
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6074
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_h7", { ["_id"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
6073
6075
|
_if(() => {
|
|
6074
6076
|
if (open) {
|
|
6075
6077
|
const $scope4_id = _scope_id();
|
|
6076
|
-
_html(`<a${_attr_class(["
|
|
6078
|
+
_html(`<a${_attr_class(["_h7", "_h8"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6077
6079
|
icon_diff_default({ size: 12 });
|
|
6078
6080
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
6079
6081
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -6081,9 +6083,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6081
6083
|
} else {
|
|
6082
6084
|
const $scope6_id = _scope_id();
|
|
6083
6085
|
_html(`<button type=button${_attr_class([
|
|
6084
|
-
"
|
|
6085
|
-
"
|
|
6086
|
-
"
|
|
6086
|
+
"_h7",
|
|
6087
|
+
"_h8",
|
|
6088
|
+
"_h9"
|
|
6087
6089
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6088
6090
|
icon_xmark_default({ size: 12 });
|
|
6089
6091
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6107,10 +6109,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
6107
6109
|
}, "full_name", $scope1_id, "c");
|
|
6108
6110
|
_for_of(ports, (p) => {
|
|
6109
6111
|
const $scope5_id = _scope_id();
|
|
6110
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6112
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_h7", "_ic"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6113
|
+
"_h7",
|
|
6114
|
+
"_h8",
|
|
6111
6115
|
"_h9",
|
|
6112
|
-
"_h_",
|
|
6113
|
-
"_ia",
|
|
6114
6116
|
{ ["_q"]: armedPid === p.pid }
|
|
6115
6117
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6116
6118
|
icon_xmark_default({ size: 12 });
|
|
@@ -6330,7 +6332,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6330
6332
|
_html(`</button>${_el_resume($scope7_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6331
6333
|
_for_of([], (agent) => {
|
|
6332
6334
|
const $scope8_id = _scope_id();
|
|
6333
|
-
_html(`<button${_attr_class("
|
|
6335
|
+
_html(`<button${_attr_class("_gG")}>`);
|
|
6334
6336
|
_set_serialize_reason(12);
|
|
6335
6337
|
const $childScope2 = _peek_scope_id();
|
|
6336
6338
|
icon_agent_default({
|
|
@@ -6660,34 +6662,34 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6660
6662
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6661
6663
|
_html(`<script${_attr_nonce()}>${_escape_script(`
|
|
6662
6664
|
${_to_text(`if (matchMedia("(max-width: 899px)").matches) document.documentElement.classList.add("work-no-rail");`)};
|
|
6663
|
-
`)}<\/script><aside${_attr_class(["
|
|
6664
|
-
["
|
|
6665
|
-
["
|
|
6665
|
+
`)}<\/script><aside${_attr_class(["_ea", {
|
|
6666
|
+
["_d9"]: !navOpen,
|
|
6667
|
+
["_d_"]: isPage
|
|
6666
6668
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6667
6669
|
_if(() => {
|
|
6668
6670
|
if (isPage) {
|
|
6669
6671
|
const $scope1_id = _scope_id();
|
|
6670
|
-
_html(`<header${_attr_class("
|
|
6672
|
+
_html(`<header${_attr_class("_ed")}><div${_attr_class("_em")}>`);
|
|
6671
6673
|
_if(() => {
|
|
6672
6674
|
if (input.instanceName) {
|
|
6673
6675
|
const $scope2_id = _scope_id();
|
|
6674
|
-
_html(`<div${_attr_class("
|
|
6676
|
+
_html(`<div${_attr_class("_ej")} title="This work server (Settings → Appearance)"><img${_attr_class("_ek")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_el")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6675
6677
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6676
6678
|
return 0;
|
|
6677
6679
|
}
|
|
6678
6680
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6679
|
-
_html(`<h1${_attr_class("
|
|
6681
|
+
_html(`<h1${_attr_class("_ee")}>Workspaces</h1></div><div${_attr_class("_ef")}>`);
|
|
6680
6682
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6681
6683
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6682
6684
|
iconBtn$1,
|
|
6683
|
-
"
|
|
6684
|
-
{ ["
|
|
6685
|
+
"_eg",
|
|
6686
|
+
{ ["_d6"]: view === "settings" }
|
|
6685
6687
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6686
6688
|
icon_settings_default({ size: 16 });
|
|
6687
6689
|
_if(() => {
|
|
6688
6690
|
if (input.setupReady === false) {
|
|
6689
6691
|
const $scope12_id = _scope_id();
|
|
6690
|
-
_html(`<span${_attr_class(["_y", "
|
|
6692
|
+
_html(`<span${_attr_class(["_y", "_d8"])} title="Machine setup incomplete"></span>`);
|
|
6691
6693
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6692
6694
|
return 0;
|
|
6693
6695
|
}
|
|
@@ -6700,18 +6702,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6700
6702
|
_if(() => {
|
|
6701
6703
|
if (!isPage && input.instanceName) {
|
|
6702
6704
|
const $scope3_id = _scope_id();
|
|
6703
|
-
_html(`<div${_attr_class("
|
|
6705
|
+
_html(`<div${_attr_class("_ej")} title="This work server (Settings → Appearance)"><img${_attr_class("_ek")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_el")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6704
6706
|
writeScope($scope3_id, {});
|
|
6705
6707
|
return 0;
|
|
6706
6708
|
}
|
|
6707
6709
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
6708
|
-
_html(`<div${_attr_class("
|
|
6710
|
+
_html(`<div${_attr_class("_en")}>`);
|
|
6709
6711
|
_for_of(listIds, (wsId) => {
|
|
6710
6712
|
const $scope4_id = _scope_id();
|
|
6711
6713
|
_if(() => {
|
|
6712
6714
|
if (isPage && wsId === ws.id) {
|
|
6713
6715
|
const $scope13_id = _scope_id();
|
|
6714
|
-
_html(`<h2${_attr_class(["
|
|
6716
|
+
_html(`<h2${_attr_class(["_bC", "_eh"])}>Current</h2>`);
|
|
6715
6717
|
writeScope($scope13_id, {});
|
|
6716
6718
|
return 0;
|
|
6717
6719
|
}
|
|
@@ -6719,7 +6721,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6719
6721
|
_if(() => {
|
|
6720
6722
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6721
6723
|
const $scope14_id = _scope_id();
|
|
6722
|
-
_html(`<h2${_attr_class(["
|
|
6724
|
+
_html(`<h2${_attr_class(["_bC", "_eh"])}>Other workspaces</h2>`);
|
|
6723
6725
|
writeScope($scope14_id, {});
|
|
6724
6726
|
return 0;
|
|
6725
6727
|
}
|
|
@@ -6803,7 +6805,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6803
6805
|
railHover = null;
|
|
6804
6806
|
}, 150);
|
|
6805
6807
|
}, "A6", $scope5_id);
|
|
6806
|
-
_html(`<div${_attr_class("
|
|
6808
|
+
_html(`<div${_attr_class("_eo")} data-rail>`);
|
|
6807
6809
|
_for_of(itemIds, (wsId, i) => {
|
|
6808
6810
|
const $scope6_id = _scope_id();
|
|
6809
6811
|
_html("<span>");
|
|
@@ -6857,7 +6859,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6857
6859
|
if (railHover) {
|
|
6858
6860
|
const $scope7_id = _scope_id();
|
|
6859
6861
|
const hoverId = railHover.id;
|
|
6860
|
-
_html(`<div${_attr_class(["_4", "
|
|
6862
|
+
_html(`<div${_attr_class(["_4", "_er"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6861
6863
|
_set_serialize_reason({
|
|
6862
6864
|
0: 1,
|
|
6863
6865
|
1: 1,
|
|
@@ -6942,7 +6944,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6942
6944
|
return 0;
|
|
6943
6945
|
}
|
|
6944
6946
|
}, $scope0_id, "f");
|
|
6945
|
-
_html(`<div${_attr_class("
|
|
6947
|
+
_html(`<div${_attr_class("_ep")}>`);
|
|
6946
6948
|
_if(() => {
|
|
6947
6949
|
if (isPage) {
|
|
6948
6950
|
const $scope9_id = _scope_id();
|
|
@@ -6950,7 +6952,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6950
6952
|
"_o",
|
|
6951
6953
|
"_p",
|
|
6952
6954
|
btnLg,
|
|
6953
|
-
"
|
|
6955
|
+
"_ei"
|
|
6954
6956
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6955
6957
|
icon_folder_plus_default({ size: 16 });
|
|
6956
6958
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -6972,19 +6974,19 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6972
6974
|
return 1;
|
|
6973
6975
|
}
|
|
6974
6976
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6975
|
-
_html(`<div${_attr_class(["_x", "
|
|
6977
|
+
_html(`<div${_attr_class(["_x", "_eq"])}></div>`);
|
|
6976
6978
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6977
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6979
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_d6"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6978
6980
|
icon_settings_default({ size: 15 });
|
|
6979
6981
|
_if(() => {
|
|
6980
6982
|
if (input.setupReady === false) {
|
|
6981
6983
|
const $scope17_id = _scope_id();
|
|
6982
|
-
_html(`<span${_attr_class(["_y", "
|
|
6984
|
+
_html(`<span${_attr_class(["_y", "_d8"])} title="Machine setup incomplete"></span>`);
|
|
6983
6985
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6984
6986
|
return 0;
|
|
6985
6987
|
}
|
|
6986
6988
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6987
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6989
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_d6"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6988
6990
|
icon_folder_plus_default({ size: 16 });
|
|
6989
6991
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
6990
6992
|
_script($scope8_id, "A15");
|
|
@@ -7053,11 +7055,11 @@ var side_nav_default = _template("A", (input) => {
|
|
|
7053
7055
|
_resume_branch($scope0_id);
|
|
7054
7056
|
});
|
|
7055
7057
|
var iconBtn = "_Z _j";
|
|
7056
|
-
var sectionCount = "
|
|
7057
|
-
var content = "
|
|
7058
|
-
var pageMeta = "
|
|
7059
|
-
var pathMeta = "
|
|
7060
|
-
var dangerHint = "
|
|
7058
|
+
var sectionCount = "_bq _H _I";
|
|
7059
|
+
var content = "_dW _bF";
|
|
7060
|
+
var pageMeta = "_dX _bK";
|
|
7061
|
+
var pathMeta = "_d0 _w";
|
|
7062
|
+
var dangerHint = "_d5 _R";
|
|
7061
7063
|
//#endregion
|
|
7062
7064
|
//#region src/tags/icons/icon-clipboard.marko
|
|
7063
7065
|
var icon_clipboard_default = _template("U", (input) => {
|
|
@@ -7223,7 +7225,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7223
7225
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7224
7226
|
}, "q8", $scope0_id);
|
|
7225
7227
|
const titleId = _id();
|
|
7226
|
-
_html(`<div${_attr_class("
|
|
7228
|
+
_html(`<div${_attr_class("_bD")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bE")}><div${_attr_class(content)}>`);
|
|
7227
7229
|
_set_serialize_reason(286);
|
|
7228
7230
|
let $actions;
|
|
7229
7231
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q16", () => {
|
|
@@ -7259,7 +7261,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7259
7261
|
meta: attrTag({ content: _content_resume("q15", () => {
|
|
7260
7262
|
_scope_reason();
|
|
7261
7263
|
const $scope14_id = _scope_id();
|
|
7262
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7264
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dY")}>${_escape(ws.name)}${_el_resume($scope14_id, "c")}</span>`);
|
|
7263
7265
|
_if(() => {
|
|
7264
7266
|
if (ws.status !== "active") {
|
|
7265
7267
|
const $scope18_id = _scope_id();
|
|
@@ -7268,7 +7270,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7268
7270
|
return 0;
|
|
7269
7271
|
}
|
|
7270
7272
|
}, $scope14_id, "d", 1, 1, 1, 0, 1);
|
|
7271
|
-
_html(`<span${_attr_class("
|
|
7273
|
+
_html(`<span${_attr_class("_dZ")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope14_id, "g")}</span></span>${_el_resume($scope14_id, "a")}`);
|
|
7272
7274
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope14_id, { _: _scope_with_id($scope0_id) })))));
|
|
7273
7275
|
_resume_branch($scope14_id);
|
|
7274
7276
|
}, $scope0_id) })
|
|
@@ -7296,12 +7298,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7296
7298
|
_if(() => {
|
|
7297
7299
|
if (pendingAction && actionStep) {
|
|
7298
7300
|
const $scope11_id = _scope_id();
|
|
7299
|
-
_html(`<p${_attr_class("
|
|
7301
|
+
_html(`<p${_attr_class("_bn")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
7300
7302
|
writeScope($scope11_id, {});
|
|
7301
7303
|
return 0;
|
|
7302
7304
|
}
|
|
7303
7305
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7304
|
-
_html(`<section${_attr_class("
|
|
7306
|
+
_html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Workspace</h2></div><div${_attr_class("_d4")}>`);
|
|
7305
7307
|
_if(() => {
|
|
7306
7308
|
if (ws.status === "active") {
|
|
7307
7309
|
const $scope8_id = _scope_id();
|
|
@@ -7321,17 +7323,17 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7321
7323
|
btnLg,
|
|
7322
7324
|
"_r",
|
|
7323
7325
|
{ ["_q"]: confirmingDelete }
|
|
7324
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("
|
|
7326
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7325
7327
|
_set_serialize_reason(1);
|
|
7326
7328
|
const $childScope2 = _peek_scope_id();
|
|
7327
7329
|
icon_refresh_default({
|
|
7328
7330
|
size: 14,
|
|
7329
7331
|
class: catalogRefreshing && "_D"
|
|
7330
7332
|
});
|
|
7331
|
-
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("
|
|
7333
|
+
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("_br")}>`);
|
|
7332
7334
|
_for_of(ws.repos, (row) => {
|
|
7333
7335
|
const $scope1_id = _scope_id();
|
|
7334
|
-
_html(`<li${_attr_class("
|
|
7336
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bw")}><a${_attr_class(["_bx", "_d2"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
7335
7337
|
_if(() => {
|
|
7336
7338
|
if (row.base_branch !== row.default_branch) {
|
|
7337
7339
|
const $scope21_id = _scope_id();
|
|
@@ -7352,7 +7354,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7352
7354
|
} else {
|
|
7353
7355
|
const $scope10_id = _scope_id();
|
|
7354
7356
|
_html(`<button${_attr_class([
|
|
7355
|
-
"
|
|
7357
|
+
"_by",
|
|
7356
7358
|
"_2",
|
|
7357
7359
|
"_3",
|
|
7358
7360
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7385,19 +7387,19 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7385
7387
|
}, "full_name", $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
7386
7388
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7387
7389
|
const $scope25_id = _scope_id();
|
|
7388
|
-
_html(`<li${_attr_class(["
|
|
7390
|
+
_html(`<li${_attr_class(["_bt", "_bs"])}><span${_attr_class("_E")}></span><div${_attr_class("_bu")}><span${_attr_class("_bx")}>Adding <!>${_escape(name)}${_el_resume($scope25_id, "e")}…</span></div></li>`);
|
|
7389
7391
|
writeScope($scope25_id, {});
|
|
7390
7392
|
}, (n) => n, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
7391
7393
|
_html("</ul>");
|
|
7392
7394
|
_if(() => {
|
|
7393
7395
|
if (!ws.repos.length && !busy.size) {
|
|
7394
7396
|
const $scope26_id = _scope_id();
|
|
7395
|
-
_html(`<p${_attr_class("
|
|
7397
|
+
_html(`<p${_attr_class("_bz")}>No repos yet. Search below to add one.</p>`);
|
|
7396
7398
|
writeScope($scope26_id, {});
|
|
7397
7399
|
return 0;
|
|
7398
7400
|
}
|
|
7399
7401
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
7400
|
-
_html(`<div${_attr_class("
|
|
7402
|
+
_html(`<div${_attr_class("_d1")}>`);
|
|
7401
7403
|
const $childScope3 = _peek_scope_id();
|
|
7402
7404
|
let refreshCatalog = repo_picker_default({
|
|
7403
7405
|
exclude: inWorkspace,
|
|
@@ -7418,7 +7420,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7418
7420
|
_if(() => {
|
|
7419
7421
|
if (wsSkills.length || repoSkills.length) {
|
|
7420
7422
|
const $scope2_id = _scope_id();
|
|
7421
|
-
_html(`<section${_attr_class("
|
|
7423
|
+
_html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Skills</h2>`);
|
|
7422
7424
|
_if(() => {
|
|
7423
7425
|
if (wsSkills.length) {
|
|
7424
7426
|
const $scope27_id = _scope_id();
|
|
@@ -7427,10 +7429,10 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7427
7429
|
return 0;
|
|
7428
7430
|
}
|
|
7429
7431
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
7430
|
-
_html(`</div><ul${_attr_class("
|
|
7432
|
+
_html(`</div><ul${_attr_class("_br")}>`);
|
|
7431
7433
|
_for_of(wsSkills, (s) => {
|
|
7432
7434
|
const $scope3_id = _scope_id();
|
|
7433
|
-
_html(`<li${_attr_class("
|
|
7435
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bw")}>`);
|
|
7434
7436
|
_if(() => {
|
|
7435
7437
|
if (s.broken) {
|
|
7436
7438
|
const $scope28_id = _scope_id();
|
|
@@ -7468,7 +7470,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7468
7470
|
_if(() => {
|
|
7469
7471
|
if (s.description) {
|
|
7470
7472
|
const $scope31_id = _scope_id();
|
|
7471
|
-
_html(`<span${_attr_class("
|
|
7473
|
+
_html(`<span${_attr_class("_bx")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope31_id, "b")}</span>${_el_resume($scope31_id, "a")}`);
|
|
7472
7474
|
writeScope($scope31_id, {});
|
|
7473
7475
|
return 0;
|
|
7474
7476
|
}
|
|
@@ -7476,7 +7478,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7476
7478
|
_if(() => {
|
|
7477
7479
|
if (s.sourceUrl) {
|
|
7478
7480
|
const $scope32_id = _scope_id();
|
|
7479
|
-
_html(`<a${_attr_class(["
|
|
7481
|
+
_html(`<a${_attr_class(["_bx", "_d2"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope32_id, "b")}</a>${_el_resume($scope32_id, "a")}`);
|
|
7480
7482
|
writeScope($scope32_id, {});
|
|
7481
7483
|
return 0;
|
|
7482
7484
|
}
|
|
@@ -7491,7 +7493,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7491
7493
|
} else {
|
|
7492
7494
|
const $scope12_id = _scope_id();
|
|
7493
7495
|
_html(`<button${_attr_class([
|
|
7494
|
-
"
|
|
7496
|
+
"_by",
|
|
7495
7497
|
"_2",
|
|
7496
7498
|
"_3",
|
|
7497
7499
|
{ ["_q"]: confirmingSkill === s.id }
|
|
@@ -7529,10 +7531,10 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7529
7531
|
_if(() => {
|
|
7530
7532
|
if (repoSkills.length) {
|
|
7531
7533
|
const $scope4_id = _scope_id();
|
|
7532
|
-
_html(`<ul${_attr_class("
|
|
7534
|
+
_html(`<ul${_attr_class("_br")}>`);
|
|
7533
7535
|
_for_of(repoSkills, (s) => {
|
|
7534
7536
|
const $scope5_id = _scope_id();
|
|
7535
|
-
_html(`<li${_attr_class("
|
|
7537
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}><span${_attr_class(["_bv", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bw")}><span${_attr_class(["_bx", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
|
|
7536
7538
|
_if(() => {
|
|
7537
7539
|
if (s.shadows) {
|
|
7538
7540
|
const $scope37_id = _scope_id();
|
|
@@ -7545,7 +7547,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7545
7547
|
_if(() => {
|
|
7546
7548
|
if (s.description) {
|
|
7547
7549
|
const $scope38_id = _scope_id();
|
|
7548
|
-
_html(`<span${_attr_class("
|
|
7550
|
+
_html(`<span${_attr_class("_bx")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope38_id, "b")}</span>${_el_resume($scope38_id, "a")}`);
|
|
7549
7551
|
writeScope($scope38_id, {});
|
|
7550
7552
|
return 0;
|
|
7551
7553
|
}
|
|
@@ -7588,17 +7590,17 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7588
7590
|
_if(() => {
|
|
7589
7591
|
if (running.length) {
|
|
7590
7592
|
const $scope16_id = _scope_id();
|
|
7591
|
-
_html(`<section${_attr_class("
|
|
7593
|
+
_html(`<section${_attr_class("_bo")}><div${_attr_class("_bp")}><h2${_attr_class("_bC")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope16_id, "e")}</span></div><ul${_attr_class("_br")}>`);
|
|
7592
7594
|
_for_of(running, (p) => {
|
|
7593
7595
|
const $scope17_id = _scope_id();
|
|
7594
|
-
_html(`<li${_attr_class("
|
|
7596
|
+
_html(`<li${_attr_class("_bt")}><div${_attr_class("_bu")}${_attr("title", p.args)}><span${_attr_class(["_bv", "_w"])}>${_escape(p.cmd)}${_el_resume($scope17_id, "d")}</span>`);
|
|
7595
7597
|
_if(() => {
|
|
7596
7598
|
if (p.ports.length) {
|
|
7597
7599
|
const $scope40_id = _scope_id();
|
|
7598
|
-
_html(`<span${_attr_class("
|
|
7600
|
+
_html(`<span${_attr_class("_bw")}>`);
|
|
7599
7601
|
_for_of(p.ports, (port) => {
|
|
7600
7602
|
const $scope41_id = _scope_id();
|
|
7601
|
-
_html(`<button${_attr_class(["_s", "
|
|
7603
|
+
_html(`<button${_attr_class(["_s", "_d3"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
7602
7604
|
_script($scope41_id, "q24");
|
|
7603
7605
|
writeScope($scope41_id, { d: port });
|
|
7604
7606
|
}, (x) => String(x), $scope40_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7606,7 +7608,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7606
7608
|
return 0;
|
|
7607
7609
|
}
|
|
7608
7610
|
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
7609
|
-
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["
|
|
7611
|
+
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["_by", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7610
7612
|
icon_xmark_default({ size: 14 });
|
|
7611
7613
|
_html(`</button>${_el_resume($scope17_id, "f")}</li>`);
|
|
7612
7614
|
_script($scope17_id, "q25");
|
|
@@ -7688,9 +7690,9 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7688
7690
|
_resume_branch($scope0_id);
|
|
7689
7691
|
});
|
|
7690
7692
|
var kbtn = "_dV _0 _j";
|
|
7691
|
-
var dpadPaste = "
|
|
7692
|
-
var repeat = "
|
|
7693
|
-
var dpadEsc = "
|
|
7693
|
+
var dpadPaste = "_eS _eR";
|
|
7694
|
+
var repeat = "_eT _eR";
|
|
7695
|
+
var dpadEsc = "_eV _eR";
|
|
7694
7696
|
//#endregion
|
|
7695
7697
|
//#region src/tags/term-find.marko
|
|
7696
7698
|
var term_find_default = _template("C", (input) => {
|
|
@@ -8152,7 +8154,7 @@ var term_default = _template("D", (input) => {
|
|
|
8152
8154
|
trapOpen = true;
|
|
8153
8155
|
}
|
|
8154
8156
|
}, "D14", $scope0_id);
|
|
8155
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8157
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_es")}><div${_attr_class("_et")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8156
8158
|
_if(() => {
|
|
8157
8159
|
if (findOpen) {
|
|
8158
8160
|
const $scope12_id = _scope_id();
|
|
@@ -8179,7 +8181,7 @@ var term_default = _template("D", (input) => {
|
|
|
8179
8181
|
_if(() => {
|
|
8180
8182
|
if (uploading) {
|
|
8181
8183
|
const $scope21_id = _scope_id();
|
|
8182
|
-
_html(`<div${_attr_class("
|
|
8184
|
+
_html(`<div${_attr_class("_ez")}>uploading…</div>`);
|
|
8183
8185
|
writeScope($scope21_id, {});
|
|
8184
8186
|
return 0;
|
|
8185
8187
|
}
|
|
@@ -8187,7 +8189,7 @@ var term_default = _template("D", (input) => {
|
|
|
8187
8189
|
_if(() => {
|
|
8188
8190
|
if (copiedFlash) {
|
|
8189
8191
|
const $scope22_id = _scope_id();
|
|
8190
|
-
_html(`<div${_attr_class("
|
|
8192
|
+
_html(`<div${_attr_class("_ey")}>Copied</div>`);
|
|
8191
8193
|
writeScope($scope22_id, {});
|
|
8192
8194
|
return 0;
|
|
8193
8195
|
}
|
|
@@ -8196,7 +8198,7 @@ var term_default = _template("D", (input) => {
|
|
|
8196
8198
|
_if(() => {
|
|
8197
8199
|
if (trapOpen) {
|
|
8198
8200
|
const $scope11_id = _scope_id();
|
|
8199
|
-
_html(`<div${_attr_class("
|
|
8201
|
+
_html(`<div${_attr_class("_eA")}><div${_attr_class("_eB")}><p${_attr_class("_eW")}>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")}`);
|
|
8200
8202
|
_script($scope11_id, "D26");
|
|
8201
8203
|
_script($scope11_id, "D27");
|
|
8202
8204
|
writeScope($scope11_id, {});
|
|
@@ -8270,7 +8272,7 @@ var term_default = _template("D", (input) => {
|
|
|
8270
8272
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
8271
8273
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
8272
8274
|
}, "D20", $scope4_id);
|
|
8273
|
-
_html(`<button${_attr_class([kbtn, "
|
|
8275
|
+
_html(`<button${_attr_class([kbtn, "_eC"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
8274
8276
|
_set_serialize_reason({
|
|
8275
8277
|
1: $sg__input_agent__OR__input_sessionState,
|
|
8276
8278
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -8282,9 +8284,9 @@ var term_default = _template("D", (input) => {
|
|
|
8282
8284
|
});
|
|
8283
8285
|
_html(`<span${_attr_class([
|
|
8284
8286
|
"_y",
|
|
8285
|
-
"
|
|
8287
|
+
"_eD",
|
|
8286
8288
|
phase[sessionPhase(input.sessionState)]
|
|
8287
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_4", "
|
|
8289
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_4", "_eE"])}>`);
|
|
8288
8290
|
_if(() => {
|
|
8289
8291
|
if ((input.sessions || []).length > 0) {
|
|
8290
8292
|
const $scope5_id = _scope_id();
|
|
@@ -8300,7 +8302,7 @@ var term_default = _template("D", (input) => {
|
|
|
8300
8302
|
const $scope6_id = _scope_id();
|
|
8301
8303
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
8302
8304
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
8303
|
-
_html(`<div${_attr_class(["
|
|
8305
|
+
_html(`<div${_attr_class(["_eG", { ["_eF"]: s.id === input.sessionId }])}>`);
|
|
8304
8306
|
_if(() => {
|
|
8305
8307
|
if (renamingId === s.id) {
|
|
8306
8308
|
const $scope24_id = _scope_id();
|
|
@@ -8316,13 +8318,13 @@ var term_default = _template("D", (input) => {
|
|
|
8316
8318
|
});
|
|
8317
8319
|
_html(`<input${_attr_input_value($scope24_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8318
8320
|
renameValue = _new_renameValue;
|
|
8319
|
-
}, "D0", $scope24_id))}${_attr_class(["_T", "
|
|
8321
|
+
}, "D0", $scope24_id))}${_attr_class(["_T", "_eL"])} aria-label="Session name">${_el_resume($scope24_id, "c")}`);
|
|
8320
8322
|
_script($scope24_id, "D28");
|
|
8321
8323
|
_subscribe($if_content4__renameValue__closures, writeScope($scope24_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
8322
8324
|
return 0;
|
|
8323
8325
|
} else {
|
|
8324
8326
|
const $scope7_id = _scope_id();
|
|
8325
|
-
_html(`<button${_attr_class("
|
|
8327
|
+
_html(`<button${_attr_class("_eH")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope7_id, "b", $sg__input_sessions)}`);
|
|
8326
8328
|
_set_serialize_reason({
|
|
8327
8329
|
1: $sg__input_sessions,
|
|
8328
8330
|
2: $sg__input_sessions
|
|
@@ -8332,7 +8334,7 @@ var term_default = _template("D", (input) => {
|
|
|
8332
8334
|
agent: activeAgent(s),
|
|
8333
8335
|
size: 14
|
|
8334
8336
|
});
|
|
8335
|
-
_html(`<span${_attr_class("
|
|
8337
|
+
_html(`<span${_attr_class("_eI")}><span${_attr_class("_eK")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
8336
8338
|
_if(() => {
|
|
8337
8339
|
if (s.id === input.sessionId) {
|
|
8338
8340
|
const $scope23_id = _scope_id();
|
|
@@ -8344,7 +8346,7 @@ var term_default = _template("D", (input) => {
|
|
|
8344
8346
|
const $childScope6 = _peek_scope_id();
|
|
8345
8347
|
usage_pcts_default({
|
|
8346
8348
|
agent: plan,
|
|
8347
|
-
class: "
|
|
8349
|
+
class: "_eJ"
|
|
8348
8350
|
});
|
|
8349
8351
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
8350
8352
|
return 0;
|
|
@@ -8361,7 +8363,7 @@ var term_default = _template("D", (input) => {
|
|
|
8361
8363
|
_if(() => {
|
|
8362
8364
|
if (input.onRenameSession) {
|
|
8363
8365
|
const $scope25_id = _scope_id();
|
|
8364
|
-
_html(`<button${_attr_class(["
|
|
8366
|
+
_html(`<button${_attr_class(["_eM", "_eN"])} title="Rename session">`);
|
|
8365
8367
|
icon_edit_default({ size: 12 });
|
|
8366
8368
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
8367
8369
|
_script($scope25_id, "D29");
|
|
@@ -8373,7 +8375,7 @@ var term_default = _template("D", (input) => {
|
|
|
8373
8375
|
if (input.onCloseSession) {
|
|
8374
8376
|
const $scope8_id = _scope_id();
|
|
8375
8377
|
_html(`<button${_attr_class([
|
|
8376
|
-
"
|
|
8378
|
+
"_eM",
|
|
8377
8379
|
"_2",
|
|
8378
8380
|
{ ["_q"]: armedClose === s.id }
|
|
8379
8381
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -8415,7 +8417,7 @@ var term_default = _template("D", (input) => {
|
|
|
8415
8417
|
return 0;
|
|
8416
8418
|
}
|
|
8417
8419
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
8418
|
-
_html(`<div${_attr_class("
|
|
8420
|
+
_html(`<div${_attr_class("_eO")}><span${_attr_class("_eP")}>New session</span>`);
|
|
8419
8421
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
8420
8422
|
const $scope9_id = _scope_id();
|
|
8421
8423
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -8480,7 +8482,7 @@ var term_default = _template("D", (input) => {
|
|
|
8480
8482
|
overlay: attrTag({ content: _content_resume("D46", () => {
|
|
8481
8483
|
_scope_reason();
|
|
8482
8484
|
const $scope15_id = _scope_id();
|
|
8483
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
8485
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_eQ")}>`);
|
|
8484
8486
|
forOf(DPAD, (row) => {
|
|
8485
8487
|
const $scope16_id = _scope_id();
|
|
8486
8488
|
forOf(row, (cell) => {
|
|
@@ -8500,7 +8502,7 @@ var term_default = _template("D", (input) => {
|
|
|
8500
8502
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
8501
8503
|
} else {
|
|
8502
8504
|
const $scope19_id = _scope_id();
|
|
8503
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
8505
|
+
_html(`<button${_attr_class([repeat, { ["_eU"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
8504
8506
|
if (cell.icon === "arrow-up") {
|
|
8505
8507
|
_scope_id();
|
|
8506
8508
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -8640,7 +8642,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
8640
8642
|
let DiffView = null;
|
|
8641
8643
|
const loadDiffView = _resume(() => {
|
|
8642
8644
|
if (DiffView) return;
|
|
8643
|
-
import("./
|
|
8645
|
+
import("./_DHOrTC33.js").then((m) => {
|
|
8644
8646
|
DiffView = m.default;
|
|
8645
8647
|
});
|
|
8646
8648
|
}, "H6", $scope0_id);
|
|
@@ -9119,7 +9121,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
9119
9121
|
_if(() => {
|
|
9120
9122
|
if (!shownSessions.length && view === "term") {
|
|
9121
9123
|
const $scope7_id = _scope_id();
|
|
9122
|
-
_html(`<div${_attr_class("
|
|
9124
|
+
_html(`<div${_attr_class("_bA")}><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>`);
|
|
9123
9125
|
_script($scope7_id, "H51");
|
|
9124
9126
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
9125
9127
|
return 0;
|
|
@@ -9129,7 +9131,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
9129
9131
|
return 0;
|
|
9130
9132
|
} else {
|
|
9131
9133
|
const $scope11_id = _scope_id();
|
|
9132
|
-
_html(`<p${_attr_class("
|
|
9134
|
+
_html(`<p${_attr_class("_bA")}>Loading sessions…</p>`);
|
|
9133
9135
|
writeScope($scope11_id, {});
|
|
9134
9136
|
return 1;
|
|
9135
9137
|
}
|
|
@@ -9709,7 +9711,7 @@ function head2(context) {
|
|
|
9709
9711
|
//#region src/routes/_app/settings/+handler.ts
|
|
9710
9712
|
/** Settings is about the doctor snapshot, so this page waits for it and
|
|
9711
9713
|
* server-renders every section (the shell still streams first). */
|
|
9712
|
-
var GET$
|
|
9714
|
+
var GET$25 = Run.GET(async (_ctx, next) => {
|
|
9713
9715
|
return next({ setup: await getSetup().catch(() => null) });
|
|
9714
9716
|
});
|
|
9715
9717
|
//#endregion
|
|
@@ -9738,12 +9740,12 @@ var settings_default = _template("AA0T2xt", (input) => {
|
|
|
9738
9740
|
var settings_server_entry_default = withPageAssets(settings_default, flush, "AA0T2xt");
|
|
9739
9741
|
//#endregion
|
|
9740
9742
|
//#region __marko-run__settings.js
|
|
9741
|
-
var getHandler$
|
|
9742
|
-
var get3_options = normalizeOptions("GET", mware3, getHandler$
|
|
9743
|
+
var getHandler$25 = normalizeHandler(GET$25, "GET");
|
|
9744
|
+
var get3_options = normalizeOptions("GET", mware3, getHandler$25);
|
|
9743
9745
|
var head3_options = normalizeOptions("HEAD", mware3);
|
|
9744
9746
|
function get3(context) {
|
|
9745
9747
|
const __page = (data) => render(context, settings_server_entry_default, {}, data);
|
|
9746
|
-
const __getHandler = (data) => call(getHandler$
|
|
9748
|
+
const __getHandler = (data) => call(getHandler$25, __page, context, data);
|
|
9747
9749
|
return call(mware3, __getHandler, context);
|
|
9748
9750
|
}
|
|
9749
9751
|
function head3(context) {
|
|
@@ -11520,7 +11522,7 @@ async function restore(m, sel) {
|
|
|
11520
11522
|
}
|
|
11521
11523
|
//#endregion
|
|
11522
11524
|
//#region __marko-run__api.backup.export.js
|
|
11523
|
-
var getHandler$
|
|
11525
|
+
var getHandler$24 = normalizeHandler(Run.GET(() => {
|
|
11524
11526
|
const body = JSON.stringify(encodeManifest(buildManifest()), null, 1) + "\n";
|
|
11525
11527
|
return new Response(body, { headers: {
|
|
11526
11528
|
"content-type": "application/json; charset=utf-8",
|
|
@@ -11528,10 +11530,10 @@ var getHandler$23 = normalizeHandler(Run.GET(() => {
|
|
|
11528
11530
|
"cache-control": "no-store"
|
|
11529
11531
|
} });
|
|
11530
11532
|
}), "GET");
|
|
11531
|
-
var get8_options = normalizeOptions("GET", mware11, getHandler$
|
|
11533
|
+
var get8_options = normalizeOptions("GET", mware11, getHandler$24);
|
|
11532
11534
|
var head8_options = normalizeOptions("HEAD", mware11);
|
|
11533
11535
|
function get8(context) {
|
|
11534
|
-
const __getHandler = (data) => call(getHandler$
|
|
11536
|
+
const __getHandler = (data) => call(getHandler$24, noContent, context, data);
|
|
11535
11537
|
return call(mware11, __getHandler, context);
|
|
11536
11538
|
}
|
|
11537
11539
|
function head8(context) {
|
|
@@ -11684,13 +11686,13 @@ ensureAllPushHooks();
|
|
|
11684
11686
|
resumePendingWorkspaces();
|
|
11685
11687
|
//#endregion
|
|
11686
11688
|
//#region __marko-run__api.boot.js
|
|
11687
|
-
var getHandler$
|
|
11689
|
+
var getHandler$23 = normalizeHandler(Run.GET(() => {
|
|
11688
11690
|
return Response.json({ boot: BOOT_ID }, { headers: { "cache-control": "no-store" } });
|
|
11689
11691
|
}), "GET");
|
|
11690
|
-
var get13_options = normalizeOptions("GET", mware11, getHandler$
|
|
11692
|
+
var get13_options = normalizeOptions("GET", mware11, getHandler$23);
|
|
11691
11693
|
var head13_options = normalizeOptions("HEAD", mware11);
|
|
11692
11694
|
function get13(context) {
|
|
11693
|
-
const __getHandler = (data) => call(getHandler$
|
|
11695
|
+
const __getHandler = (data) => call(getHandler$23, noContent, context, data);
|
|
11694
11696
|
return call(mware11, __getHandler, context);
|
|
11695
11697
|
}
|
|
11696
11698
|
function head13(context) {
|
|
@@ -11698,11 +11700,11 @@ function head13(context) {
|
|
|
11698
11700
|
}
|
|
11699
11701
|
//#endregion
|
|
11700
11702
|
//#region __marko-run__api.events.js
|
|
11701
|
-
var getHandler$
|
|
11702
|
-
var get14_options = normalizeOptions("GET", mware11, getHandler$
|
|
11703
|
+
var getHandler$22 = normalizeHandler(Run.GET(() => Response.json({ error: "events bus is websocket — connect with ws(s)://host/api/events" }, { status: 410 })), "GET");
|
|
11704
|
+
var get14_options = normalizeOptions("GET", mware11, getHandler$22);
|
|
11703
11705
|
var head14_options = normalizeOptions("HEAD", mware11);
|
|
11704
11706
|
function get14(context) {
|
|
11705
|
-
const __getHandler = (data) => call(getHandler$
|
|
11707
|
+
const __getHandler = (data) => call(getHandler$22, noContent, context, data);
|
|
11706
11708
|
return call(mware11, __getHandler, context);
|
|
11707
11709
|
}
|
|
11708
11710
|
function head14(context) {
|
|
@@ -11733,33 +11735,249 @@ function post15(context) {
|
|
|
11733
11735
|
}
|
|
11734
11736
|
//#endregion
|
|
11735
11737
|
//#region __marko-run__api.instance.icon.js
|
|
11736
|
-
var getHandler$
|
|
11738
|
+
var getHandler$21 = normalizeHandler(Run.GET(() => new Response(iconSvg(getInstance().accent), { headers: {
|
|
11737
11739
|
"content-type": "image/svg+xml",
|
|
11738
11740
|
"cache-control": "public, max-age=3600"
|
|
11739
11741
|
} })), "GET");
|
|
11740
|
-
var get16_options = normalizeOptions("GET", mware11, getHandler$
|
|
11742
|
+
var get16_options = normalizeOptions("GET", mware11, getHandler$21);
|
|
11741
11743
|
var head16_options = normalizeOptions("HEAD", mware11);
|
|
11742
11744
|
function get16(context) {
|
|
11743
|
-
const __getHandler = (data) => call(getHandler$
|
|
11745
|
+
const __getHandler = (data) => call(getHandler$21, noContent, context, data);
|
|
11744
11746
|
return call(mware11, __getHandler, context);
|
|
11745
11747
|
}
|
|
11746
11748
|
function head16(context) {
|
|
11747
11749
|
return stripResponseBody(get16(context));
|
|
11748
11750
|
}
|
|
11749
11751
|
//#endregion
|
|
11752
|
+
//#region src/server/icon-png.ts
|
|
11753
|
+
/**
|
|
11754
|
+
* The app icon as PNG, tinted with the instance accent.
|
|
11755
|
+
*
|
|
11756
|
+
* The SVG in `instance.ts` already does this, but an installed app never
|
|
11757
|
+
* gets it: Chrome ranks manifest icons by declared size, so the raster
|
|
11758
|
+
* entries always beat the SVG's `sizes: "any"`, and Safari's `apple-touch-icon`
|
|
11759
|
+
* refuses SVG outright. Both installs therefore wore the same default-blue
|
|
11760
|
+
* glyph while their names differed — the icon is what tells two servers apart
|
|
11761
|
+
* in a dock, so it has to carry the accent.
|
|
11762
|
+
*
|
|
11763
|
+
* Rather than rasterize `iconSvg` (a text glyph needs a font renderer, and a
|
|
11764
|
+
* whole rasterizer dependency for one 128px tile), recolour the art already
|
|
11765
|
+
* in `public/`: every pixel there sits on the line between the tile and the
|
|
11766
|
+
* default glyph colour, so the blend that produced it is recoverable and can
|
|
11767
|
+
* be replayed against another glyph colour.
|
|
11768
|
+
*/
|
|
11769
|
+
/** `public/` in a checkout, `dist/public/` once built — and dist/index.mjs
|
|
11770
|
+
* sits one below the package root where src/server sits two, so find the art
|
|
11771
|
+
* rather than assume a depth (same walk as backup.ts's appVersion). */
|
|
11772
|
+
function findPublicDir() {
|
|
11773
|
+
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
11774
|
+
for (let i = 0; i < 4; i++) {
|
|
11775
|
+
for (const candidate of [path.join(dir, "public"), path.join(dir, "dist/public")]) if (fs.existsSync(path.join(candidate, "icon-192.png"))) return candidate;
|
|
11776
|
+
dir = path.dirname(dir);
|
|
11777
|
+
}
|
|
11778
|
+
throw new Error("icon art not found");
|
|
11779
|
+
}
|
|
11780
|
+
var publicDir;
|
|
11781
|
+
/** The two colours `public/*.png` was drawn with. */
|
|
11782
|
+
var TILE = [
|
|
11783
|
+
19,
|
|
11784
|
+
19,
|
|
11785
|
+
22
|
|
11786
|
+
];
|
|
11787
|
+
var GLYPH = [
|
|
11788
|
+
124,
|
|
11789
|
+
150,
|
|
11790
|
+
255
|
|
11791
|
+
];
|
|
11792
|
+
/** Blue separates them by the widest margin (233 of 255), so it recovers the
|
|
11793
|
+
* blend factor with the least rounding error of the three channels. */
|
|
11794
|
+
var SPAN = GLYPH[2] - TILE[2];
|
|
11795
|
+
function decode(png) {
|
|
11796
|
+
if (png.readUInt32BE(0) !== 2303741511) throw new Error("not a PNG");
|
|
11797
|
+
let width = 0;
|
|
11798
|
+
let height = 0;
|
|
11799
|
+
let depth = 8;
|
|
11800
|
+
let colorType = 6;
|
|
11801
|
+
const idat = [];
|
|
11802
|
+
for (let at = 8; at + 8 <= png.length;) {
|
|
11803
|
+
const length = png.readUInt32BE(at);
|
|
11804
|
+
const type = png.toString("ascii", at + 4, at + 8);
|
|
11805
|
+
const body = png.subarray(at + 8, at + 8 + length);
|
|
11806
|
+
if (type === "IHDR") {
|
|
11807
|
+
width = body.readUInt32BE(0);
|
|
11808
|
+
height = body.readUInt32BE(4);
|
|
11809
|
+
depth = body[8];
|
|
11810
|
+
colorType = body[9];
|
|
11811
|
+
if (body[10] !== 0 || body[12] !== 0) throw new Error("compressed or interlaced PNG");
|
|
11812
|
+
} else if (type === "IDAT") idat.push(body);
|
|
11813
|
+
else if (type === "IEND") break;
|
|
11814
|
+
at += 12 + length;
|
|
11815
|
+
}
|
|
11816
|
+
if (colorType !== 2 && colorType !== 6) throw new Error("unsupported PNG");
|
|
11817
|
+
const channels = colorType === 6 ? 4 : 3;
|
|
11818
|
+
const step = depth === 16 ? 2 : 1;
|
|
11819
|
+
const pixel = channels * step;
|
|
11820
|
+
const stride = width * pixel;
|
|
11821
|
+
const raw = zlib.inflateSync(Buffer.concat(idat));
|
|
11822
|
+
const flat = new Uint8Array(height * stride);
|
|
11823
|
+
for (let y = 0, read = 0; y < height; y++) {
|
|
11824
|
+
const filter = raw[read++];
|
|
11825
|
+
const row = y * stride;
|
|
11826
|
+
for (let x = 0; x < stride; x++) {
|
|
11827
|
+
const a = x >= pixel ? flat[row + x - pixel] : 0;
|
|
11828
|
+
const b = y > 0 ? flat[row - stride + x] : 0;
|
|
11829
|
+
const c = x >= pixel && y > 0 ? flat[row - stride + x - pixel] : 0;
|
|
11830
|
+
let value = raw[read + x];
|
|
11831
|
+
if (filter === 1) value += a;
|
|
11832
|
+
else if (filter === 2) value += b;
|
|
11833
|
+
else if (filter === 3) value += a + b >> 1;
|
|
11834
|
+
else if (filter === 4) {
|
|
11835
|
+
const pa = Math.abs(b - c);
|
|
11836
|
+
const pb = Math.abs(a - c);
|
|
11837
|
+
const pc = Math.abs(a + b - 2 * c);
|
|
11838
|
+
value += pa <= pb && pa <= pc ? a : pb <= pc ? b : c;
|
|
11839
|
+
}
|
|
11840
|
+
flat[row + x] = value;
|
|
11841
|
+
}
|
|
11842
|
+
read += stride;
|
|
11843
|
+
}
|
|
11844
|
+
const data = new Uint8Array(width * height * 4);
|
|
11845
|
+
for (let i = 0, out = 0; out < data.length; i += pixel, out += 4) {
|
|
11846
|
+
data[out] = flat[i];
|
|
11847
|
+
data[out + 1] = flat[i + step];
|
|
11848
|
+
data[out + 2] = flat[i + 2 * step];
|
|
11849
|
+
data[out + 3] = channels === 4 ? flat[i + 3 * step] : 255;
|
|
11850
|
+
}
|
|
11851
|
+
return {
|
|
11852
|
+
width,
|
|
11853
|
+
height,
|
|
11854
|
+
data
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
function chunk(type, body) {
|
|
11858
|
+
const out = Buffer.alloc(body.length + 12);
|
|
11859
|
+
out.writeUInt32BE(body.length, 0);
|
|
11860
|
+
out.write(type, 4, "ascii");
|
|
11861
|
+
body.copy(out, 8);
|
|
11862
|
+
out.writeInt32BE(crc(out.subarray(4, 8 + body.length)), 8 + body.length);
|
|
11863
|
+
return out;
|
|
11864
|
+
}
|
|
11865
|
+
var crcTable = Int32Array.from({ length: 256 }, (_, n) => {
|
|
11866
|
+
let c = n;
|
|
11867
|
+
for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
|
|
11868
|
+
return c;
|
|
11869
|
+
});
|
|
11870
|
+
function crc(bytes) {
|
|
11871
|
+
let c = -1;
|
|
11872
|
+
for (const byte of bytes) c = crcTable[(c ^ byte) & 255] ^ c >>> 8;
|
|
11873
|
+
return c ^ -1;
|
|
11874
|
+
}
|
|
11875
|
+
function encode({ width, height, data }) {
|
|
11876
|
+
const stride = width * 4;
|
|
11877
|
+
const raw = Buffer.alloc(height * (stride + 1));
|
|
11878
|
+
for (let y = 0; y < height; y++) {
|
|
11879
|
+
raw[y * (stride + 1)] = 0;
|
|
11880
|
+
raw.set(data.subarray(y * stride, (y + 1) * stride), y * (stride + 1) + 1);
|
|
11881
|
+
}
|
|
11882
|
+
const ihdr = Buffer.alloc(13);
|
|
11883
|
+
ihdr.writeUInt32BE(width, 0);
|
|
11884
|
+
ihdr.writeUInt32BE(height, 4);
|
|
11885
|
+
ihdr[8] = 8;
|
|
11886
|
+
ihdr[9] = 6;
|
|
11887
|
+
return new Uint8Array(Buffer.concat([
|
|
11888
|
+
Buffer.from([
|
|
11889
|
+
137,
|
|
11890
|
+
80,
|
|
11891
|
+
78,
|
|
11892
|
+
71,
|
|
11893
|
+
13,
|
|
11894
|
+
10,
|
|
11895
|
+
26,
|
|
11896
|
+
10
|
|
11897
|
+
]),
|
|
11898
|
+
chunk("IHDR", ihdr),
|
|
11899
|
+
chunk("IDAT", zlib.deflateSync(raw, { level: 9 })),
|
|
11900
|
+
chunk("IEND", Buffer.alloc(0))
|
|
11901
|
+
]));
|
|
11902
|
+
}
|
|
11903
|
+
/** Replay each pixel's tile→glyph blend against `accent`. Pixels at or below
|
|
11904
|
+
* the tile colour (the tile itself, and the corners' fade to transparent)
|
|
11905
|
+
* are left exactly as drawn, so only the glyph moves. */
|
|
11906
|
+
function recolour(bitmap, accent) {
|
|
11907
|
+
const data = new Uint8Array(bitmap.data);
|
|
11908
|
+
for (let i = 0; i < data.length; i += 4) {
|
|
11909
|
+
const t = (data[i + 2] - TILE[2]) / SPAN;
|
|
11910
|
+
if (t <= 0) continue;
|
|
11911
|
+
for (let c = 0; c < 3; c++) data[i + c] = Math.round(TILE[c] + Math.min(1, t) * (accent[c] - TILE[c]));
|
|
11912
|
+
}
|
|
11913
|
+
return {
|
|
11914
|
+
...bitmap,
|
|
11915
|
+
data
|
|
11916
|
+
};
|
|
11917
|
+
}
|
|
11918
|
+
function parseAccent(accent) {
|
|
11919
|
+
const hex = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/.exec(accent);
|
|
11920
|
+
return hex ? hex.slice(1, 4).map((h) => parseInt(h, 16)) : null;
|
|
11921
|
+
}
|
|
11922
|
+
/** Recoloured art is a few hundred KB and only changes when the accent
|
|
11923
|
+
* does, so hold it rather than re-deflate on every install/refresh. */
|
|
11924
|
+
var cache = /* @__PURE__ */ new Map();
|
|
11925
|
+
var FILES = {
|
|
11926
|
+
"192": "icon-192.png",
|
|
11927
|
+
"512": "icon-512.png",
|
|
11928
|
+
maskable: "icon-maskable-512.png",
|
|
11929
|
+
apple: "apple-touch-icon.png"
|
|
11930
|
+
};
|
|
11931
|
+
function isIconArt(value) {
|
|
11932
|
+
return value in FILES;
|
|
11933
|
+
}
|
|
11934
|
+
/** The named art tinted with `accent` (`#rrggbb`); the default accent, or an
|
|
11935
|
+
* unreadable file, serves the bytes on disk untouched. */
|
|
11936
|
+
function iconPng(art, accent) {
|
|
11937
|
+
const key = `${art}:${accent}`;
|
|
11938
|
+
const hit = cache.get(key);
|
|
11939
|
+
if (hit) return hit;
|
|
11940
|
+
publicDir ??= findPublicDir();
|
|
11941
|
+
const file = fs.readFileSync(path.join(publicDir, FILES[art]));
|
|
11942
|
+
const rgb = parseAccent(accent);
|
|
11943
|
+
let out = new Uint8Array(file);
|
|
11944
|
+
if (rgb && !rgb.every((v, i) => v === GLYPH[i])) try {
|
|
11945
|
+
out = encode(recolour(decode(file), rgb));
|
|
11946
|
+
} catch {
|
|
11947
|
+
out = new Uint8Array(file);
|
|
11948
|
+
}
|
|
11949
|
+
cache.set(key, out);
|
|
11950
|
+
return out;
|
|
11951
|
+
}
|
|
11952
|
+
//#endregion
|
|
11953
|
+
//#region __marko-run__api.instance.icon-png.js
|
|
11954
|
+
var getHandler$20 = normalizeHandler(Run.GET({ search: (value) => ({ art: typeof value.art === "string" && isIconArt(value.art) ? value.art : "512" }) }, (ctx) => new Response(iconPng(ctx.search.art, getInstance().accent), { headers: {
|
|
11955
|
+
"content-type": "image/png",
|
|
11956
|
+
"cache-control": "public, max-age=3600"
|
|
11957
|
+
} })), "GET");
|
|
11958
|
+
var get17_options = normalizeOptions("GET", mware11, getHandler$20);
|
|
11959
|
+
var head17_options = normalizeOptions("HEAD", mware11);
|
|
11960
|
+
function get17(context) {
|
|
11961
|
+
const __getHandler = (data) => call(getHandler$20, noContent, context, data);
|
|
11962
|
+
return call(mware11, __getHandler, context);
|
|
11963
|
+
}
|
|
11964
|
+
function head17(context) {
|
|
11965
|
+
return stripResponseBody(get17(context));
|
|
11966
|
+
}
|
|
11967
|
+
//#endregion
|
|
11750
11968
|
//#region __marko-run__api.instance.manifest.js
|
|
11751
11969
|
var getHandler$19 = normalizeHandler(Run.GET(() => new Response(JSON.stringify(manifest(getInstance())), { headers: {
|
|
11752
11970
|
"content-type": "application/manifest+json; charset=UTF-8",
|
|
11753
11971
|
"cache-control": "no-cache"
|
|
11754
11972
|
} })), "GET");
|
|
11755
|
-
var
|
|
11756
|
-
var
|
|
11757
|
-
function
|
|
11973
|
+
var get18_options = normalizeOptions("GET", mware11, getHandler$19);
|
|
11974
|
+
var head18_options = normalizeOptions("HEAD", mware11);
|
|
11975
|
+
function get18(context) {
|
|
11758
11976
|
const __getHandler = (data) => call(getHandler$19, noContent, context, data);
|
|
11759
11977
|
return call(mware11, __getHandler, context);
|
|
11760
11978
|
}
|
|
11761
|
-
function
|
|
11762
|
-
return stripResponseBody(
|
|
11979
|
+
function head18(context) {
|
|
11980
|
+
return stripResponseBody(get18(context));
|
|
11763
11981
|
}
|
|
11764
11982
|
//#endregion
|
|
11765
11983
|
//#region src/routes/api/prefs/+handler.ts
|
|
@@ -11780,17 +11998,17 @@ var postHandler$14 = normalizeHandler(Run.POST({ json: Pref }, async (ctx) => {
|
|
|
11780
11998
|
return Response.json({ ok: true });
|
|
11781
11999
|
}), "POST");
|
|
11782
12000
|
var getHandler$18 = normalizeHandler(GET$18, "GET");
|
|
11783
|
-
var
|
|
11784
|
-
var
|
|
11785
|
-
var
|
|
11786
|
-
function
|
|
12001
|
+
var get19_options = normalizeOptions("GET", mware11, getHandler$18);
|
|
12002
|
+
var head19_options = normalizeOptions("HEAD", mware11);
|
|
12003
|
+
var post19_options = normalizeOptions("POST", mware11, postHandler$14);
|
|
12004
|
+
function get19(context) {
|
|
11787
12005
|
const __getHandler = (data) => call(getHandler$18, noContent, context, data);
|
|
11788
12006
|
return call(mware11, __getHandler, context);
|
|
11789
12007
|
}
|
|
11790
|
-
function
|
|
11791
|
-
return stripResponseBody(
|
|
12008
|
+
function head19(context) {
|
|
12009
|
+
return stripResponseBody(get19(context));
|
|
11792
12010
|
}
|
|
11793
|
-
function
|
|
12011
|
+
function post19(context) {
|
|
11794
12012
|
const __postHandler = (data) => call(postHandler$14, noContent, context, data);
|
|
11795
12013
|
return call(mware11, __postHandler, context);
|
|
11796
12014
|
}
|
|
@@ -11805,8 +12023,8 @@ var deleteHandler$4 = normalizeHandler(Run.DELETE({ params({ pid }) {
|
|
|
11805
12023
|
if (!await killWorkspaceProc(ctx.params.pid, paths)) throw httpError(404, "not a workspace process");
|
|
11806
12024
|
return Response.json({ ok: true });
|
|
11807
12025
|
}), "DELETE");
|
|
11808
|
-
var
|
|
11809
|
-
function
|
|
12026
|
+
var delete20_options = normalizeOptions("DELETE", mware11, deleteHandler$4);
|
|
12027
|
+
function delete20(context) {
|
|
11810
12028
|
const __deleteHandler = (data) => call(deleteHandler$4, noContent, context, data);
|
|
11811
12029
|
return call(mware11, __deleteHandler, context);
|
|
11812
12030
|
}
|
|
@@ -11816,14 +12034,14 @@ var getHandler$17 = normalizeHandler(Run.GET({ search: (value) => ({
|
|
|
11816
12034
|
since: typeof value.since === "string" ? Number(value.since) : void 0,
|
|
11817
12035
|
op: typeof value.op === "string" && value.op ? value.op : void 0
|
|
11818
12036
|
}) }, (ctx) => Response.json(progressSince(ctx.search.since, ctx.search.op))), "GET");
|
|
11819
|
-
var
|
|
11820
|
-
var
|
|
11821
|
-
function
|
|
12037
|
+
var get21_options = normalizeOptions("GET", mware11, getHandler$17);
|
|
12038
|
+
var head21_options = normalizeOptions("HEAD", mware11);
|
|
12039
|
+
function get21(context) {
|
|
11822
12040
|
const __getHandler = (data) => call(getHandler$17, noContent, context, data);
|
|
11823
12041
|
return call(mware11, __getHandler, context);
|
|
11824
12042
|
}
|
|
11825
|
-
function
|
|
11826
|
-
return stripResponseBody(
|
|
12043
|
+
function head21(context) {
|
|
12044
|
+
return stripResponseBody(get21(context));
|
|
11827
12045
|
}
|
|
11828
12046
|
//#endregion
|
|
11829
12047
|
//#region src/routes/api/push/+handler.ts
|
|
@@ -11847,22 +12065,22 @@ var deleteHandler$3 = normalizeHandler(Run.DELETE({ search: (value) => ({ endpoi
|
|
|
11847
12065
|
}), "DELETE");
|
|
11848
12066
|
var postHandler$13 = normalizeHandler(POST$13, "POST");
|
|
11849
12067
|
var getHandler$16 = normalizeHandler(GET$16, "GET");
|
|
11850
|
-
var
|
|
11851
|
-
var
|
|
11852
|
-
var
|
|
11853
|
-
var
|
|
11854
|
-
function
|
|
12068
|
+
var get22_options = normalizeOptions("GET", mware11, getHandler$16);
|
|
12069
|
+
var head22_options = normalizeOptions("HEAD", mware11);
|
|
12070
|
+
var post22_options = normalizeOptions("POST", mware11, postHandler$13);
|
|
12071
|
+
var delete22_options = normalizeOptions("DELETE", mware11, deleteHandler$3);
|
|
12072
|
+
function get22(context) {
|
|
11855
12073
|
const __getHandler = (data) => call(getHandler$16, noContent, context, data);
|
|
11856
12074
|
return call(mware11, __getHandler, context);
|
|
11857
12075
|
}
|
|
11858
|
-
function
|
|
11859
|
-
return stripResponseBody(
|
|
12076
|
+
function head22(context) {
|
|
12077
|
+
return stripResponseBody(get22(context));
|
|
11860
12078
|
}
|
|
11861
|
-
function
|
|
12079
|
+
function post22(context) {
|
|
11862
12080
|
const __postHandler = (data) => call(postHandler$13, noContent, context, data);
|
|
11863
12081
|
return call(mware11, __postHandler, context);
|
|
11864
12082
|
}
|
|
11865
|
-
function
|
|
12083
|
+
function delete22(context) {
|
|
11866
12084
|
const __deleteHandler = (data) => call(deleteHandler$3, noContent, context, data);
|
|
11867
12085
|
return call(mware11, __deleteHandler, context);
|
|
11868
12086
|
}
|
|
@@ -11899,22 +12117,22 @@ var postHandler$12 = normalizeHandler(Run.POST({ search: (value) => parse(Query,
|
|
|
11899
12117
|
pokeStatusWatch();
|
|
11900
12118
|
return Response.json({ ok: true });
|
|
11901
12119
|
}), "POST");
|
|
11902
|
-
var
|
|
11903
|
-
function
|
|
12120
|
+
var post23_options = normalizeOptions("POST", mware11, postHandler$12);
|
|
12121
|
+
function post23(context) {
|
|
11904
12122
|
const __postHandler = (data) => call(postHandler$12, noContent, context, data);
|
|
11905
12123
|
return call(mware11, __postHandler, context);
|
|
11906
12124
|
}
|
|
11907
12125
|
//#endregion
|
|
11908
12126
|
//#region __marko-run__api.repos.js
|
|
11909
12127
|
var getHandler$15 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await repoCatalog(ctx.search.refresh))), "GET");
|
|
11910
|
-
var
|
|
11911
|
-
var
|
|
11912
|
-
function
|
|
12128
|
+
var get24_options = normalizeOptions("GET", mware11, getHandler$15);
|
|
12129
|
+
var head24_options = normalizeOptions("HEAD", mware11);
|
|
12130
|
+
function get24(context) {
|
|
11913
12131
|
const __getHandler = (data) => call(getHandler$15, noContent, context, data);
|
|
11914
12132
|
return call(mware11, __getHandler, context);
|
|
11915
12133
|
}
|
|
11916
|
-
function
|
|
11917
|
-
return stripResponseBody(
|
|
12134
|
+
function head24(context) {
|
|
12135
|
+
return stripResponseBody(get24(context));
|
|
11918
12136
|
}
|
|
11919
12137
|
//#endregion
|
|
11920
12138
|
//#region __marko-run__api.repos.branches.js
|
|
@@ -11937,14 +12155,14 @@ var getHandler$14 = normalizeHandler(Run.GET({ search: (value) => {
|
|
|
11937
12155
|
defaultBranch: looked || fromCatalog || null
|
|
11938
12156
|
});
|
|
11939
12157
|
}), "GET");
|
|
11940
|
-
var
|
|
11941
|
-
var
|
|
11942
|
-
function
|
|
12158
|
+
var get25_options = normalizeOptions("GET", mware11, getHandler$14);
|
|
12159
|
+
var head25_options = normalizeOptions("HEAD", mware11);
|
|
12160
|
+
function get25(context) {
|
|
11943
12161
|
const __getHandler = (data) => call(getHandler$14, noContent, context, data);
|
|
11944
12162
|
return call(mware11, __getHandler, context);
|
|
11945
12163
|
}
|
|
11946
|
-
function
|
|
11947
|
-
return stripResponseBody(
|
|
12164
|
+
function head25(context) {
|
|
12165
|
+
return stripResponseBody(get25(context));
|
|
11948
12166
|
}
|
|
11949
12167
|
//#endregion
|
|
11950
12168
|
//#region src/routes/api/sessions/$id/+handler.ts
|
|
@@ -11961,13 +12179,13 @@ var patchHandler$1 = normalizeHandler(Run.PATCH({ json: Rename }, async (ctx) =>
|
|
|
11961
12179
|
return Response.json({ ok: true });
|
|
11962
12180
|
}), "PATCH");
|
|
11963
12181
|
var deleteHandler$2 = normalizeHandler(DELETE$2, "DELETE");
|
|
11964
|
-
var
|
|
11965
|
-
var
|
|
11966
|
-
function
|
|
12182
|
+
var delete26_options = normalizeOptions("DELETE", mware11, deleteHandler$2);
|
|
12183
|
+
var patch26_options = normalizeOptions("PATCH", mware11, patchHandler$1);
|
|
12184
|
+
function delete26(context) {
|
|
11967
12185
|
const __deleteHandler = (data) => call(deleteHandler$2, noContent, context, data);
|
|
11968
12186
|
return call(mware11, __deleteHandler, context);
|
|
11969
12187
|
}
|
|
11970
|
-
function
|
|
12188
|
+
function patch26(context) {
|
|
11971
12189
|
const __patchHandler = (data) => call(patchHandler$1, noContent, context, data);
|
|
11972
12190
|
return call(mware11, __patchHandler, context);
|
|
11973
12191
|
}
|
|
@@ -11988,8 +12206,8 @@ var postHandler$11 = normalizeHandler(Run.POST({ json: Send }, async (ctx) => {
|
|
|
11988
12206
|
} : void 0);
|
|
11989
12207
|
return Response.json({ ok: true });
|
|
11990
12208
|
}), "POST");
|
|
11991
|
-
var
|
|
11992
|
-
function
|
|
12209
|
+
var post27_options = normalizeOptions("POST", mware11, postHandler$11);
|
|
12210
|
+
function post27(context) {
|
|
11993
12211
|
const __postHandler = (data) => call(postHandler$11, noContent, context, data);
|
|
11994
12212
|
return call(mware11, __postHandler, context);
|
|
11995
12213
|
}
|
|
@@ -12038,31 +12256,31 @@ var putHandler = normalizeHandler(Run.PUT({ json: Patch }, async (ctx) => {
|
|
|
12038
12256
|
return Response.json(snapshot$1());
|
|
12039
12257
|
}), "PUT");
|
|
12040
12258
|
var getHandler$13 = normalizeHandler(GET$13, "GET");
|
|
12041
|
-
var
|
|
12042
|
-
var
|
|
12043
|
-
var
|
|
12044
|
-
function
|
|
12259
|
+
var get28_options = normalizeOptions("GET", mware11, getHandler$13);
|
|
12260
|
+
var head28_options = normalizeOptions("HEAD", mware11);
|
|
12261
|
+
var put28_options = normalizeOptions("PUT", mware11, putHandler);
|
|
12262
|
+
function get28(context) {
|
|
12045
12263
|
const __getHandler = (data) => call(getHandler$13, noContent, context, data);
|
|
12046
12264
|
return call(mware11, __getHandler, context);
|
|
12047
12265
|
}
|
|
12048
|
-
function
|
|
12049
|
-
return stripResponseBody(
|
|
12266
|
+
function head28(context) {
|
|
12267
|
+
return stripResponseBody(get28(context));
|
|
12050
12268
|
}
|
|
12051
|
-
function
|
|
12269
|
+
function put28(context) {
|
|
12052
12270
|
const __putHandler = (data) => call(putHandler, noContent, context, data);
|
|
12053
12271
|
return call(mware11, __putHandler, context);
|
|
12054
12272
|
}
|
|
12055
12273
|
//#endregion
|
|
12056
12274
|
//#region __marko-run__api.setup.js
|
|
12057
12275
|
var getHandler$12 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await getSetup(ctx.search.refresh))), "GET");
|
|
12058
|
-
var
|
|
12059
|
-
var
|
|
12060
|
-
function
|
|
12276
|
+
var get29_options = normalizeOptions("GET", mware11, getHandler$12);
|
|
12277
|
+
var head29_options = normalizeOptions("HEAD", mware11);
|
|
12278
|
+
function get29(context) {
|
|
12061
12279
|
const __getHandler = (data) => call(getHandler$12, noContent, context, data);
|
|
12062
12280
|
return call(mware11, __getHandler, context);
|
|
12063
12281
|
}
|
|
12064
|
-
function
|
|
12065
|
-
return stripResponseBody(
|
|
12282
|
+
function head29(context) {
|
|
12283
|
+
return stripResponseBody(get29(context));
|
|
12066
12284
|
}
|
|
12067
12285
|
//#endregion
|
|
12068
12286
|
//#region src/routes/api/setup/$id/+handler.ts
|
|
@@ -12083,22 +12301,22 @@ var postHandler$10 = normalizeHandler(Run.POST({ json: Body$2 }, async (ctx) =>
|
|
|
12083
12301
|
const body = await readBody(ctx);
|
|
12084
12302
|
return Response.json(await runSetupAction(ctx.params.id, body.action, { version: body.version }));
|
|
12085
12303
|
}), "POST");
|
|
12086
|
-
var
|
|
12087
|
-
function
|
|
12304
|
+
var post30_options = normalizeOptions("POST", mware11, postHandler$10);
|
|
12305
|
+
function post30(context) {
|
|
12088
12306
|
const __postHandler = (data) => call(postHandler$10, noContent, context, data);
|
|
12089
12307
|
return call(mware11, __postHandler, context);
|
|
12090
12308
|
}
|
|
12091
12309
|
//#endregion
|
|
12092
12310
|
//#region __marko-run__api.setup.search.js
|
|
12093
12311
|
var getHandler$11 = normalizeHandler(Run.GET({ search: (value) => ({ q: typeof value.q === "string" ? value.q : "" }) }, async (ctx) => Response.json(await searchMise(ctx.search.q))), "GET");
|
|
12094
|
-
var
|
|
12095
|
-
var
|
|
12096
|
-
function
|
|
12312
|
+
var get31_options = normalizeOptions("GET", mware11, getHandler$11);
|
|
12313
|
+
var head31_options = normalizeOptions("HEAD", mware11);
|
|
12314
|
+
function get31(context) {
|
|
12097
12315
|
const __getHandler = (data) => call(getHandler$11, noContent, context, data);
|
|
12098
12316
|
return call(mware11, __getHandler, context);
|
|
12099
12317
|
}
|
|
12100
|
-
function
|
|
12101
|
-
return stripResponseBody(
|
|
12318
|
+
function head31(context) {
|
|
12319
|
+
return stripResponseBody(get31(context));
|
|
12102
12320
|
}
|
|
12103
12321
|
//#endregion
|
|
12104
12322
|
//#region src/server/self-update.ts
|
|
@@ -12218,17 +12436,17 @@ var GET$10 = Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, a
|
|
|
12218
12436
|
//#region __marko-run__api.setup.self.js
|
|
12219
12437
|
var postHandler$9 = normalizeHandler(Run.POST(async () => Response.json(startSelfUpdate())), "POST");
|
|
12220
12438
|
var getHandler$10 = normalizeHandler(GET$10, "GET");
|
|
12221
|
-
var
|
|
12222
|
-
var
|
|
12223
|
-
var
|
|
12224
|
-
function
|
|
12439
|
+
var get32_options = normalizeOptions("GET", mware11, getHandler$10);
|
|
12440
|
+
var head32_options = normalizeOptions("HEAD", mware11);
|
|
12441
|
+
var post32_options = normalizeOptions("POST", mware11, postHandler$9);
|
|
12442
|
+
function get32(context) {
|
|
12225
12443
|
const __getHandler = (data) => call(getHandler$10, noContent, context, data);
|
|
12226
12444
|
return call(mware11, __getHandler, context);
|
|
12227
12445
|
}
|
|
12228
|
-
function
|
|
12229
|
-
return stripResponseBody(
|
|
12446
|
+
function head32(context) {
|
|
12447
|
+
return stripResponseBody(get32(context));
|
|
12230
12448
|
}
|
|
12231
|
-
function
|
|
12449
|
+
function post32(context) {
|
|
12232
12450
|
const __postHandler = (data) => call(postHandler$9, noContent, context, data);
|
|
12233
12451
|
return call(mware11, __postHandler, context);
|
|
12234
12452
|
}
|
|
@@ -12264,55 +12482,55 @@ var postHandler$8 = normalizeHandler(Run.POST({ json: Body$1 }, async (ctx) => {
|
|
|
12264
12482
|
return Response.json(await skillsSnapshot(void 0, [], true));
|
|
12265
12483
|
}), "POST");
|
|
12266
12484
|
var getHandler$9 = normalizeHandler(GET$9, "GET");
|
|
12267
|
-
var
|
|
12268
|
-
var
|
|
12269
|
-
var
|
|
12270
|
-
function
|
|
12485
|
+
var get33_options = normalizeOptions("GET", mware11, getHandler$9);
|
|
12486
|
+
var head33_options = normalizeOptions("HEAD", mware11);
|
|
12487
|
+
var post33_options = normalizeOptions("POST", mware11, postHandler$8);
|
|
12488
|
+
function get33(context) {
|
|
12271
12489
|
const __getHandler = (data) => call(getHandler$9, noContent, context, data);
|
|
12272
12490
|
return call(mware11, __getHandler, context);
|
|
12273
12491
|
}
|
|
12274
|
-
function
|
|
12275
|
-
return stripResponseBody(
|
|
12492
|
+
function head33(context) {
|
|
12493
|
+
return stripResponseBody(get33(context));
|
|
12276
12494
|
}
|
|
12277
|
-
function
|
|
12495
|
+
function post33(context) {
|
|
12278
12496
|
const __postHandler = (data) => call(postHandler$8, noContent, context, data);
|
|
12279
12497
|
return call(mware11, __postHandler, context);
|
|
12280
12498
|
}
|
|
12281
12499
|
//#endregion
|
|
12282
12500
|
//#region __marko-run__api.skills.search.js
|
|
12283
12501
|
var getHandler$8 = normalizeHandler(Run.GET({ search: (value) => ({ q: typeof value.q === "string" ? value.q : "" }) }, async (ctx) => Response.json(await searchRegistry(ctx.search.q))), "GET");
|
|
12284
|
-
var
|
|
12285
|
-
var
|
|
12286
|
-
function
|
|
12502
|
+
var get34_options = normalizeOptions("GET", mware11, getHandler$8);
|
|
12503
|
+
var head34_options = normalizeOptions("HEAD", mware11);
|
|
12504
|
+
function get34(context) {
|
|
12287
12505
|
const __getHandler = (data) => call(getHandler$8, noContent, context, data);
|
|
12288
12506
|
return call(mware11, __getHandler, context);
|
|
12289
12507
|
}
|
|
12290
|
-
function
|
|
12291
|
-
return stripResponseBody(
|
|
12508
|
+
function head34(context) {
|
|
12509
|
+
return stripResponseBody(get34(context));
|
|
12292
12510
|
}
|
|
12293
12511
|
//#endregion
|
|
12294
12512
|
//#region __marko-run__api.status.js
|
|
12295
12513
|
var getHandler$7 = normalizeHandler(Run.GET({ search: (value) => ({ fresh: "fresh" in value }) }, async (ctx) => Response.json(await (ctx.search.fresh ? statusForAllFresh() : statusForAll()))), "GET");
|
|
12296
|
-
var
|
|
12297
|
-
var
|
|
12298
|
-
function
|
|
12514
|
+
var get35_options = normalizeOptions("GET", mware11, getHandler$7);
|
|
12515
|
+
var head35_options = normalizeOptions("HEAD", mware11);
|
|
12516
|
+
function get35(context) {
|
|
12299
12517
|
const __getHandler = (data) => call(getHandler$7, noContent, context, data);
|
|
12300
12518
|
return call(mware11, __getHandler, context);
|
|
12301
12519
|
}
|
|
12302
|
-
function
|
|
12303
|
-
return stripResponseBody(
|
|
12520
|
+
function head35(context) {
|
|
12521
|
+
return stripResponseBody(get35(context));
|
|
12304
12522
|
}
|
|
12305
12523
|
//#endregion
|
|
12306
12524
|
//#region __marko-run__api.usage.js
|
|
12307
12525
|
var getHandler$6 = normalizeHandler(Run.GET({ search: (value) => ({ refresh: "refresh" in value }) }, async (ctx) => Response.json(await usage(ctx.search.refresh))), "GET");
|
|
12308
|
-
var
|
|
12309
|
-
var
|
|
12310
|
-
function
|
|
12526
|
+
var get36_options = normalizeOptions("GET", mware11, getHandler$6);
|
|
12527
|
+
var head36_options = normalizeOptions("HEAD", mware11);
|
|
12528
|
+
function get36(context) {
|
|
12311
12529
|
const __getHandler = (data) => call(getHandler$6, noContent, context, data);
|
|
12312
12530
|
return call(mware11, __getHandler, context);
|
|
12313
12531
|
}
|
|
12314
|
-
function
|
|
12315
|
-
return stripResponseBody(
|
|
12532
|
+
function head36(context) {
|
|
12533
|
+
return stripResponseBody(get36(context));
|
|
12316
12534
|
}
|
|
12317
12535
|
//#endregion
|
|
12318
12536
|
//#region src/routes/api/workspaces/+handler.ts
|
|
@@ -12336,17 +12554,17 @@ var postHandler$7 = normalizeHandler(Run.POST({ json: CreateWorkspace }, async (
|
|
|
12336
12554
|
return Response.json(await withProgressOp(body.opId ?? "", () => createWorkspace(body.name, body.repos, { join: body.join })));
|
|
12337
12555
|
}), "POST");
|
|
12338
12556
|
var getHandler$5 = normalizeHandler(GET$5, "GET");
|
|
12339
|
-
var
|
|
12340
|
-
var
|
|
12341
|
-
var
|
|
12342
|
-
function
|
|
12557
|
+
var get37_options = normalizeOptions("GET", mware11, getHandler$5);
|
|
12558
|
+
var head37_options = normalizeOptions("HEAD", mware11);
|
|
12559
|
+
var post37_options = normalizeOptions("POST", mware11, postHandler$7);
|
|
12560
|
+
function get37(context) {
|
|
12343
12561
|
const __getHandler = (data) => call(getHandler$5, noContent, context, data);
|
|
12344
12562
|
return call(mware11, __getHandler, context);
|
|
12345
12563
|
}
|
|
12346
|
-
function
|
|
12347
|
-
return stripResponseBody(
|
|
12564
|
+
function head37(context) {
|
|
12565
|
+
return stripResponseBody(get37(context));
|
|
12348
12566
|
}
|
|
12349
|
-
function
|
|
12567
|
+
function post37(context) {
|
|
12350
12568
|
const __postHandler = (data) => call(postHandler$7, noContent, context, data);
|
|
12351
12569
|
return call(mware11, __postHandler, context);
|
|
12352
12570
|
}
|
|
@@ -12369,11 +12587,11 @@ var postHandler$6 = normalizeHandler(Run.POST({ json: WorkspaceAction }, async (
|
|
|
12369
12587
|
});
|
|
12370
12588
|
return Response.json({ ok: true });
|
|
12371
12589
|
}), "POST");
|
|
12372
|
-
var
|
|
12373
|
-
function
|
|
12590
|
+
var post38_options = normalizeOptions("POST", mware11, mware44, postHandler$6);
|
|
12591
|
+
function post38(context) {
|
|
12374
12592
|
const __postHandler = (data) => call(postHandler$6, noContent, context, data);
|
|
12375
|
-
const
|
|
12376
|
-
return call(mware11,
|
|
12593
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
12594
|
+
return call(mware11, __mware44, context);
|
|
12377
12595
|
}
|
|
12378
12596
|
//#endregion
|
|
12379
12597
|
//#region src/routes/api/workspaces/$id/assets/+handler.ts
|
|
@@ -12392,11 +12610,11 @@ var postHandler$5 = normalizeHandler(Run.POST({ search: (value) => ({ name: type
|
|
|
12392
12610
|
fs.writeFileSync(path.join(ws.path, relative), data);
|
|
12393
12611
|
return Response.json({ path: relative });
|
|
12394
12612
|
}), "POST");
|
|
12395
|
-
var
|
|
12396
|
-
function
|
|
12613
|
+
var post39_options = normalizeOptions("POST", mware11, mware44, postHandler$5);
|
|
12614
|
+
function post39(context) {
|
|
12397
12615
|
const __postHandler = (data) => call(postHandler$5, noContent, context, data);
|
|
12398
|
-
const
|
|
12399
|
-
return call(mware11,
|
|
12616
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
12617
|
+
return call(mware11, __mware44, context);
|
|
12400
12618
|
}
|
|
12401
12619
|
//#endregion
|
|
12402
12620
|
//#region src/server/review.ts
|
|
@@ -12947,28 +13165,28 @@ var getHandler$4 = normalizeHandler(Run.GET({ search: (value) => ({
|
|
|
12947
13165
|
pr: ctx.search.pr,
|
|
12948
13166
|
refresh: ctx.search.refresh
|
|
12949
13167
|
}))), "GET");
|
|
12950
|
-
var
|
|
12951
|
-
var
|
|
12952
|
-
function
|
|
13168
|
+
var get40_options = normalizeOptions("GET", mware11, mware44, getHandler$4);
|
|
13169
|
+
var head40_options = normalizeOptions("HEAD", mware11, mware44);
|
|
13170
|
+
function get40(context) {
|
|
12953
13171
|
const __getHandler = (data) => call(getHandler$4, noContent, context, data);
|
|
12954
|
-
const
|
|
12955
|
-
return call(mware11,
|
|
13172
|
+
const __mware44 = (data) => call(mware44, __getHandler, context, data);
|
|
13173
|
+
return call(mware11, __mware44, context);
|
|
12956
13174
|
}
|
|
12957
|
-
function
|
|
12958
|
-
return stripResponseBody(
|
|
13175
|
+
function head40(context) {
|
|
13176
|
+
return stripResponseBody(get40(context));
|
|
12959
13177
|
}
|
|
12960
13178
|
//#endregion
|
|
12961
13179
|
//#region __marko-run__api.workspaces.$.procs.js
|
|
12962
13180
|
var getHandler$3 = normalizeHandler(Run.GET(async (ctx) => Response.json(await workspaceProcs(ctx.data.workspace.path))), "GET");
|
|
12963
|
-
var
|
|
12964
|
-
var
|
|
12965
|
-
function
|
|
13181
|
+
var get41_options = normalizeOptions("GET", mware11, mware44, getHandler$3);
|
|
13182
|
+
var head41_options = normalizeOptions("HEAD", mware11, mware44);
|
|
13183
|
+
function get41(context) {
|
|
12966
13184
|
const __getHandler = (data) => call(getHandler$3, noContent, context, data);
|
|
12967
|
-
const
|
|
12968
|
-
return call(mware11,
|
|
13185
|
+
const __mware44 = (data) => call(mware44, __getHandler, context, data);
|
|
13186
|
+
return call(mware11, __mware44, context);
|
|
12969
13187
|
}
|
|
12970
|
-
function
|
|
12971
|
-
return stripResponseBody(
|
|
13188
|
+
function head41(context) {
|
|
13189
|
+
return stripResponseBody(get41(context));
|
|
12972
13190
|
}
|
|
12973
13191
|
//#endregion
|
|
12974
13192
|
//#region src/routes/api/workspaces/$id/prs/+handler.ts
|
|
@@ -13005,11 +13223,11 @@ async function pruneDismissedLane(ws, fullName, number) {
|
|
|
13005
13223
|
//#endregion
|
|
13006
13224
|
//#region __marko-run__api.workspaces.$.prs.js
|
|
13007
13225
|
var postHandler$4 = normalizeHandler(POST$4, "POST");
|
|
13008
|
-
var
|
|
13009
|
-
function
|
|
13226
|
+
var post42_options = normalizeOptions("POST", mware11, mware44, postHandler$4);
|
|
13227
|
+
function post42(context) {
|
|
13010
13228
|
const __postHandler = (data) => call(postHandler$4, noContent, context, data);
|
|
13011
|
-
const
|
|
13012
|
-
return call(mware11,
|
|
13229
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
13230
|
+
return call(mware11, __mware44, context);
|
|
13013
13231
|
}
|
|
13014
13232
|
//#endregion
|
|
13015
13233
|
//#region src/routes/api/workspaces/$id/repos/+handler.ts
|
|
@@ -13024,11 +13242,11 @@ var postHandler$3 = normalizeHandler(Run.POST({ json: AddRepo }, async (ctx) =>
|
|
|
13024
13242
|
const body = await readBody(ctx);
|
|
13025
13243
|
return Response.json(await withProgressOp(ctx.params.id, () => addRepo$1(ctx.params.id, body.fullName, body.baseBranch, body.fork)));
|
|
13026
13244
|
}), "POST");
|
|
13027
|
-
var
|
|
13028
|
-
function
|
|
13245
|
+
var post43_options = normalizeOptions("POST", mware11, mware44, postHandler$3);
|
|
13246
|
+
function post43(context) {
|
|
13029
13247
|
const __postHandler = (data) => call(postHandler$3, noContent, context, data);
|
|
13030
|
-
const
|
|
13031
|
-
return call(mware11,
|
|
13248
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
13249
|
+
return call(mware11, __mware44, context);
|
|
13032
13250
|
}
|
|
13033
13251
|
//#endregion
|
|
13034
13252
|
//#region __marko-run__api.workspaces.$.repos.$.js
|
|
@@ -13036,11 +13254,11 @@ var deleteHandler$1 = normalizeHandler(Run.DELETE(async (ctx) => {
|
|
|
13036
13254
|
await withProgressOp(ctx.params.id, () => removeRepo(ctx.params.id, ctx.params.worktree));
|
|
13037
13255
|
return Response.json({ ok: true });
|
|
13038
13256
|
}), "DELETE");
|
|
13039
|
-
var
|
|
13040
|
-
function
|
|
13257
|
+
var delete44_options = normalizeOptions("DELETE", mware11, mware44, deleteHandler$1);
|
|
13258
|
+
function delete44(context) {
|
|
13041
13259
|
const __deleteHandler = (data) => call(deleteHandler$1, noContent, context, data);
|
|
13042
|
-
const
|
|
13043
|
-
return call(mware11,
|
|
13260
|
+
const __mware44 = (data) => call(mware44, __deleteHandler, context, data);
|
|
13261
|
+
return call(mware11, __mware44, context);
|
|
13044
13262
|
}
|
|
13045
13263
|
//#endregion
|
|
13046
13264
|
//#region src/routes/api/workspaces/$id/review/+handler.ts
|
|
@@ -13086,21 +13304,21 @@ var postHandler$2 = normalizeHandler(Run.POST({ json: ReviewAction }, async (ctx
|
|
|
13086
13304
|
return Response.json({ ok: true });
|
|
13087
13305
|
}), "POST");
|
|
13088
13306
|
var getHandler$2 = normalizeHandler(GET$2, "GET");
|
|
13089
|
-
var
|
|
13090
|
-
var
|
|
13091
|
-
var
|
|
13092
|
-
function
|
|
13307
|
+
var get45_options = normalizeOptions("GET", mware11, mware44, getHandler$2);
|
|
13308
|
+
var head45_options = normalizeOptions("HEAD", mware11, mware44);
|
|
13309
|
+
var post45_options = normalizeOptions("POST", mware11, mware44, postHandler$2);
|
|
13310
|
+
function get45(context) {
|
|
13093
13311
|
const __getHandler = (data) => call(getHandler$2, noContent, context, data);
|
|
13094
|
-
const
|
|
13095
|
-
return call(mware11,
|
|
13312
|
+
const __mware44 = (data) => call(mware44, __getHandler, context, data);
|
|
13313
|
+
return call(mware11, __mware44, context);
|
|
13096
13314
|
}
|
|
13097
|
-
function
|
|
13098
|
-
return stripResponseBody(
|
|
13315
|
+
function head45(context) {
|
|
13316
|
+
return stripResponseBody(get45(context));
|
|
13099
13317
|
}
|
|
13100
|
-
function
|
|
13318
|
+
function post45(context) {
|
|
13101
13319
|
const __postHandler = (data) => call(postHandler$2, noContent, context, data);
|
|
13102
|
-
const
|
|
13103
|
-
return call(mware11,
|
|
13320
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
13321
|
+
return call(mware11, __mware44, context);
|
|
13104
13322
|
}
|
|
13105
13323
|
//#endregion
|
|
13106
13324
|
//#region src/routes/api/workspaces/$id/review/$commentId/+handler.ts
|
|
@@ -13132,17 +13350,17 @@ var deleteHandler = normalizeHandler(Run.DELETE({ params: ({ id, commentId }) =>
|
|
|
13132
13350
|
return Response.json({ ok: true });
|
|
13133
13351
|
}), "DELETE");
|
|
13134
13352
|
var patchHandler = normalizeHandler(PATCH, "PATCH");
|
|
13135
|
-
var
|
|
13136
|
-
var
|
|
13137
|
-
function
|
|
13353
|
+
var delete46_options = normalizeOptions("DELETE", mware11, mware44, deleteHandler);
|
|
13354
|
+
var patch46_options = normalizeOptions("PATCH", mware11, mware44, patchHandler);
|
|
13355
|
+
function delete46(context) {
|
|
13138
13356
|
const __deleteHandler = (data) => call(deleteHandler, noContent, context, data);
|
|
13139
|
-
const
|
|
13140
|
-
return call(mware11,
|
|
13357
|
+
const __mware44 = (data) => call(mware44, __deleteHandler, context, data);
|
|
13358
|
+
return call(mware11, __mware44, context);
|
|
13141
13359
|
}
|
|
13142
|
-
function
|
|
13360
|
+
function patch46(context) {
|
|
13143
13361
|
const __patchHandler = (data) => call(patchHandler, noContent, context, data);
|
|
13144
|
-
const
|
|
13145
|
-
return call(mware11,
|
|
13362
|
+
const __mware44 = (data) => call(mware44, __patchHandler, context, data);
|
|
13363
|
+
return call(mware11, __mware44, context);
|
|
13146
13364
|
}
|
|
13147
13365
|
//#endregion
|
|
13148
13366
|
//#region src/routes/api/workspaces/$id/sessions/+handler.ts
|
|
@@ -13161,21 +13379,21 @@ var postHandler$1 = normalizeHandler(Run.POST({ json: CreateSession }, async (ct
|
|
|
13161
13379
|
return Response.json(createSession(ctx.params.id, body.agent || preferredAgent()));
|
|
13162
13380
|
}), "POST");
|
|
13163
13381
|
var getHandler$1 = normalizeHandler(GET$1, "GET");
|
|
13164
|
-
var
|
|
13165
|
-
var
|
|
13166
|
-
var
|
|
13167
|
-
function
|
|
13382
|
+
var get47_options = normalizeOptions("GET", mware11, mware44, getHandler$1);
|
|
13383
|
+
var head47_options = normalizeOptions("HEAD", mware11, mware44);
|
|
13384
|
+
var post47_options = normalizeOptions("POST", mware11, mware44, postHandler$1);
|
|
13385
|
+
function get47(context) {
|
|
13168
13386
|
const __getHandler = (data) => call(getHandler$1, noContent, context, data);
|
|
13169
|
-
const
|
|
13170
|
-
return call(mware11,
|
|
13387
|
+
const __mware44 = (data) => call(mware44, __getHandler, context, data);
|
|
13388
|
+
return call(mware11, __mware44, context);
|
|
13171
13389
|
}
|
|
13172
|
-
function
|
|
13173
|
-
return stripResponseBody(
|
|
13390
|
+
function head47(context) {
|
|
13391
|
+
return stripResponseBody(get47(context));
|
|
13174
13392
|
}
|
|
13175
|
-
function
|
|
13393
|
+
function post47(context) {
|
|
13176
13394
|
const __postHandler = (data) => call(postHandler$1, noContent, context, data);
|
|
13177
|
-
const
|
|
13178
|
-
return call(mware11,
|
|
13395
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
13396
|
+
return call(mware11, __mware44, context);
|
|
13179
13397
|
}
|
|
13180
13398
|
//#endregion
|
|
13181
13399
|
//#region src/routes/api/workspaces/$id/skills/+handler.ts
|
|
@@ -13229,21 +13447,21 @@ var postHandler = normalizeHandler(Run.POST({ json: Body }, async (ctx) => {
|
|
|
13229
13447
|
return Response.json(await snapshot(wsId, true));
|
|
13230
13448
|
}), "POST");
|
|
13231
13449
|
var getHandler = normalizeHandler(GET, "GET");
|
|
13232
|
-
var
|
|
13233
|
-
var
|
|
13234
|
-
var
|
|
13235
|
-
function
|
|
13450
|
+
var get48_options = normalizeOptions("GET", mware11, mware44, getHandler);
|
|
13451
|
+
var head48_options = normalizeOptions("HEAD", mware11, mware44);
|
|
13452
|
+
var post48_options = normalizeOptions("POST", mware11, mware44, postHandler);
|
|
13453
|
+
function get48(context) {
|
|
13236
13454
|
const __getHandler = (data) => call(getHandler, noContent, context, data);
|
|
13237
|
-
const
|
|
13238
|
-
return call(mware11,
|
|
13455
|
+
const __mware44 = (data) => call(mware44, __getHandler, context, data);
|
|
13456
|
+
return call(mware11, __mware44, context);
|
|
13239
13457
|
}
|
|
13240
|
-
function
|
|
13241
|
-
return stripResponseBody(
|
|
13458
|
+
function head48(context) {
|
|
13459
|
+
return stripResponseBody(get48(context));
|
|
13242
13460
|
}
|
|
13243
|
-
function
|
|
13461
|
+
function post48(context) {
|
|
13244
13462
|
const __postHandler = (data) => call(postHandler, noContent, context, data);
|
|
13245
|
-
const
|
|
13246
|
-
return call(mware11,
|
|
13463
|
+
const __mware44 = (data) => call(mware44, __postHandler, context, data);
|
|
13464
|
+
return call(mware11, __mware44, context);
|
|
13247
13465
|
}
|
|
13248
13466
|
//#endregion
|
|
13249
13467
|
//#region __marko-run__router.js
|
|
@@ -13340,73 +13558,73 @@ function match_internal(method, pathname) {
|
|
|
13340
13558
|
meta: {}
|
|
13341
13559
|
};
|
|
13342
13560
|
case "prefs": return {
|
|
13343
|
-
handler:
|
|
13561
|
+
handler: get19,
|
|
13344
13562
|
path: "/api/prefs",
|
|
13345
13563
|
params: {},
|
|
13346
|
-
options:
|
|
13564
|
+
options: get19_options,
|
|
13347
13565
|
meta: {}
|
|
13348
13566
|
};
|
|
13349
13567
|
case "progress": return {
|
|
13350
|
-
handler:
|
|
13568
|
+
handler: get21,
|
|
13351
13569
|
path: "/api/progress",
|
|
13352
13570
|
params: {},
|
|
13353
|
-
options:
|
|
13571
|
+
options: get21_options,
|
|
13354
13572
|
meta: {}
|
|
13355
13573
|
};
|
|
13356
13574
|
case "push": return {
|
|
13357
|
-
handler:
|
|
13575
|
+
handler: get22,
|
|
13358
13576
|
path: "/api/push",
|
|
13359
13577
|
params: {},
|
|
13360
|
-
options:
|
|
13578
|
+
options: get22_options,
|
|
13361
13579
|
meta: {}
|
|
13362
13580
|
};
|
|
13363
13581
|
case "repos": return {
|
|
13364
|
-
handler:
|
|
13582
|
+
handler: get24,
|
|
13365
13583
|
path: "/api/repos",
|
|
13366
13584
|
params: {},
|
|
13367
|
-
options:
|
|
13585
|
+
options: get24_options,
|
|
13368
13586
|
meta: {}
|
|
13369
13587
|
};
|
|
13370
13588
|
case "settings": return {
|
|
13371
|
-
handler:
|
|
13589
|
+
handler: get28,
|
|
13372
13590
|
path: "/api/settings",
|
|
13373
13591
|
params: {},
|
|
13374
|
-
options:
|
|
13592
|
+
options: get28_options,
|
|
13375
13593
|
meta: {}
|
|
13376
13594
|
};
|
|
13377
13595
|
case "setup": return {
|
|
13378
|
-
handler:
|
|
13596
|
+
handler: get29,
|
|
13379
13597
|
path: "/api/setup",
|
|
13380
13598
|
params: {},
|
|
13381
|
-
options:
|
|
13599
|
+
options: get29_options,
|
|
13382
13600
|
meta: {}
|
|
13383
13601
|
};
|
|
13384
13602
|
case "skills": return {
|
|
13385
|
-
handler:
|
|
13603
|
+
handler: get33,
|
|
13386
13604
|
path: "/api/skills",
|
|
13387
13605
|
params: {},
|
|
13388
|
-
options:
|
|
13606
|
+
options: get33_options,
|
|
13389
13607
|
meta: {}
|
|
13390
13608
|
};
|
|
13391
13609
|
case "status": return {
|
|
13392
|
-
handler:
|
|
13610
|
+
handler: get35,
|
|
13393
13611
|
path: "/api/status",
|
|
13394
13612
|
params: {},
|
|
13395
|
-
options:
|
|
13613
|
+
options: get35_options,
|
|
13396
13614
|
meta: {}
|
|
13397
13615
|
};
|
|
13398
13616
|
case "usage": return {
|
|
13399
|
-
handler:
|
|
13617
|
+
handler: get36,
|
|
13400
13618
|
path: "/api/usage",
|
|
13401
13619
|
params: {},
|
|
13402
|
-
options:
|
|
13620
|
+
options: get36_options,
|
|
13403
13621
|
meta: {}
|
|
13404
13622
|
};
|
|
13405
13623
|
case "workspaces": return {
|
|
13406
|
-
handler:
|
|
13624
|
+
handler: get37,
|
|
13407
13625
|
path: "/api/workspaces",
|
|
13408
13626
|
params: {},
|
|
13409
|
-
options:
|
|
13627
|
+
options: get37_options,
|
|
13410
13628
|
meta: {}
|
|
13411
13629
|
};
|
|
13412
13630
|
}
|
|
@@ -13436,13 +13654,20 @@ function match_internal(method, pathname) {
|
|
|
13436
13654
|
options: get16_options,
|
|
13437
13655
|
meta: {}
|
|
13438
13656
|
};
|
|
13439
|
-
case "
|
|
13657
|
+
case "icon-png": return {
|
|
13440
13658
|
handler: get17,
|
|
13441
|
-
path: "/api/instance/
|
|
13659
|
+
path: "/api/instance/icon-png",
|
|
13442
13660
|
params: {},
|
|
13443
13661
|
options: get17_options,
|
|
13444
13662
|
meta: {}
|
|
13445
13663
|
};
|
|
13664
|
+
case "manifest": return {
|
|
13665
|
+
handler: get18,
|
|
13666
|
+
path: "/api/instance/manifest",
|
|
13667
|
+
params: {},
|
|
13668
|
+
options: get18_options,
|
|
13669
|
+
meta: {}
|
|
13670
|
+
};
|
|
13446
13671
|
}
|
|
13447
13672
|
}
|
|
13448
13673
|
break;
|
|
@@ -13451,10 +13676,10 @@ function match_internal(method, pathname) {
|
|
|
13451
13676
|
const i3 = pathname.indexOf("/", 11) + 1;
|
|
13452
13677
|
if (!i3 || i3 === len) {
|
|
13453
13678
|
if (pathname.slice(11, i3 ? -1 : len) === "branches") return {
|
|
13454
|
-
handler:
|
|
13679
|
+
handler: get25,
|
|
13455
13680
|
path: "/api/repos/branches",
|
|
13456
13681
|
params: {},
|
|
13457
|
-
options:
|
|
13682
|
+
options: get25_options,
|
|
13458
13683
|
meta: {}
|
|
13459
13684
|
};
|
|
13460
13685
|
}
|
|
@@ -13465,17 +13690,17 @@ function match_internal(method, pathname) {
|
|
|
13465
13690
|
const i3 = pathname.indexOf("/", 11) + 1;
|
|
13466
13691
|
if (!i3 || i3 === len) switch (pathname.slice(11, i3 ? -1 : len)) {
|
|
13467
13692
|
case "search": return {
|
|
13468
|
-
handler:
|
|
13693
|
+
handler: get31,
|
|
13469
13694
|
path: "/api/setup/search",
|
|
13470
13695
|
params: {},
|
|
13471
|
-
options:
|
|
13696
|
+
options: get31_options,
|
|
13472
13697
|
meta: {}
|
|
13473
13698
|
};
|
|
13474
13699
|
case "self": return {
|
|
13475
|
-
handler:
|
|
13700
|
+
handler: get32,
|
|
13476
13701
|
path: "/api/setup/self",
|
|
13477
13702
|
params: {},
|
|
13478
|
-
options:
|
|
13703
|
+
options: get32_options,
|
|
13479
13704
|
meta: {}
|
|
13480
13705
|
};
|
|
13481
13706
|
}
|
|
@@ -13486,10 +13711,10 @@ function match_internal(method, pathname) {
|
|
|
13486
13711
|
const i3 = pathname.indexOf("/", 12) + 1;
|
|
13487
13712
|
if (!i3 || i3 === len) {
|
|
13488
13713
|
if (pathname.slice(12, i3 ? -1 : len) === "search") return {
|
|
13489
|
-
handler:
|
|
13714
|
+
handler: get34,
|
|
13490
13715
|
path: "/api/skills/search",
|
|
13491
13716
|
params: {},
|
|
13492
|
-
options:
|
|
13717
|
+
options: get34_options,
|
|
13493
13718
|
meta: {}
|
|
13494
13719
|
};
|
|
13495
13720
|
}
|
|
@@ -13503,38 +13728,38 @@ function match_internal(method, pathname) {
|
|
|
13503
13728
|
const i4 = pathname.indexOf("/", i3) + 1;
|
|
13504
13729
|
if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
|
|
13505
13730
|
case "diff": return {
|
|
13506
|
-
handler:
|
|
13731
|
+
handler: get40,
|
|
13507
13732
|
path: "/api/workspaces/$id/diff",
|
|
13508
13733
|
params: { id: s3 },
|
|
13509
|
-
options:
|
|
13734
|
+
options: get40_options,
|
|
13510
13735
|
meta: {}
|
|
13511
13736
|
};
|
|
13512
13737
|
case "procs": return {
|
|
13513
|
-
handler:
|
|
13738
|
+
handler: get41,
|
|
13514
13739
|
path: "/api/workspaces/$id/procs",
|
|
13515
13740
|
params: { id: s3 },
|
|
13516
|
-
options:
|
|
13741
|
+
options: get41_options,
|
|
13517
13742
|
meta: {}
|
|
13518
13743
|
};
|
|
13519
13744
|
case "review": return {
|
|
13520
|
-
handler:
|
|
13745
|
+
handler: get45,
|
|
13521
13746
|
path: "/api/workspaces/$id/review",
|
|
13522
13747
|
params: { id: s3 },
|
|
13523
|
-
options:
|
|
13748
|
+
options: get45_options,
|
|
13524
13749
|
meta: {}
|
|
13525
13750
|
};
|
|
13526
13751
|
case "sessions": return {
|
|
13527
|
-
handler:
|
|
13752
|
+
handler: get47,
|
|
13528
13753
|
path: "/api/workspaces/$id/sessions",
|
|
13529
13754
|
params: { id: s3 },
|
|
13530
|
-
options:
|
|
13755
|
+
options: get47_options,
|
|
13531
13756
|
meta: {}
|
|
13532
13757
|
};
|
|
13533
13758
|
case "skills": return {
|
|
13534
|
-
handler:
|
|
13759
|
+
handler: get48,
|
|
13535
13760
|
path: "/api/workspaces/$id/skills",
|
|
13536
13761
|
params: { id: s3 },
|
|
13537
|
-
options:
|
|
13762
|
+
options: get48_options,
|
|
13538
13763
|
meta: {}
|
|
13539
13764
|
};
|
|
13540
13765
|
}
|
|
@@ -13627,73 +13852,73 @@ function match_internal(method, pathname) {
|
|
|
13627
13852
|
meta: {}
|
|
13628
13853
|
};
|
|
13629
13854
|
case "prefs": return {
|
|
13630
|
-
handler:
|
|
13855
|
+
handler: head19,
|
|
13631
13856
|
path: "/api/prefs",
|
|
13632
13857
|
params: {},
|
|
13633
|
-
options:
|
|
13858
|
+
options: head19_options,
|
|
13634
13859
|
meta: {}
|
|
13635
13860
|
};
|
|
13636
13861
|
case "progress": return {
|
|
13637
|
-
handler:
|
|
13862
|
+
handler: head21,
|
|
13638
13863
|
path: "/api/progress",
|
|
13639
13864
|
params: {},
|
|
13640
|
-
options:
|
|
13865
|
+
options: head21_options,
|
|
13641
13866
|
meta: {}
|
|
13642
13867
|
};
|
|
13643
13868
|
case "push": return {
|
|
13644
|
-
handler:
|
|
13869
|
+
handler: head22,
|
|
13645
13870
|
path: "/api/push",
|
|
13646
13871
|
params: {},
|
|
13647
|
-
options:
|
|
13872
|
+
options: head22_options,
|
|
13648
13873
|
meta: {}
|
|
13649
13874
|
};
|
|
13650
13875
|
case "repos": return {
|
|
13651
|
-
handler:
|
|
13876
|
+
handler: head24,
|
|
13652
13877
|
path: "/api/repos",
|
|
13653
13878
|
params: {},
|
|
13654
|
-
options:
|
|
13879
|
+
options: head24_options,
|
|
13655
13880
|
meta: {}
|
|
13656
13881
|
};
|
|
13657
13882
|
case "settings": return {
|
|
13658
|
-
handler:
|
|
13883
|
+
handler: head28,
|
|
13659
13884
|
path: "/api/settings",
|
|
13660
13885
|
params: {},
|
|
13661
|
-
options:
|
|
13886
|
+
options: head28_options,
|
|
13662
13887
|
meta: {}
|
|
13663
13888
|
};
|
|
13664
13889
|
case "setup": return {
|
|
13665
|
-
handler:
|
|
13890
|
+
handler: head29,
|
|
13666
13891
|
path: "/api/setup",
|
|
13667
13892
|
params: {},
|
|
13668
|
-
options:
|
|
13893
|
+
options: head29_options,
|
|
13669
13894
|
meta: {}
|
|
13670
13895
|
};
|
|
13671
13896
|
case "skills": return {
|
|
13672
|
-
handler:
|
|
13897
|
+
handler: head33,
|
|
13673
13898
|
path: "/api/skills",
|
|
13674
13899
|
params: {},
|
|
13675
|
-
options:
|
|
13900
|
+
options: head33_options,
|
|
13676
13901
|
meta: {}
|
|
13677
13902
|
};
|
|
13678
13903
|
case "status": return {
|
|
13679
|
-
handler:
|
|
13904
|
+
handler: head35,
|
|
13680
13905
|
path: "/api/status",
|
|
13681
13906
|
params: {},
|
|
13682
|
-
options:
|
|
13907
|
+
options: head35_options,
|
|
13683
13908
|
meta: {}
|
|
13684
13909
|
};
|
|
13685
13910
|
case "usage": return {
|
|
13686
|
-
handler:
|
|
13911
|
+
handler: head36,
|
|
13687
13912
|
path: "/api/usage",
|
|
13688
13913
|
params: {},
|
|
13689
|
-
options:
|
|
13914
|
+
options: head36_options,
|
|
13690
13915
|
meta: {}
|
|
13691
13916
|
};
|
|
13692
13917
|
case "workspaces": return {
|
|
13693
|
-
handler:
|
|
13918
|
+
handler: head37,
|
|
13694
13919
|
path: "/api/workspaces",
|
|
13695
13920
|
params: {},
|
|
13696
|
-
options:
|
|
13921
|
+
options: head37_options,
|
|
13697
13922
|
meta: {}
|
|
13698
13923
|
};
|
|
13699
13924
|
}
|
|
@@ -13723,13 +13948,20 @@ function match_internal(method, pathname) {
|
|
|
13723
13948
|
options: head16_options,
|
|
13724
13949
|
meta: {}
|
|
13725
13950
|
};
|
|
13726
|
-
case "
|
|
13951
|
+
case "icon-png": return {
|
|
13727
13952
|
handler: head17,
|
|
13728
|
-
path: "/api/instance/
|
|
13953
|
+
path: "/api/instance/icon-png",
|
|
13729
13954
|
params: {},
|
|
13730
13955
|
options: head17_options,
|
|
13731
13956
|
meta: {}
|
|
13732
13957
|
};
|
|
13958
|
+
case "manifest": return {
|
|
13959
|
+
handler: head18,
|
|
13960
|
+
path: "/api/instance/manifest",
|
|
13961
|
+
params: {},
|
|
13962
|
+
options: head18_options,
|
|
13963
|
+
meta: {}
|
|
13964
|
+
};
|
|
13733
13965
|
}
|
|
13734
13966
|
}
|
|
13735
13967
|
break;
|
|
@@ -13738,10 +13970,10 @@ function match_internal(method, pathname) {
|
|
|
13738
13970
|
const i3 = pathname.indexOf("/", 11) + 1;
|
|
13739
13971
|
if (!i3 || i3 === len) {
|
|
13740
13972
|
if (pathname.slice(11, i3 ? -1 : len) === "branches") return {
|
|
13741
|
-
handler:
|
|
13973
|
+
handler: head25,
|
|
13742
13974
|
path: "/api/repos/branches",
|
|
13743
13975
|
params: {},
|
|
13744
|
-
options:
|
|
13976
|
+
options: head25_options,
|
|
13745
13977
|
meta: {}
|
|
13746
13978
|
};
|
|
13747
13979
|
}
|
|
@@ -13752,17 +13984,17 @@ function match_internal(method, pathname) {
|
|
|
13752
13984
|
const i3 = pathname.indexOf("/", 11) + 1;
|
|
13753
13985
|
if (!i3 || i3 === len) switch (pathname.slice(11, i3 ? -1 : len)) {
|
|
13754
13986
|
case "search": return {
|
|
13755
|
-
handler:
|
|
13987
|
+
handler: head31,
|
|
13756
13988
|
path: "/api/setup/search",
|
|
13757
13989
|
params: {},
|
|
13758
|
-
options:
|
|
13990
|
+
options: head31_options,
|
|
13759
13991
|
meta: {}
|
|
13760
13992
|
};
|
|
13761
13993
|
case "self": return {
|
|
13762
|
-
handler:
|
|
13994
|
+
handler: head32,
|
|
13763
13995
|
path: "/api/setup/self",
|
|
13764
13996
|
params: {},
|
|
13765
|
-
options:
|
|
13997
|
+
options: head32_options,
|
|
13766
13998
|
meta: {}
|
|
13767
13999
|
};
|
|
13768
14000
|
}
|
|
@@ -13773,10 +14005,10 @@ function match_internal(method, pathname) {
|
|
|
13773
14005
|
const i3 = pathname.indexOf("/", 12) + 1;
|
|
13774
14006
|
if (!i3 || i3 === len) {
|
|
13775
14007
|
if (pathname.slice(12, i3 ? -1 : len) === "search") return {
|
|
13776
|
-
handler:
|
|
14008
|
+
handler: head34,
|
|
13777
14009
|
path: "/api/skills/search",
|
|
13778
14010
|
params: {},
|
|
13779
|
-
options:
|
|
14011
|
+
options: head34_options,
|
|
13780
14012
|
meta: {}
|
|
13781
14013
|
};
|
|
13782
14014
|
}
|
|
@@ -13790,38 +14022,38 @@ function match_internal(method, pathname) {
|
|
|
13790
14022
|
const i4 = pathname.indexOf("/", i3) + 1;
|
|
13791
14023
|
if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
|
|
13792
14024
|
case "diff": return {
|
|
13793
|
-
handler:
|
|
14025
|
+
handler: head40,
|
|
13794
14026
|
path: "/api/workspaces/$id/diff",
|
|
13795
14027
|
params: { id: s3 },
|
|
13796
|
-
options:
|
|
14028
|
+
options: head40_options,
|
|
13797
14029
|
meta: {}
|
|
13798
14030
|
};
|
|
13799
14031
|
case "procs": return {
|
|
13800
|
-
handler:
|
|
14032
|
+
handler: head41,
|
|
13801
14033
|
path: "/api/workspaces/$id/procs",
|
|
13802
14034
|
params: { id: s3 },
|
|
13803
|
-
options:
|
|
14035
|
+
options: head41_options,
|
|
13804
14036
|
meta: {}
|
|
13805
14037
|
};
|
|
13806
14038
|
case "review": return {
|
|
13807
|
-
handler:
|
|
14039
|
+
handler: head45,
|
|
13808
14040
|
path: "/api/workspaces/$id/review",
|
|
13809
14041
|
params: { id: s3 },
|
|
13810
|
-
options:
|
|
14042
|
+
options: head45_options,
|
|
13811
14043
|
meta: {}
|
|
13812
14044
|
};
|
|
13813
14045
|
case "sessions": return {
|
|
13814
|
-
handler:
|
|
14046
|
+
handler: head47,
|
|
13815
14047
|
path: "/api/workspaces/$id/sessions",
|
|
13816
14048
|
params: { id: s3 },
|
|
13817
|
-
options:
|
|
14049
|
+
options: head47_options,
|
|
13818
14050
|
meta: {}
|
|
13819
14051
|
};
|
|
13820
14052
|
case "skills": return {
|
|
13821
|
-
handler:
|
|
14053
|
+
handler: head48,
|
|
13822
14054
|
path: "/api/workspaces/$id/skills",
|
|
13823
14055
|
params: { id: s3 },
|
|
13824
|
-
options:
|
|
14056
|
+
options: head48_options,
|
|
13825
14057
|
meta: {}
|
|
13826
14058
|
};
|
|
13827
14059
|
}
|
|
@@ -13849,38 +14081,38 @@ function match_internal(method, pathname) {
|
|
|
13849
14081
|
meta: {}
|
|
13850
14082
|
};
|
|
13851
14083
|
case "prefs": return {
|
|
13852
|
-
handler:
|
|
14084
|
+
handler: post19,
|
|
13853
14085
|
path: "/api/prefs",
|
|
13854
14086
|
params: {},
|
|
13855
|
-
options:
|
|
14087
|
+
options: post19_options,
|
|
13856
14088
|
meta: {}
|
|
13857
14089
|
};
|
|
13858
14090
|
case "push": return {
|
|
13859
|
-
handler:
|
|
14091
|
+
handler: post22,
|
|
13860
14092
|
path: "/api/push",
|
|
13861
14093
|
params: {},
|
|
13862
|
-
options:
|
|
14094
|
+
options: post22_options,
|
|
13863
14095
|
meta: {}
|
|
13864
14096
|
};
|
|
13865
14097
|
case "repo-pushed": return {
|
|
13866
|
-
handler:
|
|
14098
|
+
handler: post23,
|
|
13867
14099
|
path: "/api/repo-pushed",
|
|
13868
14100
|
params: {},
|
|
13869
|
-
options:
|
|
14101
|
+
options: post23_options,
|
|
13870
14102
|
meta: {}
|
|
13871
14103
|
};
|
|
13872
14104
|
case "skills": return {
|
|
13873
|
-
handler:
|
|
14105
|
+
handler: post33,
|
|
13874
14106
|
path: "/api/skills",
|
|
13875
14107
|
params: {},
|
|
13876
|
-
options:
|
|
14108
|
+
options: post33_options,
|
|
13877
14109
|
meta: {}
|
|
13878
14110
|
};
|
|
13879
14111
|
case "workspaces": return {
|
|
13880
|
-
handler:
|
|
14112
|
+
handler: post37,
|
|
13881
14113
|
path: "/api/workspaces",
|
|
13882
14114
|
params: {},
|
|
13883
|
-
options:
|
|
14115
|
+
options: post37_options,
|
|
13884
14116
|
meta: {}
|
|
13885
14117
|
};
|
|
13886
14118
|
}
|
|
@@ -13943,10 +14175,10 @@ function match_internal(method, pathname) {
|
|
|
13943
14175
|
const i4 = pathname.indexOf("/", i3) + 1;
|
|
13944
14176
|
if (!i4 || i4 === len) {
|
|
13945
14177
|
if (pathname.slice(i3, i4 ? -1 : len) === "send") return {
|
|
13946
|
-
handler:
|
|
14178
|
+
handler: post27,
|
|
13947
14179
|
path: "/api/sessions/$id/send",
|
|
13948
14180
|
params: { id: s3 },
|
|
13949
|
-
options:
|
|
14181
|
+
options: post27_options,
|
|
13950
14182
|
meta: {}
|
|
13951
14183
|
};
|
|
13952
14184
|
}
|
|
@@ -13960,17 +14192,17 @@ function match_internal(method, pathname) {
|
|
|
13960
14192
|
if (!i3 || i3 === len) {
|
|
13961
14193
|
const s3 = decodeURIComponent(pathname.slice(11, i3 ? -1 : len));
|
|
13962
14194
|
if (s3 === "self") return {
|
|
13963
|
-
handler:
|
|
14195
|
+
handler: post32,
|
|
13964
14196
|
path: "/api/setup/self",
|
|
13965
14197
|
params: {},
|
|
13966
|
-
options:
|
|
14198
|
+
options: post32_options,
|
|
13967
14199
|
meta: {}
|
|
13968
14200
|
};
|
|
13969
14201
|
if (s3) return {
|
|
13970
|
-
handler:
|
|
14202
|
+
handler: post30,
|
|
13971
14203
|
path: "/api/setup/$id",
|
|
13972
14204
|
params: { id: s3 },
|
|
13973
|
-
options:
|
|
14205
|
+
options: post30_options,
|
|
13974
14206
|
meta: {}
|
|
13975
14207
|
};
|
|
13976
14208
|
}
|
|
@@ -13981,10 +14213,10 @@ function match_internal(method, pathname) {
|
|
|
13981
14213
|
if (!i3 || i3 === len) {
|
|
13982
14214
|
const s3 = decodeURIComponent(pathname.slice(16, i3 ? -1 : len));
|
|
13983
14215
|
if (s3) return {
|
|
13984
|
-
handler:
|
|
14216
|
+
handler: post38,
|
|
13985
14217
|
path: "/api/workspaces/$id",
|
|
13986
14218
|
params: { id: s3 },
|
|
13987
|
-
options:
|
|
14219
|
+
options: post38_options,
|
|
13988
14220
|
meta: {}
|
|
13989
14221
|
};
|
|
13990
14222
|
} else {
|
|
@@ -13993,45 +14225,45 @@ function match_internal(method, pathname) {
|
|
|
13993
14225
|
const i4 = pathname.indexOf("/", i3) + 1;
|
|
13994
14226
|
if (!i4 || i4 === len) switch (pathname.slice(i3, i4 ? -1 : len)) {
|
|
13995
14227
|
case "assets": return {
|
|
13996
|
-
handler:
|
|
14228
|
+
handler: post39,
|
|
13997
14229
|
path: "/api/workspaces/$id/assets",
|
|
13998
14230
|
params: { id: s3 },
|
|
13999
|
-
options:
|
|
14231
|
+
options: post39_options,
|
|
14000
14232
|
meta: {}
|
|
14001
14233
|
};
|
|
14002
14234
|
case "prs": return {
|
|
14003
|
-
handler:
|
|
14235
|
+
handler: post42,
|
|
14004
14236
|
path: "/api/workspaces/$id/prs",
|
|
14005
14237
|
params: { id: s3 },
|
|
14006
|
-
options:
|
|
14238
|
+
options: post42_options,
|
|
14007
14239
|
meta: {}
|
|
14008
14240
|
};
|
|
14009
14241
|
case "repos": return {
|
|
14010
|
-
handler:
|
|
14242
|
+
handler: post43,
|
|
14011
14243
|
path: "/api/workspaces/$id/repos",
|
|
14012
14244
|
params: { id: s3 },
|
|
14013
|
-
options:
|
|
14245
|
+
options: post43_options,
|
|
14014
14246
|
meta: {}
|
|
14015
14247
|
};
|
|
14016
14248
|
case "review": return {
|
|
14017
|
-
handler:
|
|
14249
|
+
handler: post45,
|
|
14018
14250
|
path: "/api/workspaces/$id/review",
|
|
14019
14251
|
params: { id: s3 },
|
|
14020
|
-
options:
|
|
14252
|
+
options: post45_options,
|
|
14021
14253
|
meta: {}
|
|
14022
14254
|
};
|
|
14023
14255
|
case "sessions": return {
|
|
14024
|
-
handler:
|
|
14256
|
+
handler: post47,
|
|
14025
14257
|
path: "/api/workspaces/$id/sessions",
|
|
14026
14258
|
params: { id: s3 },
|
|
14027
|
-
options:
|
|
14259
|
+
options: post47_options,
|
|
14028
14260
|
meta: {}
|
|
14029
14261
|
};
|
|
14030
14262
|
case "skills": return {
|
|
14031
|
-
handler:
|
|
14263
|
+
handler: post48,
|
|
14032
14264
|
path: "/api/workspaces/$id/skills",
|
|
14033
14265
|
params: { id: s3 },
|
|
14034
|
-
options:
|
|
14266
|
+
options: post48_options,
|
|
14035
14267
|
meta: {}
|
|
14036
14268
|
};
|
|
14037
14269
|
}
|
|
@@ -14052,10 +14284,10 @@ function match_internal(method, pathname) {
|
|
|
14052
14284
|
const i2 = pathname.indexOf("/", 5) + 1;
|
|
14053
14285
|
if (!i2 || i2 === len) {
|
|
14054
14286
|
if (pathname.slice(5, i2 ? -1 : len) === "settings") return {
|
|
14055
|
-
handler:
|
|
14287
|
+
handler: put28,
|
|
14056
14288
|
path: "/api/settings",
|
|
14057
14289
|
params: {},
|
|
14058
|
-
options:
|
|
14290
|
+
options: put28_options,
|
|
14059
14291
|
meta: {}
|
|
14060
14292
|
};
|
|
14061
14293
|
}
|
|
@@ -14072,10 +14304,10 @@ function match_internal(method, pathname) {
|
|
|
14072
14304
|
const i2 = pathname.indexOf("/", 5) + 1;
|
|
14073
14305
|
if (!i2 || i2 === len) {
|
|
14074
14306
|
if (pathname.slice(5, i2 ? -1 : len) === "push") return {
|
|
14075
|
-
handler:
|
|
14307
|
+
handler: delete22,
|
|
14076
14308
|
path: "/api/push",
|
|
14077
14309
|
params: {},
|
|
14078
|
-
options:
|
|
14310
|
+
options: delete22_options,
|
|
14079
14311
|
meta: {}
|
|
14080
14312
|
};
|
|
14081
14313
|
} else switch (pathname.slice(5, i2 - 1)) {
|
|
@@ -14085,10 +14317,10 @@ function match_internal(method, pathname) {
|
|
|
14085
14317
|
if (!i3 || i3 === len) {
|
|
14086
14318
|
const s3 = decodeURIComponent(pathname.slice(11, i3 ? -1 : len));
|
|
14087
14319
|
if (s3) return {
|
|
14088
|
-
handler:
|
|
14320
|
+
handler: delete20,
|
|
14089
14321
|
path: "/api/procs/$pid",
|
|
14090
14322
|
params: { pid: s3 },
|
|
14091
|
-
options:
|
|
14323
|
+
options: delete20_options,
|
|
14092
14324
|
meta: {}
|
|
14093
14325
|
};
|
|
14094
14326
|
}
|
|
@@ -14100,10 +14332,10 @@ function match_internal(method, pathname) {
|
|
|
14100
14332
|
if (!i3 || i3 === len) {
|
|
14101
14333
|
const s3 = decodeURIComponent(pathname.slice(14, i3 ? -1 : len));
|
|
14102
14334
|
if (s3) return {
|
|
14103
|
-
handler:
|
|
14335
|
+
handler: delete26,
|
|
14104
14336
|
path: "/api/sessions/$id",
|
|
14105
14337
|
params: { id: s3 },
|
|
14106
|
-
options:
|
|
14338
|
+
options: delete26_options,
|
|
14107
14339
|
meta: {}
|
|
14108
14340
|
};
|
|
14109
14341
|
}
|
|
@@ -14122,13 +14354,13 @@ function match_internal(method, pathname) {
|
|
|
14122
14354
|
if (!i5 || i5 === len) {
|
|
14123
14355
|
const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
|
|
14124
14356
|
if (s5) return {
|
|
14125
|
-
handler:
|
|
14357
|
+
handler: delete44,
|
|
14126
14358
|
path: "/api/workspaces/$id/repos/$worktree",
|
|
14127
14359
|
params: {
|
|
14128
14360
|
id: s3,
|
|
14129
14361
|
worktree: s5
|
|
14130
14362
|
},
|
|
14131
|
-
options:
|
|
14363
|
+
options: delete44_options,
|
|
14132
14364
|
meta: {}
|
|
14133
14365
|
};
|
|
14134
14366
|
}
|
|
@@ -14139,13 +14371,13 @@ function match_internal(method, pathname) {
|
|
|
14139
14371
|
if (!i5 || i5 === len) {
|
|
14140
14372
|
const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
|
|
14141
14373
|
if (s5) return {
|
|
14142
|
-
handler:
|
|
14374
|
+
handler: delete46,
|
|
14143
14375
|
path: "/api/workspaces/$id/review/$commentId",
|
|
14144
14376
|
params: {
|
|
14145
14377
|
id: s3,
|
|
14146
14378
|
commentId: s5
|
|
14147
14379
|
},
|
|
14148
|
-
options:
|
|
14380
|
+
options: delete46_options,
|
|
14149
14381
|
meta: {}
|
|
14150
14382
|
};
|
|
14151
14383
|
}
|
|
@@ -14173,10 +14405,10 @@ function match_internal(method, pathname) {
|
|
|
14173
14405
|
if (!i3 || i3 === len) {
|
|
14174
14406
|
const s3 = decodeURIComponent(pathname.slice(14, i3 ? -1 : len));
|
|
14175
14407
|
if (s3) return {
|
|
14176
|
-
handler:
|
|
14408
|
+
handler: patch26,
|
|
14177
14409
|
path: "/api/sessions/$id",
|
|
14178
14410
|
params: { id: s3 },
|
|
14179
|
-
options:
|
|
14411
|
+
options: patch26_options,
|
|
14180
14412
|
meta: {}
|
|
14181
14413
|
};
|
|
14182
14414
|
}
|
|
@@ -14194,13 +14426,13 @@ function match_internal(method, pathname) {
|
|
|
14194
14426
|
if (!i5 || i5 === len) {
|
|
14195
14427
|
const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
|
|
14196
14428
|
if (s5) return {
|
|
14197
|
-
handler:
|
|
14429
|
+
handler: patch46,
|
|
14198
14430
|
path: "/api/workspaces/$id/review/$commentId",
|
|
14199
14431
|
params: {
|
|
14200
14432
|
id: s3,
|
|
14201
14433
|
commentId: s5
|
|
14202
14434
|
},
|
|
14203
|
-
options:
|
|
14435
|
+
options: patch46_options,
|
|
14204
14436
|
meta: {}
|
|
14205
14437
|
};
|
|
14206
14438
|
}
|
|
@@ -18365,4 +18597,4 @@ server.listen(port, () => {
|
|
|
18365
18597
|
//#endregion
|
|
18366
18598
|
export {};
|
|
18367
18599
|
|
|
18368
|
-
;var __MARKO_MANIFEST__={"
|
|
18600
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-BkCzG8oJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BkCzG8oJ.css\"",">"],"defer":[2,"/assets/new-AHbbDzFl.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-AHbbDzFl.js\"","></script>",2,"modulepreload#/assets/_BaTUny04.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BaTUny04.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-BkCzG8oJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BkCzG8oJ.css\"",">"],"defer":[2,"/assets/w._-AHbbDzFl.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-AHbbDzFl.js\"","></script>",2,"modulepreload#/assets/_BaTUny04.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BaTUny04.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-BkCzG8oJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BkCzG8oJ.css\"",">"],"defer":[2,"/assets/w-AHbbDzFl.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-AHbbDzFl.js\"","></script>",2,"modulepreload#/assets/_BaTUny04.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BaTUny04.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-BkCzG8oJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BkCzG8oJ.css\"",">"],"defer":[2,"/assets/settings-AHbbDzFl.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-AHbbDzFl.js\"","></script>",2,"modulepreload#/assets/_BaTUny04.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BaTUny04.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-BkCzG8oJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BkCzG8oJ.css\"",">"],"defer":[2,"/assets/w._-DQf8RfTY.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DQf8RfTY.js\"","></script>",2,"modulepreload#/assets/_BaTUny04.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BaTUny04.js\"",">"]}};
|