@dylanpiercey/work 0.0.111 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_BBEL67Rf.js +2 -0
- package/dist/{_KnVolal5.js → _CVABZuWj.js} +76 -76
- package/dist/{_p66iQ--o.js → _CmheBYWi.js} +4 -2
- package/dist/{_BuaQ_-hw.js → _DoD4UgFO.js} +4 -4
- package/dist/index.mjs +281 -259
- package/dist/public/assets/{_C6i0R5IU.js → _2DF3sBmz.js} +1 -1
- package/dist/public/assets/_2DF3sBmz.js.br +0 -0
- package/dist/public/assets/{_CboT5p28.js → _74W14-_q.js} +1 -1
- package/dist/public/assets/_74W14-_q.js.br +0 -0
- package/dist/public/assets/{_ClFqaXq52.js → _ApH2HHWd2.js} +1 -1
- package/dist/public/assets/_ApH2HHWd2.js.br +0 -0
- package/dist/public/assets/{_D4j6nEL0.js → _B-qoH-w0.js} +1 -1
- package/dist/public/assets/_B-qoH-w0.js.br +0 -0
- package/dist/public/assets/{_CDyIZMHf2.js → _B077m-NQ2.js} +1 -1
- package/dist/public/assets/_B077m-NQ2.js.br +0 -0
- package/dist/public/assets/{_1c6WG7Hq.js → _B2cHLb9C.js} +1 -1
- package/dist/public/assets/_B2cHLb9C.js.br +0 -0
- package/dist/public/assets/{_wayuePhh2.js → _B9EZYisE2.js} +1 -1
- package/dist/public/assets/_B9EZYisE2.js.br +0 -0
- package/dist/public/assets/{_6BMRJihE.js → _BCWWfl6-.js} +1 -1
- package/dist/public/assets/_BCWWfl6-.js.br +0 -0
- package/dist/public/assets/{_Dd5FyB2f.js → _BDPTY4jA.js} +1 -1
- package/dist/public/assets/_BDPTY4jA.js.br +0 -0
- package/dist/public/assets/{_DT54LL0j.js → _BFaOwPTc.js} +1 -1
- package/dist/public/assets/_BFaOwPTc.js.br +0 -0
- package/dist/public/assets/{_C0wapZ5D2.js → _BIgK3P512.js} +1 -1
- package/dist/public/assets/_BIgK3P512.js.br +0 -0
- package/dist/public/assets/{_BUMIdQKv.js → _BK0NC6z7.js} +1 -1
- package/dist/public/assets/_BK0NC6z7.js.br +0 -0
- package/dist/public/assets/{_BjcCdrjz.js → _BMrqDTtI.js} +1 -1
- package/dist/public/assets/_BMrqDTtI.js.br +0 -0
- package/dist/public/assets/{_BqfMqk592.js → _BMwn454u2.js} +1 -1
- package/dist/public/assets/_BMwn454u2.js.br +0 -0
- package/dist/public/assets/{_DAbxN6jD.js → _BPxKhfwb.js} +1 -1
- package/dist/public/assets/_BPxKhfwb.js.br +0 -0
- package/dist/public/assets/{_C5GxgTI9.js → _BZxa0CGm.js} +1 -1
- package/dist/public/assets/_BZxa0CGm.js.br +0 -0
- package/dist/public/assets/{_DYGYgyuA.js → _BgpATxlT.js} +1 -1
- package/dist/public/assets/_BgpATxlT.js.br +0 -0
- package/dist/public/assets/{_Dw21qOci.js → _BkcTSJBO.js} +1 -1
- package/dist/public/assets/_BkcTSJBO.js.br +0 -0
- package/dist/public/assets/{_Da4grkPm.js → _BsZ5p8YS.js} +6 -6
- package/dist/public/assets/_BsZ5p8YS.js.br +0 -0
- package/dist/public/assets/{_D2MNjCml2.js → _CBDKiFTR2.js} +1 -1
- package/dist/public/assets/_CBDKiFTR2.js.br +0 -0
- package/dist/public/assets/{_BL3KtZyD2.js → _CF4TtLZ12.js} +1 -1
- package/dist/public/assets/_CF4TtLZ12.js.br +0 -0
- package/dist/public/assets/{_DZq7IQfa.js → _CKRvZx4i.js} +1 -1
- package/dist/public/assets/_CKRvZx4i.js.br +0 -0
- package/dist/public/assets/{_AteHAJ2h.js → _COYkYoFv.js} +1 -1
- package/dist/public/assets/_COYkYoFv.js.br +0 -0
- package/dist/public/assets/{_BNbV9Vbl2.js → _CeDZd8rZ2.js} +1 -1
- package/dist/public/assets/_CeDZd8rZ2.js.br +0 -0
- package/dist/public/assets/{_BURs7v_E.js → _Cnbwmntk.js} +1 -1
- package/dist/public/assets/_Cnbwmntk.js.br +0 -0
- package/dist/public/assets/{_Ddl0JSuQ2.js → _Co-wEQAY2.js} +1 -1
- package/dist/public/assets/_Co-wEQAY2.js.br +0 -0
- package/dist/public/assets/{_D4vTXN5H.js → _CrG9TeUY.js} +1 -1
- package/dist/public/assets/_CrG9TeUY.js.br +0 -0
- package/dist/public/assets/{_Dk8yz5LG.js → _Crll305z.js} +1 -1
- package/dist/public/assets/_Crll305z.js.br +0 -0
- package/dist/public/assets/{_BsBDYQWm.js → _CzrKRxDL.js} +1 -1
- package/dist/public/assets/_CzrKRxDL.js.br +0 -0
- package/dist/public/assets/{_Dxu-pKzh.js → _D0edGJXb.js} +1 -1
- package/dist/public/assets/_D0edGJXb.js.br +0 -0
- package/dist/public/assets/{_BZ2I4zuS.js → _D3uoG5zl.js} +1 -1
- package/dist/public/assets/_D3uoG5zl.js.br +0 -0
- package/dist/public/assets/{_DX5nnDo0.js → _D4twEvqB.js} +1 -1
- package/dist/public/assets/_D4twEvqB.js.br +0 -0
- package/dist/public/assets/{_WdcuSKkM.js → _D6mKE2py.js} +1 -1
- package/dist/public/assets/_D6mKE2py.js.br +0 -0
- package/dist/public/assets/{_Bl9lL_Vz.js → _D7EH6nkC.js} +1 -1
- package/dist/public/assets/_D7EH6nkC.js.br +0 -0
- package/dist/public/assets/{_DqNkKOyb.js → _D8-qVrzw.js} +1 -1
- package/dist/public/assets/_D8-qVrzw.js.br +0 -0
- package/dist/public/assets/{_CQ9SdDHg.js → _DFDpgZ91.js} +1 -1
- package/dist/public/assets/_DFDpgZ91.js.br +0 -0
- package/dist/public/assets/{_CXLpd7ul2.js → _DHFpz4Dg2.js} +1 -1
- package/dist/public/assets/_DHFpz4Dg2.js.br +0 -0
- package/dist/public/assets/{_BdALv_xI2.js → _DJgruxdo2.js} +1 -1
- package/dist/public/assets/{_7CgequR92.js → _DMBG0_ll2.js} +1 -1
- package/dist/public/assets/_DMBG0_ll2.js.br +0 -0
- package/dist/public/assets/{_C8lvCr5S.js → _DQSnlR_M.js} +1 -1
- package/dist/public/assets/_DQSnlR_M.js.br +0 -0
- package/dist/public/assets/_DT6z8SCm.js +86 -0
- package/dist/public/assets/_DT6z8SCm.js.br +0 -0
- package/dist/public/assets/{_i4lYI8C5.js → _DUajRqQa.js} +1 -1
- package/dist/public/assets/_DUajRqQa.js.br +0 -0
- package/dist/public/assets/{_9GDNg-5a.js → _DWCqB08w.js} +1 -1
- package/dist/public/assets/_DWCqB08w.js.br +0 -0
- package/dist/public/assets/{_B-ZRLaZW2.js → _DXIIaXRS2.js} +1 -1
- package/dist/public/assets/_DXIIaXRS2.js.br +0 -0
- package/dist/public/assets/{_C11Wu6g-.js → _D_Lgs_X_.js} +1 -1
- package/dist/public/assets/_D_Lgs_X_.js.br +0 -0
- package/dist/public/assets/{_BZpXUOfz.js → _D_cpCm9h.js} +1 -1
- package/dist/public/assets/_D_cpCm9h.js.br +0 -0
- package/dist/public/assets/{_BpVNB046.js → _DjO290Pw.js} +1 -1
- package/dist/public/assets/_DjO290Pw.js.br +0 -0
- package/dist/public/assets/{_CP4S1dUd2.js → _DklbdiCc2.js} +1 -1
- package/dist/public/assets/_DklbdiCc2.js.br +0 -0
- package/dist/public/assets/{_aXY_JJZX.js → _DlCjan_T.js} +1 -1
- package/dist/public/assets/_DlCjan_T.js.br +0 -0
- package/dist/public/assets/{_B-AVIG3L2.js → _DosQtxzJ2.js} +1 -1
- package/dist/public/assets/_DosQtxzJ2.js.br +0 -0
- package/dist/public/assets/{_n389CxtO.js → _DuyrV6qu.js} +1 -1
- package/dist/public/assets/_DuyrV6qu.js.br +0 -0
- package/dist/public/assets/{_XXiOjT6m.js → _DypTr90k.js} +1 -1
- package/dist/public/assets/_DypTr90k.js.br +0 -0
- package/dist/public/assets/{_Cegl5H9I2.js → _DzpvRw_B2.js} +1 -1
- package/dist/public/assets/_DzpvRw_B2.js.br +0 -0
- package/dist/public/assets/{_j7gCsujy2.js → _EljmBS2i2.js} +1 -1
- package/dist/public/assets/_EljmBS2i2.js.br +0 -0
- package/dist/public/assets/{_DKaKLiEB.js → _FK1mI3bG.js} +1 -1
- package/dist/public/assets/_FK1mI3bG.js.br +0 -0
- package/dist/public/assets/{_C3Fi5gPV2.js → _Fy2TXuAx2.js} +1 -1
- package/dist/public/assets/_Fy2TXuAx2.js.br +0 -0
- package/dist/public/assets/{_DeEPaN542.js → _Jv-EPG9r2.js} +1 -1
- package/dist/public/assets/{_CBLafGPM.js → _O57ccbOT.js} +1 -1
- package/dist/public/assets/_O57ccbOT.js.br +0 -0
- package/dist/public/assets/{_vjOOOOQU.js → _OpFGMmeT.js} +1 -1
- package/dist/public/assets/_OpFGMmeT.js.br +0 -0
- package/dist/public/assets/{_CPmYbzlY2.js → _RUFwuk492.js} +1 -1
- package/dist/public/assets/_RUFwuk492.js.br +0 -0
- package/dist/public/assets/{_DkXKvmjj2.js → _TVKm93sW2.js} +1 -1
- package/dist/public/assets/_TVKm93sW2.js.br +0 -0
- package/dist/public/assets/{_uzzsZS5x.js → _V58zUMM9.js} +1 -1
- package/dist/public/assets/_V58zUMM9.js.br +0 -0
- package/dist/public/assets/{_O2iktZN_.js → _axH9g-uz.js} +1 -1
- package/dist/public/assets/_axH9g-uz.js.br +0 -0
- package/dist/public/assets/{_Cod8TBVo.js → _gWLvy_5-.js} +1 -1
- package/dist/public/assets/_gWLvy_5-.js.br +0 -0
- package/dist/public/assets/{_BTqiLv0G.js → _imsv_x99.js} +1 -1
- package/dist/public/assets/_imsv_x99.js.br +0 -0
- package/dist/public/assets/{_sYH3e1tm.js → _jZZLNOqC.js} +1 -1
- package/dist/public/assets/_jZZLNOqC.js.br +0 -0
- package/dist/public/assets/{_BrCfP3Y1.js → _llaO6jHF.js} +1 -1
- package/dist/public/assets/_llaO6jHF.js.br +0 -0
- package/dist/public/assets/{_Bt5bjDiv.js → _mXuIOx73.js} +1 -1
- package/dist/public/assets/_mXuIOx73.js.br +0 -0
- package/dist/public/assets/{_BlcsH6JP2.js → _ng_IjwY02.js} +1 -1
- package/dist/public/assets/_ng_IjwY02.js.br +0 -0
- package/dist/public/assets/{_zrY4PSc0.js → _oBxEhf6t.js} +1 -1
- package/dist/public/assets/_oBxEhf6t.js.br +0 -0
- package/dist/public/assets/{_DaO759Qp.js → _ou7SVIDE.js} +1 -1
- package/dist/public/assets/_ou7SVIDE.js.br +0 -0
- package/dist/public/assets/{_BM48MEUF.js → _rGC-LID2.js} +1 -1
- package/dist/public/assets/_rGC-LID2.js.br +0 -0
- package/dist/public/assets/{_CvACW96n2.js → _uWSYIarZ2.js} +1 -1
- package/dist/public/assets/_uWSYIarZ2.js.br +0 -0
- package/dist/public/assets/{_CtuvkBvC.js → _vvDDy4Tk.js} +1 -1
- package/dist/public/assets/{_BSQRe2VD2.js → _wmLphO_w2.js} +1 -1
- package/dist/public/assets/_wmLphO_w2.js.br +0 -0
- package/dist/public/assets/{_BBmGj7wD.js → _zBVhc44a.js} +1 -1
- package/dist/public/assets/_zBVhc44a.js.br +0 -0
- package/dist/public/assets/app-page-7g0VyBen.css +1 -0
- package/dist/public/assets/app-page-7g0VyBen.css.br +0 -0
- package/dist/public/assets/diff-view-Bok-ODFF.css +1 -0
- package/dist/public/assets/diff-view-Bok-ODFF.css.br +0 -0
- package/dist/public/assets/new-B-GbCgRT.js +1 -0
- package/dist/public/assets/settings-B-GbCgRT.js +1 -0
- package/dist/public/assets/w-B-GbCgRT.js +1 -0
- package/dist/public/assets/w._-B-GbCgRT.js +1 -0
- package/dist/public/assets/w._-BevC9WnY.js +1 -0
- package/lib/setup/doctor.mjs +2 -0
- package/package.json +1 -1
- package/dist/_BSV4YJGc.js +0 -2
- package/dist/public/assets/_1c6WG7Hq.js.br +0 -0
- package/dist/public/assets/_6BMRJihE.js.br +0 -0
- package/dist/public/assets/_7CgequR92.js.br +0 -0
- package/dist/public/assets/_9GDNg-5a.js.br +0 -0
- package/dist/public/assets/_AteHAJ2h.js.br +0 -0
- package/dist/public/assets/_B-AVIG3L2.js.br +0 -0
- package/dist/public/assets/_B-ZRLaZW2.js.br +0 -0
- package/dist/public/assets/_BBmGj7wD.js.br +0 -0
- package/dist/public/assets/_BL3KtZyD2.js.br +0 -0
- package/dist/public/assets/_BM48MEUF.js.br +0 -0
- package/dist/public/assets/_BNbV9Vbl2.js.br +0 -0
- package/dist/public/assets/_BSQRe2VD2.js.br +0 -0
- package/dist/public/assets/_BTqiLv0G.js.br +0 -0
- package/dist/public/assets/_BUMIdQKv.js.br +0 -0
- package/dist/public/assets/_BURs7v_E.js.br +0 -0
- package/dist/public/assets/_BZ2I4zuS.js.br +0 -0
- package/dist/public/assets/_BZpXUOfz.js.br +0 -0
- package/dist/public/assets/_BjcCdrjz.js.br +0 -0
- package/dist/public/assets/_Bl9lL_Vz.js.br +0 -0
- package/dist/public/assets/_BlcsH6JP2.js.br +0 -0
- package/dist/public/assets/_BpVNB046.js.br +0 -0
- package/dist/public/assets/_BqfMqk592.js.br +0 -0
- package/dist/public/assets/_BrCfP3Y1.js.br +0 -0
- package/dist/public/assets/_BsBDYQWm.js.br +0 -0
- package/dist/public/assets/_Bt5bjDiv.js.br +0 -0
- package/dist/public/assets/_C0wapZ5D2.js.br +0 -0
- package/dist/public/assets/_C11Wu6g-.js.br +0 -0
- package/dist/public/assets/_C3Fi5gPV2.js.br +0 -0
- package/dist/public/assets/_C5GxgTI9.js.br +0 -0
- package/dist/public/assets/_C6i0R5IU.js.br +0 -0
- package/dist/public/assets/_C8lvCr5S.js.br +0 -0
- package/dist/public/assets/_CBLafGPM.js.br +0 -0
- package/dist/public/assets/_CDyIZMHf2.js.br +0 -0
- package/dist/public/assets/_CP4S1dUd2.js.br +0 -0
- package/dist/public/assets/_CPmYbzlY2.js.br +0 -0
- package/dist/public/assets/_CQ9SdDHg.js.br +0 -0
- package/dist/public/assets/_CXLpd7ul2.js.br +0 -0
- package/dist/public/assets/_CboT5p28.js.br +0 -0
- package/dist/public/assets/_Cegl5H9I2.js.br +0 -0
- package/dist/public/assets/_ClFqaXq52.js.br +0 -0
- package/dist/public/assets/_Cod8TBVo.js.br +0 -0
- package/dist/public/assets/_CvACW96n2.js.br +0 -0
- package/dist/public/assets/_D2MNjCml2.js.br +0 -0
- package/dist/public/assets/_D4j6nEL0.js.br +0 -0
- package/dist/public/assets/_D4vTXN5H.js.br +0 -0
- package/dist/public/assets/_DAbxN6jD.js.br +0 -0
- package/dist/public/assets/_DKaKLiEB.js.br +0 -0
- package/dist/public/assets/_DT54LL0j.js.br +0 -0
- package/dist/public/assets/_DX5nnDo0.js.br +0 -0
- package/dist/public/assets/_DYGYgyuA.js.br +0 -0
- package/dist/public/assets/_DZq7IQfa.js.br +0 -0
- package/dist/public/assets/_Da4grkPm.js.br +0 -0
- package/dist/public/assets/_DaO759Qp.js.br +0 -0
- package/dist/public/assets/_Dd5FyB2f.js.br +0 -0
- package/dist/public/assets/_Ddl0JSuQ2.js.br +0 -0
- package/dist/public/assets/_Di3Qo2B3.js +0 -86
- package/dist/public/assets/_Di3Qo2B3.js.br +0 -0
- package/dist/public/assets/_Dk8yz5LG.js.br +0 -0
- package/dist/public/assets/_DkXKvmjj2.js.br +0 -0
- package/dist/public/assets/_DqNkKOyb.js.br +0 -0
- package/dist/public/assets/_Dw21qOci.js.br +0 -0
- package/dist/public/assets/_Dxu-pKzh.js.br +0 -0
- package/dist/public/assets/_O2iktZN_.js.br +0 -0
- package/dist/public/assets/_WdcuSKkM.js.br +0 -0
- package/dist/public/assets/_XXiOjT6m.js.br +0 -0
- package/dist/public/assets/_aXY_JJZX.js.br +0 -0
- package/dist/public/assets/_i4lYI8C5.js.br +0 -0
- package/dist/public/assets/_j7gCsujy2.js.br +0 -0
- package/dist/public/assets/_n389CxtO.js.br +0 -0
- package/dist/public/assets/_sYH3e1tm.js.br +0 -0
- package/dist/public/assets/_uzzsZS5x.js.br +0 -0
- package/dist/public/assets/_vjOOOOQU.js.br +0 -0
- package/dist/public/assets/_wayuePhh2.js.br +0 -0
- package/dist/public/assets/_zrY4PSc0.js.br +0 -0
- package/dist/public/assets/app-page-UJN5VT5z.css +0 -1
- package/dist/public/assets/app-page-UJN5VT5z.css.br +0 -0
- package/dist/public/assets/diff-view-Brv7weVN.css +0 -1
- package/dist/public/assets/diff-view-Brv7weVN.css.br +0 -0
- package/dist/public/assets/new-BW5ebc5F.js +0 -1
- package/dist/public/assets/settings-BW5ebc5F.js +0 -1
- package/dist/public/assets/w-BW5ebc5F.js +0 -1
- package/dist/public/assets/w._-BW5ebc5F.js +0 -1
- package/dist/public/assets/w._-DKwwm67c.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 run, a as ensureTmuxServer, at as which, b as readHookPayload, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as db, et as discoverAgents, ft as get, g as sessionStates, gt as git, h as sendToSession, ht as gh, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as toolById, m as renameSession, mt as TMUX_SOCKET, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as workspacePath, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as all, v as tmuxWasStarted, vt as tmux, w as agentFamily, x as reportsWorking, y as AGENTS, yt as config, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, Ft as writeScope, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as forOf, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as withPageAssets, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as run, a as ensureTmuxServer, at as which, b as readHookPayload, c as killWorkspaceSessions, ct as agentById, d as newSessionArgs, dt as db, et as discoverAgents, ft as get, g as sessionStates, gt as git, h as sendToSession, ht as gh, i as disposeSessions, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as toolById, m as renameSession, mt as TMUX_SOCKET, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as DEFAULT_GITHUB_HOST, p as panePids, pt as workspacePath, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as all, v as tmuxWasStarted, vt as tmux, w as agentFamily, x as reportsWorking, y as AGENTS, yt as config, z as pushPublicKey } from "./_CmheBYWi.js";
|
|
3
|
+
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, Ft as writeScope, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as forOf, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as withPageAssets, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_DoD4UgFO.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1842,8 +1842,10 @@ async function forkHasRefs(forkFull, host, fork) {
|
|
|
1842
1842
|
], host).catch(() => "");
|
|
1843
1843
|
return !!count && count !== "0";
|
|
1844
1844
|
}
|
|
1845
|
-
/** Branch names for a repo (for base-branch selection).
|
|
1846
|
-
|
|
1845
|
+
/** Branch names for a repo (for base-branch selection). `refresh` bypasses
|
|
1846
|
+
* the cache, for the picker's refresh button — a branch pushed a moment ago
|
|
1847
|
+
* must not wait out the TTL. */
|
|
1848
|
+
var repoBranches = (fullName, refresh = false) => branches(fullName, refresh);
|
|
1847
1849
|
/** Upstream `[host/]owner/name` when the repo is a fork, else null. A PR
|
|
1848
1850
|
* opened from a fork lives in the upstream repo, so PR search needs this to
|
|
1849
1851
|
* know where else to look. The catalog answers from disk for listed repos
|
|
@@ -1857,7 +1859,7 @@ async function repoParent(fullName) {
|
|
|
1857
1859
|
return (await repoMeta(fullName)).parent;
|
|
1858
1860
|
}
|
|
1859
1861
|
/** The repo's default branch, or null when the lookup failed. */
|
|
1860
|
-
var repoDefaultBranch = async (fullName) => (await repoMeta(fullName)).defaultBranch;
|
|
1862
|
+
var repoDefaultBranch = async (fullName, refresh = false) => (await repoMeta(fullName, refresh)).defaultBranch;
|
|
1861
1863
|
var repoMeta = swr(36e5, async (fullName) => {
|
|
1862
1864
|
const { host, name } = splitRepo(fullName);
|
|
1863
1865
|
const out = await gh([
|
|
@@ -1885,15 +1887,28 @@ var repoMeta = swr(36e5, async (fullName) => {
|
|
|
1885
1887
|
defaultBranch: parsed.default || null
|
|
1886
1888
|
};
|
|
1887
1889
|
});
|
|
1890
|
+
/** REST pages branches at 100 and orders them alphabetically, so a repo
|
|
1891
|
+
* with more than one page hid everything past it — on a repo with a couple
|
|
1892
|
+
* hundred workspace branches that silently cut `main` itself out of the
|
|
1893
|
+
* picker. Paginate, but bounded: a repo past this many pages costs more
|
|
1894
|
+
* round trips than a picker should, and the filter is how you find a branch
|
|
1895
|
+
* there anyway. */
|
|
1896
|
+
var BRANCH_PAGES = 10;
|
|
1888
1897
|
var branches = swr(3e5, async (fullName) => {
|
|
1889
1898
|
const { host, name } = splitRepo(fullName);
|
|
1890
1899
|
try {
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1900
|
+
const all = [];
|
|
1901
|
+
for (let page = 1; page <= BRANCH_PAGES; page++) {
|
|
1902
|
+
const names = (await gh([
|
|
1903
|
+
"api",
|
|
1904
|
+
`repos/${name}/branches?per_page=100&page=${page}`,
|
|
1905
|
+
"--jq",
|
|
1906
|
+
".[].name"
|
|
1907
|
+
], host)).split("\n").filter(Boolean);
|
|
1908
|
+
all.push(...names);
|
|
1909
|
+
if (names.length < 100) break;
|
|
1910
|
+
}
|
|
1911
|
+
return all;
|
|
1897
1912
|
} catch {
|
|
1898
1913
|
await ensureGitCredentials(host);
|
|
1899
1914
|
return (await git([
|
|
@@ -1977,7 +1992,7 @@ async function listeningPorts() {
|
|
|
1977
1992
|
const seen = /* @__PURE__ */ new Set();
|
|
1978
1993
|
const ports = [];
|
|
1979
1994
|
if (darwin) {
|
|
1980
|
-
const out = await run("lsof", [
|
|
1995
|
+
const out = await run("/usr/sbin/lsof", [
|
|
1981
1996
|
"-nP",
|
|
1982
1997
|
"-iTCP",
|
|
1983
1998
|
"-sTCP:LISTEN",
|
|
@@ -2018,7 +2033,7 @@ async function listeningPorts() {
|
|
|
2018
2033
|
async function processCwds() {
|
|
2019
2034
|
const cwds = /* @__PURE__ */ new Map();
|
|
2020
2035
|
if (darwin) {
|
|
2021
|
-
const out = await run("lsof", [
|
|
2036
|
+
const out = await run("/usr/sbin/lsof", [
|
|
2022
2037
|
"-a",
|
|
2023
2038
|
"-d",
|
|
2024
2039
|
"cwd",
|
|
@@ -2053,7 +2068,7 @@ async function procArgs(pid) {
|
|
|
2053
2068
|
}
|
|
2054
2069
|
async function readCwd(pid) {
|
|
2055
2070
|
if (darwin) {
|
|
2056
|
-
const line = (await run("lsof", [
|
|
2071
|
+
const line = (await run("/usr/sbin/lsof", [
|
|
2057
2072
|
"-a",
|
|
2058
2073
|
"-d",
|
|
2059
2074
|
"cwd",
|
|
@@ -3885,9 +3900,9 @@ function applyInstance(inst) {
|
|
|
3885
3900
|
}
|
|
3886
3901
|
//#endregion
|
|
3887
3902
|
//#region src/tags/settings-page.css.ts
|
|
3888
|
-
var content$2 = "_cd
|
|
3889
|
-
var agentGrid = "_ch
|
|
3890
|
-
var toolGrid = "_cr
|
|
3903
|
+
var content$2 = "_cd _bP _bQ";
|
|
3904
|
+
var agentGrid = "_ch _bA";
|
|
3905
|
+
var toolGrid = "_cr _bA";
|
|
3891
3906
|
var themeSeg = "_cG _6";
|
|
3892
3907
|
var swatches = "_cO _6";
|
|
3893
3908
|
//#endregion
|
|
@@ -3895,18 +3910,18 @@ var swatches = "_cO _6";
|
|
|
3895
3910
|
var page_head_default = _template("r", (input) => {
|
|
3896
3911
|
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);
|
|
3897
3912
|
const $scope0_id = _scope_id();
|
|
3898
|
-
_html(`<header${_attr_class("
|
|
3913
|
+
_html(`<header${_attr_class("_bR")}>`);
|
|
3899
3914
|
_if(() => {
|
|
3900
3915
|
if (input.backHref) {
|
|
3901
3916
|
const $scope1_id = _scope_id();
|
|
3902
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3917
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_dd"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3903
3918
|
icon_back_default({ size: 16 });
|
|
3904
3919
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3905
3920
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3906
3921
|
return 0;
|
|
3907
3922
|
} else if (input.onBack) {
|
|
3908
3923
|
const $scope2_id = _scope_id();
|
|
3909
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3924
|
+
_html(`<button${_attr_class([iconBtnRow, "_dd"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3910
3925
|
icon_back_default({ size: 16 });
|
|
3911
3926
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3912
3927
|
_script($scope2_id, "r0");
|
|
@@ -3914,11 +3929,11 @@ var page_head_default = _template("r", (input) => {
|
|
|
3914
3929
|
return 1;
|
|
3915
3930
|
}
|
|
3916
3931
|
}, $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);
|
|
3917
|
-
_html(`<div${_attr_class("
|
|
3932
|
+
_html(`<div${_attr_class("_bT")}><h1${_attr("id", input.titleId)}${_attr_class("_bS")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3918
3933
|
_if(() => {
|
|
3919
3934
|
if (input.meta) {
|
|
3920
3935
|
const $scope3_id = _scope_id();
|
|
3921
|
-
_html(`<p${_attr_class("
|
|
3936
|
+
_html(`<p${_attr_class("_bU")}>`);
|
|
3922
3937
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3923
3938
|
_html("</p>");
|
|
3924
3939
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3929,7 +3944,7 @@ var page_head_default = _template("r", (input) => {
|
|
|
3929
3944
|
_if(() => {
|
|
3930
3945
|
if (input.actions) {
|
|
3931
3946
|
const $scope4_id = _scope_id();
|
|
3932
|
-
_html(`<div${_attr_class("
|
|
3947
|
+
_html(`<div${_attr_class("_bV")}>`);
|
|
3933
3948
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3934
3949
|
_html("</div>");
|
|
3935
3950
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3997,7 +4012,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
3997
4012
|
n: $badge__closures
|
|
3998
4013
|
});
|
|
3999
4014
|
});
|
|
4000
|
-
var usageNote = "
|
|
4015
|
+
var usageNote = "_dw _S";
|
|
4001
4016
|
//#endregion
|
|
4002
4017
|
//#region src/tags/icons/icon-warning.marko
|
|
4003
4018
|
var icon_warning_default = _template("kb", (input) => {
|
|
@@ -4038,11 +4053,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4038
4053
|
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);
|
|
4039
4054
|
const $scope0_id = _scope_id();
|
|
4040
4055
|
const agent = input.agent;
|
|
4041
|
-
_html(`<div${_attr_class(["
|
|
4056
|
+
_html(`<div${_attr_class(["_dq", { ["_dr"]: input.hideName }])}><div${_attr_class("_ds")}>`);
|
|
4042
4057
|
_if(() => {
|
|
4043
4058
|
if (!input.hideName) {
|
|
4044
4059
|
const $scope1_id = _scope_id();
|
|
4045
|
-
_html(`<strong${_attr_class("
|
|
4060
|
+
_html(`<strong${_attr_class("_dL")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4046
4061
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4047
4062
|
return 0;
|
|
4048
4063
|
}
|
|
@@ -4050,7 +4065,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4050
4065
|
_if(() => {
|
|
4051
4066
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4052
4067
|
const $scope2_id = _scope_id();
|
|
4053
|
-
_html(`<span${_attr_class("
|
|
4068
|
+
_html(`<span${_attr_class("_dt")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4054
4069
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4055
4070
|
return 0;
|
|
4056
4071
|
}
|
|
@@ -4058,21 +4073,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4058
4073
|
_if(() => {
|
|
4059
4074
|
if (agent.stale_seconds != null) {
|
|
4060
4075
|
const $scope3_id = _scope_id();
|
|
4061
|
-
_html(`<span${_attr_class("
|
|
4076
|
+
_html(`<span${_attr_class("_du")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4062
4077
|
icon_warning_default({ size: 12 });
|
|
4063
4078
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
4064
4079
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4065
4080
|
return 0;
|
|
4066
4081
|
}
|
|
4067
4082
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4068
|
-
_html(`</div><div${_attr_class(["
|
|
4083
|
+
_html(`</div><div${_attr_class(["_dv", { ["_dM"]: agent.stale_seconds != null }])}>`);
|
|
4069
4084
|
_for_of(agent.windows || [], (win) => {
|
|
4070
4085
|
const $scope4_id = _scope_id();
|
|
4071
4086
|
const pct = pctText$1(win.used_percent);
|
|
4072
4087
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4073
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4074
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4075
|
-
_html(`<div${_attr_class("
|
|
4088
|
+
const fillClass = win.used_percent >= 90 ? "_dE" : win.used_percent >= 70 ? "_dD" : win.used_percent >= 40 ? "_dC" : "_dB";
|
|
4089
|
+
const pctClass = win.used_percent >= 90 ? "_dJ" : win.used_percent >= 70 ? "_dI" : win.used_percent >= 40 ? "_dH" : "_dG";
|
|
4090
|
+
_html(`<div${_attr_class("_dx")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dy")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dz")}><span${_attr_class(["_dA", 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(["_dF", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dK")}>`);
|
|
4076
4091
|
_if(() => {
|
|
4077
4092
|
if (label) {
|
|
4078
4093
|
const $scope6_id = _scope_id();
|
|
@@ -4151,14 +4166,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4151
4166
|
localCode = null;
|
|
4152
4167
|
}
|
|
4153
4168
|
}, "z0", $scope0_id);
|
|
4154
|
-
_html(`<div${_attr_class("
|
|
4169
|
+
_html(`<div${_attr_class("_de")}>`);
|
|
4155
4170
|
_if(() => {
|
|
4156
4171
|
if (input.items.length) {
|
|
4157
4172
|
const $scope1_id = _scope_id();
|
|
4158
|
-
_html(`<p${_attr_class("
|
|
4173
|
+
_html(`<p${_attr_class("_dp")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_df")}>`);
|
|
4159
4174
|
_for_of(input.items, (s) => {
|
|
4160
4175
|
const $scope2_id = _scope_id();
|
|
4161
|
-
_html(`<li${_attr_class("
|
|
4176
|
+
_html(`<li${_attr_class("_dg")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dh")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
4162
4177
|
icon_xmark_default({ size: 11 });
|
|
4163
4178
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
4164
4179
|
_script($scope2_id, "z1");
|
|
@@ -4167,17 +4182,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4167
4182
|
_: _scope_with_id($scope1_id)
|
|
4168
4183
|
}));
|
|
4169
4184
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
4170
|
-
_html(`<div${_attr_class("
|
|
4185
|
+
_html(`<div${_attr_class("_di")}>`);
|
|
4171
4186
|
_if(() => {
|
|
4172
4187
|
if (busy && authCode$2) {
|
|
4173
4188
|
const $scope5_id = _scope_id();
|
|
4174
|
-
_html(`<span${_attr_class("
|
|
4189
|
+
_html(`<span${_attr_class("_dj")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dk")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dl")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
4175
4190
|
_script($scope5_id, "z2");
|
|
4176
4191
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
4177
4192
|
return 0;
|
|
4178
4193
|
} else if (busy) {
|
|
4179
4194
|
const $scope8_id = _scope_id();
|
|
4180
|
-
_html(`<span${_attr_class("
|
|
4195
|
+
_html(`<span${_attr_class("_dj")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
4181
4196
|
writeScope($scope8_id, {});
|
|
4182
4197
|
return 1;
|
|
4183
4198
|
} else {
|
|
@@ -4191,7 +4206,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4191
4206
|
_if(() => {
|
|
4192
4207
|
if (localError) {
|
|
4193
4208
|
const $scope6_id = _scope_id();
|
|
4194
|
-
_html(`<p${_attr_class("
|
|
4209
|
+
_html(`<p${_attr_class("_dp")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4195
4210
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4196
4211
|
return 0;
|
|
4197
4212
|
}
|
|
@@ -4203,10 +4218,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4203
4218
|
_if(() => {
|
|
4204
4219
|
if (skipped$1.length) {
|
|
4205
4220
|
const $scope3_id = _scope_id();
|
|
4206
|
-
_html(`<p${_attr_class("
|
|
4221
|
+
_html(`<p${_attr_class("_dm")}>Skipped SSO for `);
|
|
4207
4222
|
_for_of(skipped$1, (s) => {
|
|
4208
4223
|
const $scope4_id = _scope_id();
|
|
4209
|
-
_html(`<span${_attr_class("
|
|
4224
|
+
_html(`<span${_attr_class("_dn")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_do")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4210
4225
|
_script($scope4_id, "z4");
|
|
4211
4226
|
writeScope($scope4_id, {
|
|
4212
4227
|
f: s?.org,
|
|
@@ -4281,7 +4296,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4281
4296
|
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;
|
|
4282
4297
|
const dismissable = input.dismissable !== false;
|
|
4283
4298
|
let open = input.open;
|
|
4284
|
-
_html(`<dialog${_attr_class(["
|
|
4299
|
+
_html(`<dialog${_attr_class(["_fu", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4285
4300
|
...htmlInput,
|
|
4286
4301
|
open: null
|
|
4287
4302
|
}, {
|
|
@@ -4291,20 +4306,20 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4291
4306
|
closedby: 1,
|
|
4292
4307
|
"on-cancel": 1,
|
|
4293
4308
|
"on-close": 1
|
|
4294
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4309
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fv")}>`);
|
|
4295
4310
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4296
4311
|
_html("</div>");
|
|
4297
4312
|
_if(() => {
|
|
4298
4313
|
if (footer) {
|
|
4299
4314
|
const $scope1_id = _scope_id();
|
|
4300
|
-
_html(`<form method=dialog${_attr_class("
|
|
4315
|
+
_html(`<form method=dialog${_attr_class("_fw")}>`);
|
|
4301
4316
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4302
4317
|
_html("</form>");
|
|
4303
4318
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4304
4319
|
return 0;
|
|
4305
4320
|
} else if (input.openChange) {
|
|
4306
4321
|
const $scope2_id = _scope_id();
|
|
4307
|
-
_html(`<form method=dialog${_attr_class("
|
|
4322
|
+
_html(`<form method=dialog${_attr_class("_fw")}>`);
|
|
4308
4323
|
dialog_close_default({
|
|
4309
4324
|
class: ["_o", "_p"],
|
|
4310
4325
|
content: _content("p0", () => {
|
|
@@ -4363,7 +4378,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4363
4378
|
const $childScope = _peek_scope_id();
|
|
4364
4379
|
modal_view_default({
|
|
4365
4380
|
label: input.label,
|
|
4366
|
-
class: "
|
|
4381
|
+
class: "_db",
|
|
4367
4382
|
open: input.open,
|
|
4368
4383
|
openChange: input.openChange,
|
|
4369
4384
|
"aria-labelledby": titleId,
|
|
@@ -4386,7 +4401,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4386
4401
|
content: _content("s6", () => {
|
|
4387
4402
|
_scope_reason();
|
|
4388
4403
|
const $scope2_id = _scope_id();
|
|
4389
|
-
_html(`<h2${_attr_class("
|
|
4404
|
+
_html(`<h2${_attr_class("_dc")}${_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) => {
|
|
4390
4405
|
value = _new_value;
|
|
4391
4406
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4392
4407
|
_script($scope2_id, "s4");
|
|
@@ -4768,7 +4783,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4768
4783
|
const githubId = _id();
|
|
4769
4784
|
const machineId = _id();
|
|
4770
4785
|
const skillsId = _id();
|
|
4771
|
-
_html(`<div${_attr_class("
|
|
4786
|
+
_html(`<div${_attr_class("_bN")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bO")}><div${_attr_class(content$2)}>`);
|
|
4772
4787
|
_set_serialize_reason({
|
|
4773
4788
|
0: _serialize_guard($scope0_reason, 4),
|
|
4774
4789
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4875,7 +4890,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4875
4890
|
return 0;
|
|
4876
4891
|
}
|
|
4877
4892
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4878
|
-
_html(`<section${_attr_class("
|
|
4893
|
+
_html(`<section${_attr_class("_bx")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_by")}><h2${_attr("id", agentsId)}${_attr_class("_bM")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cj")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4879
4894
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4880
4895
|
setPreferred(v);
|
|
4881
4896
|
}, "v2", $scope0_id), () => {
|
|
@@ -4900,14 +4915,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4900
4915
|
const rows = lone ? [] : a.instances;
|
|
4901
4916
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4902
4917
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4903
|
-
_html(`<li${_attr_class(["
|
|
4918
|
+
_html(`<li${_attr_class(["_bC", "_ci"])}><div${_attr_class(["_cl", { ["_co"]: lone && !lone.enabled }])}>`);
|
|
4904
4919
|
_set_serialize_reason(12);
|
|
4905
4920
|
const $childScope4 = _peek_scope_id();
|
|
4906
4921
|
icon_agent_default({
|
|
4907
4922
|
agent: a.id,
|
|
4908
4923
|
size: 18
|
|
4909
4924
|
});
|
|
4910
|
-
_html(`<div${_attr_class("
|
|
4925
|
+
_html(`<div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class("_bE")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4911
4926
|
_if(() => {
|
|
4912
4927
|
if (lone && input.preferred === lone.id) {
|
|
4913
4928
|
const $scope70_id = _scope_id();
|
|
@@ -4925,7 +4940,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4925
4940
|
return 0;
|
|
4926
4941
|
} else if (!a.installed) {
|
|
4927
4942
|
const $scope71_id = _scope_id();
|
|
4928
|
-
_html(`<span${_attr_class("
|
|
4943
|
+
_html(`<span${_attr_class("_bG")}>Not installed</span>`);
|
|
4929
4944
|
writeScope($scope71_id, {});
|
|
4930
4945
|
return 1;
|
|
4931
4946
|
}
|
|
@@ -5043,7 +5058,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5043
5058
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5044
5059
|
_for_of(otherUsage, (u) => {
|
|
5045
5060
|
const $scope76_id = _scope_id();
|
|
5046
|
-
_html(`<li${_attr_class(["
|
|
5061
|
+
_html(`<li${_attr_class(["_bC", "_ci"])}>`);
|
|
5047
5062
|
_set_serialize_reason(6);
|
|
5048
5063
|
const $childScope9 = _peek_scope_id();
|
|
5049
5064
|
usage_meters_default({ agent: u });
|
|
@@ -5054,17 +5069,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5054
5069
|
_if(() => {
|
|
5055
5070
|
if (!usage && families.length) {
|
|
5056
5071
|
const $scope77_id = _scope_id();
|
|
5057
|
-
_html(`<p${_attr_class("
|
|
5072
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
5058
5073
|
writeScope($scope77_id, {});
|
|
5059
5074
|
return 0;
|
|
5060
5075
|
} else if (usage?.error) {
|
|
5061
5076
|
const $scope7_id = _scope_id();
|
|
5062
|
-
_html(`<p${_attr_class("
|
|
5077
|
+
_html(`<p${_attr_class("_bI")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
5063
5078
|
writeScope($scope7_id, {});
|
|
5064
5079
|
return 1;
|
|
5065
5080
|
}
|
|
5066
5081
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
5067
|
-
_html(`</section><section${_attr_class("
|
|
5082
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_by")}><h2${_attr("id", githubId)}${_attr_class("_bM")}>GitHub</h2></div><ul${_attr_class("_bA")}>`);
|
|
5068
5083
|
_for_of(setup?.github || [], (h) => {
|
|
5069
5084
|
const $scope12_id = _scope_id();
|
|
5070
5085
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -5078,7 +5093,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5078
5093
|
const skippedSso = (() => {
|
|
5079
5094
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5080
5095
|
})();
|
|
5081
|
-
_html(`<li${_attr_class(["
|
|
5096
|
+
_html(`<li${_attr_class(["_bC", "_cA"])}><div${_attr_class("_cB")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
5082
5097
|
_if(() => {
|
|
5083
5098
|
if (h.isEnterprise) {
|
|
5084
5099
|
const $scope80_id = _scope_id();
|
|
@@ -5101,12 +5116,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5101
5116
|
return 1;
|
|
5102
5117
|
} else if (h.authed) {
|
|
5103
5118
|
const $scope78_id = _scope_id();
|
|
5104
|
-
_html(`<span${_attr_class("
|
|
5119
|
+
_html(`<span${_attr_class("_bG")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope78_id, "b")}</span>`);
|
|
5105
5120
|
writeScope($scope78_id, {});
|
|
5106
5121
|
return 2;
|
|
5107
5122
|
} else {
|
|
5108
5123
|
const $scope79_id = _scope_id();
|
|
5109
|
-
_html(`<span${_attr_class("
|
|
5124
|
+
_html(`<span${_attr_class("_bG")}>${_escape(h.error || "Not signed in")}${_el_resume($scope79_id, "b")}</span>`);
|
|
5110
5125
|
writeScope($scope79_id, {});
|
|
5111
5126
|
return 3;
|
|
5112
5127
|
}
|
|
@@ -5137,7 +5152,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5137
5152
|
if (h.isEnterprise) {
|
|
5138
5153
|
const $scope35_id = _scope_id();
|
|
5139
5154
|
_html(`<button${_attr_class([
|
|
5140
|
-
"
|
|
5155
|
+
"_bH",
|
|
5141
5156
|
"_2",
|
|
5142
5157
|
"_3",
|
|
5143
5158
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -5213,7 +5228,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5213
5228
|
_if(() => {
|
|
5214
5229
|
if (setup && !setup.github.length) {
|
|
5215
5230
|
const $scope83_id = _scope_id();
|
|
5216
|
-
_html(`<p${_attr_class("
|
|
5231
|
+
_html(`<p${_attr_class("_bI")}>Install the GitHub CLI below to sign in.</p>`);
|
|
5217
5232
|
writeScope($scope83_id, {});
|
|
5218
5233
|
return 0;
|
|
5219
5234
|
}
|
|
@@ -5234,7 +5249,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5234
5249
|
return 0;
|
|
5235
5250
|
}
|
|
5236
5251
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5237
|
-
_html(`</section><section${_attr_class("
|
|
5252
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_by")}><h2${_attr("id", machineId)}${_attr_class("_bM")}>Machine</h2>`);
|
|
5238
5253
|
_if(() => {
|
|
5239
5254
|
if (missingCount) {
|
|
5240
5255
|
const $scope64_id = _scope_id();
|
|
@@ -5274,7 +5289,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5274
5289
|
_if(() => {
|
|
5275
5290
|
if (setup && !setup.mise.installed) {
|
|
5276
5291
|
const $scope17_id = _scope_id();
|
|
5277
|
-
_html(`<p${_attr_class("
|
|
5292
|
+
_html(`<p${_attr_class("_bI")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5278
5293
|
_script($scope17_id, "v50");
|
|
5279
5294
|
writeScope($scope17_id, {});
|
|
5280
5295
|
return 0;
|
|
@@ -5474,7 +5489,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5474
5489
|
_html(`<ul${_attr_class([toolGrid, "_cw"])}>`);
|
|
5475
5490
|
_for_of(hits, (h) => {
|
|
5476
5491
|
const $scope22_id = _scope_id();
|
|
5477
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5492
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ct", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5478
5493
|
_if(() => {
|
|
5479
5494
|
if (active.has(h.name)) {
|
|
5480
5495
|
const $scope23_id = _scope_id();
|
|
@@ -5483,7 +5498,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5483
5498
|
return 0;
|
|
5484
5499
|
} else if (h.description) {
|
|
5485
5500
|
const $scope94_id = _scope_id();
|
|
5486
|
-
_html(`<span${_attr_class("
|
|
5501
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope94_id, "b")}</span>${_el_resume($scope94_id, "a")}`);
|
|
5487
5502
|
writeScope($scope94_id, {});
|
|
5488
5503
|
return 1;
|
|
5489
5504
|
}
|
|
@@ -5522,7 +5537,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5522
5537
|
return 0;
|
|
5523
5538
|
} else if (hits && !searching) {
|
|
5524
5539
|
const $scope44_id = _scope_id();
|
|
5525
|
-
_html(`<p${_attr_class("
|
|
5540
|
+
_html(`<p${_attr_class("_bI")}>No tools match "<!>${_escape(query)}${_el_resume($scope44_id, "b")}".</p>`);
|
|
5526
5541
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
5527
5542
|
return 1;
|
|
5528
5543
|
}
|
|
@@ -5533,7 +5548,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5533
5548
|
return 0;
|
|
5534
5549
|
}
|
|
5535
5550
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5536
|
-
_html(`</section><section${_attr_class("
|
|
5551
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_by")}><h2${_attr("id", skillsId)}${_attr_class("_bM")}>Skills</h2>`);
|
|
5537
5552
|
_if(() => {
|
|
5538
5553
|
if (skills?.global.length) {
|
|
5539
5554
|
const $scope52_id = _scope_id();
|
|
@@ -5546,21 +5561,21 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5546
5561
|
_if(() => {
|
|
5547
5562
|
if (skills && !skills.agents.length) {
|
|
5548
5563
|
const $scope96_id = _scope_id();
|
|
5549
|
-
_html(`<p${_attr_class("
|
|
5564
|
+
_html(`<p${_attr_class("_bI")}>No agent CLIs are installed, so a skill would have nowhere to go.</p>`);
|
|
5550
5565
|
writeScope($scope96_id, {});
|
|
5551
5566
|
return 0;
|
|
5552
5567
|
} else if (skills && !skills.available) {
|
|
5553
5568
|
const $scope24_id = _scope_id();
|
|
5554
|
-
_html(`<p${_attr_class("
|
|
5569
|
+
_html(`<p${_attr_class("_bI")}>The skills CLI is not installed, so these can be listed but not changed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${active.has("skills") ? "Installing…" : "Install it"}${_el_resume($scope24_id, "c")}</button>${_el_resume($scope24_id, "b")}</p>`);
|
|
5555
5570
|
_script($scope24_id, "v58");
|
|
5556
5571
|
writeScope($scope24_id, {});
|
|
5557
5572
|
return 1;
|
|
5558
5573
|
}
|
|
5559
5574
|
}, $scope0_id, "ah", 1, 1, 1, 0, 1);
|
|
5560
|
-
_html(`<ul${_attr_class("
|
|
5575
|
+
_html(`<ul${_attr_class("_bA")}>`);
|
|
5561
5576
|
_for_of(skills?.global || [], (s) => {
|
|
5562
5577
|
const $scope25_id = _scope_id();
|
|
5563
|
-
_html(`<li${_attr_class("
|
|
5578
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_x"])}>${_escape(s.name)}${_el_resume($scope25_id, "d")}</span>`);
|
|
5564
5579
|
_if(() => {
|
|
5565
5580
|
if (active.has(s.id)) {
|
|
5566
5581
|
const $scope26_id = _scope_id();
|
|
@@ -5569,7 +5584,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5569
5584
|
return 0;
|
|
5570
5585
|
} else if (s.description) {
|
|
5571
5586
|
const $scope97_id = _scope_id();
|
|
5572
|
-
_html(`<span${_attr_class("
|
|
5587
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope97_id, "b")}</span>${_el_resume($scope97_id, "a")}`);
|
|
5573
5588
|
writeScope($scope97_id, {});
|
|
5574
5589
|
return 1;
|
|
5575
5590
|
}
|
|
@@ -5577,17 +5592,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5577
5592
|
_if(() => {
|
|
5578
5593
|
if (s.sourceUrl) {
|
|
5579
5594
|
const $scope98_id = _scope_id();
|
|
5580
|
-
_html(`<a${_attr_class(["
|
|
5595
|
+
_html(`<a${_attr_class(["_bG", "_cU"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope98_id, "b")}</a>${_el_resume($scope98_id, "a")}`);
|
|
5581
5596
|
writeScope($scope98_id, {});
|
|
5582
5597
|
return 0;
|
|
5583
5598
|
} else if (s.source) {
|
|
5584
5599
|
const $scope99_id = _scope_id();
|
|
5585
|
-
_html(`<span${_attr_class("
|
|
5600
|
+
_html(`<span${_attr_class("_bG")}>${_escape(s.source)}${_el_resume($scope99_id, "b")}</span>`);
|
|
5586
5601
|
writeScope($scope99_id, {});
|
|
5587
5602
|
return 1;
|
|
5588
5603
|
} else {
|
|
5589
5604
|
const $scope101_id = _scope_id();
|
|
5590
|
-
_html(`<span${_attr_class(["
|
|
5605
|
+
_html(`<span${_attr_class(["_bG", "_w"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
5591
5606
|
writeScope($scope101_id, {});
|
|
5592
5607
|
return 2;
|
|
5593
5608
|
}
|
|
@@ -5596,7 +5611,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5596
5611
|
_if(() => {
|
|
5597
5612
|
if (skills && s.agents.length < skills.agents.length) {
|
|
5598
5613
|
const $scope100_id = _scope_id();
|
|
5599
|
-
_html(`<span${_attr_class("
|
|
5614
|
+
_html(`<span${_attr_class("_bF")}><span${_attr_class("_I")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_escape(s.agents.map(agentLabel).join(", "))}${_el_resume($scope100_id, "c")} only</span>${_el_resume($scope100_id, "b")}</span>`);
|
|
5600
5615
|
writeScope($scope100_id, {});
|
|
5601
5616
|
return 0;
|
|
5602
5617
|
}
|
|
@@ -5650,7 +5665,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5650
5665
|
_if(() => {
|
|
5651
5666
|
if (skills && !skills.global.length) {
|
|
5652
5667
|
const $scope104_id = _scope_id();
|
|
5653
|
-
_html(`<p${_attr_class("
|
|
5668
|
+
_html(`<p${_attr_class("_bI")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
5654
5669
|
writeScope($scope104_id, {});
|
|
5655
5670
|
return 0;
|
|
5656
5671
|
}
|
|
@@ -5667,7 +5682,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5667
5682
|
_if(() => {
|
|
5668
5683
|
if (looksLikeSource(skillQuery)) {
|
|
5669
5684
|
const $scope28_id = _scope_id();
|
|
5670
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5685
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ct", "_x"])}>${_escape(skillQuery.trim())}${_el_resume($scope28_id, "d")}</span>`);
|
|
5671
5686
|
_if(() => {
|
|
5672
5687
|
if (active.has(skillQuery.trim())) {
|
|
5673
5688
|
const $scope29_id = _scope_id();
|
|
@@ -5679,7 +5694,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5679
5694
|
return 0;
|
|
5680
5695
|
} else {
|
|
5681
5696
|
const $scope105_id = _scope_id();
|
|
5682
|
-
_html(`<span${_attr_class("
|
|
5697
|
+
_html(`<span${_attr_class("_bG")}>Add straight from this source</span>`);
|
|
5683
5698
|
writeScope($scope105_id, {});
|
|
5684
5699
|
return 1;
|
|
5685
5700
|
}
|
|
@@ -5702,7 +5717,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5702
5717
|
_for_of(skillHits || [], (h) => {
|
|
5703
5718
|
const $scope30_id = _scope_id();
|
|
5704
5719
|
const $for_content8__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5705
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5720
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ct", "_x"])}>${_escape(h.name)}${_el_resume($scope30_id, "d")}</span>`);
|
|
5706
5721
|
_if(() => {
|
|
5707
5722
|
if (active.has(h.skillId)) {
|
|
5708
5723
|
const $scope31_id = _scope_id();
|
|
@@ -5711,7 +5726,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5711
5726
|
return 0;
|
|
5712
5727
|
} else {
|
|
5713
5728
|
const $scope106_id = _scope_id();
|
|
5714
|
-
_html(`<span${_attr_class("
|
|
5729
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", h.source)}>${_escape(h.source)}${_el_resume($scope106_id, "b")}</span>${_el_resume($scope106_id, "a")}`);
|
|
5715
5730
|
writeScope($scope106_id, {});
|
|
5716
5731
|
return 1;
|
|
5717
5732
|
}
|
|
@@ -5760,7 +5775,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5760
5775
|
_if(() => {
|
|
5761
5776
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
5762
5777
|
const $scope54_id = _scope_id();
|
|
5763
|
-
_html(`<p${_attr_class("
|
|
5778
|
+
_html(`<p${_attr_class("_bI")}>No skills match "<!>${_escape(skillQuery)}${_el_resume($scope54_id, "b")}".</p>`);
|
|
5764
5779
|
_subscribe($skillQuery__closures, writeScope($scope54_id, { Cfa: 2 }));
|
|
5765
5780
|
return 0;
|
|
5766
5781
|
}
|
|
@@ -5785,7 +5800,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5785
5800
|
label: "Dark"
|
|
5786
5801
|
}
|
|
5787
5802
|
];
|
|
5788
|
-
_html(`</section><section${_attr_class("
|
|
5803
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_by")}><h2${_attr("id", appearanceId)}${_attr_class("_bM")}>Appearance</h2></div><div${_attr_class(["_bC", "_cC"])}><label${_attr_class("_cD")}><span${_attr_class("_cE")}>Name</span><input${_attr_input_value($scope0_id, "ar", input.instance.name, _resume(function(v) {
|
|
5789
5804
|
setInstance({ name: v });
|
|
5790
5805
|
}, "v4", $scope0_id))}${_attr_class(["_U", "_cF"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ar")}</label><div${_attr_class("_cD")}><span${_attr_class("_cE")}>Theme</span><span${_attr_class("_cH")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
5791
5806
|
_for_of(themeOpts, (opt) => {
|
|
@@ -5957,12 +5972,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5957
5972
|
});
|
|
5958
5973
|
//#endregion
|
|
5959
5974
|
//#region src/tags/new-workspace.css.ts
|
|
5960
|
-
var content$1 = "
|
|
5961
|
-
var section$1 = "
|
|
5962
|
-
var curBase = "
|
|
5963
|
-
var archived = "
|
|
5964
|
-
var archivedHint = "
|
|
5965
|
-
var archivedCard = "
|
|
5975
|
+
var content$1 = "_bW _bP";
|
|
5976
|
+
var section$1 = "_b0 _bx";
|
|
5977
|
+
var curBase = "_b5 _T _S";
|
|
5978
|
+
var archived = "_b_ _bx";
|
|
5979
|
+
var archivedHint = "_ca _S";
|
|
5980
|
+
var archivedCard = "_cb _bC";
|
|
5966
5981
|
//#endregion
|
|
5967
5982
|
//#region src/tags/icons/icon-check.marko
|
|
5968
5983
|
var icon_check_default = _template("P", (input) => {
|
|
@@ -5997,7 +6012,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
5997
6012
|
});
|
|
5998
6013
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5999
6014
|
});
|
|
6000
|
-
var resultBranch = "
|
|
6015
|
+
var resultBranch = "_c2 _Z _j";
|
|
6001
6016
|
//#endregion
|
|
6002
6017
|
//#region src/tags/branch-pick.marko
|
|
6003
6018
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -6008,27 +6023,31 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
6008
6023
|
let branches = null;
|
|
6009
6024
|
let defaultBranch = null;
|
|
6010
6025
|
let branchFilter = "";
|
|
6011
|
-
|
|
6026
|
+
let reloadTick = 0;
|
|
6027
|
+
let refreshing = false;
|
|
6028
|
+
_html(`<div${_attr_class("_c4")}>`);
|
|
6012
6029
|
_if(() => {
|
|
6013
6030
|
{
|
|
6014
6031
|
const $scope4_id = _scope_id();
|
|
6015
|
-
_html(`<p${_attr_class("
|
|
6032
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
6016
6033
|
writeScope($scope4_id, {});
|
|
6017
6034
|
return 0;
|
|
6018
6035
|
}
|
|
6019
6036
|
}, $scope0_id, "a", 1, 1, 1, "</div>");
|
|
6020
|
-
_script($scope0_id, "
|
|
6037
|
+
_script($scope0_id, "d4");
|
|
6021
6038
|
writeScope($scope0_id, {
|
|
6022
6039
|
d: input.repo,
|
|
6023
6040
|
e: input.onError,
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6041
|
+
f: input.current,
|
|
6042
|
+
g: input.onPick,
|
|
6043
|
+
h: branches,
|
|
6044
|
+
i: void 0,
|
|
6045
|
+
j: defaultBranch,
|
|
6046
|
+
k: branchFilter,
|
|
6047
|
+
l: reloadTick,
|
|
6048
|
+
n: refreshing,
|
|
6049
|
+
s: $branchFilter__closures,
|
|
6050
|
+
r: $defaultBranch__closures
|
|
6032
6051
|
});
|
|
6033
6052
|
_resume_branch($scope0_id);
|
|
6034
6053
|
});
|
|
@@ -6088,11 +6107,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6088
6107
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
6089
6108
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
6090
6109
|
})();
|
|
6091
|
-
_html(`<div${_attr_class("
|
|
6110
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
6092
6111
|
_if(() => {
|
|
6093
6112
|
if (ssoPending.length) {
|
|
6094
6113
|
const $scope7_id = _scope_id();
|
|
6095
|
-
_html(`<div${_attr_class("
|
|
6114
|
+
_html(`<div${_attr_class("_cW")}>`);
|
|
6096
6115
|
_set_serialize_reason(154);
|
|
6097
6116
|
const $childScope = _peek_scope_id();
|
|
6098
6117
|
sso_auth_default({
|
|
@@ -6122,16 +6141,16 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6122
6141
|
_if(() => {
|
|
6123
6142
|
if (pasted) {
|
|
6124
6143
|
const $scope1_id = _scope_id();
|
|
6125
|
-
_html(`<ul${_attr_class("
|
|
6144
|
+
_html(`<ul${_attr_class("_cX")}><li><div${_attr_class(["_cZ", "_cY"])}><button${_attr_class("_c0")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
6126
6145
|
icon_plus_default({
|
|
6127
6146
|
size: 12,
|
|
6128
|
-
class: "
|
|
6147
|
+
class: "_c6"
|
|
6129
6148
|
});
|
|
6130
|
-
_html(`<span${_attr_class("
|
|
6149
|
+
_html(`<span${_attr_class("_c7")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
6131
6150
|
_if(() => {
|
|
6132
6151
|
if (pastedForkable) {
|
|
6133
6152
|
const $scope8_id = _scope_id();
|
|
6134
|
-
_html(`<button${_attr_class(["
|
|
6153
|
+
_html(`<button${_attr_class(["_c3", { ["_c1"]: 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"}>`);
|
|
6135
6154
|
_if(() => {
|
|
6136
6155
|
if (pasteWillFork) {
|
|
6137
6156
|
const $scope10_id = _scope_id();
|
|
@@ -6151,7 +6170,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6151
6170
|
return 0;
|
|
6152
6171
|
}
|
|
6153
6172
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
6154
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
6173
|
+
_html(`<button${_attr_class([resultBranch, { ["_c1"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
6155
6174
|
icon_branch_default({ size: 12 });
|
|
6156
6175
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
6157
6176
|
_if(() => {
|
|
@@ -6178,7 +6197,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6178
6197
|
return 0;
|
|
6179
6198
|
} else if (filter && !catalog) {
|
|
6180
6199
|
const $scope9_id = _scope_id();
|
|
6181
|
-
_html(`<p${_attr_class("
|
|
6200
|
+
_html(`<p${_attr_class("_bI")}>Loading repos…</p>`);
|
|
6182
6201
|
writeScope($scope9_id, {});
|
|
6183
6202
|
return 1;
|
|
6184
6203
|
}
|
|
@@ -6186,15 +6205,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6186
6205
|
_if(() => {
|
|
6187
6206
|
if (results.length) {
|
|
6188
6207
|
const $scope3_id = _scope_id();
|
|
6189
|
-
_html(`<ul${_attr_class("
|
|
6208
|
+
_html(`<ul${_attr_class("_cX")}>`);
|
|
6190
6209
|
_for_of(results, (repo, i) => {
|
|
6191
6210
|
const $scope4_id = _scope_id();
|
|
6192
|
-
_html(`<li><div${_attr_class(["
|
|
6211
|
+
_html(`<li><div${_attr_class(["_cZ", { ["_cY"]: i === highlight }])}><button${_attr_class("_c0")}>`);
|
|
6193
6212
|
icon_plus_default({
|
|
6194
6213
|
size: 12,
|
|
6195
|
-
class: "
|
|
6214
|
+
class: "_c6"
|
|
6196
6215
|
});
|
|
6197
|
-
_html(`<span${_attr_class("
|
|
6216
|
+
_html(`<span${_attr_class("_c7")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c1"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
6198
6217
|
icon_branch_default({ size: 12 });
|
|
6199
6218
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
6200
6219
|
_if(() => {
|
|
@@ -6229,7 +6248,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6229
6248
|
return 0;
|
|
6230
6249
|
} else if (filter && catalog && !pasted) {
|
|
6231
6250
|
const $scope6_id = _scope_id();
|
|
6232
|
-
_html(`<p${_attr_class("
|
|
6251
|
+
_html(`<p${_attr_class("_bI")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
6233
6252
|
writeScope($scope6_id, {});
|
|
6234
6253
|
return 1;
|
|
6235
6254
|
}
|
|
@@ -6370,7 +6389,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6370
6389
|
}
|
|
6371
6390
|
}, "q6", $scope0_id);
|
|
6372
6391
|
const titleId = _id();
|
|
6373
|
-
_html(`<div${_attr_class("
|
|
6392
|
+
_html(`<div${_attr_class("_bN")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bO")}><div${_attr_class(content$1)}>`);
|
|
6374
6393
|
_set_serialize_reason({
|
|
6375
6394
|
0: _serialize_guard($scope0_reason, 2),
|
|
6376
6395
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -6409,23 +6428,23 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6409
6428
|
return 0;
|
|
6410
6429
|
}
|
|
6411
6430
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
6412
|
-
_html(`<label${_attr_class("
|
|
6431
|
+
_html(`<label${_attr_class("_bZ")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
6413
6432
|
name = _new_name;
|
|
6414
|
-
}, "q0", $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("
|
|
6433
|
+
}, "q0", $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("_b1")}><h2${_attr_class("_bM")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6415
6434
|
_set_serialize_reason(1);
|
|
6416
6435
|
const $childScope2 = _peek_scope_id();
|
|
6417
6436
|
icon_refresh_default({
|
|
6418
6437
|
size: 14,
|
|
6419
6438
|
class: catalogRefreshing && "_E"
|
|
6420
6439
|
});
|
|
6421
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
6440
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_b2")}>`);
|
|
6422
6441
|
_for_of(selected, (repo) => {
|
|
6423
6442
|
const $scope2_id = _scope_id();
|
|
6424
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
6443
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_b3")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
6425
6444
|
_if(() => {
|
|
6426
6445
|
if (repo.fork !== void 0) {
|
|
6427
6446
|
const $scope3_id = _scope_id();
|
|
6428
|
-
_html(`<button${_attr_class(["
|
|
6447
|
+
_html(`<button${_attr_class(["_b6", { ["_b4"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
6429
6448
|
_if(() => {
|
|
6430
6449
|
if (repo.fork) {
|
|
6431
6450
|
const $scope12_id = _scope_id();
|
|
@@ -6448,7 +6467,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6448
6467
|
_html(`<button${_attr_class([
|
|
6449
6468
|
curBase,
|
|
6450
6469
|
"_x",
|
|
6451
|
-
{ ["
|
|
6470
|
+
{ ["_b4"]: branchesFor === repo.fullName }
|
|
6452
6471
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
6453
6472
|
icon_branch_default({ size: 12 });
|
|
6454
6473
|
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_2"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -6484,7 +6503,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6484
6503
|
_if(() => {
|
|
6485
6504
|
if (!selected.length) {
|
|
6486
6505
|
const $scope14_id = _scope_id();
|
|
6487
|
-
_html(`<li${_attr_class("
|
|
6506
|
+
_html(`<li${_attr_class("_bI")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
6488
6507
|
writeScope($scope14_id, {});
|
|
6489
6508
|
return 0;
|
|
6490
6509
|
}
|
|
@@ -6509,10 +6528,10 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6509
6528
|
_if(() => {
|
|
6510
6529
|
if (busy && steps$1.length) {
|
|
6511
6530
|
const $scope9_id = _scope_id();
|
|
6512
|
-
_html(`<ul${_attr_class("
|
|
6531
|
+
_html(`<ul${_attr_class("_b7")}>`);
|
|
6513
6532
|
_for_of(steps$1, (step$1, i) => {
|
|
6514
6533
|
const $scope10_id = _scope_id();
|
|
6515
|
-
_html(`<li${_attr_class(["
|
|
6534
|
+
_html(`<li${_attr_class(["_cc", { ["_b8"]: i === steps$1.length - 1 }])}>`);
|
|
6516
6535
|
_if(() => {
|
|
6517
6536
|
if (i === steps$1.length - 1) {
|
|
6518
6537
|
const $scope15_id = _scope_id();
|
|
@@ -6521,7 +6540,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6521
6540
|
return 0;
|
|
6522
6541
|
} else {
|
|
6523
6542
|
const $scope16_id = _scope_id();
|
|
6524
|
-
_html(`<span${_attr_class("
|
|
6543
|
+
_html(`<span${_attr_class("_b9")}>`);
|
|
6525
6544
|
icon_check_default({ size: 14 });
|
|
6526
6545
|
_html("</span>");
|
|
6527
6546
|
writeScope($scope16_id, {});
|
|
@@ -6535,7 +6554,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6535
6554
|
return 0;
|
|
6536
6555
|
}
|
|
6537
6556
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6538
|
-
_html(`<div${_attr_class("
|
|
6557
|
+
_html(`<div${_attr_class("_bX")}>`);
|
|
6539
6558
|
_if(() => {
|
|
6540
6559
|
if (input.onExit || busy) {
|
|
6541
6560
|
const $scope1_id = _scope_id();
|
|
@@ -6548,15 +6567,15 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6548
6567
|
_html(`<button type=button${_attr_class([
|
|
6549
6568
|
btnLg,
|
|
6550
6569
|
"_p",
|
|
6551
|
-
"
|
|
6570
|
+
"_bY"
|
|
6552
6571
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6553
6572
|
_if(() => {
|
|
6554
6573
|
if (archived$1.length) {
|
|
6555
6574
|
const $scope4_id = _scope_id();
|
|
6556
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6575
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_b1")}><h2${_attr_class("_bM")}>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("_bA")}>`);
|
|
6557
6576
|
_for_of(archived$1, (ws) => {
|
|
6558
6577
|
const $scope5_id = _scope_id();
|
|
6559
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
6578
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>${_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)}>`);
|
|
6560
6579
|
_if(() => {
|
|
6561
6580
|
if (restoring === ws.id) {
|
|
6562
6581
|
const $scope17_id = _scope_id();
|
|
@@ -6683,8 +6702,8 @@ function activeAgent(session) {
|
|
|
6683
6702
|
const command = session.state?.command?.trim();
|
|
6684
6703
|
return command && agentFromCommand(command) || session.agent;
|
|
6685
6704
|
}
|
|
6686
|
-
var iconBtn$1 = "
|
|
6687
|
-
var navToggle = "
|
|
6705
|
+
var iconBtn$1 = "_dO _j";
|
|
6706
|
+
var navToggle = "_dT _j";
|
|
6688
6707
|
_template("N", (input) => {
|
|
6689
6708
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6690
6709
|
const $scope0_id = _scope_id();
|
|
@@ -6727,12 +6746,12 @@ var ARM_MS = 3500;
|
|
|
6727
6746
|
function disarmLater(fn) {
|
|
6728
6747
|
return setTimeout(fn, ARM_MS);
|
|
6729
6748
|
}
|
|
6730
|
-
var railBtn = "
|
|
6731
|
-
var rowIcon = "
|
|
6732
|
-
var close = "
|
|
6749
|
+
var railBtn = "_gr _j";
|
|
6750
|
+
var rowIcon = "_gA _Z _j";
|
|
6751
|
+
var close = "_gB _Z _j _2";
|
|
6733
6752
|
//#endregion
|
|
6734
6753
|
//#region src/styles/session-pop.css.ts
|
|
6735
|
-
var sessionPop = "
|
|
6754
|
+
var sessionPop = "_gn _4";
|
|
6736
6755
|
//#endregion
|
|
6737
6756
|
//#region src/tags/icons/icon-diff.marko
|
|
6738
6757
|
var icon_diff_default = _template("V", (input) => {
|
|
@@ -6782,22 +6801,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6782
6801
|
if (windows.length) {
|
|
6783
6802
|
const $scope1_id = _scope_id();
|
|
6784
6803
|
_html(`<span${_attr_class([
|
|
6785
|
-
"
|
|
6804
|
+
"_fo",
|
|
6786
6805
|
input.class,
|
|
6787
|
-
{ ["
|
|
6806
|
+
{ ["_fp"]: agent.stale_seconds != null }
|
|
6788
6807
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6789
6808
|
_for_of(windows, (win$1, i) => {
|
|
6790
6809
|
const $scope2_id = _scope_id();
|
|
6791
|
-
_html(`<span${_attr_class("
|
|
6810
|
+
_html(`<span${_attr_class("_fq")}>`);
|
|
6792
6811
|
_if(() => {
|
|
6793
6812
|
if (i) {
|
|
6794
6813
|
const $scope3_id = _scope_id();
|
|
6795
|
-
_html(`<span${_attr_class("
|
|
6814
|
+
_html(`<span${_attr_class("_ft")} aria-hidden=true>·</span>`);
|
|
6796
6815
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6797
6816
|
return 0;
|
|
6798
6817
|
}
|
|
6799
6818
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6800
|
-
_html(`<span${_attr_class("
|
|
6819
|
+
_html(`<span${_attr_class("_fr")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fs", win$1.used_percent >= 90 ? "_dJ" : win$1.used_percent >= 70 ? "_dI" : win$1.used_percent >= 40 ? "_dH" : "_dG"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6801
6820
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6802
6821
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6803
6822
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6828,12 +6847,12 @@ var icon_edit_default = _template("X", (input) => {
|
|
|
6828
6847
|
});
|
|
6829
6848
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6830
6849
|
});
|
|
6831
|
-
var prChip = "
|
|
6832
|
-
var portChip = "
|
|
6850
|
+
var prChip = "_ht _s _hs";
|
|
6851
|
+
var portChip = "_hu _s _hs";
|
|
6833
6852
|
var prState = {
|
|
6834
|
-
open: "
|
|
6835
|
-
merged: "
|
|
6836
|
-
closed: "
|
|
6853
|
+
open: "_hy",
|
|
6854
|
+
merged: "_hz",
|
|
6855
|
+
closed: "_hA"
|
|
6837
6856
|
};
|
|
6838
6857
|
//#endregion
|
|
6839
6858
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6905,7 +6924,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6905
6924
|
const name = repo.full_name.split("/").at(-1);
|
|
6906
6925
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6907
6926
|
}, "w4", $scope1_id);
|
|
6908
|
-
_html(`<div${_attr_class("
|
|
6927
|
+
_html(`<div${_attr_class("_hr")}>`);
|
|
6909
6928
|
_for_of(repos, (repo) => {
|
|
6910
6929
|
const $scope2_id = _scope_id();
|
|
6911
6930
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6921,11 +6940,11 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6921
6940
|
[prState.merged]: pr.state === "MERGED",
|
|
6922
6941
|
[prState.closed]: pr.state === "CLOSED"
|
|
6923
6942
|
}
|
|
6924
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6943
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hv", { ["_hC"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c")}#<!>${_escape(pr.number)}${_el_resume($scope3_id, "d")}</a>${_el_resume($scope3_id, "b")}`);
|
|
6925
6944
|
_if(() => {
|
|
6926
6945
|
if (open) {
|
|
6927
6946
|
const $scope4_id = _scope_id();
|
|
6928
|
-
_html(`<a${_attr_class(["
|
|
6947
|
+
_html(`<a${_attr_class(["_hv", "_hw"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6929
6948
|
icon_diff_default({ size: 12 });
|
|
6930
6949
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
6931
6950
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -6933,9 +6952,9 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6933
6952
|
} else {
|
|
6934
6953
|
const $scope6_id = _scope_id();
|
|
6935
6954
|
_html(`<button type=button${_attr_class([
|
|
6936
|
-
"_hu",
|
|
6937
6955
|
"_hv",
|
|
6938
|
-
"_hw"
|
|
6956
|
+
"_hw",
|
|
6957
|
+
"_hx"
|
|
6939
6958
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6940
6959
|
icon_xmark_default({ size: 12 });
|
|
6941
6960
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6956,10 +6975,10 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6956
6975
|
}, "full_name", $scope1_id, "b");
|
|
6957
6976
|
_for_of(ports, (p) => {
|
|
6958
6977
|
const $scope5_id = _scope_id();
|
|
6959
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6960
|
-
"_hu",
|
|
6978
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hv", "_hB"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:<!>${_escape(p.port)}${_el_resume($scope5_id, "c")}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6961
6979
|
"_hv",
|
|
6962
6980
|
"_hw",
|
|
6981
|
+
"_hx",
|
|
6963
6982
|
{ ["_q"]: armedPid === p.pid }
|
|
6964
6983
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6965
6984
|
icon_xmark_default({ size: 12 });
|
|
@@ -7055,10 +7074,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7055
7074
|
_if(() => {
|
|
7056
7075
|
if (input.rail) {
|
|
7057
7076
|
const $scope2_id = _scope_id();
|
|
7058
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
7077
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gp"]: 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([
|
|
7059
7078
|
"_z",
|
|
7060
7079
|
phase[dot],
|
|
7061
|
-
"
|
|
7080
|
+
"_gs"
|
|
7062
7081
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
7063
7082
|
_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) })))));
|
|
7064
7083
|
return 0;
|
|
@@ -7066,15 +7085,15 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7066
7085
|
const $scope3_id = _scope_id();
|
|
7067
7086
|
const sessions$1 = input.sessions || [];
|
|
7068
7087
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
7069
|
-
_html(`<section${_attr_class(["
|
|
7070
|
-
["
|
|
7088
|
+
_html(`<section${_attr_class(["_gu", {
|
|
7089
|
+
["_gp"]: input.current,
|
|
7071
7090
|
["_5"]: input.current,
|
|
7072
|
-
["
|
|
7073
|
-
["
|
|
7074
|
-
}])}><div${_attr_class("
|
|
7091
|
+
["_gv"]: input.railPop,
|
|
7092
|
+
["_gt"]: input.page
|
|
7093
|
+
}])}><div${_attr_class("_gw")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gx")}><span${_attr_class([
|
|
7075
7094
|
"_z",
|
|
7076
7095
|
phase[dot],
|
|
7077
|
-
"
|
|
7096
|
+
"_gK"
|
|
7078
7097
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
7079
7098
|
_if(() => {
|
|
7080
7099
|
if (sessions$1.length === 1) {
|
|
@@ -7087,7 +7106,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7087
7106
|
icon_agent_default({
|
|
7088
7107
|
agent: activeAgent(sessions$1[0]),
|
|
7089
7108
|
size: 12,
|
|
7090
|
-
class: "
|
|
7109
|
+
class: "_gC"
|
|
7091
7110
|
});
|
|
7092
7111
|
$si__input_sessions && writeScope($scope14_id, {
|
|
7093
7112
|
_: _scope_with_id($scope3_id),
|
|
@@ -7097,16 +7116,16 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7097
7116
|
}
|
|
7098
7117
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
7099
7118
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
7100
|
-
_html(`<span${_attr_class("
|
|
7119
|
+
_html(`<span${_attr_class("_gD")}><span${_attr_class("_gE")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
7101
7120
|
_if(() => {
|
|
7102
7121
|
if (input.page && metaText) {
|
|
7103
7122
|
const $scope16_id = _scope_id();
|
|
7104
|
-
_html(`<span${_attr_class("
|
|
7123
|
+
_html(`<span${_attr_class("_gI")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
7105
7124
|
$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) });
|
|
7106
7125
|
return 0;
|
|
7107
7126
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
7108
7127
|
const $scope15_id = _scope_id();
|
|
7109
|
-
_html(`<span${_attr_class("
|
|
7128
|
+
_html(`<span${_attr_class("_gF")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
7110
7129
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
7111
7130
|
return 1;
|
|
7112
7131
|
}
|
|
@@ -7119,7 +7138,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7119
7138
|
"_I",
|
|
7120
7139
|
"_R",
|
|
7121
7140
|
"_K",
|
|
7122
|
-
"
|
|
7141
|
+
"_gJ"
|
|
7123
7142
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
7124
7143
|
$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, {
|
|
7125
7144
|
_: _scope_with_id($scope3_id),
|
|
@@ -7132,7 +7151,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7132
7151
|
_if(() => {
|
|
7133
7152
|
if (!input.page) {
|
|
7134
7153
|
const $scope5_id = _scope_id();
|
|
7135
|
-
_html(`<div${_attr_class("
|
|
7154
|
+
_html(`<div${_attr_class("_gy")}>`);
|
|
7136
7155
|
_if(() => {
|
|
7137
7156
|
if (input.onNewSession) {
|
|
7138
7157
|
const $scope6_id = _scope_id();
|
|
@@ -7146,7 +7165,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7146
7165
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
7147
7166
|
_for_of([], (agent) => {
|
|
7148
7167
|
const $scope7_id = _scope_id();
|
|
7149
|
-
_html(`<button${_attr_class("
|
|
7168
|
+
_html(`<button${_attr_class("_go")}>`);
|
|
7150
7169
|
_set_serialize_reason(12);
|
|
7151
7170
|
const $childScope2 = _peek_scope_id();
|
|
7152
7171
|
icon_agent_default({
|
|
@@ -7181,7 +7200,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7181
7200
|
return 0;
|
|
7182
7201
|
}
|
|
7183
7202
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
7184
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
7203
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gq"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
7185
7204
|
icon_manage_default({ size: 12 });
|
|
7186
7205
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
7187
7206
|
_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, {
|
|
@@ -7191,7 +7210,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7191
7210
|
return 0;
|
|
7192
7211
|
}
|
|
7193
7212
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
7194
|
-
_html(`</div><div${_attr_class("
|
|
7213
|
+
_html(`</div><div${_attr_class("_gP")}>`);
|
|
7195
7214
|
_if(() => {
|
|
7196
7215
|
if (sessions$1.length === 1 && openPlan) {
|
|
7197
7216
|
const $scope11_id = _scope_id();
|
|
@@ -7199,7 +7218,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7199
7218
|
const $childScope3 = _peek_scope_id();
|
|
7200
7219
|
usage_pcts_default({
|
|
7201
7220
|
agent: openPlan,
|
|
7202
|
-
class: "
|
|
7221
|
+
class: "_gG"
|
|
7203
7222
|
});
|
|
7204
7223
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
7205
7224
|
a: _existing_scope($childScope3),
|
|
@@ -7210,14 +7229,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7210
7229
|
}, $scope3_id, "m");
|
|
7211
7230
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
7212
7231
|
const $scope8_id = _scope_id();
|
|
7213
|
-
_html(`<div${_attr_class(["
|
|
7232
|
+
_html(`<div${_attr_class(["_gz", { ["_gp"]: s.id === input.currentTab }])}>`);
|
|
7214
7233
|
_if(() => {
|
|
7215
7234
|
if (renamingId === s.id) {
|
|
7216
7235
|
const $scope10_id = _scope_id();
|
|
7217
7236
|
_html(`<span${_attr_class([
|
|
7218
7237
|
"_z",
|
|
7219
7238
|
phase[sessionPhase(s.state)],
|
|
7220
|
-
"
|
|
7239
|
+
"_gN"
|
|
7221
7240
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
7222
7241
|
_set_serialize_reason({
|
|
7223
7242
|
1: $sg__input_sessions,
|
|
@@ -7227,17 +7246,17 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7227
7246
|
icon_agent_default({
|
|
7228
7247
|
agent: activeAgent(s),
|
|
7229
7248
|
size: 13,
|
|
7230
|
-
class: "
|
|
7249
|
+
class: "_gR"
|
|
7231
7250
|
});
|
|
7232
7251
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
7233
7252
|
renameValue = _new_renameValue;
|
|
7234
|
-
}, "x0", $scope10_id))}${_attr_class(["_U", "
|
|
7253
|
+
}, "x0", $scope10_id))}${_attr_class(["_U", "_gO"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
7235
7254
|
_script($scope10_id, "x5");
|
|
7236
7255
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
7237
7256
|
return 0;
|
|
7238
7257
|
} else {
|
|
7239
7258
|
const $scope9_id = _scope_id();
|
|
7240
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
7259
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gQ")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
7241
7260
|
_set_serialize_reason({
|
|
7242
7261
|
1: $sg__input_sessions,
|
|
7243
7262
|
2: $sg__input_sessions
|
|
@@ -7246,9 +7265,9 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7246
7265
|
icon_agent_default({
|
|
7247
7266
|
agent: activeAgent(s),
|
|
7248
7267
|
size: 13,
|
|
7249
|
-
class: "
|
|
7268
|
+
class: "_gR"
|
|
7250
7269
|
});
|
|
7251
|
-
_html(`<span${_attr_class("
|
|
7270
|
+
_html(`<span${_attr_class("_gL")}>${_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("_gM")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
7252
7271
|
icon_edit_default({ size: 12 });
|
|
7253
7272
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
7254
7273
|
icon_xmark_default({ size: 12 });
|
|
@@ -7260,7 +7279,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
7260
7279
|
const $childScope6 = _peek_scope_id();
|
|
7261
7280
|
usage_pcts_default({
|
|
7262
7281
|
agent: openPlan,
|
|
7263
|
-
class: "
|
|
7282
|
+
class: "_gH"
|
|
7264
7283
|
});
|
|
7265
7284
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
7266
7285
|
a: _existing_scope($childScope6),
|
|
@@ -7456,34 +7475,34 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7456
7475
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
7457
7476
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
7458
7477
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
7459
|
-
_html(`<aside${_attr_class(["
|
|
7460
|
-
["
|
|
7461
|
-
["
|
|
7478
|
+
_html(`<aside${_attr_class(["_dS", {
|
|
7479
|
+
["_dQ"]: !navOpen,
|
|
7480
|
+
["_dR"]: isPage
|
|
7462
7481
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
7463
7482
|
_if(() => {
|
|
7464
7483
|
if (isPage) {
|
|
7465
7484
|
const $scope1_id = _scope_id();
|
|
7466
|
-
_html(`<header${_attr_class("
|
|
7485
|
+
_html(`<header${_attr_class("_dV")}><div${_attr_class("_d4")}>`);
|
|
7467
7486
|
_if(() => {
|
|
7468
7487
|
if (input.instanceName) {
|
|
7469
7488
|
const $scope2_id = _scope_id();
|
|
7470
|
-
_html(`<div${_attr_class("
|
|
7489
|
+
_html(`<div${_attr_class("_d1")} title="This work server (Settings → Appearance)"><img${_attr_class("_d2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d3")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7471
7490
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
7472
7491
|
return 0;
|
|
7473
7492
|
}
|
|
7474
7493
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
7475
|
-
_html(`<h1${_attr_class("
|
|
7494
|
+
_html(`<h1${_attr_class("_dW")}>Workspaces</h1></div><div${_attr_class("_dX")}>`);
|
|
7476
7495
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
7477
7496
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
7478
7497
|
iconBtn$1,
|
|
7479
|
-
"
|
|
7480
|
-
{ ["
|
|
7498
|
+
"_dY",
|
|
7499
|
+
{ ["_dN"]: view === "settings" }
|
|
7481
7500
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7482
7501
|
icon_settings_default({ size: 16 });
|
|
7483
7502
|
_if(() => {
|
|
7484
7503
|
if (input.setupReady === false) {
|
|
7485
7504
|
const $scope12_id = _scope_id();
|
|
7486
|
-
_html(`<span${_attr_class(["_z", "
|
|
7505
|
+
_html(`<span${_attr_class(["_z", "_dP"])} title="Machine setup incomplete"></span>`);
|
|
7487
7506
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
7488
7507
|
return 0;
|
|
7489
7508
|
}
|
|
@@ -7496,18 +7515,18 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7496
7515
|
_if(() => {
|
|
7497
7516
|
if (!isPage && input.instanceName) {
|
|
7498
7517
|
const $scope3_id = _scope_id();
|
|
7499
|
-
_html(`<div${_attr_class("
|
|
7518
|
+
_html(`<div${_attr_class("_d1")} title="This work server (Settings → Appearance)"><img${_attr_class("_d2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d3")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7500
7519
|
writeScope($scope3_id, {});
|
|
7501
7520
|
return 0;
|
|
7502
7521
|
}
|
|
7503
7522
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
7504
|
-
_html(`<div${_attr_class("
|
|
7523
|
+
_html(`<div${_attr_class("_d5")}>`);
|
|
7505
7524
|
_for_of(listIds, (wsId) => {
|
|
7506
7525
|
const $scope4_id = _scope_id();
|
|
7507
7526
|
_if(() => {
|
|
7508
7527
|
if (isPage && wsId === ws.id) {
|
|
7509
7528
|
const $scope13_id = _scope_id();
|
|
7510
|
-
_html(`<h2${_attr_class(["
|
|
7529
|
+
_html(`<h2${_attr_class(["_bM", "_dZ"])}>Current</h2>`);
|
|
7511
7530
|
writeScope($scope13_id, {});
|
|
7512
7531
|
return 0;
|
|
7513
7532
|
}
|
|
@@ -7515,7 +7534,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7515
7534
|
_if(() => {
|
|
7516
7535
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7517
7536
|
const $scope14_id = _scope_id();
|
|
7518
|
-
_html(`<h2${_attr_class(["
|
|
7537
|
+
_html(`<h2${_attr_class(["_bM", "_dZ"])}>Other workspaces</h2>`);
|
|
7519
7538
|
writeScope($scope14_id, {});
|
|
7520
7539
|
return 0;
|
|
7521
7540
|
}
|
|
@@ -7599,7 +7618,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7599
7618
|
railHover = null;
|
|
7600
7619
|
}, 150);
|
|
7601
7620
|
}, "y6", $scope5_id);
|
|
7602
|
-
_html(`<div${_attr_class("
|
|
7621
|
+
_html(`<div${_attr_class("_d6")}>`);
|
|
7603
7622
|
_for_of(itemIds, (wsId, i) => {
|
|
7604
7623
|
const $scope6_id = _scope_id();
|
|
7605
7624
|
_html("<span>");
|
|
@@ -7653,7 +7672,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7653
7672
|
if (railHover) {
|
|
7654
7673
|
const $scope7_id = _scope_id();
|
|
7655
7674
|
const hoverId = railHover.id;
|
|
7656
|
-
_html(`<div${_attr_class(["_4", "
|
|
7675
|
+
_html(`<div${_attr_class(["_4", "_d9"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7657
7676
|
_set_serialize_reason({
|
|
7658
7677
|
0: 1,
|
|
7659
7678
|
1: 1,
|
|
@@ -7738,7 +7757,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7738
7757
|
return 0;
|
|
7739
7758
|
}
|
|
7740
7759
|
}, $scope0_id, "e");
|
|
7741
|
-
_html(`<div${_attr_class("
|
|
7760
|
+
_html(`<div${_attr_class("_d7")}>`);
|
|
7742
7761
|
_if(() => {
|
|
7743
7762
|
if (isPage) {
|
|
7744
7763
|
const $scope9_id = _scope_id();
|
|
@@ -7746,7 +7765,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7746
7765
|
"_o",
|
|
7747
7766
|
"_p",
|
|
7748
7767
|
btnLg,
|
|
7749
|
-
"
|
|
7768
|
+
"_d0"
|
|
7750
7769
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7751
7770
|
icon_folder_plus_default({ size: 16 });
|
|
7752
7771
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7768,19 +7787,19 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7768
7787
|
return 1;
|
|
7769
7788
|
}
|
|
7770
7789
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7771
|
-
_html(`<div${_attr_class(["_y", "
|
|
7790
|
+
_html(`<div${_attr_class(["_y", "_d8"])}></div>`);
|
|
7772
7791
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7773
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7792
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dN"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7774
7793
|
icon_settings_default({ size: 15 });
|
|
7775
7794
|
_if(() => {
|
|
7776
7795
|
if (input.setupReady === false) {
|
|
7777
7796
|
const $scope17_id = _scope_id();
|
|
7778
|
-
_html(`<span${_attr_class(["_z", "
|
|
7797
|
+
_html(`<span${_attr_class(["_z", "_dP"])} title="Machine setup incomplete"></span>`);
|
|
7779
7798
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7780
7799
|
return 0;
|
|
7781
7800
|
}
|
|
7782
7801
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7783
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7802
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dN"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7784
7803
|
icon_folder_plus_default({ size: 16 });
|
|
7785
7804
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7786
7805
|
_script($scope8_id, "y15");
|
|
@@ -7846,11 +7865,11 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7846
7865
|
_resume_branch($scope0_id);
|
|
7847
7866
|
});
|
|
7848
7867
|
var iconBtn = "_0 _j";
|
|
7849
|
-
var sectionCount = "
|
|
7850
|
-
var content = "
|
|
7851
|
-
var pageMeta = "
|
|
7852
|
-
var pathMeta = "
|
|
7853
|
-
var dangerHint = "
|
|
7868
|
+
var sectionCount = "_bz _I _J";
|
|
7869
|
+
var content = "_d_ _bP";
|
|
7870
|
+
var pageMeta = "_ea _bU";
|
|
7871
|
+
var pathMeta = "_ed _x";
|
|
7872
|
+
var dangerHint = "_ej _S";
|
|
7854
7873
|
//#endregion
|
|
7855
7874
|
//#region src/tags/manage-workspace.marko
|
|
7856
7875
|
var api$2;
|
|
@@ -7981,7 +8000,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7981
8000
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7982
8001
|
}, "o7", $scope0_id);
|
|
7983
8002
|
const titleId = _id();
|
|
7984
|
-
_html(`<div${_attr_class("
|
|
8003
|
+
_html(`<div${_attr_class("_bN")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bO")}><div${_attr_class(content)}>`);
|
|
7985
8004
|
_set_serialize_reason(30);
|
|
7986
8005
|
const $childScope = _peek_scope_id();
|
|
7987
8006
|
page_head_default({
|
|
@@ -7994,7 +8013,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7994
8013
|
meta: attrTag({ content: _content_resume("o13", () => {
|
|
7995
8014
|
_scope_reason();
|
|
7996
8015
|
const $scope13_id = _scope_id();
|
|
7997
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
8016
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_eb")}>${_escape(ws.name)}${_el_resume($scope13_id, "c")}</span>`);
|
|
7998
8017
|
_if(() => {
|
|
7999
8018
|
if (ws.status !== "active") {
|
|
8000
8019
|
const $scope17_id = _scope_id();
|
|
@@ -8003,7 +8022,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8003
8022
|
return 0;
|
|
8004
8023
|
}
|
|
8005
8024
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
8006
|
-
_html(`<span${_attr_class("
|
|
8025
|
+
_html(`<span${_attr_class("_ec")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope13_id, "g")}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
8007
8026
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope13_id, { _: _scope_with_id($scope0_id) })))));
|
|
8008
8027
|
_resume_branch($scope13_id);
|
|
8009
8028
|
}, $scope0_id) })
|
|
@@ -8031,22 +8050,22 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8031
8050
|
_if(() => {
|
|
8032
8051
|
if (pendingAction && actionStep) {
|
|
8033
8052
|
const $scope11_id = _scope_id();
|
|
8034
|
-
_html(`<p${_attr_class("
|
|
8053
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
8035
8054
|
writeScope($scope11_id, {});
|
|
8036
8055
|
return 0;
|
|
8037
8056
|
}
|
|
8038
8057
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8039
|
-
_html(`<section${_attr_class("
|
|
8058
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bM")}>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)}>`);
|
|
8040
8059
|
_set_serialize_reason(1);
|
|
8041
8060
|
const $childScope2 = _peek_scope_id();
|
|
8042
8061
|
icon_refresh_default({
|
|
8043
8062
|
size: 14,
|
|
8044
8063
|
class: catalogRefreshing && "_E"
|
|
8045
8064
|
});
|
|
8046
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
8065
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bA")}>`);
|
|
8047
8066
|
_for_of(ws.repos, (row) => {
|
|
8048
8067
|
const $scope1_id = _scope_id();
|
|
8049
|
-
_html(`<li${_attr_class("
|
|
8068
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bF")}><a${_attr_class(["_bG", "_ef"])}${_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")}`);
|
|
8050
8069
|
_if(() => {
|
|
8051
8070
|
if (row.base_branch !== row.default_branch) {
|
|
8052
8071
|
const $scope18_id = _scope_id();
|
|
@@ -8067,7 +8086,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8067
8086
|
} else {
|
|
8068
8087
|
const $scope10_id = _scope_id();
|
|
8069
8088
|
_html(`<button${_attr_class([
|
|
8070
|
-
"
|
|
8089
|
+
"_bH",
|
|
8071
8090
|
"_2",
|
|
8072
8091
|
"_3",
|
|
8073
8092
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -8100,19 +8119,19 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8100
8119
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8101
8120
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
8102
8121
|
const $scope22_id = _scope_id();
|
|
8103
|
-
_html(`<li${_attr_class(["
|
|
8122
|
+
_html(`<li${_attr_class(["_bC", "_bB"])}><span${_attr_class("_F")}></span><div${_attr_class("_bD")}><span${_attr_class("_bG")}>Adding <!>${_escape(name)}${_el_resume($scope22_id, "e")}…</span></div></li>`);
|
|
8104
8123
|
writeScope($scope22_id, {});
|
|
8105
8124
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
8106
8125
|
_html("</ul>");
|
|
8107
8126
|
_if(() => {
|
|
8108
8127
|
if (!ws.repos.length && !busy.size) {
|
|
8109
8128
|
const $scope23_id = _scope_id();
|
|
8110
|
-
_html(`<p${_attr_class("
|
|
8129
|
+
_html(`<p${_attr_class("_bI")}>No repos yet. Search below to add one.</p>`);
|
|
8111
8130
|
writeScope($scope23_id, {});
|
|
8112
8131
|
return 0;
|
|
8113
8132
|
}
|
|
8114
8133
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8115
|
-
_html(`<div${_attr_class("
|
|
8134
|
+
_html(`<div${_attr_class("_ee")}>`);
|
|
8116
8135
|
const $childScope3 = _peek_scope_id();
|
|
8117
8136
|
let refreshCatalog = repo_picker_default({
|
|
8118
8137
|
exclude: inWorkspace,
|
|
@@ -8133,7 +8152,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8133
8152
|
_if(() => {
|
|
8134
8153
|
if (wsSkills.length || repoSkills.length) {
|
|
8135
8154
|
const $scope2_id = _scope_id();
|
|
8136
|
-
_html(`<section${_attr_class("
|
|
8155
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bM")}>Skills</h2>`);
|
|
8137
8156
|
_if(() => {
|
|
8138
8157
|
if (wsSkills.length) {
|
|
8139
8158
|
const $scope24_id = _scope_id();
|
|
@@ -8142,10 +8161,10 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8142
8161
|
return 0;
|
|
8143
8162
|
}
|
|
8144
8163
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
8145
|
-
_html(`</div><ul${_attr_class("
|
|
8164
|
+
_html(`</div><ul${_attr_class("_bA")}>`);
|
|
8146
8165
|
_for_of(wsSkills, (s) => {
|
|
8147
8166
|
const $scope3_id = _scope_id();
|
|
8148
|
-
_html(`<li${_attr_class("
|
|
8167
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_x"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bF")}>`);
|
|
8149
8168
|
_if(() => {
|
|
8150
8169
|
if (s.broken) {
|
|
8151
8170
|
const $scope25_id = _scope_id();
|
|
@@ -8183,7 +8202,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8183
8202
|
_if(() => {
|
|
8184
8203
|
if (s.description) {
|
|
8185
8204
|
const $scope28_id = _scope_id();
|
|
8186
|
-
_html(`<span${_attr_class("
|
|
8205
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope28_id, "b")}</span>${_el_resume($scope28_id, "a")}`);
|
|
8187
8206
|
writeScope($scope28_id, {});
|
|
8188
8207
|
return 0;
|
|
8189
8208
|
}
|
|
@@ -8191,7 +8210,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8191
8210
|
_if(() => {
|
|
8192
8211
|
if (s.sourceUrl) {
|
|
8193
8212
|
const $scope29_id = _scope_id();
|
|
8194
|
-
_html(`<a${_attr_class(["
|
|
8213
|
+
_html(`<a${_attr_class(["_bG", "_ef"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope29_id, "b")}</a>${_el_resume($scope29_id, "a")}`);
|
|
8195
8214
|
writeScope($scope29_id, {});
|
|
8196
8215
|
return 0;
|
|
8197
8216
|
}
|
|
@@ -8206,7 +8225,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8206
8225
|
} else {
|
|
8207
8226
|
const $scope12_id = _scope_id();
|
|
8208
8227
|
_html(`<button${_attr_class([
|
|
8209
|
-
"
|
|
8228
|
+
"_bH",
|
|
8210
8229
|
"_2",
|
|
8211
8230
|
"_3",
|
|
8212
8231
|
{ ["_q"]: confirmingSkill === s.id }
|
|
@@ -8244,10 +8263,10 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8244
8263
|
_if(() => {
|
|
8245
8264
|
if (repoSkills.length) {
|
|
8246
8265
|
const $scope4_id = _scope_id();
|
|
8247
|
-
_html(`<ul${_attr_class("
|
|
8266
|
+
_html(`<ul${_attr_class("_bA")}>`);
|
|
8248
8267
|
_for_of(repoSkills, (s) => {
|
|
8249
8268
|
const $scope5_id = _scope_id();
|
|
8250
|
-
_html(`<li${_attr_class("
|
|
8269
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_x"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bF")}><span${_attr_class(["_bG", "_x"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
|
|
8251
8270
|
_if(() => {
|
|
8252
8271
|
if (s.shadows) {
|
|
8253
8272
|
const $scope34_id = _scope_id();
|
|
@@ -8260,7 +8279,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8260
8279
|
_if(() => {
|
|
8261
8280
|
if (s.description) {
|
|
8262
8281
|
const $scope35_id = _scope_id();
|
|
8263
|
-
_html(`<span${_attr_class("
|
|
8282
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope35_id, "b")}</span>${_el_resume($scope35_id, "a")}`);
|
|
8264
8283
|
writeScope($scope35_id, {});
|
|
8265
8284
|
return 0;
|
|
8266
8285
|
}
|
|
@@ -8303,17 +8322,17 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8303
8322
|
_if(() => {
|
|
8304
8323
|
if (running.length) {
|
|
8305
8324
|
const $scope15_id = _scope_id();
|
|
8306
|
-
_html(`<section${_attr_class("
|
|
8325
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bM")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope15_id, "e")}</span></div><ul${_attr_class("_bA")}>`);
|
|
8307
8326
|
_for_of(running, (p) => {
|
|
8308
8327
|
const $scope16_id = _scope_id();
|
|
8309
|
-
_html(`<li${_attr_class("
|
|
8328
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}${_attr("title", p.args)}><span${_attr_class(["_bE", "_x"])}>${_escape(p.cmd)}${_el_resume($scope16_id, "d")}</span>`);
|
|
8310
8329
|
_if(() => {
|
|
8311
8330
|
if (p.ports.length) {
|
|
8312
8331
|
const $scope37_id = _scope_id();
|
|
8313
|
-
_html(`<span${_attr_class("
|
|
8332
|
+
_html(`<span${_attr_class("_bF")}>`);
|
|
8314
8333
|
_for_of(p.ports, (port) => {
|
|
8315
8334
|
const $scope38_id = _scope_id();
|
|
8316
|
-
_html(`<button${_attr_class(["_s", "
|
|
8335
|
+
_html(`<button${_attr_class(["_s", "_eg"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
|
|
8317
8336
|
_script($scope38_id, "o19");
|
|
8318
8337
|
writeScope($scope38_id, { d: port });
|
|
8319
8338
|
}, (x) => String(x), $scope37_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -8321,7 +8340,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8321
8340
|
return 0;
|
|
8322
8341
|
}
|
|
8323
8342
|
}, $scope16_id, "e", 1, 1, 1, 0, 1);
|
|
8324
|
-
_html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["
|
|
8343
|
+
_html(`</div>${_el_resume($scope16_id, "b")}<button${_attr_class(["_bH", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
8325
8344
|
icon_xmark_default({ size: 14 });
|
|
8326
8345
|
_html(`</button>${_el_resume($scope16_id, "f")}</li>`);
|
|
8327
8346
|
_script($scope16_id, "o20");
|
|
@@ -8335,7 +8354,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8335
8354
|
return 0;
|
|
8336
8355
|
}
|
|
8337
8356
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8338
|
-
_html(`<section${_attr_class(["
|
|
8357
|
+
_html(`<section${_attr_class(["_bx", "_eh"])}><div${_attr_class("_by")}><h2${_attr_class("_bM")}>Workspace</h2></div><div${_attr_class("_ei")}>`);
|
|
8339
8358
|
_if(() => {
|
|
8340
8359
|
if (ws.status === "active") {
|
|
8341
8360
|
const $scope8_id = _scope_id();
|
|
@@ -8449,19 +8468,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
8449
8468
|
const canStep = hasQuery && open;
|
|
8450
8469
|
const keybar = input.placement === "keybar";
|
|
8451
8470
|
_html(`<div${_attr_class([
|
|
8452
|
-
"
|
|
8453
|
-
keybar ? "
|
|
8454
|
-
!open && "
|
|
8455
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
8471
|
+
"_fH",
|
|
8472
|
+
keybar ? "_fJ" : "_fI",
|
|
8473
|
+
!open && "_fL"
|
|
8474
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fC", keybar ? "_fK" : "_fE"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
8456
8475
|
if (!open) return;
|
|
8457
8476
|
query = v;
|
|
8458
8477
|
live.query = v;
|
|
8459
8478
|
run(0);
|
|
8460
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
8479
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fM"])} 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 && "_fN"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8461
8480
|
icon_arrow_up_default({ size: 14 });
|
|
8462
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8481
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fN"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8463
8482
|
icon_arrow_down_default({ size: 14 });
|
|
8464
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8483
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fN"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
8465
8484
|
icon_xmark_default({ size: 14 });
|
|
8466
8485
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
8467
8486
|
_script($scope0_id, "A4");
|
|
@@ -8795,7 +8814,7 @@ var term_default = _template("B", (input) => {
|
|
|
8795
8814
|
trapOpen = true;
|
|
8796
8815
|
}
|
|
8797
8816
|
}, "B14", $scope0_id);
|
|
8798
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8817
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_ek")}><div${_attr_class("_el")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8799
8818
|
_if(() => {
|
|
8800
8819
|
if (findOpen) {
|
|
8801
8820
|
const $scope12_id = _scope_id();
|
|
@@ -8822,7 +8841,7 @@ var term_default = _template("B", (input) => {
|
|
|
8822
8841
|
_if(() => {
|
|
8823
8842
|
if (uploading) {
|
|
8824
8843
|
const $scope19_id = _scope_id();
|
|
8825
|
-
_html(`<div${_attr_class("
|
|
8844
|
+
_html(`<div${_attr_class("_er")}>uploading…</div>`);
|
|
8826
8845
|
writeScope($scope19_id, {});
|
|
8827
8846
|
return 0;
|
|
8828
8847
|
}
|
|
@@ -8830,7 +8849,7 @@ var term_default = _template("B", (input) => {
|
|
|
8830
8849
|
_if(() => {
|
|
8831
8850
|
if (copiedFlash) {
|
|
8832
8851
|
const $scope20_id = _scope_id();
|
|
8833
|
-
_html(`<div${_attr_class("
|
|
8852
|
+
_html(`<div${_attr_class("_eq")}>Copied</div>`);
|
|
8834
8853
|
writeScope($scope20_id, {});
|
|
8835
8854
|
return 0;
|
|
8836
8855
|
}
|
|
@@ -8839,7 +8858,7 @@ var term_default = _template("B", (input) => {
|
|
|
8839
8858
|
_if(() => {
|
|
8840
8859
|
if (trapOpen) {
|
|
8841
8860
|
const $scope11_id = _scope_id();
|
|
8842
|
-
_html(`<div${_attr_class("
|
|
8861
|
+
_html(`<div${_attr_class("_es")}><div${_attr_class("_et")}><p${_attr_class("_eX")}>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")}`);
|
|
8843
8862
|
_script($scope11_id, "B25");
|
|
8844
8863
|
_script($scope11_id, "B26");
|
|
8845
8864
|
writeScope($scope11_id, {});
|
|
@@ -8942,7 +8961,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8942
8961
|
let DiffView = null;
|
|
8943
8962
|
const loadDiffView = _resume(() => {
|
|
8944
8963
|
if (DiffView) return;
|
|
8945
|
-
import("./
|
|
8964
|
+
import("./_CVABZuWj.js").then((m) => {
|
|
8946
8965
|
DiffView = m.default;
|
|
8947
8966
|
});
|
|
8948
8967
|
}, "F6", $scope0_id);
|
|
@@ -9130,10 +9149,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
9130
9149
|
toggleDiff();
|
|
9131
9150
|
}
|
|
9132
9151
|
}, "F21", $scope0_id);
|
|
9133
|
-
_html(`<div${_attr_class(["
|
|
9134
|
-
["
|
|
9135
|
-
["
|
|
9136
|
-
}])}><div${_attr_class("
|
|
9152
|
+
_html(`<div${_attr_class(["_bp", {
|
|
9153
|
+
["_bn"]: view === "nav",
|
|
9154
|
+
["_bo"]: !input.active
|
|
9155
|
+
}])}><div${_attr_class("_bq")}>`);
|
|
9137
9156
|
_set_serialize_reason({
|
|
9138
9157
|
0: _serialize_guard($scope0_reason, 0),
|
|
9139
9158
|
1: 1,
|
|
@@ -9202,7 +9221,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9202
9221
|
});
|
|
9203
9222
|
}, "F30", $scope0_id)
|
|
9204
9223
|
});
|
|
9205
|
-
_html(`</div><div${_attr_class("
|
|
9224
|
+
_html(`</div><div${_attr_class("_br")}>`);
|
|
9206
9225
|
_if(() => {
|
|
9207
9226
|
if (error) {
|
|
9208
9227
|
const $scope8_id = _scope_id();
|
|
@@ -9225,7 +9244,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9225
9244
|
_if(() => {
|
|
9226
9245
|
if (diffMounted && DiffView) {
|
|
9227
9246
|
const $scope1_id = _scope_id();
|
|
9228
|
-
_html(`<div${_attr_class("
|
|
9247
|
+
_html(`<div${_attr_class("_bs")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
9229
9248
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
9230
9249
|
workspaceId: ws.id,
|
|
9231
9250
|
workspaceBranch: ws.branch,
|
|
@@ -9265,7 +9284,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9265
9284
|
_if(() => {
|
|
9266
9285
|
if (manageMounted) {
|
|
9267
9286
|
const $scope2_id = _scope_id();
|
|
9268
|
-
_html(`<div${_attr_class("
|
|
9287
|
+
_html(`<div${_attr_class("_bs")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
9269
9288
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
9270
9289
|
const $childScope2 = _peek_scope_id();
|
|
9271
9290
|
manage_workspace_default({
|
|
@@ -9288,7 +9307,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9288
9307
|
_if(() => {
|
|
9289
9308
|
if (settingsMounted) {
|
|
9290
9309
|
const $scope3_id = _scope_id();
|
|
9291
|
-
_html(`<div${_attr_class("
|
|
9310
|
+
_html(`<div${_attr_class("_bs")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
9292
9311
|
_set_serialize_reason({
|
|
9293
9312
|
0: _serialize_guard($scope0_reason, 1),
|
|
9294
9313
|
1: $sg__input_workspace,
|
|
@@ -9329,7 +9348,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9329
9348
|
_if(() => {
|
|
9330
9349
|
if (newMounted) {
|
|
9331
9350
|
const $scope4_id = _scope_id();
|
|
9332
|
-
_html(`<div${_attr_class("
|
|
9351
|
+
_html(`<div${_attr_class("_bs")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
9333
9352
|
_set_serialize_reason({
|
|
9334
9353
|
0: 1,
|
|
9335
9354
|
1: $sg__input_allWorkspaces,
|
|
@@ -9356,13 +9375,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
9356
9375
|
return 0;
|
|
9357
9376
|
}
|
|
9358
9377
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
9359
|
-
_html(`<div${_attr_class(["
|
|
9378
|
+
_html(`<div${_attr_class(["_bu", { ["_bt"]: view !== "term" }])}>`);
|
|
9360
9379
|
_if(() => {
|
|
9361
9380
|
if (shownSessions) {
|
|
9362
9381
|
const $scope5_id = _scope_id();
|
|
9363
9382
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
9364
9383
|
const $scope6_id = _scope_id();
|
|
9365
|
-
_html(`<div${_attr_class("
|
|
9384
|
+
_html(`<div${_attr_class("_bv")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
9366
9385
|
_set_serialize_reason({
|
|
9367
9386
|
0: 1,
|
|
9368
9387
|
1: 1,
|
|
@@ -9421,7 +9440,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9421
9440
|
_if(() => {
|
|
9422
9441
|
if (!shownSessions.length && view === "term") {
|
|
9423
9442
|
const $scope7_id = _scope_id();
|
|
9424
|
-
_html(`<div${_attr_class("
|
|
9443
|
+
_html(`<div${_attr_class("_bJ")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
9425
9444
|
_script($scope7_id, "F50");
|
|
9426
9445
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
9427
9446
|
return 0;
|
|
@@ -9431,7 +9450,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9431
9450
|
return 0;
|
|
9432
9451
|
} else {
|
|
9433
9452
|
const $scope10_id = _scope_id();
|
|
9434
|
-
_html(`<p${_attr_class("
|
|
9453
|
+
_html(`<p${_attr_class("_bJ")}>Loading sessions…</p>`);
|
|
9435
9454
|
writeScope($scope10_id, {});
|
|
9436
9455
|
return 1;
|
|
9437
9456
|
}
|
|
@@ -11313,12 +11332,15 @@ function head18(context) {
|
|
|
11313
11332
|
var getHandler$15 = normalizeHandler(Run.GET({ search: (value) => {
|
|
11314
11333
|
const repo = typeof value.repo === "string" ? value.repo : "";
|
|
11315
11334
|
if (!/^(?:[\w.-]+\/)?[\w.-]+\/[\w.-]+$/.test(repo)) throw httpError(400, "invalid repo");
|
|
11316
|
-
return {
|
|
11335
|
+
return {
|
|
11336
|
+
repo,
|
|
11337
|
+
refresh: "refresh" in value
|
|
11338
|
+
};
|
|
11317
11339
|
} }, async (ctx) => {
|
|
11318
11340
|
const [branches, catalog, looked] = await Promise.all([
|
|
11319
|
-
repoBranches(ctx.search.repo),
|
|
11341
|
+
repoBranches(ctx.search.repo, ctx.search.refresh),
|
|
11320
11342
|
repoCatalog().catch(() => null),
|
|
11321
|
-
repoDefaultBranch(ctx.search.repo).catch(() => null)
|
|
11343
|
+
repoDefaultBranch(ctx.search.repo, ctx.search.refresh).catch(() => null)
|
|
11322
11344
|
]);
|
|
11323
11345
|
const fromCatalog = catalog?.repos.find((r) => r.nameWithOwner === ctx.search.repo)?.defaultBranch;
|
|
11324
11346
|
return Response.json({
|
|
@@ -18005,4 +18027,4 @@ server.listen(port, () => {
|
|
|
18005
18027
|
//#endregion
|
|
18006
18028
|
export {};
|
|
18007
18029
|
|
|
18008
|
-
;var __MARKO_MANIFEST__={"
|
|
18030
|
+
;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-7g0VyBen.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-7g0VyBen.css\"",">"],"defer":[2,"/assets/w-B-GbCgRT.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-B-GbCgRT.js\"","></script>",2,"modulepreload#/assets/_DT6z8SCm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DT6z8SCm.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-7g0VyBen.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-7g0VyBen.css\"",">"],"defer":[2,"/assets/new-B-GbCgRT.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-B-GbCgRT.js\"","></script>",2,"modulepreload#/assets/_DT6z8SCm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DT6z8SCm.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-7g0VyBen.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-7g0VyBen.css\"",">"],"defer":[2,"/assets/settings-B-GbCgRT.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-B-GbCgRT.js\"","></script>",2,"modulepreload#/assets/_DT6z8SCm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DT6z8SCm.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-7g0VyBen.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-7g0VyBen.css\"",">"],"defer":[2,"/assets/w._-B-GbCgRT.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B-GbCgRT.js\"","></script>",2,"modulepreload#/assets/_DT6z8SCm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DT6z8SCm.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-7g0VyBen.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-7g0VyBen.css\"",">"],"defer":[2,"/assets/w._-BevC9WnY.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BevC9WnY.js\"","></script>",2,"modulepreload#/assets/_DT6z8SCm.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DT6z8SCm.js\"",">"]}};
|