@dylanpiercey/work 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/work.mjs +9 -0
- package/dist/{_CExzMbX7.js → _BdPU13C_.js} +16 -2
- package/dist/{_D5j6bTJl.js → _CoU5siEE.js} +79 -72
- package/dist/{_BDBtGsdY.js → _Cz8F94WW.js} +291 -257
- package/dist/_Dj0ybKwE.js +2 -0
- package/dist/index.mjs +622 -454
- package/dist/public/assets/{_C_GySFna.js → _07qJecSc.js} +1 -1
- package/dist/public/assets/_07qJecSc.js.br +0 -0
- package/dist/public/assets/{_B_hYt6WL.js → _B04Rz6or.js} +1 -1
- package/dist/public/assets/_B04Rz6or.js.br +0 -0
- package/dist/public/assets/{_olWgegfx.js → _B07KnwWv.js} +1 -1
- package/dist/public/assets/{_CiyoX76R.js → _B1fvNVfH.js} +1 -1
- package/dist/public/assets/_B1fvNVfH.js.br +0 -0
- package/dist/public/assets/{_4c6ZP_DE2.js → _B8HQGdOD2.js} +1 -1
- package/dist/public/assets/_B8HQGdOD2.js.br +0 -0
- package/dist/public/assets/{_Drl9WI2Q.js → _B9D_0ZQr.js} +1 -1
- package/dist/public/assets/_B9D_0ZQr.js.br +0 -0
- package/dist/public/assets/{_CVI5Z1ap.js → _BG6UrECj.js} +1 -1
- package/dist/public/assets/_BG6UrECj.js.br +0 -0
- package/dist/public/assets/{_DfayPfGn.js → _BJhC5Swa.js} +1 -1
- package/dist/public/assets/_BJhC5Swa.js.br +0 -0
- package/dist/public/assets/{_B_iQ_vXs.js → _BK1AsBrt.js} +1 -1
- package/dist/public/assets/_BK1AsBrt.js.br +0 -0
- package/dist/public/assets/{_DOiBi4I0.js → _BNlnm23c.js} +1 -1
- package/dist/public/assets/_BNlnm23c.js.br +0 -0
- package/dist/public/assets/{_8DabaQc42.js → _BOo2ADNE2.js} +1 -1
- package/dist/public/assets/_BOo2ADNE2.js.br +0 -0
- package/dist/public/assets/{_CQ8XIG32.js → _BR-j-QRg.js} +1 -1
- package/dist/public/assets/_BR-j-QRg.js.br +0 -0
- package/dist/public/assets/{_D8NtarGl2.js → _BWg4qN7U2.js} +1 -1
- package/dist/public/assets/_BWg4qN7U2.js.br +0 -0
- package/dist/public/assets/{_DlKqfl3x.js → _BYwpUM-g.js} +1 -1
- package/dist/public/assets/_BYwpUM-g.js.br +0 -0
- package/dist/public/assets/{_Byj_kDek2.js → _BcDcSdJH2.js} +1 -1
- package/dist/public/assets/_BcDcSdJH2.js.br +0 -0
- package/dist/public/assets/{_BrHg1vmp2.js → _BcboNVrv2.js} +1 -1
- package/dist/public/assets/_BcboNVrv2.js.br +0 -0
- package/dist/public/assets/{_ZPETJBJo2.js → _Bed4-hRw2.js} +1 -1
- package/dist/public/assets/_Bed4-hRw2.js.br +0 -0
- package/dist/public/assets/{_B38vzMde2.js → _Bev6eZfU2.js} +1 -1
- package/dist/public/assets/_Bev6eZfU2.js.br +0 -0
- package/dist/public/assets/{_DtvBiqKq.js → _BqGM5Qj0.js} +1 -1
- package/dist/public/assets/_BqGM5Qj0.js.br +0 -0
- package/dist/public/assets/{_BE6VqQVA.js → _BrwDJWFC.js} +1 -1
- package/dist/public/assets/_BrwDJWFC.js.br +0 -0
- package/dist/public/assets/{_DymTiS2l2.js → _Bw9AEf9U2.js} +1 -1
- package/dist/public/assets/_Bw9AEf9U2.js.br +0 -0
- package/dist/public/assets/{_En2Jcy8J.js → _BwbHWVEx.js} +1 -1
- package/dist/public/assets/_BwbHWVEx.js.br +0 -0
- package/dist/public/assets/{_Q62npO-T.js → _BwuFR15N.js} +1 -1
- package/dist/public/assets/_BwuFR15N.js.br +0 -0
- package/dist/public/assets/{_CN4RWjdg.js → _C3--a3ig.js} +1 -1
- package/dist/public/assets/_C3--a3ig.js.br +0 -0
- package/dist/public/assets/{_BRgDp6dq2.js → _C3ByoAdu2.js} +1 -1
- package/dist/public/assets/_C3ByoAdu2.js.br +0 -0
- package/dist/public/assets/{_BXoOogd_.js → _C7T0iOcK.js} +1 -1
- package/dist/public/assets/_C7T0iOcK.js.br +0 -0
- package/dist/public/assets/{_BqEupx9T.js → _CKZUxuhA.js} +1 -1
- package/dist/public/assets/_CKZUxuhA.js.br +0 -0
- package/dist/public/assets/{_CR7jZl_o.js → _CPukMy5X.js} +1 -1
- package/dist/public/assets/_CPukMy5X.js.br +0 -0
- package/dist/public/assets/{_BcLoolnz2.js → _CRi3sQaK2.js} +1 -1
- package/dist/public/assets/_CRi3sQaK2.js.br +0 -0
- package/dist/public/assets/{_1MO3zLi0.js → _CWGKayAn.js} +1 -1
- package/dist/public/assets/_CWGKayAn.js.br +0 -0
- package/dist/public/assets/{_BVR2bnH7.js → _CWMWI6ue.js} +1 -1
- package/dist/public/assets/_CWMWI6ue.js.br +0 -0
- package/dist/public/assets/{_DboFmLJ5.js → _CZ4weotP.js} +1 -1
- package/dist/public/assets/_CZ4weotP.js.br +0 -0
- package/dist/public/assets/{_B7tW52ox2.js → _CdOTbzEk2.js} +1 -1
- package/dist/public/assets/_CdOTbzEk2.js.br +0 -0
- package/dist/public/assets/{_CXbfNROI.js → _CkjdmXvh.js} +1 -1
- package/dist/public/assets/_CkjdmXvh.js.br +0 -0
- package/dist/public/assets/{_CUy49fiW.js → _Cld64l7w.js} +1 -1
- package/dist/public/assets/_Cld64l7w.js.br +0 -0
- package/dist/public/assets/{_DHjOV863.js → _CmY7d5sh.js} +1 -1
- package/dist/public/assets/_CmY7d5sh.js.br +0 -0
- package/dist/public/assets/{_DHQRi0uw2.js → _CpwxuUbM2.js} +1 -1
- package/dist/public/assets/_CpwxuUbM2.js.br +0 -0
- package/dist/public/assets/{_C669lqE1.js → _Cshjy-tr.js} +1 -1
- package/dist/public/assets/_Cshjy-tr.js.br +0 -0
- package/dist/public/assets/{_BDKexg9K.js → _Cwzls7ul.js} +1 -1
- package/dist/public/assets/{_BDKexg9K.js.br → _Cwzls7ul.js.br} +0 -0
- package/dist/public/assets/{_Bl32WbGR.js → _Cx97qUQa.js} +1 -1
- package/dist/public/assets/_Cx97qUQa.js.br +0 -0
- package/dist/public/assets/{_BjHYQyTW2.js → _CxUl3SEz2.js} +1 -1
- package/dist/public/assets/_CxUl3SEz2.js.br +0 -0
- package/dist/public/assets/{_BpaSM2Ut.js → _CyD33Xwe.js} +1 -1
- package/dist/public/assets/_CyD33Xwe.js.br +0 -0
- package/dist/public/assets/{_Cb4BQ87V2.js → _D45Y3kzM2.js} +1 -1
- package/dist/public/assets/_D45Y3kzM2.js.br +0 -0
- package/dist/public/assets/{_CekDvoOm2.js → _DCmGRWXl2.js} +1 -1
- package/dist/public/assets/_DCmGRWXl2.js.br +0 -0
- package/dist/public/assets/{_ELEfU1ZJ2.js → _DESBqf832.js} +1 -1
- package/dist/public/assets/_DESBqf832.js.br +0 -0
- package/dist/public/assets/{_LIg4gQDB2.js → _DHmeJbF12.js} +1 -1
- package/dist/public/assets/_DHmeJbF12.js.br +0 -0
- package/dist/public/assets/{_B6HRx3mv.js → _DIOpQGuO.js} +1 -1
- package/dist/public/assets/_DIOpQGuO.js.br +0 -0
- package/dist/public/assets/{_3_osenBu.js → _DO2j2wai.js} +1 -1
- package/dist/public/assets/_DO2j2wai.js.br +0 -0
- package/dist/public/assets/{_t1bRY80J.js → _DOihbSbE.js} +1 -1
- package/dist/public/assets/_DOihbSbE.js.br +0 -0
- package/dist/public/assets/{_RRBED5IT.js → _DW5_6QEJ.js} +1 -1
- package/dist/public/assets/_DW5_6QEJ.js.br +0 -0
- package/dist/public/assets/{_BW-Z7z3K.js → _DY1ZTiKf.js} +20 -20
- package/dist/public/assets/_DY1ZTiKf.js.br +0 -0
- package/dist/public/assets/{_BneLpkUj.js → _Df4EyoB-.js} +1 -1
- package/dist/public/assets/_Df4EyoB-.js.br +0 -0
- package/dist/public/assets/{_CXQb7FHW.js → _Dq3Fnsny.js} +1 -1
- package/dist/public/assets/_Dq3Fnsny.js.br +0 -0
- package/dist/public/assets/{_DRSO79wd.js → _DrOqesVG.js} +1 -1
- package/dist/public/assets/_DrOqesVG.js.br +0 -0
- package/dist/public/assets/{_DLV-pFpn.js → _Dtt87bkn.js} +1 -1
- package/dist/public/assets/_Dtt87bkn.js.br +0 -0
- package/dist/public/assets/{_D7MBKQAt.js → _DwGOtsEM.js} +1 -1
- package/dist/public/assets/_DwGOtsEM.js.br +0 -0
- package/dist/public/assets/{_BmRxh0Eh2.js → _DwK4Diby2.js} +1 -1
- package/dist/public/assets/{_CR_N8Jxw2.js → _Dye_WaXg2.js} +1 -1
- package/dist/public/assets/_Dye_WaXg2.js.br +0 -0
- package/dist/public/assets/{_IuMur5Ym.js → _Dz2BYxkE.js} +1 -1
- package/dist/public/assets/_Dz2BYxkE.js.br +0 -0
- package/dist/public/assets/{_sRlPXrhp2.js → _EWc7i02-2.js} +1 -1
- package/dist/public/assets/_EWc7i02-2.js.br +0 -0
- package/dist/public/assets/{_DxQEc7cj2.js → _EoZ_xBXq2.js} +1 -1
- package/dist/public/assets/{_BfKlqNx9.js → _Fiqv8D5E.js} +1 -1
- package/dist/public/assets/_Fiqv8D5E.js.br +0 -0
- package/dist/public/assets/{_BuVTK0nK.js → _GrrScuAr.js} +1 -1
- package/dist/public/assets/_GrrScuAr.js.br +0 -0
- package/dist/public/assets/{_DbJsbj5D.js → _Hqm5mf9S.js} +1 -1
- package/dist/public/assets/_Hqm5mf9S.js.br +0 -0
- package/dist/public/assets/{_BdWFr75M2.js → _U8cSRlqn2.js} +1 -1
- package/dist/public/assets/_U8cSRlqn2.js.br +0 -0
- package/dist/public/assets/{_DIFhW7d2.js → _aJR0pEfl.js} +1 -1
- package/dist/public/assets/_aJR0pEfl.js.br +0 -0
- package/dist/public/assets/{_oLZchIMS.js → _aWRBkGVy.js} +1 -1
- package/dist/public/assets/_aWRBkGVy.js.br +0 -0
- package/dist/public/assets/{_BpQROnKB.js → _cCTeyYAY.js} +1 -1
- package/dist/public/assets/_cCTeyYAY.js.br +0 -0
- package/dist/public/assets/{_c1k15BL72.js → _i31Rddpf2.js} +1 -1
- package/dist/public/assets/_i31Rddpf2.js.br +0 -0
- package/dist/public/assets/{_BxhMnvoI2.js → _ix4YrGtW2.js} +1 -1
- package/dist/public/assets/_ix4YrGtW2.js.br +0 -0
- package/dist/public/assets/{_YkjHoUJ2.js → _j4GDdAJs.js} +1 -1
- package/dist/public/assets/_j4GDdAJs.js.br +0 -0
- package/dist/public/assets/{_gzI_71qk.js → _k2rzFYXw.js} +1 -1
- package/dist/public/assets/_k2rzFYXw.js.br +0 -0
- package/dist/public/assets/{_HJ4l6yxN.js → _nNPOLNo7.js} +1 -1
- package/dist/public/assets/_nNPOLNo7.js.br +0 -0
- package/dist/public/assets/{_D31bJ4DY.js → _vfKZvCts.js} +1 -1
- package/dist/public/assets/_vfKZvCts.js.br +0 -0
- package/dist/public/assets/{_DK0ZyRpN.js → _wu7LU_F-.js} +1 -1
- package/dist/public/assets/_wu7LU_F-.js.br +0 -0
- package/dist/public/assets/{_TNYXBRTD.js → _x05B0wD3.js} +6 -6
- package/dist/public/assets/_x05B0wD3.js.br +0 -0
- package/dist/public/assets/app-page-DOL8nhko.css +1 -0
- package/dist/public/assets/app-page-DOL8nhko.css.br +0 -0
- package/dist/public/assets/diff-view-6DYaXCWP.css +1 -0
- package/dist/public/assets/diff-view-6DYaXCWP.css.br +0 -0
- package/dist/public/assets/new-hKsQDica.js +1 -0
- package/dist/public/assets/settings-hKsQDica.js +1 -0
- package/dist/public/assets/w-hKsQDica.js +1 -0
- package/dist/public/assets/w._-CyAQSfuD.js +1 -0
- package/dist/public/assets/w._-hKsQDica.js +1 -0
- package/package.json +1 -1
- package/dist/_DkOK1JPO.js +0 -2
- package/dist/public/assets/_1MO3zLi0.js.br +0 -0
- package/dist/public/assets/_3_osenBu.js.br +0 -0
- package/dist/public/assets/_4c6ZP_DE2.js.br +0 -0
- package/dist/public/assets/_8DabaQc42.js.br +0 -0
- package/dist/public/assets/_B38vzMde2.js.br +0 -0
- package/dist/public/assets/_B6HRx3mv.js.br +0 -0
- package/dist/public/assets/_B7tW52ox2.js.br +0 -0
- package/dist/public/assets/_BE6VqQVA.js.br +0 -0
- package/dist/public/assets/_BRgDp6dq2.js.br +0 -0
- package/dist/public/assets/_BVR2bnH7.js.br +0 -0
- package/dist/public/assets/_BW-Z7z3K.js.br +0 -0
- package/dist/public/assets/_BXoOogd_.js.br +0 -0
- package/dist/public/assets/_B_hYt6WL.js.br +0 -0
- package/dist/public/assets/_B_iQ_vXs.js.br +0 -0
- package/dist/public/assets/_BcLoolnz2.js.br +0 -0
- package/dist/public/assets/_BdWFr75M2.js.br +0 -0
- package/dist/public/assets/_BfKlqNx9.js.br +0 -0
- package/dist/public/assets/_BjHYQyTW2.js.br +0 -0
- package/dist/public/assets/_Bl32WbGR.js.br +0 -0
- package/dist/public/assets/_BneLpkUj.js.br +0 -0
- package/dist/public/assets/_BpQROnKB.js.br +0 -0
- package/dist/public/assets/_BpaSM2Ut.js.br +0 -0
- package/dist/public/assets/_BqEupx9T.js.br +0 -0
- package/dist/public/assets/_BrHg1vmp2.js.br +0 -0
- package/dist/public/assets/_BuVTK0nK.js.br +0 -0
- package/dist/public/assets/_BxhMnvoI2.js.br +0 -0
- package/dist/public/assets/_Byj_kDek2.js.br +0 -0
- package/dist/public/assets/_C669lqE1.js.br +0 -0
- package/dist/public/assets/_CN4RWjdg.js.br +0 -0
- package/dist/public/assets/_CQ8XIG32.js.br +0 -0
- package/dist/public/assets/_CR7jZl_o.js.br +0 -0
- package/dist/public/assets/_CR_N8Jxw2.js.br +0 -0
- package/dist/public/assets/_CUy49fiW.js.br +0 -0
- package/dist/public/assets/_CVI5Z1ap.js.br +0 -0
- package/dist/public/assets/_CXQb7FHW.js.br +0 -0
- package/dist/public/assets/_CXbfNROI.js.br +0 -0
- package/dist/public/assets/_C_GySFna.js.br +0 -0
- package/dist/public/assets/_Cb4BQ87V2.js.br +0 -0
- package/dist/public/assets/_CekDvoOm2.js.br +0 -0
- package/dist/public/assets/_CiyoX76R.js.br +0 -0
- package/dist/public/assets/_D31bJ4DY.js.br +0 -0
- package/dist/public/assets/_D7MBKQAt.js.br +0 -0
- package/dist/public/assets/_D8NtarGl2.js.br +0 -0
- package/dist/public/assets/_DHQRi0uw2.js.br +0 -0
- package/dist/public/assets/_DHjOV863.js.br +0 -0
- package/dist/public/assets/_DIFhW7d2.js.br +0 -0
- package/dist/public/assets/_DK0ZyRpN.js.br +0 -0
- package/dist/public/assets/_DLV-pFpn.js.br +0 -0
- package/dist/public/assets/_DOiBi4I0.js.br +0 -0
- package/dist/public/assets/_DRSO79wd.js.br +0 -0
- package/dist/public/assets/_DbJsbj5D.js.br +0 -0
- package/dist/public/assets/_DboFmLJ5.js.br +0 -0
- package/dist/public/assets/_DfayPfGn.js.br +0 -0
- package/dist/public/assets/_DlKqfl3x.js.br +0 -0
- package/dist/public/assets/_Drl9WI2Q.js.br +0 -0
- package/dist/public/assets/_DtvBiqKq.js.br +0 -0
- package/dist/public/assets/_DymTiS2l2.js.br +0 -0
- package/dist/public/assets/_ELEfU1ZJ2.js.br +0 -0
- package/dist/public/assets/_En2Jcy8J.js.br +0 -0
- package/dist/public/assets/_HJ4l6yxN.js.br +0 -0
- package/dist/public/assets/_IuMur5Ym.js.br +0 -0
- package/dist/public/assets/_LIg4gQDB2.js.br +0 -0
- package/dist/public/assets/_Q62npO-T.js.br +0 -0
- package/dist/public/assets/_RRBED5IT.js.br +0 -0
- package/dist/public/assets/_TNYXBRTD.js.br +0 -0
- package/dist/public/assets/_YkjHoUJ2.js.br +0 -0
- package/dist/public/assets/_ZPETJBJo2.js.br +0 -0
- package/dist/public/assets/_c1k15BL72.js.br +0 -0
- package/dist/public/assets/_gzI_71qk.js.br +0 -0
- package/dist/public/assets/_oLZchIMS.js.br +0 -0
- package/dist/public/assets/_sRlPXrhp2.js.br +0 -0
- package/dist/public/assets/_t1bRY80J.js.br +0 -0
- package/dist/public/assets/app-page-D2MGNs24.css +0 -1
- package/dist/public/assets/app-page-D2MGNs24.css.br +0 -0
- package/dist/public/assets/diff-view-UG7NdbBG.css +0 -1
- package/dist/public/assets/diff-view-UG7NdbBG.css.br +0 -0
- package/dist/public/assets/new-BAusPvMv.js +0 -1
- package/dist/public/assets/settings-BAusPvMv.js +0 -1
- package/dist/public/assets/w-BAusPvMv.js +0 -1
- package/dist/public/assets/w._-BAusPvMv.js +0 -1
- package/dist/public/assets/w._-CuEUWcak.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BdPU13C_.js";
|
|
3
|
+
import { $ as _dynamic_tag, A as btnLg, At as withPageAssets, B as _attr, C as toast_default, Ct as _subscribe, D as repoLabel, Dt as _try, E as parseRepoUrl, Et as _trailers, F as inputLg, G as _attr_or, I as metaTrunc, J as _attrs, K as _attr_select_value, L as phase, N as iconBtnRow, O as repoWebUrl$1, Ot as _var, P as iconBtnXs, Q as _content_resume, R as tone, S as workspaceTab, St as _set_serialize_reason, T as icon_base_default, Tt as _to_text, U as _attr_input_value, V as _attr_class, W as _attr_option_value, X as _await, Y as _attrs_partial, Z as _content, _t as _scope_with_id, a as rankRepos, at as _flush_head, b as sideNavOpen, bt as _serialize_guard, c as icon_refresh_default, ct as _hoist_read_error, d as sectionCount$1, dt as _if, ft as _peek_scope_id, gt as _scope_reason, ht as _scope_id, it as _existing_scope, j as btnSm, jt as writeScope, k as setPrimaryHost, kt as attrTag, l as iconBtn$2, lt as _html, mt as _resume_branch, n as findInput, nt as _el_resume, o as icon_search_default, ot as _for_of, pt as _resume, q as _attr_style, r as icon_sidebar_default, rt as _escape, s as icon_back_default, st as _hoist, t as findIconBtn, tt as _el_read_error, u as row, ut as _id, v as setTheme, vt as _script, w as icon_xmark_default, wt as _template, x as theme, xt as _serialize_if, y as setWorkspaceTab, yt as _sep, z as $global } from "./_CoU5siEE.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3357,12 +3357,26 @@ function renderParts(g, parts) {
|
|
|
3357
3357
|
var _layout_default = _template("a", (input) => {
|
|
3358
3358
|
const $scope0_reason = _scope_reason();
|
|
3359
3359
|
const $scope0_id = _scope_id();
|
|
3360
|
-
const
|
|
3360
|
+
const data = $global().data;
|
|
3361
|
+
const inst = data?.instance;
|
|
3361
3362
|
const name = inst?.name || "work";
|
|
3362
3363
|
const accent = inst?.accent || "";
|
|
3364
|
+
const themePref = data?.prefs?.theme;
|
|
3365
|
+
const theme = themePref === "light" || themePref === "dark" ? themePref : "system";
|
|
3363
3366
|
const iconHref = `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`;
|
|
3364
|
-
_html(`<!doctype html><html lang=en${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"
|
|
3365
|
-
|
|
3367
|
+
_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">`);
|
|
3368
|
+
if (theme === "light") {
|
|
3369
|
+
_scope_id();
|
|
3370
|
+
_html(`<meta name=theme-color${_attr_or("content", accent, " content=#fafafa")}>`);
|
|
3371
|
+
} else if (theme === "dark") {
|
|
3372
|
+
_scope_id();
|
|
3373
|
+
_html(`<meta name=theme-color${_attr_or("content", accent, " content=#131316")}>`);
|
|
3374
|
+
} else {
|
|
3375
|
+
_scope_id();
|
|
3376
|
+
_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")}>`);
|
|
3377
|
+
}
|
|
3378
|
+
_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 href=/apple-touch-icon.png><meta name=apple-mobile-web-app-title${_attr("content", name)}><title>${_escape(name)}</title>${_flush_head()}</head><body>`);
|
|
3379
|
+
_dynamic_tag($scope0_id, "f", input.content, {}, 0, 0, _serialize_guard($scope0_reason, 0));
|
|
3366
3380
|
_trailers("</body></html>");
|
|
3367
3381
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
|
|
3368
3382
|
}, 1);
|
|
@@ -3394,6 +3408,40 @@ function coalesce(fn) {
|
|
|
3394
3408
|
};
|
|
3395
3409
|
}
|
|
3396
3410
|
//#endregion
|
|
3411
|
+
//#region src/client/theme.ts
|
|
3412
|
+
var LIGHT_CHROME = "#fafafa";
|
|
3413
|
+
var DARK_CHROME = "#131316";
|
|
3414
|
+
/** Force light/dark, or clear to follow the OS. The layout declares
|
|
3415
|
+
* `:root[data-theme=…] { color-scheme: … }`; native `light-dark()` and the
|
|
3416
|
+
* bundler's polyfill both key off that. */
|
|
3417
|
+
function applyTheme(mode) {
|
|
3418
|
+
if (typeof document === "undefined") return;
|
|
3419
|
+
const root = document.documentElement;
|
|
3420
|
+
if (mode === "system") root.removeAttribute("data-theme");
|
|
3421
|
+
else root.setAttribute("data-theme", mode);
|
|
3422
|
+
syncThemeColorMetas(mode, root.style.getPropertyValue("--accent").trim() || "");
|
|
3423
|
+
}
|
|
3424
|
+
/** Rebuild theme-color metas for the current force (or both media queries
|
|
3425
|
+
* when following the system). Accent, when set, still paints the chrome. */
|
|
3426
|
+
function syncThemeColorMetas(mode, accent) {
|
|
3427
|
+
if (typeof document === "undefined") return;
|
|
3428
|
+
const head = document.head;
|
|
3429
|
+
for (const meta of head.querySelectorAll("meta[name=\"theme-color\"]")) meta.remove();
|
|
3430
|
+
const add = (content, media) => {
|
|
3431
|
+
const meta = document.createElement("meta");
|
|
3432
|
+
meta.name = "theme-color";
|
|
3433
|
+
meta.content = content;
|
|
3434
|
+
if (media) meta.media = media;
|
|
3435
|
+
head.append(meta);
|
|
3436
|
+
};
|
|
3437
|
+
if (mode === "light") add(accent || LIGHT_CHROME);
|
|
3438
|
+
else if (mode === "dark") add(accent || DARK_CHROME);
|
|
3439
|
+
else {
|
|
3440
|
+
add(accent || LIGHT_CHROME, "(prefers-color-scheme: light)");
|
|
3441
|
+
add(accent || DARK_CHROME, "(prefers-color-scheme: dark)");
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
//#endregion
|
|
3397
3445
|
//#region src/client/instance.ts
|
|
3398
3446
|
/** Curated hues (mirrors server/instance.ts ACCENT_PRESETS; the browser
|
|
3399
3447
|
* bundle must not import server code). Any `#rrggbb` is still accepted. */
|
|
@@ -3442,30 +3490,30 @@ function applyInstance(inst) {
|
|
|
3442
3490
|
document.title = inst.name || "work";
|
|
3443
3491
|
const icon = document.querySelector("link[rel=\"icon\"]");
|
|
3444
3492
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
3445
|
-
|
|
3493
|
+
syncThemeColorMetas(theme(), inst.accent || "");
|
|
3446
3494
|
}
|
|
3447
3495
|
//#endregion
|
|
3448
3496
|
//#region src/tags/settings-page.css.ts
|
|
3449
|
-
var content$2 = "_ca
|
|
3450
|
-
var agentGrid = "_ce
|
|
3451
|
-
var toolGrid = "_co
|
|
3497
|
+
var content$2 = "_ca _bB _bC";
|
|
3498
|
+
var agentGrid = "_ce _bm";
|
|
3499
|
+
var toolGrid = "_co _bm";
|
|
3452
3500
|
//#endregion
|
|
3453
3501
|
//#region src/tags/page-head.marko
|
|
3454
3502
|
var page_head_default = _template("q", (input) => {
|
|
3455
3503
|
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);
|
|
3456
3504
|
const $scope0_id = _scope_id();
|
|
3457
|
-
_html(`<header${_attr_class("
|
|
3505
|
+
_html(`<header${_attr_class("_bD")}>`);
|
|
3458
3506
|
_if(() => {
|
|
3459
3507
|
if (input.backHref) {
|
|
3460
3508
|
const $scope1_id = _scope_id();
|
|
3461
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3509
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3462
3510
|
icon_back_default({ size: 16 });
|
|
3463
3511
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3464
3512
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3465
3513
|
return 0;
|
|
3466
3514
|
} else if (input.onBack) {
|
|
3467
3515
|
const $scope2_id = _scope_id();
|
|
3468
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3516
|
+
_html(`<button${_attr_class([iconBtnRow, "_cP"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3469
3517
|
icon_back_default({ size: 16 });
|
|
3470
3518
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3471
3519
|
_script($scope2_id, "q0");
|
|
@@ -3473,11 +3521,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3473
3521
|
return 1;
|
|
3474
3522
|
}
|
|
3475
3523
|
}, $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);
|
|
3476
|
-
_html(`<div${_attr_class("
|
|
3524
|
+
_html(`<div${_attr_class("_bF")}><h1${_attr("id", input.titleId)}${_attr_class("_bE")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3477
3525
|
_if(() => {
|
|
3478
3526
|
if (input.meta) {
|
|
3479
3527
|
const $scope3_id = _scope_id();
|
|
3480
|
-
_html(`<p${_attr_class("
|
|
3528
|
+
_html(`<p${_attr_class("_bG")}>`);
|
|
3481
3529
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3482
3530
|
_html("</p>");
|
|
3483
3531
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3488,7 +3536,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3488
3536
|
_if(() => {
|
|
3489
3537
|
if (input.actions) {
|
|
3490
3538
|
const $scope4_id = _scope_id();
|
|
3491
|
-
_html(`<div${_attr_class("
|
|
3539
|
+
_html(`<div${_attr_class("_bH")}>`);
|
|
3492
3540
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3493
3541
|
_html("</div>");
|
|
3494
3542
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3556,7 +3604,7 @@ var icon_agent_default = _template("E", (input) => {
|
|
|
3556
3604
|
n: $badge__closures
|
|
3557
3605
|
});
|
|
3558
3606
|
});
|
|
3559
|
-
var usageNote = "
|
|
3607
|
+
var usageNote = "_eR _S";
|
|
3560
3608
|
//#endregion
|
|
3561
3609
|
//#region src/tags/usage-meters.marko
|
|
3562
3610
|
function duration(ms) {
|
|
@@ -3580,11 +3628,11 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3580
3628
|
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);
|
|
3581
3629
|
const $scope0_id = _scope_id();
|
|
3582
3630
|
const agent = input.agent;
|
|
3583
|
-
_html(`<div${_attr_class(["
|
|
3631
|
+
_html(`<div${_attr_class(["_eL", { ["_eM"]: input.hideName }])}><div${_attr_class("_eN")}>`);
|
|
3584
3632
|
_if(() => {
|
|
3585
3633
|
if (!input.hideName) {
|
|
3586
3634
|
const $scope1_id = _scope_id();
|
|
3587
|
-
_html(`<strong${_attr_class("
|
|
3635
|
+
_html(`<strong${_attr_class("_e6")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3588
3636
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3589
3637
|
return 0;
|
|
3590
3638
|
}
|
|
@@ -3592,7 +3640,7 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3592
3640
|
_if(() => {
|
|
3593
3641
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3594
3642
|
const $scope2_id = _scope_id();
|
|
3595
|
-
_html(`<span${_attr_class("
|
|
3643
|
+
_html(`<span${_attr_class("_eO")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3596
3644
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3597
3645
|
return 0;
|
|
3598
3646
|
}
|
|
@@ -3600,19 +3648,19 @@ var usage_meters_default = _template("B", (input) => {
|
|
|
3600
3648
|
_if(() => {
|
|
3601
3649
|
if (agent.stale_seconds != null) {
|
|
3602
3650
|
const $scope3_id = _scope_id();
|
|
3603
|
-
_html(`<span${_attr_class("
|
|
3651
|
+
_html(`<span${_attr_class("_eP")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3604
3652
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3605
3653
|
return 0;
|
|
3606
3654
|
}
|
|
3607
3655
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3608
|
-
_html(`</div><div${_attr_class(["
|
|
3656
|
+
_html(`</div><div${_attr_class(["_eQ", { ["_e7"]: agent.stale_seconds != null }])}>`);
|
|
3609
3657
|
_for_of(agent.windows || [], (win) => {
|
|
3610
3658
|
const $scope4_id = _scope_id();
|
|
3611
3659
|
const pct = pctText$1(win.used_percent);
|
|
3612
3660
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3613
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3614
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3615
|
-
_html(`<div${_attr_class("
|
|
3661
|
+
const fillClass = win.used_percent >= 90 ? "_eZ" : win.used_percent >= 70 ? "_eY" : win.used_percent >= 40 ? "_eX" : "_eW";
|
|
3662
|
+
const pctClass = win.used_percent >= 90 ? "_e4" : win.used_percent >= 70 ? "_e3" : win.used_percent >= 40 ? "_e2" : "_e1";
|
|
3663
|
+
_html(`<div${_attr_class("_eS")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eT")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eU")}><span${_attr_class(["_eV", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_e0", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e5")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3616
3664
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3617
3665
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3618
3666
|
_if(() => {
|
|
@@ -3671,7 +3719,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3671
3719
|
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;
|
|
3672
3720
|
const dismissable = input.dismissable !== false;
|
|
3673
3721
|
let open = input.open;
|
|
3674
|
-
_html(`<dialog${_attr_class(["
|
|
3722
|
+
_html(`<dialog${_attr_class(["_g2", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3675
3723
|
...htmlInput,
|
|
3676
3724
|
open: null
|
|
3677
3725
|
}, {
|
|
@@ -3681,20 +3729,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
3681
3729
|
closedby: 1,
|
|
3682
3730
|
"on-cancel": 1,
|
|
3683
3731
|
"on-close": 1
|
|
3684
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3732
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g3")}>`);
|
|
3685
3733
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3686
3734
|
_html("</div>");
|
|
3687
3735
|
_if(() => {
|
|
3688
3736
|
if (footer) {
|
|
3689
3737
|
const $scope1_id = _scope_id();
|
|
3690
|
-
_html(`<form method=dialog${_attr_class("
|
|
3738
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
3691
3739
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3692
3740
|
_html("</form>");
|
|
3693
3741
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3694
3742
|
return 0;
|
|
3695
3743
|
} else if (input.openChange) {
|
|
3696
3744
|
const $scope2_id = _scope_id();
|
|
3697
|
-
_html(`<form method=dialog${_attr_class("
|
|
3745
|
+
_html(`<form method=dialog${_attr_class("_g4")}>`);
|
|
3698
3746
|
dialog_close_default({
|
|
3699
3747
|
class: ["_o", "_p"],
|
|
3700
3748
|
content: _content("o0", () => {
|
|
@@ -3753,7 +3801,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
3753
3801
|
const $childScope = _peek_scope_id();
|
|
3754
3802
|
modal_view_default({
|
|
3755
3803
|
label: input.label,
|
|
3756
|
-
class: "
|
|
3804
|
+
class: "_eJ",
|
|
3757
3805
|
open: input.open,
|
|
3758
3806
|
openChange: input.openChange,
|
|
3759
3807
|
"aria-labelledby": titleId,
|
|
@@ -3776,7 +3824,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
3776
3824
|
content: _content("r6", () => {
|
|
3777
3825
|
_scope_reason();
|
|
3778
3826
|
const $scope2_id = _scope_id();
|
|
3779
|
-
_html(`<h2${_attr_class("
|
|
3827
|
+
_html(`<h2${_attr_class("_eK")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
3780
3828
|
value = _new_value;
|
|
3781
3829
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3782
3830
|
_script($scope2_id, "r4");
|
|
@@ -3823,13 +3871,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3823
3871
|
const $setup2__closures = /* @__PURE__ */ new Set();
|
|
3824
3872
|
const $refreshing__closures = /* @__PURE__ */ new Set();
|
|
3825
3873
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
3874
|
+
const $self_latest__closures = /* @__PURE__ */ new Set();
|
|
3875
|
+
const $self_version__closures = /* @__PURE__ */ new Set();
|
|
3826
3876
|
const $active__closures = /* @__PURE__ */ new Set();
|
|
3827
3877
|
const $input_preferred__closures = /* @__PURE__ */ new Set();
|
|
3828
3878
|
const $accountsFor2__closures = /* @__PURE__ */ new Set();
|
|
3829
3879
|
const $authCodes__closures = /* @__PURE__ */ new Set();
|
|
3830
3880
|
const $confirmingRemove__closures = /* @__PURE__ */ new Set();
|
|
3831
|
-
const $self_latest__closures = /* @__PURE__ */ new Set();
|
|
3832
|
-
const $self_version__closures = /* @__PURE__ */ new Set();
|
|
3833
3881
|
const $self_install__closures = /* @__PURE__ */ new Set();
|
|
3834
3882
|
const $hits__closures = /* @__PURE__ */ new Set();
|
|
3835
3883
|
const $query__closures = /* @__PURE__ */ new Set();
|
|
@@ -3848,35 +3896,42 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3848
3896
|
let hits = null;
|
|
3849
3897
|
let self = null;
|
|
3850
3898
|
let selfUpdating = false;
|
|
3899
|
+
let themeMode = theme();
|
|
3851
3900
|
let searching = false;
|
|
3852
3901
|
const searchTimer = { id: 0 };
|
|
3902
|
+
const setThemeMode = _resume((mode) => {
|
|
3903
|
+
themeMode = mode;
|
|
3904
|
+
setTheme(mode);
|
|
3905
|
+
applyTheme(mode);
|
|
3906
|
+
}, "u5", $scope0_id);
|
|
3907
|
+
const selfUpdatePending = !!(self && !selfUpdating && self.install !== "source" && self.latest && self.latest !== self.version);
|
|
3853
3908
|
const applySetup = _resume((s) => {
|
|
3854
3909
|
setup = s;
|
|
3855
3910
|
lastSetup = s;
|
|
3856
3911
|
setPrimaryHost(s.github);
|
|
3857
3912
|
input.setupChange?.(s);
|
|
3858
|
-
}, "
|
|
3913
|
+
}, "u6", $scope0_id);
|
|
3859
3914
|
const syncAgents = _resume(async () => {
|
|
3860
3915
|
try {
|
|
3861
3916
|
const snap = await api$6("/api/settings");
|
|
3862
3917
|
input.agentsChange?.(snap.agents);
|
|
3863
3918
|
if (snap.preferredAgent !== input.preferred) input.preferredChange?.(snap.preferredAgent);
|
|
3864
3919
|
} catch {}
|
|
3865
|
-
}, "
|
|
3920
|
+
}, "u7", $scope0_id);
|
|
3866
3921
|
const loadSetup = _resume(async (refresh) => {
|
|
3867
3922
|
try {
|
|
3868
3923
|
applySetup(await api$6(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
3869
3924
|
} catch (err) {
|
|
3870
3925
|
error = String(err.message || err);
|
|
3871
3926
|
}
|
|
3872
|
-
}, "
|
|
3927
|
+
}, "u8", $scope0_id);
|
|
3873
3928
|
const loadSelf = _resume(async (refresh) => {
|
|
3874
3929
|
try {
|
|
3875
3930
|
const info = await api$6(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
3876
3931
|
self = info;
|
|
3877
3932
|
if (info.updating) selfUpdating = true;
|
|
3878
3933
|
} catch {}
|
|
3879
|
-
}, "
|
|
3934
|
+
}, "u9", $scope0_id);
|
|
3880
3935
|
const updateSelf = _resume(async () => {
|
|
3881
3936
|
if (!self || selfUpdating) return;
|
|
3882
3937
|
selfUpdating = true;
|
|
@@ -3900,7 +3955,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3900
3955
|
else selfUpdating = false;
|
|
3901
3956
|
};
|
|
3902
3957
|
setTimeout(tick, 4e3);
|
|
3903
|
-
}, "
|
|
3958
|
+
}, "u10", $scope0_id);
|
|
3904
3959
|
const loadUsage = _resume(async (refresh) => {
|
|
3905
3960
|
try {
|
|
3906
3961
|
usage = await api$6(`/api/usage${refresh ? "?refresh" : ""}`);
|
|
@@ -3908,23 +3963,23 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3908
3963
|
usage = { error: String(err.message || err) };
|
|
3909
3964
|
}
|
|
3910
3965
|
lastUsage = usage;
|
|
3911
|
-
}, "
|
|
3966
|
+
}, "u11", $scope0_id);
|
|
3912
3967
|
const refresh = _resume(async () => {
|
|
3913
3968
|
refreshing = true;
|
|
3914
3969
|
await Promise.all([loadSetup(true), loadSelf(true)]);
|
|
3915
3970
|
refreshing = false;
|
|
3916
|
-
}, "
|
|
3971
|
+
}, "u12", $scope0_id);
|
|
3917
3972
|
const refreshUsage = _resume(async () => {
|
|
3918
3973
|
usageRefreshing = true;
|
|
3919
3974
|
await loadUsage(true);
|
|
3920
3975
|
usageRefreshing = false;
|
|
3921
|
-
}, "
|
|
3976
|
+
}, "u13", $scope0_id);
|
|
3922
3977
|
const setActive = _resume((id, line) => {
|
|
3923
3978
|
const next = new Map(active);
|
|
3924
3979
|
if (line === null) next.delete(id);
|
|
3925
3980
|
else next.set(id, line);
|
|
3926
3981
|
active = next;
|
|
3927
|
-
}, "
|
|
3982
|
+
}, "u14", $scope0_id);
|
|
3928
3983
|
const run = _resume(async (id, action, version) => {
|
|
3929
3984
|
if (active.has(id)) return;
|
|
3930
3985
|
error = null;
|
|
@@ -3955,7 +4010,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3955
4010
|
watcher.stop();
|
|
3956
4011
|
setActive(id, null);
|
|
3957
4012
|
}
|
|
3958
|
-
}, "
|
|
4013
|
+
}, "u15", $scope0_id);
|
|
3959
4014
|
const changeHost = _resume(async (host, remove) => {
|
|
3960
4015
|
hostBusy = true;
|
|
3961
4016
|
error = null;
|
|
@@ -3974,10 +4029,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3974
4029
|
} finally {
|
|
3975
4030
|
hostBusy = false;
|
|
3976
4031
|
}
|
|
3977
|
-
}, "
|
|
4032
|
+
}, "u16", $scope0_id);
|
|
3978
4033
|
const runEach = _resume(async (ids, action) => {
|
|
3979
4034
|
for (const id of ids) await run(id, action);
|
|
3980
|
-
}, "
|
|
4035
|
+
}, "u17", $scope0_id);
|
|
3981
4036
|
const setPreferred = _resume(async (agent) => {
|
|
3982
4037
|
input.preferredChange?.(agent);
|
|
3983
4038
|
try {
|
|
@@ -3989,7 +4044,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
3989
4044
|
} catch (err) {
|
|
3990
4045
|
error = String(err.message || err);
|
|
3991
4046
|
}
|
|
3992
|
-
}, "
|
|
4047
|
+
}, "u18", $scope0_id);
|
|
3993
4048
|
const saveTimer = { id: 0 };
|
|
3994
4049
|
const setInstance = _resume((patch) => {
|
|
3995
4050
|
const next = {
|
|
@@ -4014,7 +4069,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4014
4069
|
error = String(err.message || err);
|
|
4015
4070
|
}
|
|
4016
4071
|
}, 300);
|
|
4017
|
-
}, "
|
|
4072
|
+
}, "u19", $scope0_id);
|
|
4018
4073
|
const setEnabled = _resume(async (id, on) => {
|
|
4019
4074
|
if (!setup) return;
|
|
4020
4075
|
const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
|
|
@@ -4041,7 +4096,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4041
4096
|
} catch (err) {
|
|
4042
4097
|
error = String(err.message || err);
|
|
4043
4098
|
}
|
|
4044
|
-
}, "
|
|
4099
|
+
}, "u20", $scope0_id);
|
|
4045
4100
|
const search = _resume((q) => {
|
|
4046
4101
|
query = q;
|
|
4047
4102
|
clearTimeout(searchTimer.id);
|
|
@@ -4062,22 +4117,22 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4062
4117
|
}
|
|
4063
4118
|
}, 250);
|
|
4064
4119
|
}, "u0", $scope0_id);
|
|
4065
|
-
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "
|
|
4120
|
+
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "u21");
|
|
4066
4121
|
const tools = setup?.tools || [];
|
|
4067
4122
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
4068
4123
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
4069
4124
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
4070
4125
|
const families = setup?.agents || [];
|
|
4071
4126
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
4072
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
4073
|
-
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "
|
|
4127
|
+
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "u22", $scope0_id);
|
|
4128
|
+
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "u23", $scope0_id);
|
|
4074
4129
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
4075
4130
|
const titleId = _id();
|
|
4076
4131
|
const agentsId = _id();
|
|
4077
4132
|
const appearanceId = _id();
|
|
4078
4133
|
const githubId = _id();
|
|
4079
4134
|
const machineId = _id();
|
|
4080
|
-
_html(`<div${_attr_class("
|
|
4135
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$2)}>`);
|
|
4081
4136
|
_set_serialize_reason({
|
|
4082
4137
|
0: _serialize_guard($scope0_reason, 3),
|
|
4083
4138
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4089,20 +4144,20 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4089
4144
|
title: "Settings",
|
|
4090
4145
|
titleId,
|
|
4091
4146
|
backHref: input.backHref,
|
|
4092
|
-
onBack: input.onExit && _resume(() => input.onExit?.(), "
|
|
4093
|
-
meta: attrTag({ content: _content_resume("
|
|
4147
|
+
onBack: input.onExit && _resume(() => input.onExit?.(), "u24", $scope0_id),
|
|
4148
|
+
meta: attrTag({ content: _content_resume("u29", () => {
|
|
4094
4149
|
_scope_reason();
|
|
4095
4150
|
const $scope5_id = _scope_id();
|
|
4096
4151
|
_if(() => {
|
|
4097
4152
|
if (!setup) {
|
|
4098
|
-
const $
|
|
4153
|
+
const $scope50_id = _scope_id();
|
|
4099
4154
|
_html("Checking this machine…");
|
|
4100
|
-
writeScope($
|
|
4155
|
+
writeScope($scope50_id, {});
|
|
4101
4156
|
return 0;
|
|
4102
4157
|
} else if (setup.ready) {
|
|
4103
|
-
const $
|
|
4158
|
+
const $scope51_id = _scope_id();
|
|
4104
4159
|
_html(`<span${_attr_class("_cc")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4105
|
-
writeScope($
|
|
4160
|
+
writeScope($scope51_id, {});
|
|
4106
4161
|
return 1;
|
|
4107
4162
|
} else {
|
|
4108
4163
|
const $scope6_id = _scope_id();
|
|
@@ -4114,7 +4169,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4114
4169
|
_subscribe($setup2__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
4115
4170
|
_resume_branch($scope5_id);
|
|
4116
4171
|
}, $scope0_id) }),
|
|
4117
|
-
actions: attrTag({ content: _content_resume("
|
|
4172
|
+
actions: attrTag({ content: _content_resume("u30", () => {
|
|
4118
4173
|
_scope_reason();
|
|
4119
4174
|
const $scope10_id = _scope_id();
|
|
4120
4175
|
_html(`<button${_attr_class(iconBtnRow)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -4125,7 +4180,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4125
4180
|
class: refreshing && "_E"
|
|
4126
4181
|
});
|
|
4127
4182
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4128
|
-
_script($scope10_id, "
|
|
4183
|
+
_script($scope10_id, "u28");
|
|
4129
4184
|
_subscribe($refreshing__closures, writeScope($scope10_id, {
|
|
4130
4185
|
_: _scope_with_id($scope0_id),
|
|
4131
4186
|
b: _existing_scope($childScope)
|
|
@@ -4140,8 +4195,8 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4140
4195
|
placement: "inline",
|
|
4141
4196
|
onDismiss: _resume(function() {
|
|
4142
4197
|
error = null;
|
|
4143
|
-
}, "
|
|
4144
|
-
content: _content_resume("
|
|
4198
|
+
}, "u25", $scope8_id),
|
|
4199
|
+
content: _content_resume("u31", () => {
|
|
4145
4200
|
_scope_reason();
|
|
4146
4201
|
const $scope9_id = _scope_id();
|
|
4147
4202
|
_html(`${_escape(error)}${_el_resume($scope9_id, "a")}`);
|
|
@@ -4153,16 +4208,47 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4153
4208
|
return 0;
|
|
4154
4209
|
}
|
|
4155
4210
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
4156
|
-
|
|
4157
|
-
|
|
4211
|
+
_if(() => {
|
|
4212
|
+
if (selfUpdatePending || selfUpdating) {
|
|
4213
|
+
const $scope36_id = _scope_id();
|
|
4214
|
+
_html(`<div${_attr_class("_cF")} role=status><div${_attr_class("_cG")}>`);
|
|
4215
|
+
_if(() => {
|
|
4216
|
+
if (selfUpdating) {
|
|
4217
|
+
const $scope52_id = _scope_id();
|
|
4218
|
+
_html(`<span${_attr_class("_cH")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cI")}>The app restarts and reloads when it is done.</span>`);
|
|
4219
|
+
writeScope($scope52_id, {});
|
|
4220
|
+
return 0;
|
|
4221
|
+
} else {
|
|
4222
|
+
const $scope37_id = _scope_id();
|
|
4223
|
+
_html(`<span${_attr_class("_cH")}>Update available</span><span${_attr_class("_cI")}>v<!>${_escape(self.version)}${_el_resume($scope37_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope37_id, "d")}</span>`);
|
|
4224
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope37_id, {})));
|
|
4225
|
+
return 1;
|
|
4226
|
+
}
|
|
4227
|
+
}, $scope36_id, "b", 1, 1, 1, "</div>");
|
|
4228
|
+
_if(() => {
|
|
4229
|
+
if (!selfUpdating) {
|
|
4230
|
+
const $scope38_id = _scope_id();
|
|
4231
|
+
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope38_id, "a")}`);
|
|
4232
|
+
_script($scope38_id, "u32");
|
|
4233
|
+
_subscribe($self_latest__closures, writeScope($scope38_id, { Ce9: 1 }));
|
|
4234
|
+
return 0;
|
|
4235
|
+
}
|
|
4236
|
+
}, $scope36_id, "c", 1, 1, 1, 0, 1);
|
|
4237
|
+
_html("</div>");
|
|
4238
|
+
writeScope($scope36_id, {});
|
|
4239
|
+
return 0;
|
|
4240
|
+
}
|
|
4241
|
+
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4242
|
+
_html(`<section${_attr_class("_bj")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bk")}><h2${_attr("id", agentsId)}${_attr_class("_by")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4243
|
+
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4158
4244
|
setPreferred(v);
|
|
4159
4245
|
}, "u1", $scope0_id), () => {
|
|
4160
4246
|
_html(`<select${_attr_class(["_n", "_ch"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4161
4247
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4162
|
-
const $
|
|
4163
|
-
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($
|
|
4164
|
-
_serialize_if($scope0_reason, 4) && writeScope($
|
|
4165
|
-
}, (a) => a, $scope0_id, "
|
|
4248
|
+
const $scope53_id = _scope_id();
|
|
4249
|
+
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope53_id, "b", $sg__input_agents)}</option>${_el_resume($scope53_id, "a", $sg__input_agents)}`);
|
|
4250
|
+
_serialize_if($scope0_reason, 4) && writeScope($scope53_id, {});
|
|
4251
|
+
}, (a) => a, $scope0_id, "n", $sg__input_agents, 1, 1, "</select>", 1);
|
|
4166
4252
|
});
|
|
4167
4253
|
_html(`</span></label><button${_attr_class(iconBtn$2)} title="Refresh usage" aria-label="Refresh usage"${_attr("disabled", usageRefreshing)}>`);
|
|
4168
4254
|
_set_serialize_reason(1);
|
|
@@ -4171,26 +4257,26 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4171
4257
|
size: 14,
|
|
4172
4258
|
class: usageRefreshing && "_E"
|
|
4173
4259
|
});
|
|
4174
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
4260
|
+
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class(agentGrid)}>`);
|
|
4175
4261
|
_for_of(families, (a) => {
|
|
4176
4262
|
const $scope1_id = _scope_id();
|
|
4177
4263
|
const lone = a.instances.length === 1 && a.instances[0].id === a.id ? a.instances[0] : null;
|
|
4178
4264
|
const rows = lone ? [] : a.instances;
|
|
4179
4265
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4180
4266
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4181
|
-
_html(`<li${_attr_class(["
|
|
4267
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
|
|
4182
4268
|
_set_serialize_reason(12);
|
|
4183
4269
|
const $childScope4 = _peek_scope_id();
|
|
4184
4270
|
icon_agent_default({
|
|
4185
4271
|
agent: a.id,
|
|
4186
4272
|
size: 18
|
|
4187
4273
|
});
|
|
4188
|
-
_html(`<div${_attr_class("
|
|
4274
|
+
_html(`<div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class("_bq")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4189
4275
|
_if(() => {
|
|
4190
4276
|
if (lone && input.preferred === lone.id) {
|
|
4191
|
-
const $
|
|
4277
|
+
const $scope54_id = _scope_id();
|
|
4192
4278
|
_html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
|
|
4193
|
-
writeScope($
|
|
4279
|
+
writeScope($scope54_id, {});
|
|
4194
4280
|
return 0;
|
|
4195
4281
|
}
|
|
4196
4282
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -4202,32 +4288,32 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4202
4288
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4203
4289
|
return 0;
|
|
4204
4290
|
} else if (!a.installed) {
|
|
4205
|
-
const $
|
|
4206
|
-
_html(`<span${_attr_class("
|
|
4207
|
-
writeScope($
|
|
4291
|
+
const $scope55_id = _scope_id();
|
|
4292
|
+
_html(`<span${_attr_class("_bs")}>Not installed</span>`);
|
|
4293
|
+
writeScope($scope55_id, {});
|
|
4208
4294
|
return 1;
|
|
4209
4295
|
}
|
|
4210
4296
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
4211
4297
|
_html("</div>");
|
|
4212
4298
|
_if(() => {
|
|
4213
4299
|
if (!a.installed && !active.has(a.id)) {
|
|
4214
|
-
const $
|
|
4215
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
4216
|
-
_script($
|
|
4217
|
-
writeScope($
|
|
4300
|
+
const $scope43_id = _scope_id();
|
|
4301
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope43_id, "a")}`);
|
|
4302
|
+
_script($scope43_id, "u33");
|
|
4303
|
+
writeScope($scope43_id, {});
|
|
4218
4304
|
return 0;
|
|
4219
4305
|
}
|
|
4220
4306
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
4221
4307
|
_if(() => {
|
|
4222
4308
|
if (lone) {
|
|
4223
|
-
const $
|
|
4309
|
+
const $scope47_id = _scope_id();
|
|
4224
4310
|
_html(`<button${_attr_class([
|
|
4225
4311
|
"_I",
|
|
4226
4312
|
"_K",
|
|
4227
4313
|
{ [tone.ok]: lone.enabled }
|
|
4228
|
-
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($
|
|
4229
|
-
_script($
|
|
4230
|
-
writeScope($
|
|
4314
|
+
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope47_id, "b")}</button>${_el_resume($scope47_id, "a")}`);
|
|
4315
|
+
_script($scope47_id, "u34");
|
|
4316
|
+
writeScope($scope47_id, {});
|
|
4231
4317
|
return 0;
|
|
4232
4318
|
}
|
|
4233
4319
|
}, $scope1_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -4249,9 +4335,9 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4249
4335
|
_html(`<span${_attr_class(["_cm", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4250
4336
|
_if(() => {
|
|
4251
4337
|
if (input.preferred === inst.id) {
|
|
4252
|
-
const $
|
|
4338
|
+
const $scope56_id = _scope_id();
|
|
4253
4339
|
_html(`<span${_attr_class(["_I", tone.accent])}>default</span>`);
|
|
4254
|
-
writeScope($
|
|
4340
|
+
writeScope($scope56_id, {});
|
|
4255
4341
|
return 0;
|
|
4256
4342
|
}
|
|
4257
4343
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -4261,17 +4347,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4261
4347
|
{ [tone.ok]: inst.enabled }
|
|
4262
4348
|
])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
|
|
4263
4349
|
_for_of(accounts, (u) => {
|
|
4264
|
-
const $
|
|
4350
|
+
const $scope57_id = _scope_id();
|
|
4265
4351
|
_set_serialize_reason(6);
|
|
4266
4352
|
const $childScope6 = _peek_scope_id();
|
|
4267
4353
|
usage_meters_default({
|
|
4268
4354
|
agent: u,
|
|
4269
4355
|
hideName: true
|
|
4270
4356
|
});
|
|
4271
|
-
writeScope($
|
|
4357
|
+
writeScope($scope57_id, { a: _existing_scope($childScope6) });
|
|
4272
4358
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
4273
4359
|
_html("</li>");
|
|
4274
|
-
_script($scope3_id, "
|
|
4360
|
+
_script($scope3_id, "u35");
|
|
4275
4361
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
4276
4362
|
m: inst?.enabled,
|
|
4277
4363
|
n: inst?.id,
|
|
@@ -4279,7 +4365,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4279
4365
|
})));
|
|
4280
4366
|
}, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
|
|
4281
4367
|
_for_of(loneAccounts, (u) => {
|
|
4282
|
-
const $
|
|
4368
|
+
const $scope58_id = _scope_id();
|
|
4283
4369
|
_html("<li>");
|
|
4284
4370
|
_set_serialize_reason(6);
|
|
4285
4371
|
const $childScope7 = _peek_scope_id();
|
|
@@ -4288,16 +4374,16 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4288
4374
|
hideName: true
|
|
4289
4375
|
});
|
|
4290
4376
|
_html("</li>");
|
|
4291
|
-
writeScope($
|
|
4377
|
+
writeScope($scope58_id, { a: _existing_scope($childScope7) });
|
|
4292
4378
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
4293
4379
|
_for_of(extraAccounts, (u) => {
|
|
4294
|
-
const $
|
|
4380
|
+
const $scope59_id = _scope_id();
|
|
4295
4381
|
_html("<li>");
|
|
4296
4382
|
_set_serialize_reason(6);
|
|
4297
4383
|
const $childScope8 = _peek_scope_id();
|
|
4298
4384
|
usage_meters_default({ agent: u });
|
|
4299
4385
|
_html("</li>");
|
|
4300
|
-
writeScope($
|
|
4386
|
+
writeScope($scope59_id, { a: _existing_scope($childScope8) });
|
|
4301
4387
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
4302
4388
|
_html("</ul>");
|
|
4303
4389
|
writeScope($scope2_id, {});
|
|
@@ -4318,40 +4404,40 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4318
4404
|
a7: extraAccounts,
|
|
4319
4405
|
c: _existing_scope($childScope4)
|
|
4320
4406
|
});
|
|
4321
|
-
}, "id", $scope0_id, "
|
|
4407
|
+
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4322
4408
|
_for_of(otherUsage, (u) => {
|
|
4323
|
-
const $
|
|
4324
|
-
_html(`<li${_attr_class(["
|
|
4409
|
+
const $scope60_id = _scope_id();
|
|
4410
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}>`);
|
|
4325
4411
|
_set_serialize_reason(6);
|
|
4326
4412
|
const $childScope9 = _peek_scope_id();
|
|
4327
4413
|
usage_meters_default({ agent: u });
|
|
4328
4414
|
_html("</li>");
|
|
4329
|
-
writeScope($
|
|
4330
|
-
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "
|
|
4415
|
+
writeScope($scope60_id, { b: _existing_scope($childScope9) });
|
|
4416
|
+
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
4331
4417
|
_html("</ul>");
|
|
4332
4418
|
_if(() => {
|
|
4333
4419
|
if (!usage && families.length) {
|
|
4334
|
-
const $
|
|
4335
|
-
_html(`<p${_attr_class("
|
|
4336
|
-
writeScope($
|
|
4420
|
+
const $scope61_id = _scope_id();
|
|
4421
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4422
|
+
writeScope($scope61_id, {});
|
|
4337
4423
|
return 0;
|
|
4338
4424
|
} else if (usage?.error) {
|
|
4339
4425
|
const $scope7_id = _scope_id();
|
|
4340
|
-
_html(`<p${_attr_class("
|
|
4426
|
+
_html(`<p${_attr_class("_bu")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4341
4427
|
writeScope($scope7_id, {});
|
|
4342
4428
|
return 1;
|
|
4343
4429
|
}
|
|
4344
|
-
}, $scope0_id, "
|
|
4345
|
-
_html(`</section><section${_attr_class("
|
|
4430
|
+
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4431
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bk")}><h2${_attr("id", githubId)}${_attr_class("_by")}>GitHub</h2></div><ul${_attr_class("_bm")}>`);
|
|
4346
4432
|
_for_of(setup?.github || [], (h) => {
|
|
4347
4433
|
const $scope12_id = _scope_id();
|
|
4348
4434
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
4349
|
-
_html(`<li${_attr_class("
|
|
4435
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class(["_bq", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "e")}</span>`);
|
|
4350
4436
|
_if(() => {
|
|
4351
4437
|
if (h.isEnterprise) {
|
|
4352
|
-
const $
|
|
4438
|
+
const $scope64_id = _scope_id();
|
|
4353
4439
|
_html(`<span${_attr_class("_I")}>Enterprise</span>`);
|
|
4354
|
-
writeScope($
|
|
4440
|
+
writeScope($scope64_id, {});
|
|
4355
4441
|
return 0;
|
|
4356
4442
|
}
|
|
4357
4443
|
}, $scope12_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -4365,17 +4451,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4365
4451
|
} else if (active.has(h.host)) {
|
|
4366
4452
|
const $scope13_id = _scope_id();
|
|
4367
4453
|
_html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4368
|
-
_subscribe($active__closures, writeScope($scope13_id, {
|
|
4454
|
+
_subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
|
|
4369
4455
|
return 1;
|
|
4370
4456
|
} else if (h.authed) {
|
|
4371
|
-
const $
|
|
4372
|
-
_html(`<span${_attr_class("
|
|
4373
|
-
writeScope($
|
|
4457
|
+
const $scope62_id = _scope_id();
|
|
4458
|
+
_html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope62_id, "b")}</span>`);
|
|
4459
|
+
writeScope($scope62_id, {});
|
|
4374
4460
|
return 2;
|
|
4375
4461
|
} else {
|
|
4376
|
-
const $
|
|
4377
|
-
_html(`<span${_attr_class("
|
|
4378
|
-
writeScope($
|
|
4462
|
+
const $scope63_id = _scope_id();
|
|
4463
|
+
_html(`<span${_attr_class("_bs")}>${_escape(h.error || "Not signed in")}${_el_resume($scope63_id, "b")}</span>`);
|
|
4464
|
+
writeScope($scope63_id, {});
|
|
4379
4465
|
return 3;
|
|
4380
4466
|
}
|
|
4381
4467
|
}, $scope12_id, "g", 1, 1, 1, 0, 1);
|
|
@@ -4385,10 +4471,10 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4385
4471
|
const $scope24_id = _scope_id();
|
|
4386
4472
|
_if(() => {
|
|
4387
4473
|
if (!h.authed) {
|
|
4388
|
-
const $
|
|
4389
|
-
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($
|
|
4390
|
-
_script($
|
|
4391
|
-
writeScope($
|
|
4474
|
+
const $scope44_id = _scope_id();
|
|
4475
|
+
_html(`<button${_attr_class(btnSm)}>Sign in</button>${_el_resume($scope44_id, "a")}`);
|
|
4476
|
+
_script($scope44_id, "u36");
|
|
4477
|
+
writeScope($scope44_id, {});
|
|
4392
4478
|
return 0;
|
|
4393
4479
|
} else {
|
|
4394
4480
|
const $scope25_id = _scope_id();
|
|
@@ -4396,7 +4482,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4396
4482
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
4397
4483
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
4398
4484
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
|
|
4399
|
-
_script($scope25_id, "
|
|
4485
|
+
_script($scope25_id, "u37");
|
|
4400
4486
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope25_id, {})));
|
|
4401
4487
|
return 1;
|
|
4402
4488
|
}
|
|
@@ -4405,27 +4491,27 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4405
4491
|
if (h.isEnterprise) {
|
|
4406
4492
|
const $scope26_id = _scope_id();
|
|
4407
4493
|
_html(`<button${_attr_class([
|
|
4408
|
-
"
|
|
4494
|
+
"_bt",
|
|
4409
4495
|
"_2",
|
|
4410
4496
|
"_3",
|
|
4411
4497
|
{ ["_q"]: confirmingRemove === h.host }
|
|
4412
4498
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
4413
4499
|
_if(() => {
|
|
4414
4500
|
if (confirmingRemove === h.host) {
|
|
4415
|
-
const $
|
|
4501
|
+
const $scope65_id = _scope_id();
|
|
4416
4502
|
_html("Forget?");
|
|
4417
|
-
writeScope($
|
|
4503
|
+
writeScope($scope65_id, {});
|
|
4418
4504
|
return 0;
|
|
4419
4505
|
} else {
|
|
4420
|
-
const $
|
|
4506
|
+
const $scope66_id = _scope_id();
|
|
4421
4507
|
icon_xmark_default({ size: 13 });
|
|
4422
|
-
writeScope($
|
|
4508
|
+
writeScope($scope66_id, {});
|
|
4423
4509
|
return 1;
|
|
4424
4510
|
}
|
|
4425
4511
|
}, $scope26_id, "a", 1, 1, 1, "</button>");
|
|
4426
|
-
_script($scope26_id, "
|
|
4512
|
+
_script($scope26_id, "u38");
|
|
4427
4513
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {
|
|
4428
|
-
|
|
4514
|
+
Ce0: 1,
|
|
4429
4515
|
Cr: 1
|
|
4430
4516
|
})));
|
|
4431
4517
|
return 0;
|
|
@@ -4444,15 +4530,15 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4444
4530
|
q: h?.error,
|
|
4445
4531
|
r: $for_content4__h_host__closures
|
|
4446
4532
|
});
|
|
4447
|
-
}, "host", $scope0_id, "
|
|
4533
|
+
}, "host", $scope0_id, "x", 1, 1, 1, "</ul>", 1);
|
|
4448
4534
|
_if(() => {
|
|
4449
4535
|
if (setup && !setup.github.length) {
|
|
4450
|
-
const $
|
|
4451
|
-
_html(`<p${_attr_class("
|
|
4452
|
-
writeScope($
|
|
4536
|
+
const $scope67_id = _scope_id();
|
|
4537
|
+
_html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4538
|
+
writeScope($scope67_id, {});
|
|
4453
4539
|
return 0;
|
|
4454
4540
|
}
|
|
4455
|
-
}, $scope0_id, "
|
|
4541
|
+
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
4456
4542
|
_if(() => {
|
|
4457
4543
|
if (setup) {
|
|
4458
4544
|
const $scope34_id = _scope_id();
|
|
@@ -4464,108 +4550,111 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4464
4550
|
_html(`<input${_attr_input_value($scope34_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
4465
4551
|
hostInput = _new_hostInput;
|
|
4466
4552
|
}, "u2", $scope34_id))}${_attr_class([inputLg, "_Y"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope34_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope34_id, "f")}</button>${_el_resume($scope34_id, "e")}</form>${_el_resume($scope34_id, "a")}`);
|
|
4467
|
-
_script($scope34_id, "
|
|
4553
|
+
_script($scope34_id, "u39");
|
|
4468
4554
|
writeScope($scope34_id, {});
|
|
4469
4555
|
return 0;
|
|
4470
4556
|
}
|
|
4471
|
-
}, $scope0_id, "
|
|
4472
|
-
_html(`</section><section${_attr_class("
|
|
4557
|
+
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4558
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bk")}><h2${_attr("id", machineId)}${_attr_class("_by")}>Machine</h2>`);
|
|
4473
4559
|
_if(() => {
|
|
4474
4560
|
if (missingCount) {
|
|
4475
|
-
const $
|
|
4476
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($
|
|
4477
|
-
writeScope($
|
|
4561
|
+
const $scope48_id = _scope_id();
|
|
4562
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(missingCount)}${_el_resume($scope48_id, "b")} missing</span>`);
|
|
4563
|
+
writeScope($scope48_id, {});
|
|
4478
4564
|
return 0;
|
|
4479
4565
|
}
|
|
4480
|
-
}, $scope0_id, "
|
|
4566
|
+
}, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
4481
4567
|
_if(() => {
|
|
4482
4568
|
if (outdatedIds.length) {
|
|
4483
|
-
const $
|
|
4484
|
-
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($
|
|
4485
|
-
writeScope($
|
|
4569
|
+
const $scope49_id = _scope_id();
|
|
4570
|
+
_html(`<span${_attr_class(sectionCount$1)}>${_escape(outdatedIds.length)}${_el_resume($scope49_id, "b")} outdated</span>`);
|
|
4571
|
+
writeScope($scope49_id, {});
|
|
4486
4572
|
return 0;
|
|
4487
4573
|
}
|
|
4488
|
-
}, $scope0_id, "
|
|
4574
|
+
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
4489
4575
|
_html(`<div${_attr_class("_y")}></div>`);
|
|
4490
4576
|
_if(() => {
|
|
4491
4577
|
if (outdatedIds.length > 1) {
|
|
4492
4578
|
const $scope14_id = _scope_id();
|
|
4493
4579
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope14_id, "a")}`);
|
|
4494
|
-
_script($scope14_id, "
|
|
4580
|
+
_script($scope14_id, "u40");
|
|
4495
4581
|
writeScope($scope14_id, {});
|
|
4496
4582
|
return 0;
|
|
4497
4583
|
}
|
|
4498
|
-
}, $scope0_id, "
|
|
4584
|
+
}, $scope0_id, "a6", 1, 1, 1, 0, 1);
|
|
4499
4585
|
_if(() => {
|
|
4500
4586
|
if (missingInstallable.length > 1) {
|
|
4501
4587
|
const $scope15_id = _scope_id();
|
|
4502
4588
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope15_id, "a")}`);
|
|
4503
|
-
_script($scope15_id, "
|
|
4589
|
+
_script($scope15_id, "u41");
|
|
4504
4590
|
writeScope($scope15_id, {});
|
|
4505
4591
|
return 0;
|
|
4506
4592
|
}
|
|
4507
|
-
}, $scope0_id, "
|
|
4593
|
+
}, $scope0_id, "a7", 1, 1, 1, 0, 1);
|
|
4508
4594
|
_html("</div>");
|
|
4509
4595
|
_if(() => {
|
|
4510
4596
|
if (setup && !setup.mise.installed) {
|
|
4511
4597
|
const $scope16_id = _scope_id();
|
|
4512
|
-
_html(`<p${_attr_class("
|
|
4513
|
-
_script($scope16_id, "
|
|
4598
|
+
_html(`<p${_attr_class("_bu")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope16_id, "c")}</button>${_el_resume($scope16_id, "b")}</p>`);
|
|
4599
|
+
_script($scope16_id, "u42");
|
|
4514
4600
|
writeScope($scope16_id, {});
|
|
4515
4601
|
return 0;
|
|
4516
4602
|
}
|
|
4517
|
-
}, $scope0_id, "
|
|
4603
|
+
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
4518
4604
|
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
4519
4605
|
_if(() => {
|
|
4520
4606
|
if (self) {
|
|
4521
|
-
const $
|
|
4607
|
+
const $scope39_id = _scope_id();
|
|
4522
4608
|
_html(`<li${_attr_class(row)}><span${_attr_class(["_cq", "_x"])}>work</span>`);
|
|
4523
4609
|
_if(() => {
|
|
4524
4610
|
if (selfUpdating) {
|
|
4525
|
-
const $
|
|
4611
|
+
const $scope68_id = _scope_id();
|
|
4526
4612
|
_html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
4527
|
-
writeScope($
|
|
4613
|
+
writeScope($scope68_id, {});
|
|
4528
4614
|
return 0;
|
|
4529
4615
|
} else {
|
|
4530
|
-
const $
|
|
4531
|
-
_html(`<span${_attr_class(["_x", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($
|
|
4616
|
+
const $scope40_id = _scope_id();
|
|
4617
|
+
_html(`<span${_attr_class(["_x", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope40_id, "b")}</span>`);
|
|
4532
4618
|
_if(() => {
|
|
4533
4619
|
if (self.install === "source") {
|
|
4534
|
-
const $
|
|
4620
|
+
const $scope69_id = _scope_id();
|
|
4535
4621
|
_html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
|
|
4536
|
-
writeScope($
|
|
4622
|
+
writeScope($scope69_id, {});
|
|
4537
4623
|
return 0;
|
|
4538
4624
|
} else if (self.latest && self.latest !== self.version) {
|
|
4539
|
-
const $
|
|
4540
|
-
_html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($
|
|
4541
|
-
_script($
|
|
4542
|
-
_subscribe($self_latest__closures, writeScope($
|
|
4625
|
+
const $scope41_id = _scope_id();
|
|
4626
|
+
_html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update work to v${self.latest} and restart`)}>↑ <!>${_escape(self.latest)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
4627
|
+
_script($scope41_id, "u43");
|
|
4628
|
+
_subscribe($self_latest__closures, writeScope($scope41_id, { Ce9: 3 }));
|
|
4543
4629
|
return 1;
|
|
4544
4630
|
} else if (self.latest) {
|
|
4545
|
-
const $
|
|
4631
|
+
const $scope70_id = _scope_id();
|
|
4546
4632
|
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
4547
|
-
writeScope($
|
|
4633
|
+
writeScope($scope70_id, {});
|
|
4548
4634
|
return 2;
|
|
4549
4635
|
}
|
|
4550
|
-
}, $
|
|
4551
|
-
_subscribe($
|
|
4636
|
+
}, $scope40_id, "c", 1, 1, 1, 0, 1);
|
|
4637
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope40_id, {
|
|
4638
|
+
Ce9: 2,
|
|
4639
|
+
Cea: 1
|
|
4640
|
+
}))));
|
|
4552
4641
|
return 1;
|
|
4553
4642
|
}
|
|
4554
|
-
}, $
|
|
4643
|
+
}, $scope39_id, "c");
|
|
4555
4644
|
_html(`<span${_attr_class("_y")}></span>`);
|
|
4556
4645
|
_if(() => {
|
|
4557
4646
|
if (!selfUpdating) {
|
|
4558
|
-
const $
|
|
4647
|
+
const $scope71_id = _scope_id();
|
|
4559
4648
|
_html(`<span${_attr_class("_I")}>app</span>`);
|
|
4560
|
-
writeScope($
|
|
4649
|
+
writeScope($scope71_id, {});
|
|
4561
4650
|
return 0;
|
|
4562
4651
|
}
|
|
4563
|
-
}, $
|
|
4652
|
+
}, $scope39_id, "e", 1, 1, 1, 0, 1);
|
|
4564
4653
|
_html("</li>");
|
|
4565
|
-
writeScope($
|
|
4654
|
+
writeScope($scope39_id, {});
|
|
4566
4655
|
return 0;
|
|
4567
4656
|
}
|
|
4568
|
-
}, $scope0_id, "
|
|
4657
|
+
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
4569
4658
|
_for_of(tools, (t) => {
|
|
4570
4659
|
const $scope17_id = _scope_id();
|
|
4571
4660
|
const $for_content5__t_label__closures = /* @__PURE__ */ new Set();
|
|
@@ -4578,7 +4667,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4578
4667
|
if (active.has(t.id)) {
|
|
4579
4668
|
const $scope18_id = _scope_id();
|
|
4580
4669
|
_html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope18_id, "c")}</span>`);
|
|
4581
|
-
_subscribe($active__closures, writeScope($scope18_id, {
|
|
4670
|
+
_subscribe($active__closures, writeScope($scope18_id, { Cdx: 2 }));
|
|
4582
4671
|
return 0;
|
|
4583
4672
|
} else if (t.installed) {
|
|
4584
4673
|
const $scope30_id = _scope_id();
|
|
@@ -4586,36 +4675,36 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4586
4675
|
if (t.version) {
|
|
4587
4676
|
const $scope31_id = _scope_id();
|
|
4588
4677
|
_html(`<button${_attr_class(["_cr", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope31_id, "b")}</button>${_el_resume($scope31_id, "a")}`);
|
|
4589
|
-
_script($scope31_id, "
|
|
4678
|
+
_script($scope31_id, "u44");
|
|
4590
4679
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope31_id, { Cu: 1 }))));
|
|
4591
4680
|
return 0;
|
|
4592
4681
|
} else {
|
|
4593
|
-
const $
|
|
4594
|
-
_html(`<span${_attr_class([metaTrunc, "_x"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($
|
|
4595
|
-
_subscribe($for_content5__t_path__closures, writeScope($
|
|
4682
|
+
const $scope72_id = _scope_id();
|
|
4683
|
+
_html(`<span${_attr_class([metaTrunc, "_x"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope72_id, "b")}</span>${_el_resume($scope72_id, "a")}`);
|
|
4684
|
+
_subscribe($for_content5__t_path__closures, writeScope($scope72_id, { Cx: 1 }));
|
|
4596
4685
|
return 1;
|
|
4597
4686
|
}
|
|
4598
4687
|
}, $scope30_id, "a", 1, 1, 1, 0, 1);
|
|
4599
4688
|
_if(() => {
|
|
4600
4689
|
if (outdated(t)) {
|
|
4601
|
-
const $
|
|
4602
|
-
_html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($
|
|
4603
|
-
_script($
|
|
4604
|
-
_subscribe($for_content5__t_latest__closures, writeScope($
|
|
4690
|
+
const $scope45_id = _scope_id();
|
|
4691
|
+
_html(`<button${_attr_class([btnSm, "_cs"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope45_id, "b")}</button>${_el_resume($scope45_id, "a")}`);
|
|
4692
|
+
_script($scope45_id, "u45");
|
|
4693
|
+
_subscribe($for_content5__t_latest__closures, writeScope($scope45_id, {}));
|
|
4605
4694
|
return 0;
|
|
4606
4695
|
}
|
|
4607
4696
|
}, $scope30_id, "b", 1, 1, 1, 0, 1);
|
|
4608
4697
|
writeScope($scope30_id, {});
|
|
4609
4698
|
return 1;
|
|
4610
4699
|
} else if (t.installable) {
|
|
4611
|
-
const $
|
|
4700
|
+
const $scope73_id = _scope_id();
|
|
4612
4701
|
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
4613
|
-
writeScope($
|
|
4702
|
+
writeScope($scope73_id, {});
|
|
4614
4703
|
return 2;
|
|
4615
4704
|
} else {
|
|
4616
|
-
const $
|
|
4705
|
+
const $scope74_id = _scope_id();
|
|
4617
4706
|
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
4618
|
-
writeScope($
|
|
4707
|
+
writeScope($scope74_id, {});
|
|
4619
4708
|
return 3;
|
|
4620
4709
|
}
|
|
4621
4710
|
}, $scope17_id, "d");
|
|
@@ -4625,18 +4714,18 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4625
4714
|
const $scope27_id = _scope_id();
|
|
4626
4715
|
_if(() => {
|
|
4627
4716
|
if (t.required) {
|
|
4628
|
-
const $
|
|
4717
|
+
const $scope75_id = _scope_id();
|
|
4629
4718
|
_html(`<span${_attr_class("_I")}>required</span>`);
|
|
4630
|
-
writeScope($
|
|
4719
|
+
writeScope($scope75_id, {});
|
|
4631
4720
|
return 0;
|
|
4632
4721
|
}
|
|
4633
4722
|
}, $scope27_id, "a", 1, 1, 1, 0, 1);
|
|
4634
4723
|
_if(() => {
|
|
4635
4724
|
if (!t.installed && t.installable) {
|
|
4636
|
-
const $
|
|
4637
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
4638
|
-
_script($
|
|
4639
|
-
writeScope($
|
|
4725
|
+
const $scope46_id = _scope_id();
|
|
4726
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope46_id, "a")}`);
|
|
4727
|
+
_script($scope46_id, "u46");
|
|
4728
|
+
writeScope($scope46_id, {});
|
|
4640
4729
|
return 0;
|
|
4641
4730
|
} else if (t.installed && t.version && !t.required) {
|
|
4642
4731
|
const $scope28_id = _scope_id();
|
|
@@ -4648,19 +4737,19 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4648
4737
|
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
4649
4738
|
_if(() => {
|
|
4650
4739
|
if (confirmingRemove === t.id) {
|
|
4651
|
-
const $
|
|
4740
|
+
const $scope76_id = _scope_id();
|
|
4652
4741
|
_html("Remove?");
|
|
4653
|
-
writeScope($
|
|
4742
|
+
writeScope($scope76_id, {});
|
|
4654
4743
|
return 0;
|
|
4655
4744
|
} else {
|
|
4656
|
-
const $
|
|
4745
|
+
const $scope77_id = _scope_id();
|
|
4657
4746
|
icon_xmark_default({ size: 13 });
|
|
4658
|
-
writeScope($
|
|
4747
|
+
writeScope($scope77_id, {});
|
|
4659
4748
|
return 1;
|
|
4660
4749
|
}
|
|
4661
4750
|
}, $scope28_id, "a", 1, 1, 1, "</button>");
|
|
4662
|
-
_script($scope28_id, "
|
|
4663
|
-
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope28_id, {
|
|
4751
|
+
_script($scope28_id, "u47");
|
|
4752
|
+
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope28_id, { Ce0: 2 }))));
|
|
4664
4753
|
return 1;
|
|
4665
4754
|
}
|
|
4666
4755
|
}, $scope27_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -4685,7 +4774,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4685
4774
|
y: $for_content5__t_latest__closures,
|
|
4686
4775
|
v: $for_content5__t_id__closures
|
|
4687
4776
|
});
|
|
4688
|
-
}, "id", $scope0_id, "
|
|
4777
|
+
}, "id", $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
4689
4778
|
_html("</ul>");
|
|
4690
4779
|
_if(() => {
|
|
4691
4780
|
if (setup && setup.mise.installed) {
|
|
@@ -4702,17 +4791,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4702
4791
|
_html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
|
|
4703
4792
|
_for_of(hits, (h) => {
|
|
4704
4793
|
const $scope21_id = _scope_id();
|
|
4705
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4794
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bp")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope21_id, "d")}</span>`);
|
|
4706
4795
|
_if(() => {
|
|
4707
4796
|
if (active.has(h.name)) {
|
|
4708
4797
|
const $scope22_id = _scope_id();
|
|
4709
4798
|
_html(`<span${_attr_class("_cb")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope22_id, "c")}</span>`);
|
|
4710
|
-
_subscribe($active__closures, writeScope($scope22_id, {
|
|
4799
|
+
_subscribe($active__closures, writeScope($scope22_id, { Cdx: 4 }));
|
|
4711
4800
|
return 0;
|
|
4712
4801
|
} else if (h.description) {
|
|
4713
|
-
const $
|
|
4714
|
-
_html(`<span${_attr_class("
|
|
4715
|
-
writeScope($
|
|
4802
|
+
const $scope78_id = _scope_id();
|
|
4803
|
+
_html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope78_id, "b")}</span>${_el_resume($scope78_id, "a")}`);
|
|
4804
|
+
writeScope($scope78_id, {});
|
|
4716
4805
|
return 1;
|
|
4717
4806
|
}
|
|
4718
4807
|
}, $scope21_id, "e", 1, 1, 1, 0, 1);
|
|
@@ -4722,14 +4811,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4722
4811
|
const $scope32_id = _scope_id();
|
|
4723
4812
|
_if(() => {
|
|
4724
4813
|
if (h.installed) {
|
|
4725
|
-
const $
|
|
4814
|
+
const $scope79_id = _scope_id();
|
|
4726
4815
|
_html(`<span${_attr_class("_I")}>installed</span>`);
|
|
4727
|
-
writeScope($
|
|
4816
|
+
writeScope($scope79_id, {});
|
|
4728
4817
|
return 0;
|
|
4729
4818
|
} else {
|
|
4730
4819
|
const $scope33_id = _scope_id();
|
|
4731
4820
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope33_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope33_id, "b")}`);
|
|
4732
|
-
_script($scope33_id, "
|
|
4821
|
+
_script($scope33_id, "u48");
|
|
4733
4822
|
writeScope($scope33_id, {});
|
|
4734
4823
|
return 1;
|
|
4735
4824
|
}
|
|
@@ -4743,48 +4832,71 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4743
4832
|
i: h?.name,
|
|
4744
4833
|
k: h?.description,
|
|
4745
4834
|
m: h?.installed,
|
|
4746
|
-
|
|
4835
|
+
Cdx: 3
|
|
4747
4836
|
}));
|
|
4748
4837
|
}, "name", $scope20_id, "a", 1, 1, 1, "</ul>", 1);
|
|
4749
4838
|
_subscribe($hits__closures, writeScope($scope20_id, {}));
|
|
4750
4839
|
return 0;
|
|
4751
4840
|
} else if (hits && !searching) {
|
|
4752
4841
|
const $scope35_id = _scope_id();
|
|
4753
|
-
_html(`<p${_attr_class("
|
|
4842
|
+
_html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope35_id, "b")}".</p>`);
|
|
4754
4843
|
_subscribe($query__closures, writeScope($scope35_id, {}));
|
|
4755
4844
|
return 1;
|
|
4756
4845
|
}
|
|
4757
4846
|
}, $scope19_id, "d", 1, 1, 1, 0, 1);
|
|
4758
4847
|
_html("</div>");
|
|
4759
|
-
_script($scope19_id, "
|
|
4848
|
+
_script($scope19_id, "u49");
|
|
4760
4849
|
writeScope($scope19_id, {});
|
|
4761
4850
|
return 0;
|
|
4762
4851
|
}
|
|
4763
|
-
}, $scope0_id, "
|
|
4764
|
-
_html(`</section><section${_attr_class("
|
|
4852
|
+
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
4853
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bk")}><h2${_attr("id", appearanceId)}${_attr_class("_by")}>Appearance</h2></div><div${_attr_class(["_bo", "_cx"])}><label${_attr_class("_cy")}><span${_attr_class("_cz")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
4765
4854
|
setInstance({ name: v });
|
|
4766
|
-
}, "u3", $scope0_id))}${_attr_class(["_U", "_cA"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4855
|
+
}, "u3", $scope0_id))}${_attr_class(["_U", "_cA"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cB"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cy")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cz")}>Theme</span><span${_attr_class("_cC")}>`);
|
|
4856
|
+
_for_of([
|
|
4857
|
+
{
|
|
4858
|
+
id: "system",
|
|
4859
|
+
label: "System"
|
|
4860
|
+
},
|
|
4861
|
+
{
|
|
4862
|
+
id: "light",
|
|
4863
|
+
label: "Light"
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
id: "dark",
|
|
4867
|
+
label: "Dark"
|
|
4868
|
+
}
|
|
4869
|
+
], (opt) => {
|
|
4870
|
+
const $scope42_id = _scope_id();
|
|
4871
|
+
_html(`<button type=button${_attr_class(["_cD", { ["_cE"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope42_id, "a")}`);
|
|
4872
|
+
_script($scope42_id, "u50");
|
|
4873
|
+
writeScope($scope42_id, {
|
|
4874
|
+
e: opt?.id,
|
|
4875
|
+
_: _scope_with_id($scope0_id)
|
|
4876
|
+
});
|
|
4877
|
+
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
4878
|
+
_html(`</span><span${_attr_class(["_S", "_cB"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cy")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cz")}>Accent</span><span${_attr_class("_cJ")}><button type=button${_attr_class([
|
|
4879
|
+
"_cK",
|
|
4880
|
+
"_cM",
|
|
4881
|
+
{ ["_cL"]: !input.instance.accent }
|
|
4882
|
+
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "as")}`);
|
|
4771
4883
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
4772
4884
|
const $scope4_id = _scope_id();
|
|
4773
|
-
_html(`<button type=button${_attr_class(["
|
|
4774
|
-
_script($scope4_id, "
|
|
4885
|
+
_html(`<button type=button${_attr_class(["_cK", { ["_cL"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
4886
|
+
_script($scope4_id, "u51");
|
|
4775
4887
|
writeScope($scope4_id, {
|
|
4776
4888
|
d: p?.value,
|
|
4777
4889
|
_: _scope_with_id($scope0_id)
|
|
4778
4890
|
});
|
|
4779
|
-
}, "value", $scope0_id, "
|
|
4891
|
+
}, "value", $scope0_id, "at", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
4780
4892
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
4781
4893
|
_html(`<label${_attr_class([
|
|
4782
|
-
"
|
|
4783
|
-
"
|
|
4784
|
-
{ ["
|
|
4785
|
-
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "
|
|
4894
|
+
"_cK",
|
|
4895
|
+
"_cN",
|
|
4896
|
+
{ ["_cL"]: customOn }
|
|
4897
|
+
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
4786
4898
|
setInstance({ accent: v });
|
|
4787
|
-
}, "u4", $scope0_id))}${_attr_class("
|
|
4899
|
+
}, "u4", $scope0_id))}${_attr_class("_cO")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_S", "_cB"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
|
|
4788
4900
|
_if(() => {
|
|
4789
4901
|
if (versionPick) {
|
|
4790
4902
|
const $scope29_id = _scope_id();
|
|
@@ -4798,110 +4910,111 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4798
4910
|
open: versionPick != null,
|
|
4799
4911
|
openChange: _resume(function(o) {
|
|
4800
4912
|
if (!o) versionPick = null;
|
|
4801
|
-
}, "
|
|
4913
|
+
}, "u26", $scope29_id),
|
|
4802
4914
|
onSubmit: _resume(function(v) {
|
|
4803
4915
|
const pick = versionPick;
|
|
4804
4916
|
versionPick = null;
|
|
4805
4917
|
run(pick.id, "install", v);
|
|
4806
|
-
}, "
|
|
4918
|
+
}, "u27", $scope29_id)
|
|
4807
4919
|
});
|
|
4808
4920
|
writeScope($scope29_id, { a: _existing_scope($childScope10) });
|
|
4809
4921
|
return 0;
|
|
4810
4922
|
}
|
|
4811
|
-
}, $scope0_id, "
|
|
4812
|
-
_script($scope0_id, "
|
|
4813
|
-
_script($scope0_id, "
|
|
4923
|
+
}, $scope0_id, "ax", 1, 1, 1, 0, 1);
|
|
4924
|
+
_script($scope0_id, "u52");
|
|
4925
|
+
_script($scope0_id, "u53");
|
|
4814
4926
|
writeScope($scope0_id, {
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4927
|
+
b1: input.setupChange,
|
|
4928
|
+
b2: input.agentsChange,
|
|
4929
|
+
b3: input.preferred,
|
|
4930
|
+
b4: input.preferredChange,
|
|
4931
|
+
b6: input.instance,
|
|
4932
|
+
b7: input.instanceChange,
|
|
4933
|
+
b9: input.onExit,
|
|
4934
|
+
bb: $si__input_instance__OR__input_instanceChange && input.instance?.name,
|
|
4935
|
+
bc: $si__input_instance__OR__input_instanceChange && input.instance?.accent,
|
|
4936
|
+
bd: setup,
|
|
4937
|
+
be: setup?.agents,
|
|
4938
|
+
bg: setup?.missing,
|
|
4939
|
+
bi: usage,
|
|
4940
|
+
bj: usage?.agents,
|
|
4941
|
+
bk: usage?.error,
|
|
4942
|
+
bl: error,
|
|
4943
|
+
bm: refreshing,
|
|
4944
|
+
bo: active,
|
|
4945
|
+
bp: active?.size,
|
|
4946
|
+
bq: authCodes,
|
|
4947
|
+
br: confirmingRemove,
|
|
4948
|
+
bs: versionPick,
|
|
4949
|
+
bt: versionPick?.label,
|
|
4950
|
+
bu: versionPick?.current,
|
|
4951
|
+
bv: hostInput,
|
|
4952
|
+
bw: hostBusy,
|
|
4953
|
+
bx: query,
|
|
4954
|
+
by: hits,
|
|
4955
|
+
bz: self,
|
|
4956
|
+
c0: self?.install,
|
|
4957
|
+
c1: self?.latest,
|
|
4958
|
+
c2: self?.version,
|
|
4959
|
+
c3: selfUpdating,
|
|
4960
|
+
c6: searching,
|
|
4961
|
+
c8: searchTimer.id,
|
|
4962
|
+
ca: setThemeMode,
|
|
4963
|
+
cd: applySetup,
|
|
4964
|
+
cf: syncAgents,
|
|
4965
|
+
cg: loadSetup,
|
|
4966
|
+
ch: loadSelf,
|
|
4967
|
+
cj: updateSelf,
|
|
4968
|
+
ck: loadUsage,
|
|
4969
|
+
cm: refresh,
|
|
4970
|
+
cn: refreshUsage,
|
|
4971
|
+
co: setActive,
|
|
4972
|
+
cq: run,
|
|
4973
|
+
cr: changeHost,
|
|
4974
|
+
cs: runEach,
|
|
4975
|
+
ct: setPreferred,
|
|
4976
|
+
cw: saveTimer.id,
|
|
4977
|
+
cy: setInstance,
|
|
4978
|
+
d1: setEnabled,
|
|
4979
|
+
d2: search,
|
|
4980
|
+
d3: outdated,
|
|
4981
|
+
d6: missingInstallable,
|
|
4982
|
+
d8: missingCount,
|
|
4983
|
+
d9: outdatedIds,
|
|
4984
|
+
da: outdatedIds?.length,
|
|
4985
|
+
db: families,
|
|
4986
|
+
dd: families.length,
|
|
4987
|
+
df: instanceIds,
|
|
4988
|
+
dh: accountsFor,
|
|
4989
|
+
di: strayAccountsFor,
|
|
4990
|
+
dt: $setup_missing__closures,
|
|
4991
|
+
ds: $setup2__closures,
|
|
4992
|
+
dw: $refreshing__closures,
|
|
4880
4993
|
d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
dq: $
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4994
|
+
dv: $error__closures,
|
|
4995
|
+
e9: $self_latest__closures,
|
|
4996
|
+
ea: $self_version__closures,
|
|
4997
|
+
p: _existing_scope($childScope3),
|
|
4998
|
+
dx: $active__closures,
|
|
4999
|
+
dq: $si__input_preferred && $input_preferred__closures,
|
|
5000
|
+
ej: $accountsFor2__closures,
|
|
5001
|
+
dz: $authCodes__closures,
|
|
5002
|
+
e0: $confirmingRemove__closures,
|
|
5003
|
+
e8: $self_install__closures,
|
|
5004
|
+
e7: $hits__closures,
|
|
5005
|
+
e6: $query__closures
|
|
4893
5006
|
});
|
|
4894
5007
|
_resume_branch($scope0_id);
|
|
4895
5008
|
});
|
|
4896
5009
|
//#endregion
|
|
4897
5010
|
//#region src/tags/new-workspace.css.ts
|
|
4898
|
-
var content$1 = "_bI
|
|
4899
|
-
var section$1 = "_bM
|
|
5011
|
+
var content$1 = "_bI _bB";
|
|
5012
|
+
var section$1 = "_bM _bj";
|
|
4900
5013
|
var curBase = "_bR _T _S";
|
|
4901
|
-
var archived = "_bW
|
|
5014
|
+
var archived = "_bW _bj";
|
|
4902
5015
|
var archivedHint = "_bX _S";
|
|
4903
|
-
var archivedCard = "_bY
|
|
4904
|
-
var resultBranch = "
|
|
5016
|
+
var archivedCard = "_bY _bo";
|
|
5017
|
+
var resultBranch = "_c7 _Z _j";
|
|
4905
5018
|
//#endregion
|
|
4906
5019
|
//#region src/tags/branch-pick.marko
|
|
4907
5020
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -4912,11 +5025,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
4912
5025
|
let branches = null;
|
|
4913
5026
|
let defaultBranch = null;
|
|
4914
5027
|
let branchFilter = "";
|
|
4915
|
-
_html(`<div${_attr_class("
|
|
5028
|
+
_html(`<div${_attr_class("_c9")}>`);
|
|
4916
5029
|
_if(() => {
|
|
4917
5030
|
{
|
|
4918
5031
|
const $scope4_id = _scope_id();
|
|
4919
|
-
_html(`<p${_attr_class("
|
|
5032
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
4920
5033
|
writeScope($scope4_id, {});
|
|
4921
5034
|
return 0;
|
|
4922
5035
|
}
|
|
@@ -4986,7 +5099,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
4986
5099
|
branchesFor = branchesFor === fullName ? null : fullName;
|
|
4987
5100
|
if (fullName !== pasted) pasteWillFork = false;
|
|
4988
5101
|
}, "s6", $scope0_id);
|
|
4989
|
-
_html(`<div${_attr_class("
|
|
5102
|
+
_html(`<div${_attr_class("_c1")}><label${_attr_class("_W")}>`);
|
|
4990
5103
|
icon_search_default({
|
|
4991
5104
|
size: 14,
|
|
4992
5105
|
class: "_X"
|
|
@@ -4999,22 +5112,22 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
4999
5112
|
_if(() => {
|
|
5000
5113
|
if (pasted) {
|
|
5001
5114
|
const $scope1_id = _scope_id();
|
|
5002
|
-
_html(`<ul${_attr_class("
|
|
5115
|
+
_html(`<ul${_attr_class("_c2")}><li><div${_attr_class(["_c4", "_c3"])}><button${_attr_class("_c5")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5003
5116
|
icon_plus_default({
|
|
5004
5117
|
size: 12,
|
|
5005
|
-
class: "
|
|
5118
|
+
class: "_da"
|
|
5006
5119
|
});
|
|
5007
|
-
_html(`<span${_attr_class("
|
|
5120
|
+
_html(`<span${_attr_class("_db")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5008
5121
|
_if(() => {
|
|
5009
5122
|
if (pastedForkable) {
|
|
5010
5123
|
const $scope7_id = _scope_id();
|
|
5011
|
-
_html(`<button${_attr_class(["
|
|
5124
|
+
_html(`<button${_attr_class(["_c8", { ["_c6"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope7_id, "b")}</button>${_el_resume($scope7_id, "a")}`);
|
|
5012
5125
|
_script($scope7_id, "s11");
|
|
5013
5126
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope7_id, { Cah: 1 })));
|
|
5014
5127
|
return 0;
|
|
5015
5128
|
}
|
|
5016
5129
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5017
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5130
|
+
_html(`<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5018
5131
|
_if(() => {
|
|
5019
5132
|
if (branchesFor === pasted) {
|
|
5020
5133
|
const $scope2_id = _scope_id();
|
|
@@ -5039,7 +5152,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5039
5152
|
return 0;
|
|
5040
5153
|
} else if (filter && !catalog) {
|
|
5041
5154
|
const $scope8_id = _scope_id();
|
|
5042
|
-
_html(`<p${_attr_class("
|
|
5155
|
+
_html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
|
|
5043
5156
|
writeScope($scope8_id, {});
|
|
5044
5157
|
return 1;
|
|
5045
5158
|
}
|
|
@@ -5047,15 +5160,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5047
5160
|
_if(() => {
|
|
5048
5161
|
if (results.length) {
|
|
5049
5162
|
const $scope3_id = _scope_id();
|
|
5050
|
-
_html(`<ul${_attr_class("
|
|
5163
|
+
_html(`<ul${_attr_class("_c2")}>`);
|
|
5051
5164
|
_for_of(results, (repo, i) => {
|
|
5052
5165
|
const $scope4_id = _scope_id();
|
|
5053
|
-
_html(`<li><div${_attr_class(["
|
|
5166
|
+
_html(`<li><div${_attr_class(["_c4", { ["_c3"]: i === highlight }])}><button${_attr_class("_c5")}>`);
|
|
5054
5167
|
icon_plus_default({
|
|
5055
5168
|
size: 12,
|
|
5056
|
-
class: "
|
|
5169
|
+
class: "_da"
|
|
5057
5170
|
});
|
|
5058
|
-
_html(`<span${_attr_class("
|
|
5171
|
+
_html(`<span${_attr_class("_db")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5059
5172
|
_if(() => {
|
|
5060
5173
|
if (branchesFor === repo.nameWithOwner) {
|
|
5061
5174
|
const $scope5_id = _scope_id();
|
|
@@ -5088,7 +5201,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5088
5201
|
return 0;
|
|
5089
5202
|
} else if (filter && catalog && !pasted) {
|
|
5090
5203
|
const $scope6_id = _scope_id();
|
|
5091
|
-
_html(`<p${_attr_class("
|
|
5204
|
+
_html(`<p${_attr_class("_bu")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5092
5205
|
writeScope($scope6_id, {});
|
|
5093
5206
|
return 1;
|
|
5094
5207
|
}
|
|
@@ -5226,7 +5339,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5226
5339
|
}
|
|
5227
5340
|
}, "p6", $scope0_id);
|
|
5228
5341
|
const titleId = _id();
|
|
5229
|
-
_html(`<div${_attr_class("
|
|
5342
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$1)}>`);
|
|
5230
5343
|
_set_serialize_reason({
|
|
5231
5344
|
0: _serialize_guard($scope0_reason, 2),
|
|
5232
5345
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5265,9 +5378,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5265
5378
|
return 0;
|
|
5266
5379
|
}
|
|
5267
5380
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5268
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5381
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_by")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5269
5382
|
name = _new_name;
|
|
5270
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5383
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5271
5384
|
_set_serialize_reason(1);
|
|
5272
5385
|
const $childScope2 = _peek_scope_id();
|
|
5273
5386
|
icon_refresh_default({
|
|
@@ -5324,7 +5437,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5324
5437
|
_if(() => {
|
|
5325
5438
|
if (!selected.length) {
|
|
5326
5439
|
const $scope12_id = _scope_id();
|
|
5327
|
-
_html(`<li${_attr_class("
|
|
5440
|
+
_html(`<li${_attr_class("_bu")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5328
5441
|
writeScope($scope12_id, {});
|
|
5329
5442
|
return 0;
|
|
5330
5443
|
}
|
|
@@ -5391,10 +5504,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5391
5504
|
_if(() => {
|
|
5392
5505
|
if (archived$1.length) {
|
|
5393
5506
|
const $scope4_id = _scope_id();
|
|
5394
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5507
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bm")}>`);
|
|
5395
5508
|
_for_of(archived$1, (ws) => {
|
|
5396
5509
|
const $scope5_id = _scope_id();
|
|
5397
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5510
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bp")}><span${_attr_class("_bq")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5398
5511
|
_if(() => {
|
|
5399
5512
|
if (restoring === ws.id) {
|
|
5400
5513
|
const $scope15_id = _scope_id();
|
|
@@ -5539,8 +5652,8 @@ function activeAgent(session) {
|
|
|
5539
5652
|
const command = session.state?.command?.trim();
|
|
5540
5653
|
return command && agentFromCommand(command) || session.agent;
|
|
5541
5654
|
}
|
|
5542
|
-
var iconBtn$1 = "
|
|
5543
|
-
var navToggle = "
|
|
5655
|
+
var iconBtn$1 = "_dg _j";
|
|
5656
|
+
var navToggle = "_dl _j";
|
|
5544
5657
|
_template("H", (input) => {
|
|
5545
5658
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5546
5659
|
const $scope0_id = _scope_id();
|
|
@@ -5583,12 +5696,12 @@ var ARM_MS = 3500;
|
|
|
5583
5696
|
function disarmLater(fn) {
|
|
5584
5697
|
return setTimeout(fn, ARM_MS);
|
|
5585
5698
|
}
|
|
5586
|
-
var railBtn = "
|
|
5587
|
-
var rowIcon = "
|
|
5588
|
-
var close = "
|
|
5699
|
+
var railBtn = "_f7 _j";
|
|
5700
|
+
var rowIcon = "_gf _Z _j";
|
|
5701
|
+
var close = "_gg _Z _j _2";
|
|
5589
5702
|
//#endregion
|
|
5590
5703
|
//#region src/styles/session-pop.css.ts
|
|
5591
|
-
var sessionPop = "
|
|
5704
|
+
var sessionPop = "_fM _4";
|
|
5592
5705
|
//#endregion
|
|
5593
5706
|
//#region src/client/usage.ts
|
|
5594
5707
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -5649,22 +5762,22 @@ var usage_pcts_default = _template("C", (input) => {
|
|
|
5649
5762
|
if (windows.length) {
|
|
5650
5763
|
const $scope1_id = _scope_id();
|
|
5651
5764
|
_html(`<span${_attr_class([
|
|
5652
|
-
"
|
|
5765
|
+
"_e8",
|
|
5653
5766
|
input.class,
|
|
5654
|
-
{ ["
|
|
5767
|
+
{ ["_e9"]: agent.stale_seconds != null }
|
|
5655
5768
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5656
5769
|
_for_of(windows, (win$1, i) => {
|
|
5657
5770
|
const $scope2_id = _scope_id();
|
|
5658
|
-
_html(`<span${_attr_class("
|
|
5771
|
+
_html(`<span${_attr_class("_e_")}>`);
|
|
5659
5772
|
_if(() => {
|
|
5660
5773
|
if (i) {
|
|
5661
5774
|
const $scope3_id = _scope_id();
|
|
5662
|
-
_html(`<span${_attr_class("
|
|
5775
|
+
_html(`<span${_attr_class("_fc")} aria-hidden=true>·</span>`);
|
|
5663
5776
|
$si__input_agent && writeScope($scope3_id, {});
|
|
5664
5777
|
return 0;
|
|
5665
5778
|
}
|
|
5666
5779
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5667
|
-
_html(`<span${_attr_class("
|
|
5780
|
+
_html(`<span${_attr_class("_fa")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fb", win$1.used_percent >= 90 ? "_e4" : win$1.used_percent >= 70 ? "_e3" : win$1.used_percent >= 40 ? "_e2" : "_e1"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5668
5781
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5669
5782
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5670
5783
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -5695,12 +5808,12 @@ var icon_edit_default = _template("M", (input) => {
|
|
|
5695
5808
|
});
|
|
5696
5809
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5697
5810
|
});
|
|
5698
|
-
var prChip = "
|
|
5699
|
-
var portChip = "
|
|
5811
|
+
var prChip = "_g_ _s _g9";
|
|
5812
|
+
var portChip = "_ha _s _g9";
|
|
5700
5813
|
var prState = {
|
|
5701
|
-
open: "
|
|
5702
|
-
merged: "
|
|
5703
|
-
closed: "
|
|
5814
|
+
open: "_he",
|
|
5815
|
+
merged: "_hf",
|
|
5816
|
+
closed: "_hg"
|
|
5704
5817
|
};
|
|
5705
5818
|
//#endregion
|
|
5706
5819
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -5748,7 +5861,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5748
5861
|
const name = repo.full_name.split("/").at(-1);
|
|
5749
5862
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5750
5863
|
}, "v2", $scope1_id);
|
|
5751
|
-
_html(`<div${_attr_class("
|
|
5864
|
+
_html(`<div${_attr_class("_g8")}>`);
|
|
5752
5865
|
_for_of(repos, (repo) => {
|
|
5753
5866
|
const $scope2_id = _scope_id();
|
|
5754
5867
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -5764,11 +5877,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5764
5877
|
[prState.merged]: pr.state === "MERGED",
|
|
5765
5878
|
[prState.closed]: pr.state === "CLOSED"
|
|
5766
5879
|
}
|
|
5767
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
5880
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hb", { ["_hi"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
5768
5881
|
_if(() => {
|
|
5769
5882
|
if (open) {
|
|
5770
5883
|
const $scope4_id = _scope_id();
|
|
5771
|
-
_html(`<a${_attr_class(["
|
|
5884
|
+
_html(`<a${_attr_class(["_hb", "_hc"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
5772
5885
|
icon_diff_default({ size: 12 });
|
|
5773
5886
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
5774
5887
|
_serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
|
|
@@ -5776,9 +5889,9 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5776
5889
|
} else {
|
|
5777
5890
|
const $scope6_id = _scope_id();
|
|
5778
5891
|
_html(`<button type=button${_attr_class([
|
|
5779
|
-
"
|
|
5780
|
-
"
|
|
5781
|
-
"
|
|
5892
|
+
"_hb",
|
|
5893
|
+
"_hc",
|
|
5894
|
+
"_hd"
|
|
5782
5895
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
5783
5896
|
icon_xmark_default({ size: 12 });
|
|
5784
5897
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5803,10 +5916,10 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
5803
5916
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5804
5917
|
_for_of(ports, (p) => {
|
|
5805
5918
|
const $scope5_id = _scope_id();
|
|
5806
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
5807
|
-
"
|
|
5808
|
-
"
|
|
5809
|
-
"
|
|
5919
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hb", "_hh"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
5920
|
+
"_hb",
|
|
5921
|
+
"_hc",
|
|
5922
|
+
"_hd",
|
|
5810
5923
|
{ ["_q"]: armedPid === p.pid }
|
|
5811
5924
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5812
5925
|
icon_xmark_default({ size: 12 });
|
|
@@ -5898,10 +6011,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5898
6011
|
_if(() => {
|
|
5899
6012
|
if (input.rail) {
|
|
5900
6013
|
const $scope2_id = _scope_id();
|
|
5901
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6014
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_f5"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
5902
6015
|
"_z",
|
|
5903
6016
|
phase[dot],
|
|
5904
|
-
"
|
|
6017
|
+
"_f8"
|
|
5905
6018
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5906
6019
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
5907
6020
|
return 0;
|
|
@@ -5909,15 +6022,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5909
6022
|
const $scope3_id = _scope_id();
|
|
5910
6023
|
const sessions$1 = input.sessions || [];
|
|
5911
6024
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
5912
|
-
_html(`<section${_attr_class(["
|
|
5913
|
-
["
|
|
6025
|
+
_html(`<section${_attr_class(["_f_", {
|
|
6026
|
+
["_f5"]: input.current,
|
|
5914
6027
|
["_5"]: input.current,
|
|
5915
|
-
["
|
|
5916
|
-
["
|
|
5917
|
-
}])}><div${_attr_class("
|
|
6028
|
+
["_ga"]: input.railPop,
|
|
6029
|
+
["_f9"]: input.page
|
|
6030
|
+
}])}><div${_attr_class("_gb")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gc")}><span${_attr_class([
|
|
5918
6031
|
"_z",
|
|
5919
6032
|
phase[dot],
|
|
5920
|
-
"
|
|
6033
|
+
"_gp"
|
|
5921
6034
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5922
6035
|
_if(() => {
|
|
5923
6036
|
if (sessions$1.length === 1) {
|
|
@@ -5930,7 +6043,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5930
6043
|
icon_agent_default({
|
|
5931
6044
|
agent: activeAgent(sessions$1[0]),
|
|
5932
6045
|
size: 12,
|
|
5933
|
-
class: "
|
|
6046
|
+
class: "_gh"
|
|
5934
6047
|
});
|
|
5935
6048
|
$si__input_sessions && writeScope($scope14_id, {
|
|
5936
6049
|
_: _scope_with_id($scope3_id),
|
|
@@ -5940,16 +6053,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5940
6053
|
}
|
|
5941
6054
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5942
6055
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5943
|
-
_html(`<span${_attr_class("
|
|
6056
|
+
_html(`<span${_attr_class("_gi")}><span${_attr_class("_gj")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5944
6057
|
_if(() => {
|
|
5945
6058
|
if (input.page && metaText) {
|
|
5946
6059
|
const $scope16_id = _scope_id();
|
|
5947
|
-
_html(`<span${_attr_class("
|
|
6060
|
+
_html(`<span${_attr_class("_gn")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5948
6061
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
5949
6062
|
return 0;
|
|
5950
6063
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5951
6064
|
const $scope15_id = _scope_id();
|
|
5952
|
-
_html(`<span${_attr_class("
|
|
6065
|
+
_html(`<span${_attr_class("_gk")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5953
6066
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5954
6067
|
return 1;
|
|
5955
6068
|
}
|
|
@@ -5962,7 +6075,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5962
6075
|
"_I",
|
|
5963
6076
|
"_R",
|
|
5964
6077
|
"_K",
|
|
5965
|
-
"
|
|
6078
|
+
"_go"
|
|
5966
6079
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5967
6080
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5968
6081
|
_: _scope_with_id($scope3_id),
|
|
@@ -5975,7 +6088,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5975
6088
|
_if(() => {
|
|
5976
6089
|
if (!input.page) {
|
|
5977
6090
|
const $scope5_id = _scope_id();
|
|
5978
|
-
_html(`<div${_attr_class("
|
|
6091
|
+
_html(`<div${_attr_class("_gd")}>`);
|
|
5979
6092
|
_if(() => {
|
|
5980
6093
|
if (input.onNewSession) {
|
|
5981
6094
|
const $scope6_id = _scope_id();
|
|
@@ -5989,7 +6102,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
5989
6102
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5990
6103
|
_for_of([], (agent) => {
|
|
5991
6104
|
const $scope7_id = _scope_id();
|
|
5992
|
-
_html(`<button${_attr_class("
|
|
6105
|
+
_html(`<button${_attr_class("_fN")}>`);
|
|
5993
6106
|
_set_serialize_reason(12);
|
|
5994
6107
|
const $childScope2 = _peek_scope_id();
|
|
5995
6108
|
icon_agent_default({
|
|
@@ -6024,7 +6137,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6024
6137
|
return 0;
|
|
6025
6138
|
}
|
|
6026
6139
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6027
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6140
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_f6"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6028
6141
|
icon_manage_default({ size: 12 });
|
|
6029
6142
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6030
6143
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -6034,7 +6147,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6034
6147
|
return 0;
|
|
6035
6148
|
}
|
|
6036
6149
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6037
|
-
_html(`</div><div${_attr_class("
|
|
6150
|
+
_html(`</div><div${_attr_class("_gu")}>`);
|
|
6038
6151
|
_if(() => {
|
|
6039
6152
|
if (sessions$1.length === 1 && openPlan) {
|
|
6040
6153
|
const $scope11_id = _scope_id();
|
|
@@ -6042,7 +6155,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6042
6155
|
const $childScope3 = _peek_scope_id();
|
|
6043
6156
|
usage_pcts_default({
|
|
6044
6157
|
agent: openPlan,
|
|
6045
|
-
class: "
|
|
6158
|
+
class: "_gl"
|
|
6046
6159
|
});
|
|
6047
6160
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6048
6161
|
a: _existing_scope($childScope3),
|
|
@@ -6053,14 +6166,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6053
6166
|
}, $scope3_id, "m");
|
|
6054
6167
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6055
6168
|
const $scope8_id = _scope_id();
|
|
6056
|
-
_html(`<div${_attr_class(["
|
|
6169
|
+
_html(`<div${_attr_class(["_ge", { ["_f5"]: s.id === input.currentTab }])}>`);
|
|
6057
6170
|
_if(() => {
|
|
6058
6171
|
if (renamingId === s.id) {
|
|
6059
6172
|
const $scope10_id = _scope_id();
|
|
6060
6173
|
_html(`<span${_attr_class([
|
|
6061
6174
|
"_z",
|
|
6062
6175
|
phase[sessionPhase(s.state)],
|
|
6063
|
-
"
|
|
6176
|
+
"_gs"
|
|
6064
6177
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6065
6178
|
_set_serialize_reason({
|
|
6066
6179
|
1: $sg__input_sessions,
|
|
@@ -6070,17 +6183,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6070
6183
|
icon_agent_default({
|
|
6071
6184
|
agent: activeAgent(s),
|
|
6072
6185
|
size: 13,
|
|
6073
|
-
class: "
|
|
6186
|
+
class: "_gw"
|
|
6074
6187
|
});
|
|
6075
6188
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6076
6189
|
renameValue = _new_renameValue;
|
|
6077
|
-
}, "w0", $scope10_id))}${_attr_class(["_U", "
|
|
6190
|
+
}, "w0", $scope10_id))}${_attr_class(["_U", "_gt"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6078
6191
|
_script($scope10_id, "w5");
|
|
6079
6192
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6080
6193
|
return 0;
|
|
6081
6194
|
} else {
|
|
6082
6195
|
const $scope9_id = _scope_id();
|
|
6083
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6196
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gv")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6084
6197
|
_set_serialize_reason({
|
|
6085
6198
|
1: $sg__input_sessions,
|
|
6086
6199
|
2: $sg__input_sessions
|
|
@@ -6089,9 +6202,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6089
6202
|
icon_agent_default({
|
|
6090
6203
|
agent: activeAgent(s),
|
|
6091
6204
|
size: 13,
|
|
6092
|
-
class: "
|
|
6205
|
+
class: "_gw"
|
|
6093
6206
|
});
|
|
6094
|
-
_html(`<span${_attr_class("
|
|
6207
|
+
_html(`<span${_attr_class("_gq")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gr")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6095
6208
|
icon_edit_default({ size: 12 });
|
|
6096
6209
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6097
6210
|
icon_xmark_default({ size: 12 });
|
|
@@ -6103,7 +6216,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6103
6216
|
const $childScope6 = _peek_scope_id();
|
|
6104
6217
|
usage_pcts_default({
|
|
6105
6218
|
agent: openPlan,
|
|
6106
|
-
class: "
|
|
6219
|
+
class: "_gm"
|
|
6107
6220
|
});
|
|
6108
6221
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6109
6222
|
a: _existing_scope($childScope6),
|
|
@@ -6306,34 +6419,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6306
6419
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6307
6420
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6308
6421
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6309
|
-
_html(`<aside${_attr_class(["
|
|
6310
|
-
["
|
|
6311
|
-
["
|
|
6422
|
+
_html(`<aside${_attr_class(["_dk", {
|
|
6423
|
+
["_di"]: !navOpen,
|
|
6424
|
+
["_dj"]: isPage
|
|
6312
6425
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6313
6426
|
_if(() => {
|
|
6314
6427
|
if (isPage) {
|
|
6315
6428
|
const $scope1_id = _scope_id();
|
|
6316
|
-
_html(`<header${_attr_class("
|
|
6429
|
+
_html(`<header${_attr_class("_dn")}><div${_attr_class("_dw")}>`);
|
|
6317
6430
|
_if(() => {
|
|
6318
6431
|
if (input.instanceName) {
|
|
6319
6432
|
const $scope2_id = _scope_id();
|
|
6320
|
-
_html(`<div${_attr_class("
|
|
6433
|
+
_html(`<div${_attr_class("_dt")} title="This work server (Settings → Appearance)"><img${_attr_class("_du")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dv")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6321
6434
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6322
6435
|
return 0;
|
|
6323
6436
|
}
|
|
6324
6437
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6325
|
-
_html(`<h1${_attr_class("
|
|
6438
|
+
_html(`<h1${_attr_class("_do")}>Workspaces</h1></div><div${_attr_class("_dp")}>`);
|
|
6326
6439
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6327
6440
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6328
6441
|
iconBtn$1,
|
|
6329
|
-
"
|
|
6330
|
-
{ ["
|
|
6442
|
+
"_dq",
|
|
6443
|
+
{ ["_df"]: view === "settings" }
|
|
6331
6444
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6332
6445
|
icon_settings_default({ size: 16 });
|
|
6333
6446
|
_if(() => {
|
|
6334
6447
|
if (input.setupReady === false) {
|
|
6335
6448
|
const $scope12_id = _scope_id();
|
|
6336
|
-
_html(`<span${_attr_class(["_z", "
|
|
6449
|
+
_html(`<span${_attr_class(["_z", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
6337
6450
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6338
6451
|
return 0;
|
|
6339
6452
|
}
|
|
@@ -6346,18 +6459,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6346
6459
|
_if(() => {
|
|
6347
6460
|
if (!isPage && input.instanceName) {
|
|
6348
6461
|
const $scope3_id = _scope_id();
|
|
6349
|
-
_html(`<div${_attr_class("
|
|
6462
|
+
_html(`<div${_attr_class("_dt")} title="This work server (Settings → Appearance)"><img${_attr_class("_du")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dv")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6350
6463
|
writeScope($scope3_id, {});
|
|
6351
6464
|
return 0;
|
|
6352
6465
|
}
|
|
6353
6466
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6354
|
-
_html(`<div${_attr_class("
|
|
6467
|
+
_html(`<div${_attr_class("_dx")}>`);
|
|
6355
6468
|
_for_of(listIds, (wsId) => {
|
|
6356
6469
|
const $scope4_id = _scope_id();
|
|
6357
6470
|
_if(() => {
|
|
6358
6471
|
if (isPage && wsId === ws.id) {
|
|
6359
6472
|
const $scope13_id = _scope_id();
|
|
6360
|
-
_html(`<h2${_attr_class(["
|
|
6473
|
+
_html(`<h2${_attr_class(["_by", "_dr"])}>Current</h2>`);
|
|
6361
6474
|
writeScope($scope13_id, {});
|
|
6362
6475
|
return 0;
|
|
6363
6476
|
}
|
|
@@ -6365,7 +6478,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6365
6478
|
_if(() => {
|
|
6366
6479
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6367
6480
|
const $scope14_id = _scope_id();
|
|
6368
|
-
_html(`<h2${_attr_class(["
|
|
6481
|
+
_html(`<h2${_attr_class(["_by", "_dr"])}>Other workspaces</h2>`);
|
|
6369
6482
|
writeScope($scope14_id, {});
|
|
6370
6483
|
return 0;
|
|
6371
6484
|
}
|
|
@@ -6452,7 +6565,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6452
6565
|
railHover = null;
|
|
6453
6566
|
}, 150);
|
|
6454
6567
|
}, "x6", $scope5_id);
|
|
6455
|
-
_html(`<div${_attr_class("
|
|
6568
|
+
_html(`<div${_attr_class("_dy")}>`);
|
|
6456
6569
|
_for_of(itemIds, (wsId, i) => {
|
|
6457
6570
|
const $scope6_id = _scope_id();
|
|
6458
6571
|
_html("<span>");
|
|
@@ -6506,7 +6619,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6506
6619
|
if (railHover) {
|
|
6507
6620
|
const $scope7_id = _scope_id();
|
|
6508
6621
|
const hoverId = railHover.id;
|
|
6509
|
-
_html(`<div${_attr_class(["_4", "
|
|
6622
|
+
_html(`<div${_attr_class(["_4", "_dB"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6510
6623
|
_set_serialize_reason({
|
|
6511
6624
|
0: 1,
|
|
6512
6625
|
1: 1,
|
|
@@ -6594,7 +6707,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6594
6707
|
return 0;
|
|
6595
6708
|
}
|
|
6596
6709
|
}, $scope0_id, "e");
|
|
6597
|
-
_html(`<div${_attr_class("
|
|
6710
|
+
_html(`<div${_attr_class("_dz")}>`);
|
|
6598
6711
|
_if(() => {
|
|
6599
6712
|
if (isPage) {
|
|
6600
6713
|
const $scope9_id = _scope_id();
|
|
@@ -6602,7 +6715,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6602
6715
|
"_o",
|
|
6603
6716
|
"_p",
|
|
6604
6717
|
btnLg,
|
|
6605
|
-
"
|
|
6718
|
+
"_ds"
|
|
6606
6719
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6607
6720
|
icon_folder_plus_default({ size: 16 });
|
|
6608
6721
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -6624,19 +6737,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6624
6737
|
return 1;
|
|
6625
6738
|
}
|
|
6626
6739
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6627
|
-
_html(`<div${_attr_class(["_y", "
|
|
6740
|
+
_html(`<div${_attr_class(["_y", "_dA"])}></div>`);
|
|
6628
6741
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6629
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6742
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_df"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6630
6743
|
icon_settings_default({ size: 15 });
|
|
6631
6744
|
_if(() => {
|
|
6632
6745
|
if (input.setupReady === false) {
|
|
6633
6746
|
const $scope17_id = _scope_id();
|
|
6634
|
-
_html(`<span${_attr_class(["_z", "
|
|
6747
|
+
_html(`<span${_attr_class(["_z", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
6635
6748
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6636
6749
|
return 0;
|
|
6637
6750
|
}
|
|
6638
6751
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6639
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6752
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_df"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6640
6753
|
icon_folder_plus_default({ size: 16 });
|
|
6641
6754
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
6642
6755
|
_script($scope8_id, "x15");
|
|
@@ -6701,11 +6814,11 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6701
6814
|
_resume_branch($scope0_id);
|
|
6702
6815
|
});
|
|
6703
6816
|
var iconBtn = "_0 _j";
|
|
6704
|
-
var sectionCount = "
|
|
6705
|
-
var content = "
|
|
6706
|
-
var pageMeta = "
|
|
6707
|
-
var pathMeta = "
|
|
6708
|
-
var dangerHint = "
|
|
6817
|
+
var sectionCount = "_bl _I _J";
|
|
6818
|
+
var content = "_cQ _bB";
|
|
6819
|
+
var pageMeta = "_cR _bG";
|
|
6820
|
+
var pathMeta = "_cU _x";
|
|
6821
|
+
var dangerHint = "_c0 _S";
|
|
6709
6822
|
//#endregion
|
|
6710
6823
|
//#region src/tags/manage-workspace.marko
|
|
6711
6824
|
var api$2;
|
|
@@ -6804,7 +6917,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6804
6917
|
setTimeout(() => loadProcs(void 0), 500);
|
|
6805
6918
|
}, "n5", $scope0_id);
|
|
6806
6919
|
const titleId = _id();
|
|
6807
|
-
_html(`<div${_attr_class("
|
|
6920
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content)}>`);
|
|
6808
6921
|
_set_serialize_reason(30);
|
|
6809
6922
|
const $childScope = _peek_scope_id();
|
|
6810
6923
|
page_head_default({
|
|
@@ -6817,7 +6930,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6817
6930
|
meta: attrTag({ content: _content_resume("n11", () => {
|
|
6818
6931
|
_scope_reason();
|
|
6819
6932
|
const $scope8_id = _scope_id();
|
|
6820
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6933
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cS")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6821
6934
|
_if(() => {
|
|
6822
6935
|
if (ws.status !== "active") {
|
|
6823
6936
|
const $scope11_id = _scope_id();
|
|
@@ -6826,7 +6939,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6826
6939
|
return 0;
|
|
6827
6940
|
}
|
|
6828
6941
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6829
|
-
_html(`<span${_attr_class("
|
|
6942
|
+
_html(`<span${_attr_class("_cT")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
6830
6943
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
6831
6944
|
_resume_branch($scope8_id);
|
|
6832
6945
|
}, $scope0_id) })
|
|
@@ -6854,22 +6967,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6854
6967
|
_if(() => {
|
|
6855
6968
|
if (pendingAction && actionStep) {
|
|
6856
6969
|
const $scope7_id = _scope_id();
|
|
6857
|
-
_html(`<p${_attr_class("
|
|
6970
|
+
_html(`<p${_attr_class("_bi")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
6858
6971
|
writeScope($scope7_id, {});
|
|
6859
6972
|
return 0;
|
|
6860
6973
|
}
|
|
6861
6974
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
6862
|
-
_html(`<section${_attr_class("
|
|
6975
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6863
6976
|
_set_serialize_reason(1);
|
|
6864
6977
|
const $childScope2 = _peek_scope_id();
|
|
6865
6978
|
icon_refresh_default({
|
|
6866
6979
|
size: 14,
|
|
6867
6980
|
class: catalogRefreshing && "_E"
|
|
6868
6981
|
});
|
|
6869
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
6982
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bm")}>`);
|
|
6870
6983
|
_for_of(ws.repos, (row) => {
|
|
6871
6984
|
const $scope1_id = _scope_id();
|
|
6872
|
-
_html(`<li${_attr_class("
|
|
6985
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class(["_bq", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_br")}><a${_attr_class(["_bs", "_cW"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
6873
6986
|
_if(() => {
|
|
6874
6987
|
if (row.base_branch !== row.default_branch) {
|
|
6875
6988
|
const $scope12_id = _scope_id();
|
|
@@ -6888,7 +7001,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6888
7001
|
} else {
|
|
6889
7002
|
const $scope6_id = _scope_id();
|
|
6890
7003
|
_html(`<button${_attr_class([
|
|
6891
|
-
"
|
|
7004
|
+
"_bt",
|
|
6892
7005
|
"_2",
|
|
6893
7006
|
"_3",
|
|
6894
7007
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -6921,19 +7034,19 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6921
7034
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
6922
7035
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
6923
7036
|
const $scope16_id = _scope_id();
|
|
6924
|
-
_html(`<li${_attr_class(["
|
|
7037
|
+
_html(`<li${_attr_class(["_bo", "_bn"])}><span${_attr_class("_F")}></span><div${_attr_class("_bp")}><span${_attr_class("_bs")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
6925
7038
|
writeScope($scope16_id, {});
|
|
6926
7039
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
6927
7040
|
_html("</ul>");
|
|
6928
7041
|
_if(() => {
|
|
6929
7042
|
if (!ws.repos.length && !busy.size) {
|
|
6930
7043
|
const $scope17_id = _scope_id();
|
|
6931
|
-
_html(`<p${_attr_class("
|
|
7044
|
+
_html(`<p${_attr_class("_bu")}>No repos yet. Search below to add one.</p>`);
|
|
6932
7045
|
writeScope($scope17_id, {});
|
|
6933
7046
|
return 0;
|
|
6934
7047
|
}
|
|
6935
7048
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6936
|
-
_html(`<div${_attr_class("
|
|
7049
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
6937
7050
|
const $childScope3 = _peek_scope_id();
|
|
6938
7051
|
let refreshCatalog = repo_picker_default({
|
|
6939
7052
|
exclude: inWorkspace,
|
|
@@ -6953,17 +7066,17 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6953
7066
|
_if(() => {
|
|
6954
7067
|
if (running.length) {
|
|
6955
7068
|
const $scope9_id = _scope_id();
|
|
6956
|
-
_html(`<section${_attr_class("
|
|
7069
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bm")}>`);
|
|
6957
7070
|
_for_of(running, (p) => {
|
|
6958
7071
|
const $scope10_id = _scope_id();
|
|
6959
|
-
_html(`<li${_attr_class("
|
|
7072
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}${_attr("title", p.args)}><span${_attr_class(["_bq", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
6960
7073
|
_if(() => {
|
|
6961
7074
|
if (p.ports.length) {
|
|
6962
7075
|
const $scope18_id = _scope_id();
|
|
6963
|
-
_html(`<span${_attr_class("
|
|
7076
|
+
_html(`<span${_attr_class("_br")}>`);
|
|
6964
7077
|
_for_of(p.ports, (port) => {
|
|
6965
7078
|
const $scope19_id = _scope_id();
|
|
6966
|
-
_html(`<button${_attr_class(["_s", "
|
|
7079
|
+
_html(`<button${_attr_class(["_s", "_cX"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6967
7080
|
_script($scope19_id, "n15");
|
|
6968
7081
|
writeScope($scope19_id, { d: port });
|
|
6969
7082
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6971,7 +7084,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6971
7084
|
return 0;
|
|
6972
7085
|
}
|
|
6973
7086
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
6974
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7087
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bt", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
6975
7088
|
icon_xmark_default({ size: 14 });
|
|
6976
7089
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
6977
7090
|
_script($scope10_id, "n16");
|
|
@@ -6985,7 +7098,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
6985
7098
|
return 0;
|
|
6986
7099
|
}
|
|
6987
7100
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6988
|
-
_html(`<section${_attr_class(["
|
|
7101
|
+
_html(`<section${_attr_class(["_bj", "_cY"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_cZ")}>`);
|
|
6989
7102
|
_if(() => {
|
|
6990
7103
|
if (ws.status === "active") {
|
|
6991
7104
|
const $scope4_id = _scope_id();
|
|
@@ -7086,15 +7199,15 @@ var term_find_default = _template("y", (input) => {
|
|
|
7086
7199
|
const canStep = hasQuery && open;
|
|
7087
7200
|
const keybar = input.placement === "keybar";
|
|
7088
7201
|
_html(`<div${_attr_class([
|
|
7089
|
-
"
|
|
7090
|
-
keybar ? "
|
|
7091
|
-
!open && "
|
|
7092
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7202
|
+
"_fj",
|
|
7203
|
+
keybar ? "_fl" : "_fk",
|
|
7204
|
+
!open && "_fn"
|
|
7205
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fe", keybar ? "_fm" : "_fg"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7093
7206
|
if (!open) return;
|
|
7094
7207
|
query = v;
|
|
7095
7208
|
live.query = v;
|
|
7096
7209
|
run(0);
|
|
7097
|
-
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7210
|
+
}, "y0", $scope0_id))}${_attr_class([findInput, keybar && "_fo"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_fp"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fp"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fp"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7098
7211
|
icon_xmark_default({ size: 14 });
|
|
7099
7212
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7100
7213
|
_script($scope0_id, "y4");
|
|
@@ -7368,7 +7481,7 @@ var term_default = _template("z", (input) => {
|
|
|
7368
7481
|
trapOpen = true;
|
|
7369
7482
|
}
|
|
7370
7483
|
}, "z14", $scope0_id);
|
|
7371
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7484
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dC")}><div${_attr_class("_dD")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7372
7485
|
_if(() => {
|
|
7373
7486
|
if (findOpen) {
|
|
7374
7487
|
const $scope12_id = _scope_id();
|
|
@@ -7395,7 +7508,7 @@ var term_default = _template("z", (input) => {
|
|
|
7395
7508
|
_if(() => {
|
|
7396
7509
|
if (uploading) {
|
|
7397
7510
|
const $scope19_id = _scope_id();
|
|
7398
|
-
_html(`<div${_attr_class("
|
|
7511
|
+
_html(`<div${_attr_class("_dJ")}>uploading…</div>`);
|
|
7399
7512
|
writeScope($scope19_id, {});
|
|
7400
7513
|
return 0;
|
|
7401
7514
|
}
|
|
@@ -7403,7 +7516,7 @@ var term_default = _template("z", (input) => {
|
|
|
7403
7516
|
_if(() => {
|
|
7404
7517
|
if (copiedFlash) {
|
|
7405
7518
|
const $scope20_id = _scope_id();
|
|
7406
|
-
_html(`<div${_attr_class("
|
|
7519
|
+
_html(`<div${_attr_class("_dI")}>Copied</div>`);
|
|
7407
7520
|
writeScope($scope20_id, {});
|
|
7408
7521
|
return 0;
|
|
7409
7522
|
}
|
|
@@ -7412,7 +7525,7 @@ var term_default = _template("z", (input) => {
|
|
|
7412
7525
|
_if(() => {
|
|
7413
7526
|
if (trapOpen) {
|
|
7414
7527
|
const $scope11_id = _scope_id();
|
|
7415
|
-
_html(`<div${_attr_class("
|
|
7528
|
+
_html(`<div${_attr_class("_dK")}><div${_attr_class("_dL")}><p${_attr_class("_ef")}>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")}`);
|
|
7416
7529
|
_script($scope11_id, "z25");
|
|
7417
7530
|
_script($scope11_id, "z26");
|
|
7418
7531
|
writeScope($scope11_id, {});
|
|
@@ -7515,7 +7628,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7515
7628
|
let DiffView = null;
|
|
7516
7629
|
const loadDiffView = _resume(() => {
|
|
7517
7630
|
if (DiffView) return;
|
|
7518
|
-
import("./
|
|
7631
|
+
import("./_Cz8F94WW.js").then((m) => {
|
|
7519
7632
|
DiffView = m.default;
|
|
7520
7633
|
});
|
|
7521
7634
|
}, "D6", $scope0_id);
|
|
@@ -7984,7 +8097,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7984
8097
|
_if(() => {
|
|
7985
8098
|
if (!shownSessions.length && view === "term") {
|
|
7986
8099
|
const $scope7_id = _scope_id();
|
|
7987
|
-
_html(`<div${_attr_class("
|
|
8100
|
+
_html(`<div${_attr_class("_bv")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
7988
8101
|
_script($scope7_id, "D49");
|
|
7989
8102
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
7990
8103
|
return 0;
|
|
@@ -7994,7 +8107,7 @@ var work_view_default = _template("D", (input) => {
|
|
|
7994
8107
|
return 0;
|
|
7995
8108
|
} else {
|
|
7996
8109
|
const $scope10_id = _scope_id();
|
|
7997
|
-
_html(`<p${_attr_class("
|
|
8110
|
+
_html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
|
|
7998
8111
|
writeScope($scope10_id, {});
|
|
7999
8112
|
return 1;
|
|
8000
8113
|
}
|
|
@@ -9866,20 +9979,20 @@ var DELETE$2 = Run.DELETE(async (ctx) => {
|
|
|
9866
9979
|
});
|
|
9867
9980
|
//#endregion
|
|
9868
9981
|
//#region __marko-run__api.sessions.$.js
|
|
9869
|
-
var patchHandler = normalizeHandler(Run.PATCH({ json: Rename }, async (ctx) => {
|
|
9982
|
+
var patchHandler$1 = normalizeHandler(Run.PATCH({ json: Rename }, async (ctx) => {
|
|
9870
9983
|
const body = await readBody(ctx);
|
|
9871
9984
|
renameSession(ctx.params.id, body.title || null);
|
|
9872
9985
|
return Response.json({ ok: true });
|
|
9873
9986
|
}), "PATCH");
|
|
9874
9987
|
var deleteHandler$2 = normalizeHandler(DELETE$2, "DELETE");
|
|
9875
9988
|
var delete20_options = mergeOptions(mware11, deleteHandler$2);
|
|
9876
|
-
var patch20_options = mergeOptions(mware11, patchHandler);
|
|
9989
|
+
var patch20_options = mergeOptions(mware11, patchHandler$1);
|
|
9877
9990
|
function delete20(context) {
|
|
9878
9991
|
const __deleteHandler = (data) => call(deleteHandler$2, noContent, context, data);
|
|
9879
9992
|
return call(mware11, __deleteHandler, context);
|
|
9880
9993
|
}
|
|
9881
9994
|
function patch20(context) {
|
|
9882
|
-
const __patchHandler = (data) => call(patchHandler, noContent, context, data);
|
|
9995
|
+
const __patchHandler = (data) => call(patchHandler$1, noContent, context, data);
|
|
9883
9996
|
return call(mware11, __patchHandler, context);
|
|
9884
9997
|
}
|
|
9885
9998
|
//#endregion
|
|
@@ -10303,6 +10416,13 @@ function addComment(workspaceId, comment) {
|
|
|
10303
10416
|
publish("review.changed", { workspaceId });
|
|
10304
10417
|
return get("SELECT * FROM review_comments WHERE id = ?", lastInsertRowid);
|
|
10305
10418
|
}
|
|
10419
|
+
function updateComment(id, text) {
|
|
10420
|
+
const row = get("SELECT * FROM review_comments WHERE id = ?", id);
|
|
10421
|
+
if (!row) throw new Error(`no such comment: ${id}`);
|
|
10422
|
+
db.prepare("UPDATE review_comments SET text = ? WHERE id = ?").run(text, id);
|
|
10423
|
+
publish("review.changed", { workspaceId: row.workspace_id });
|
|
10424
|
+
return get("SELECT * FROM review_comments WHERE id = ?", id);
|
|
10425
|
+
}
|
|
10306
10426
|
function deleteComment(id) {
|
|
10307
10427
|
const row = get("SELECT workspace_id FROM review_comments WHERE id = ?", id);
|
|
10308
10428
|
db.prepare("DELETE FROM review_comments WHERE id = ?").run(id);
|
|
@@ -10964,21 +11084,40 @@ function post37(context) {
|
|
|
10964
11084
|
return call(mware11, __mware36, context);
|
|
10965
11085
|
}
|
|
10966
11086
|
//#endregion
|
|
11087
|
+
//#region src/routes/api/workspaces/$id/review/$commentId/+handler.ts
|
|
11088
|
+
function commentInWorkspace(workspaceId, commentId) {
|
|
11089
|
+
if (!Number.isInteger(commentId)) throw httpError(400, "invalid comment id");
|
|
11090
|
+
const row = get("SELECT workspace_id FROM review_comments WHERE id = ?", commentId);
|
|
11091
|
+
if (!row || row.workspace_id !== workspaceId) throw httpError(404, "no such comment");
|
|
11092
|
+
}
|
|
11093
|
+
var Edit = /* @__PURE__ */ object({ text: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ trim(), /* @__PURE__ */ minLength(1)) });
|
|
11094
|
+
var PATCH = Run.PATCH({ json: Edit }, async (ctx) => {
|
|
11095
|
+
const commentId = Number(ctx.params.commentId);
|
|
11096
|
+
commentInWorkspace(ctx.params.id, commentId);
|
|
11097
|
+
const body = await readBody(ctx);
|
|
11098
|
+
return Response.json(updateComment(commentId, body.text));
|
|
11099
|
+
});
|
|
11100
|
+
//#endregion
|
|
10967
11101
|
//#region __marko-run__api.workspaces.$.review.$.js
|
|
10968
11102
|
var deleteHandler = normalizeHandler(Run.DELETE((ctx) => {
|
|
10969
11103
|
const commentId = Number(ctx.params.commentId);
|
|
10970
|
-
|
|
10971
|
-
const row = get("SELECT workspace_id FROM review_comments WHERE id = ?", commentId);
|
|
10972
|
-
if (!row || row.workspace_id !== ctx.params.id) throw httpError(404, "no such comment");
|
|
11104
|
+
commentInWorkspace(ctx.params.id, commentId);
|
|
10973
11105
|
deleteComment(commentId);
|
|
10974
11106
|
return Response.json({ ok: true });
|
|
10975
11107
|
}), "DELETE");
|
|
11108
|
+
var patchHandler = normalizeHandler(PATCH, "PATCH");
|
|
10976
11109
|
var delete38_options = mergeOptions(mware11, mware36, deleteHandler);
|
|
11110
|
+
var patch38_options = mergeOptions(mware11, mware36, patchHandler);
|
|
10977
11111
|
function delete38(context) {
|
|
10978
11112
|
const __deleteHandler = (data) => call(deleteHandler, noContent, context, data);
|
|
10979
11113
|
const __mware36 = (data) => call(mware36, __deleteHandler, context, data);
|
|
10980
11114
|
return call(mware11, __mware36, context);
|
|
10981
11115
|
}
|
|
11116
|
+
function patch38(context) {
|
|
11117
|
+
const __patchHandler = (data) => call(patchHandler, noContent, context, data);
|
|
11118
|
+
const __mware36 = (data) => call(mware36, __patchHandler, context, data);
|
|
11119
|
+
return call(mware11, __mware36, context);
|
|
11120
|
+
}
|
|
10982
11121
|
//#endregion
|
|
10983
11122
|
//#region src/routes/api/workspaces/$id/sessions/+handler.ts
|
|
10984
11123
|
var CreateSession = /* @__PURE__ */ object({ agent: /* @__PURE__ */ optional(/* @__PURE__ */ string()) });
|
|
@@ -11814,18 +11953,47 @@ function match_internal(method, pathname) {
|
|
|
11814
11953
|
if (i1 && i1 !== len) {
|
|
11815
11954
|
if (pathname.slice(1, i1 - 1) === "api") {
|
|
11816
11955
|
const i2 = pathname.indexOf("/", 5) + 1;
|
|
11817
|
-
if (i2 && i2 !== len) {
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11956
|
+
if (i2 && i2 !== len) switch (pathname.slice(5, i2 - 1)) {
|
|
11957
|
+
case "sessions":
|
|
11958
|
+
{
|
|
11959
|
+
const i3 = pathname.indexOf("/", 14) + 1;
|
|
11960
|
+
if (!i3 || i3 === len) {
|
|
11961
|
+
const s3 = decodeURIComponent(pathname.slice(14, i3 ? -1 : len));
|
|
11962
|
+
if (s3) return {
|
|
11963
|
+
handler: patch20,
|
|
11964
|
+
path: "/api/sessions/$id",
|
|
11965
|
+
params: { id: s3 },
|
|
11966
|
+
options: patch20_options,
|
|
11967
|
+
meta: {}
|
|
11968
|
+
};
|
|
11969
|
+
}
|
|
11970
|
+
}
|
|
11971
|
+
break;
|
|
11972
|
+
case "workspaces": {
|
|
11973
|
+
const i3 = pathname.indexOf("/", 16) + 1;
|
|
11974
|
+
if (i3 && i3 !== len) {
|
|
11975
|
+
const s3 = decodeURIComponent(pathname.slice(16, i3 - 1));
|
|
11976
|
+
if (s3) {
|
|
11977
|
+
const i4 = pathname.indexOf("/", i3) + 1;
|
|
11978
|
+
if (i4 && i4 !== len) {
|
|
11979
|
+
if (pathname.slice(i3, i4 - 1) === "review") {
|
|
11980
|
+
const i5 = pathname.indexOf("/", i4) + 1;
|
|
11981
|
+
if (!i5 || i5 === len) {
|
|
11982
|
+
const s5 = decodeURIComponent(pathname.slice(i4, i5 ? -1 : len));
|
|
11983
|
+
if (s5) return {
|
|
11984
|
+
handler: patch38,
|
|
11985
|
+
path: "/api/workspaces/$id/review/$commentId",
|
|
11986
|
+
params: {
|
|
11987
|
+
id: s3,
|
|
11988
|
+
commentId: s5
|
|
11989
|
+
},
|
|
11990
|
+
options: patch38_options,
|
|
11991
|
+
meta: {}
|
|
11992
|
+
};
|
|
11993
|
+
}
|
|
11994
|
+
}
|
|
11995
|
+
}
|
|
11996
|
+
}
|
|
11829
11997
|
}
|
|
11830
11998
|
}
|
|
11831
11999
|
}
|
|
@@ -15882,4 +16050,4 @@ server.listen(port, () => {
|
|
|
15882
16050
|
//#endregion
|
|
15883
16051
|
export {};
|
|
15884
16052
|
|
|
15885
|
-
;var __MARKO_MANIFEST__={"
|
|
16053
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w._-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/new-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/settings-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w._-CyAQSfuD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CyAQSfuD.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DOL8nhko.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DOL8nhko.css\"",">"],"defer":[2,"/assets/w-hKsQDica.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-hKsQDica.js\"","></script>",2,"modulepreload#/assets/_DY1ZTiKf.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DY1ZTiKf.js\"",">"]}};
|