@dylanpiercey/work 0.0.112 → 0.0.114
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/{_CVABZuWj.js → _2VcubQzL.js} +27 -27
- package/dist/{_DoD4UgFO.js → _Cd5JGljs.js} +11 -88
- package/dist/index.mjs +275 -312
- package/dist/public/assets/{_RUFwuk492.js → _1fL0TxZ-2.js} +1 -1
- package/dist/public/assets/_1fL0TxZ-2.js.br +0 -0
- package/dist/public/assets/{_D8-qVrzw.js → _55A8dwa0.js} +1 -1
- package/dist/public/assets/_55A8dwa0.js.br +0 -0
- package/dist/public/assets/{_DosQtxzJ2.js → _9W2jOOtl2.js} +1 -1
- package/dist/public/assets/_9W2jOOtl2.js.br +0 -0
- package/dist/public/assets/{_CeDZd8rZ2.js → _B-PF8EZd2.js} +1 -1
- package/dist/public/assets/_B-PF8EZd2.js.br +0 -0
- package/dist/public/assets/{_B2cHLb9C.js → _B-pO4EsH.js} +1 -1
- package/dist/public/assets/_B-pO4EsH.js.br +0 -0
- package/dist/public/assets/{_BIgK3P512.js → _B334cyUu2.js} +1 -1
- package/dist/public/assets/_B334cyUu2.js.br +0 -0
- package/dist/public/assets/{_DzpvRw_B2.js → _B3h2MDml2.js} +1 -1
- package/dist/public/assets/_B3h2MDml2.js.br +0 -0
- package/dist/public/assets/{_B-qoH-w0.js → _B3iYgU9b.js} +1 -1
- package/dist/public/assets/_B3iYgU9b.js.br +0 -0
- package/dist/public/assets/{_EljmBS2i2.js → _B3sumAFL2.js} +1 -1
- package/dist/public/assets/_B3sumAFL2.js.br +0 -0
- package/dist/public/assets/{_V58zUMM9.js → _B5Zwvjrb.js} +1 -1
- package/dist/public/assets/_B5Zwvjrb.js.br +0 -0
- package/dist/public/assets/{_FK1mI3bG.js → _B75rGBFn.js} +1 -1
- package/dist/public/assets/_B75rGBFn.js.br +0 -0
- package/dist/public/assets/{_DHFpz4Dg2.js → _B7K6PI4l2.js} +1 -1
- package/dist/public/assets/_B7K6PI4l2.js.br +0 -0
- package/dist/public/assets/{_imsv_x99.js → _BAIwub4n.js} +1 -1
- package/dist/public/assets/_BAIwub4n.js.br +0 -0
- package/dist/public/assets/{_Cnbwmntk.js → _BCoX-Lu8.js} +1 -1
- package/dist/public/assets/_BCoX-Lu8.js.br +0 -0
- package/dist/public/assets/{_Co-wEQAY2.js → _BEZqp5RW2.js} +1 -1
- package/dist/public/assets/_BEZqp5RW2.js.br +0 -0
- package/dist/public/assets/{_ou7SVIDE.js → _BQgIiayS.js} +1 -1
- package/dist/public/assets/_BQgIiayS.js.br +0 -0
- package/dist/public/assets/{_BDPTY4jA.js → _BZm8BqUu.js} +1 -1
- package/dist/public/assets/_BZm8BqUu.js.br +0 -0
- package/dist/public/assets/{_BgpATxlT.js → _BboIXKpQ.js} +1 -1
- package/dist/public/assets/_BboIXKpQ.js.br +0 -0
- package/dist/public/assets/{_O57ccbOT.js → _Bf6e-Mii.js} +1 -1
- package/dist/public/assets/_Bf6e-Mii.js.br +0 -0
- package/dist/public/assets/{_Fy2TXuAx2.js → _BgicLO6B2.js} +1 -1
- package/dist/public/assets/_BgicLO6B2.js.br +0 -0
- package/dist/public/assets/{_BK0NC6z7.js → _Bk8jmudw.js} +1 -1
- package/dist/public/assets/_Bk8jmudw.js.br +0 -0
- package/dist/public/assets/{_74W14-_q.js → _Bu8ZJymW.js} +1 -1
- package/dist/public/assets/_Bu8ZJymW.js.br +0 -0
- package/dist/public/assets/{_wmLphO_w2.js → _BwTzJk_R2.js} +1 -1
- package/dist/public/assets/_BwTzJk_R2.js.br +0 -0
- package/dist/public/assets/{_DXIIaXRS2.js → _ByB-5QzH2.js} +1 -1
- package/dist/public/assets/_ByB-5QzH2.js.br +0 -0
- package/dist/public/assets/_CB5WZwvq.js +86 -0
- package/dist/public/assets/_CB5WZwvq.js.br +0 -0
- package/dist/public/assets/{_OpFGMmeT.js → _CBzZujYJ.js} +1 -1
- package/dist/public/assets/_CBzZujYJ.js.br +0 -0
- package/dist/public/assets/{_vvDDy4Tk.js → _CDQtE--5.js} +1 -1
- package/dist/public/assets/{_DypTr90k.js → _CEp6cMLU.js} +1 -1
- package/dist/public/assets/_CEp6cMLU.js.br +0 -0
- package/dist/public/assets/{_DJgruxdo2.js → _CLfuYe5H2.js} +1 -1
- package/dist/public/assets/{_D7EH6nkC.js → _CLqTR0BO.js} +1 -1
- package/dist/public/assets/_CLqTR0BO.js.br +0 -0
- package/dist/public/assets/{_CrG9TeUY.js → _CMTRaeDz.js} +1 -1
- package/dist/public/assets/_CMTRaeDz.js.br +0 -0
- package/dist/public/assets/{_axH9g-uz.js → _CMVSviTQ.js} +1 -1
- package/dist/public/assets/_CMVSviTQ.js.br +0 -0
- package/dist/public/assets/{_TVKm93sW2.js → _CS0r0Utm2.js} +1 -1
- package/dist/public/assets/_CS0r0Utm2.js.br +0 -0
- package/dist/public/assets/{_rGC-LID2.js → _C_llBrBD.js} +1 -1
- package/dist/public/assets/_C_llBrBD.js.br +0 -0
- package/dist/public/assets/{_BCWWfl6-.js → _CeVUtRRk.js} +1 -1
- package/dist/public/assets/_CeVUtRRk.js.br +0 -0
- package/dist/public/assets/{_BkcTSJBO.js → _Cf9bOkqo.js} +1 -1
- package/dist/public/assets/_Cf9bOkqo.js.br +0 -0
- package/dist/public/assets/{_B077m-NQ2.js → _Ckn3z60S2.js} +1 -1
- package/dist/public/assets/_Ckn3z60S2.js.br +0 -0
- package/dist/public/assets/{_D_Lgs_X_.js → _Cm1YTpnb.js} +1 -1
- package/dist/public/assets/_Cm1YTpnb.js.br +0 -0
- package/dist/public/assets/{_DQSnlR_M.js → _CoD1wpdA.js} +1 -1
- package/dist/public/assets/_CoD1wpdA.js.br +0 -0
- package/dist/public/assets/{_CF4TtLZ12.js → _CpeDX4OL2.js} +1 -1
- package/dist/public/assets/_CpeDX4OL2.js.br +0 -0
- package/dist/public/assets/{_ApH2HHWd2.js → _CsrsrG8_2.js} +1 -1
- package/dist/public/assets/_CsrsrG8_2.js.br +0 -0
- package/dist/public/assets/{_Crll305z.js → _CtIgmQo4.js} +1 -1
- package/dist/public/assets/_CtIgmQo4.js.br +0 -0
- package/dist/public/assets/{_CKRvZx4i.js → _CzJ8LpKM.js} +1 -1
- package/dist/public/assets/_CzJ8LpKM.js.br +0 -0
- package/dist/public/assets/{_DFDpgZ91.js → _D-fiQVh9.js} +1 -1
- package/dist/public/assets/_D-fiQVh9.js.br +0 -0
- package/dist/public/assets/{_DlCjan_T.js → _D1jF0J2N.js} +1 -1
- package/dist/public/assets/_D1jF0J2N.js.br +0 -0
- package/dist/public/assets/{_BMwn454u2.js → _DDTRc7_V2.js} +1 -1
- package/dist/public/assets/_DDTRc7_V2.js.br +0 -0
- package/dist/public/assets/{_gWLvy_5-.js → _DE3HMg6X.js} +1 -1
- package/dist/public/assets/_DE3HMg6X.js.br +0 -0
- package/dist/public/assets/{_BsZ5p8YS.js → _DG06wRCy.js} +6 -6
- package/dist/public/assets/_DG06wRCy.js.br +0 -0
- package/dist/public/assets/{_uWSYIarZ2.js → _DIdvRc5Q2.js} +1 -1
- package/dist/public/assets/_DIdvRc5Q2.js.br +0 -0
- package/dist/public/assets/{_D_cpCm9h.js → _DNGti3dl.js} +1 -1
- package/dist/public/assets/_DNGti3dl.js.br +0 -0
- package/dist/public/assets/{_BMrqDTtI.js → _DOdOCrHh.js} +1 -1
- package/dist/public/assets/_DOdOCrHh.js.br +0 -0
- package/dist/public/assets/{_DWCqB08w.js → _DUR6OyvZ.js} +1 -1
- package/dist/public/assets/_DUR6OyvZ.js.br +0 -0
- package/dist/public/assets/{_mXuIOx73.js → _DVNZeRbN.js} +1 -1
- package/dist/public/assets/_DVNZeRbN.js.br +0 -0
- package/dist/public/assets/{_BFaOwPTc.js → _DVic1SiP.js} +1 -1
- package/dist/public/assets/_DVic1SiP.js.br +0 -0
- package/dist/public/assets/{_BZxa0CGm.js → _DYpTp5si.js} +1 -1
- package/dist/public/assets/_DYpTp5si.js.br +0 -0
- package/dist/public/assets/{_ng_IjwY02.js → _DkaOHg-I2.js} +1 -1
- package/dist/public/assets/_DkaOHg-I2.js.br +0 -0
- package/dist/public/assets/{_DMBG0_ll2.js → _DoZFNAiI2.js} +1 -1
- package/dist/public/assets/_DoZFNAiI2.js.br +0 -0
- package/dist/public/assets/{_jZZLNOqC.js → _DsUOiC7m.js} +1 -1
- package/dist/public/assets/_DsUOiC7m.js.br +0 -0
- package/dist/public/assets/{_COYkYoFv.js → _ESfWWEFy.js} +1 -1
- package/dist/public/assets/_ESfWWEFy.js.br +0 -0
- package/dist/public/assets/{_DUajRqQa.js → _LRnJwFfR.js} +1 -1
- package/dist/public/assets/_LRnJwFfR.js.br +0 -0
- package/dist/public/assets/{_DuyrV6qu.js → _MBJx9TLg.js} +1 -1
- package/dist/public/assets/_MBJx9TLg.js.br +0 -0
- package/dist/public/assets/{_2DF3sBmz.js → _NdTttHWR.js} +1 -1
- package/dist/public/assets/_NdTttHWR.js.br +0 -0
- package/dist/public/assets/{_D0edGJXb.js → _O-3hhbbr.js} +1 -1
- package/dist/public/assets/_O-3hhbbr.js.br +0 -0
- package/dist/public/assets/{_BPxKhfwb.js → _RR8plJq7.js} +1 -1
- package/dist/public/assets/_RR8plJq7.js.br +0 -0
- package/dist/public/assets/{_DjO290Pw.js → _S9hioHjJ.js} +1 -1
- package/dist/public/assets/_S9hioHjJ.js.br +0 -0
- package/dist/public/assets/{_oBxEhf6t.js → _XdXW2yJp.js} +1 -1
- package/dist/public/assets/_XdXW2yJp.js.br +0 -0
- package/dist/public/assets/{_D4twEvqB.js → __avA1ig5.js} +1 -1
- package/dist/public/assets/__avA1ig5.js.br +0 -0
- package/dist/public/assets/{_DklbdiCc2.js → _cw2A12xB2.js} +1 -1
- package/dist/public/assets/_cw2A12xB2.js.br +0 -0
- package/dist/public/assets/{_D3uoG5zl.js → _dqtOr_wc.js} +1 -1
- package/dist/public/assets/_dqtOr_wc.js.br +0 -0
- package/dist/public/assets/{_zBVhc44a.js → _iMEaynG2.js} +1 -1
- package/dist/public/assets/_iMEaynG2.js.br +0 -0
- package/dist/public/assets/{_Jv-EPG9r2.js → _jW8Ols452.js} +1 -1
- package/dist/public/assets/{_llaO6jHF.js → _ltpHCIbE.js} +1 -1
- package/dist/public/assets/_ltpHCIbE.js.br +0 -0
- package/dist/public/assets/{_B9EZYisE2.js → _qsFJ_DV12.js} +1 -1
- package/dist/public/assets/_qsFJ_DV12.js.br +0 -0
- package/dist/public/assets/{_D6mKE2py.js → _sx58l564.js} +1 -1
- package/dist/public/assets/_sx58l564.js.br +0 -0
- package/dist/public/assets/{_CBDKiFTR2.js → _tafFm0f92.js} +1 -1
- package/dist/public/assets/_tafFm0f92.js.br +0 -0
- package/dist/public/assets/{_CzrKRxDL.js → _vbYxVb8F.js} +1 -1
- package/dist/public/assets/_vbYxVb8F.js.br +0 -0
- package/dist/public/assets/{app-page-7g0VyBen.css → app-page-_SomNQI4.css} +1 -1
- package/dist/public/assets/app-page-_SomNQI4.css.br +0 -0
- package/dist/public/assets/{diff-view-Bok-ODFF.css → diff-view-D4MlzMoo.css} +1 -1
- package/dist/public/assets/diff-view-D4MlzMoo.css.br +0 -0
- package/dist/public/assets/new-D4FonsrF.js +1 -0
- package/dist/public/assets/settings-D4FonsrF.js +1 -0
- package/dist/public/assets/w-D4FonsrF.js +1 -0
- package/dist/public/assets/w._-BVk_bPU2.js +1 -0
- package/dist/public/assets/w._-D4FonsrF.js +1 -0
- package/package.json +2 -2
- package/dist/public/assets/_2DF3sBmz.js.br +0 -0
- package/dist/public/assets/_74W14-_q.js.br +0 -0
- package/dist/public/assets/_ApH2HHWd2.js.br +0 -0
- package/dist/public/assets/_B-qoH-w0.js.br +0 -0
- package/dist/public/assets/_B077m-NQ2.js.br +0 -0
- package/dist/public/assets/_B2cHLb9C.js.br +0 -0
- package/dist/public/assets/_B9EZYisE2.js.br +0 -0
- package/dist/public/assets/_BCWWfl6-.js.br +0 -0
- package/dist/public/assets/_BDPTY4jA.js.br +0 -0
- package/dist/public/assets/_BFaOwPTc.js.br +0 -0
- package/dist/public/assets/_BIgK3P512.js.br +0 -0
- package/dist/public/assets/_BK0NC6z7.js.br +0 -0
- package/dist/public/assets/_BMrqDTtI.js.br +0 -0
- package/dist/public/assets/_BMwn454u2.js.br +0 -0
- package/dist/public/assets/_BPxKhfwb.js.br +0 -0
- package/dist/public/assets/_BZxa0CGm.js.br +0 -0
- package/dist/public/assets/_BgpATxlT.js.br +0 -0
- package/dist/public/assets/_BkcTSJBO.js.br +0 -0
- package/dist/public/assets/_BsZ5p8YS.js.br +0 -0
- package/dist/public/assets/_CBDKiFTR2.js.br +0 -0
- package/dist/public/assets/_CF4TtLZ12.js.br +0 -0
- package/dist/public/assets/_CKRvZx4i.js.br +0 -0
- package/dist/public/assets/_COYkYoFv.js.br +0 -0
- package/dist/public/assets/_CeDZd8rZ2.js.br +0 -0
- package/dist/public/assets/_Cnbwmntk.js.br +0 -0
- package/dist/public/assets/_Co-wEQAY2.js.br +0 -0
- package/dist/public/assets/_CrG9TeUY.js.br +0 -0
- package/dist/public/assets/_Crll305z.js.br +0 -0
- package/dist/public/assets/_CzrKRxDL.js.br +0 -0
- package/dist/public/assets/_D0edGJXb.js.br +0 -0
- package/dist/public/assets/_D3uoG5zl.js.br +0 -0
- package/dist/public/assets/_D4twEvqB.js.br +0 -0
- package/dist/public/assets/_D6mKE2py.js.br +0 -0
- package/dist/public/assets/_D7EH6nkC.js.br +0 -0
- package/dist/public/assets/_D8-qVrzw.js.br +0 -0
- package/dist/public/assets/_DFDpgZ91.js.br +0 -0
- package/dist/public/assets/_DHFpz4Dg2.js.br +0 -0
- package/dist/public/assets/_DMBG0_ll2.js.br +0 -0
- package/dist/public/assets/_DQSnlR_M.js.br +0 -0
- package/dist/public/assets/_DT6z8SCm.js +0 -86
- package/dist/public/assets/_DT6z8SCm.js.br +0 -0
- package/dist/public/assets/_DUajRqQa.js.br +0 -0
- package/dist/public/assets/_DWCqB08w.js.br +0 -0
- package/dist/public/assets/_DXIIaXRS2.js.br +0 -0
- package/dist/public/assets/_D_Lgs_X_.js.br +0 -0
- package/dist/public/assets/_D_cpCm9h.js.br +0 -0
- package/dist/public/assets/_DjO290Pw.js.br +0 -0
- package/dist/public/assets/_DklbdiCc2.js.br +0 -0
- package/dist/public/assets/_DlCjan_T.js.br +0 -0
- package/dist/public/assets/_DosQtxzJ2.js.br +0 -0
- package/dist/public/assets/_DuyrV6qu.js.br +0 -0
- package/dist/public/assets/_DypTr90k.js.br +0 -0
- package/dist/public/assets/_DzpvRw_B2.js.br +0 -0
- package/dist/public/assets/_EljmBS2i2.js.br +0 -0
- package/dist/public/assets/_FK1mI3bG.js.br +0 -0
- package/dist/public/assets/_Fy2TXuAx2.js.br +0 -0
- package/dist/public/assets/_O57ccbOT.js.br +0 -0
- package/dist/public/assets/_OpFGMmeT.js.br +0 -0
- package/dist/public/assets/_RUFwuk492.js.br +0 -0
- package/dist/public/assets/_TVKm93sW2.js.br +0 -0
- package/dist/public/assets/_V58zUMM9.js.br +0 -0
- package/dist/public/assets/_axH9g-uz.js.br +0 -0
- package/dist/public/assets/_gWLvy_5-.js.br +0 -0
- package/dist/public/assets/_imsv_x99.js.br +0 -0
- package/dist/public/assets/_jZZLNOqC.js.br +0 -0
- package/dist/public/assets/_llaO6jHF.js.br +0 -0
- package/dist/public/assets/_mXuIOx73.js.br +0 -0
- package/dist/public/assets/_ng_IjwY02.js.br +0 -0
- package/dist/public/assets/_oBxEhf6t.js.br +0 -0
- package/dist/public/assets/_ou7SVIDE.js.br +0 -0
- package/dist/public/assets/_rGC-LID2.js.br +0 -0
- package/dist/public/assets/_uWSYIarZ2.js.br +0 -0
- package/dist/public/assets/_wmLphO_w2.js.br +0 -0
- package/dist/public/assets/_zBVhc44a.js.br +0 -0
- package/dist/public/assets/app-page-7g0VyBen.css.br +0 -0
- package/dist/public/assets/diff-view-Bok-ODFF.css.br +0 -0
- package/dist/public/assets/new-B-GbCgRT.js +0 -1
- package/dist/public/assets/settings-B-GbCgRT.js +0 -1
- package/dist/public/assets/w-B-GbCgRT.js +0 -1
- package/dist/public/assets/w._-B-GbCgRT.js +0 -1
- package/dist/public/assets/w._-BevC9WnY.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
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
|
|
3
|
+
import { $ as _content, A as repoLabel, At as attrTag, B as phase, C as sideNavOpen, Ct as _serialize_if, D as icon_xmark_default, Dt as _to_text, E as toast_default, Et as _template, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as withPageAssets, N as btnLg, Nt as writeScope, O as icon_base_default, Ot as _trailers, P as btnSm, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _serialize_guard, T as workspaceTab, Tt as _subscribe, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _scope_id, at as _escape, bt as _script, c as icon_arrow_up_default, ct as _for_of, d as iconBtn$2, dt as _html, et as _content_resume, f as row, ft as _id, gt as _resume_branch, ht as _resume, i as icon_sidebar_default, it as _el_resume, j as repoWebUrl$1, jt as forOf, k as parseRepoUrl, kt as _var, l as icon_back_default, lt as _hoist, mt as _peek_scope_id, n as findIconBtn, o as rankRepos, ot as _existing_scope, p as sectionCount$1, pt as _if, q as _attr_option_value, r as findInput, rt as _el_read_error, s as icon_search_default, st as _flush_head, t as icon_arrow_down_default, tt as _dynamic_tag, u as icon_refresh_default, ut as _hoist_read_error, v as ignoredSsoOrgs, vt as _scope_reason, w as theme, wt as _set_serialize_reason, x as setTheme, xt as _sep, yt as _scope_with_id, z as metaTrunc } from "./_Cd5JGljs.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -13,7 +13,7 @@ import { spawn } from "node:child_process";
|
|
|
13
13
|
import crypto, { createHash } from "node:crypto";
|
|
14
14
|
import fsp from "node:fs/promises";
|
|
15
15
|
import pty from "node-pty";
|
|
16
|
-
//#region node_modules/.pnpm/@marko+run@0.11.10_@types+node@26.2.0_esbuild@0.27.7_marko@6.3.
|
|
16
|
+
//#region node_modules/.pnpm/@marko+run@0.11.10_@types+node@26.2.0_esbuild@0.27.7_marko@6.3.43/node_modules/@marko/run/dist/adapter/middleware.js
|
|
17
17
|
function getOrigin(req, trustProxy) {
|
|
18
18
|
const protocol = trustProxy && getForwardedHeader(req, "proto") || req.socket.encrypted && "https" || req.protocol || "http";
|
|
19
19
|
let host = trustProxy && getForwardedHeader(req, "host") || req.headers.host;
|
|
@@ -971,7 +971,7 @@ async function parseFormData(request, optionsOrUploadHandler, uploadHandler) {
|
|
|
971
971
|
return formData;
|
|
972
972
|
}
|
|
973
973
|
//#endregion
|
|
974
|
-
//#region node_modules/.pnpm/@marko+run@0.11.10_@types+node@26.2.0_esbuild@0.27.7_marko@6.3.
|
|
974
|
+
//#region node_modules/.pnpm/@marko+run@0.11.10_@types+node@26.2.0_esbuild@0.27.7_marko@6.3.43/node_modules/@marko/run/dist/runtime/internal.js
|
|
975
975
|
var httpVerbs = [
|
|
976
976
|
"get",
|
|
977
977
|
"head",
|
|
@@ -3564,17 +3564,25 @@ function sessionCounts(workspaceId, states) {
|
|
|
3564
3564
|
//#endregion
|
|
3565
3565
|
//#region src/routes/_app/+middleware.ts
|
|
3566
3566
|
var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
3567
|
-
/** How long the first byte may wait for a warm status before
|
|
3568
|
-
*
|
|
3569
|
-
* shell's later updates stop mounting new branches
|
|
3570
|
-
*
|
|
3567
|
+
/** How long the first byte may wait for a warm status before the shell
|
|
3568
|
+
* renders without it. A streamed shell hits a marko resume bug — the
|
|
3569
|
+
* shell's later updates stop mounting new branches, so every link becomes
|
|
3570
|
+
* a no-op that still moves the address bar — and that is not a gap that
|
|
3571
|
+
* can be widened around: a cold status already lands seconds after the
|
|
3572
|
+
* placeholder and still breaks. So the shell NEVER streams. Past this
|
|
3573
|
+
* deadline it renders in one pass with no status at all, and the client
|
|
3574
|
+
* fills it in (app-shell fetches once when it boots empty).
|
|
3575
|
+
*
|
|
3576
|
+
* This is what a restart used to cost: the release swaps the build, every
|
|
3577
|
+
* open tab reloads onto a server whose status is cold, and each one comes
|
|
3578
|
+
* back resumed-but-dead until the user reloads a third time by hand. */
|
|
3571
3579
|
var QUICK_MS = 80;
|
|
3572
3580
|
/**
|
|
3573
3581
|
* Data every app page needs, once. Sync fields render in the first pass.
|
|
3574
3582
|
* `status` (git/tmux/gh probes) is either already known — a warm server,
|
|
3575
|
-
* the common case
|
|
3576
|
-
*
|
|
3577
|
-
*
|
|
3583
|
+
* the common case — or dropped for this render and fetched by the client.
|
|
3584
|
+
* Either way the page renders in one pass. Pages that need the doctor
|
|
3585
|
+
* snapshot (settings, first run) add `setup`.
|
|
3578
3586
|
*/
|
|
3579
3587
|
var _middleware_default$3 = Run.ALL(async (_ctx, next) => {
|
|
3580
3588
|
const statusP = statusForAll();
|
|
@@ -3588,7 +3596,7 @@ var _middleware_default$3 = Run.ALL(async (_ctx, next) => {
|
|
|
3588
3596
|
},
|
|
3589
3597
|
prefs: allPrefs(),
|
|
3590
3598
|
instance: getInstance(),
|
|
3591
|
-
status: quick ? quick.s :
|
|
3599
|
+
status: quick ? quick.s : {},
|
|
3592
3600
|
setup: null,
|
|
3593
3601
|
usage: usagePeek()
|
|
3594
3602
|
});
|
|
@@ -3695,6 +3703,25 @@ var _layout_default = _template("a", (input) => {
|
|
|
3695
3703
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
|
|
3696
3704
|
}, 1);
|
|
3697
3705
|
//#endregion
|
|
3706
|
+
//#region src/client/reachable.ts
|
|
3707
|
+
/** Whether the server is answering at all, tracked in one place because
|
|
3708
|
+
* two very different things learn it: the events bus (a socket message, a
|
|
3709
|
+
* degraded-mode probe) and every ordinary `api()` call. It lives here
|
|
3710
|
+
* rather than in app-events so `api` can report success without importing
|
|
3711
|
+
* the bus that imports it.
|
|
3712
|
+
*
|
|
3713
|
+
* A lost events socket alone does not count — polling keeps the app live,
|
|
3714
|
+
* so the "Reconnecting…" pill stays quiet for bus-only blips. */
|
|
3715
|
+
var reachable = true;
|
|
3716
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
3717
|
+
/** Notify only on change: the pill's grace-period timer restarts on every
|
|
3718
|
+
* `false` it hears, which would keep it permanently armed. */
|
|
3719
|
+
function setReachable(next) {
|
|
3720
|
+
if (reachable === next) return;
|
|
3721
|
+
reachable = next;
|
|
3722
|
+
for (const fn of listeners) fn(next);
|
|
3723
|
+
}
|
|
3724
|
+
//#endregion
|
|
3698
3725
|
//#region src/client/session.ts
|
|
3699
3726
|
/** When an edge auth proxy (oauth2-proxy, Cloudflare Access, …) drops the
|
|
3700
3727
|
* session, API fetches turn into login HTML and websocket upgrades fail.
|
|
@@ -3754,6 +3781,7 @@ async function api$7(url, init) {
|
|
|
3754
3781
|
if (data && typeof data === "object" && data.error) throw new Error(data.error);
|
|
3755
3782
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
3756
3783
|
clearAuthReloadGuard();
|
|
3784
|
+
setReachable(true);
|
|
3757
3785
|
return data;
|
|
3758
3786
|
}
|
|
3759
3787
|
//#endregion
|
|
@@ -3900,28 +3928,28 @@ function applyInstance(inst) {
|
|
|
3900
3928
|
}
|
|
3901
3929
|
//#endregion
|
|
3902
3930
|
//#region src/tags/settings-page.css.ts
|
|
3903
|
-
var content$2 = "
|
|
3904
|
-
var agentGrid = "
|
|
3905
|
-
var toolGrid = "
|
|
3906
|
-
var themeSeg = "
|
|
3907
|
-
var swatches = "
|
|
3931
|
+
var content$2 = "_b5 _bp _bq";
|
|
3932
|
+
var agentGrid = "_b9 _bA";
|
|
3933
|
+
var toolGrid = "_ci _bA";
|
|
3934
|
+
var themeSeg = "_cx _6";
|
|
3935
|
+
var swatches = "_cF _6";
|
|
3908
3936
|
//#endregion
|
|
3909
3937
|
//#region src/tags/page-head.marko
|
|
3910
3938
|
var page_head_default = _template("r", (input) => {
|
|
3911
3939
|
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);
|
|
3912
3940
|
const $scope0_id = _scope_id();
|
|
3913
|
-
_html(`<header${_attr_class("
|
|
3941
|
+
_html(`<header${_attr_class("_br")}>`);
|
|
3914
3942
|
_if(() => {
|
|
3915
3943
|
if (input.backHref) {
|
|
3916
3944
|
const $scope1_id = _scope_id();
|
|
3917
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3945
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_cV"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3918
3946
|
icon_back_default({ size: 16 });
|
|
3919
3947
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3920
3948
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3921
3949
|
return 0;
|
|
3922
3950
|
} else if (input.onBack) {
|
|
3923
3951
|
const $scope2_id = _scope_id();
|
|
3924
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3952
|
+
_html(`<button${_attr_class([iconBtnRow, "_cV"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3925
3953
|
icon_back_default({ size: 16 });
|
|
3926
3954
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3927
3955
|
_script($scope2_id, "r0");
|
|
@@ -3929,11 +3957,11 @@ var page_head_default = _template("r", (input) => {
|
|
|
3929
3957
|
return 1;
|
|
3930
3958
|
}
|
|
3931
3959
|
}, $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);
|
|
3932
|
-
_html(`<div${_attr_class("
|
|
3960
|
+
_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))}`);
|
|
3933
3961
|
_if(() => {
|
|
3934
3962
|
if (input.meta) {
|
|
3935
3963
|
const $scope3_id = _scope_id();
|
|
3936
|
-
_html(`<p${_attr_class("
|
|
3964
|
+
_html(`<p${_attr_class("_bu")}>`);
|
|
3937
3965
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3938
3966
|
_html("</p>");
|
|
3939
3967
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3944,7 +3972,7 @@ var page_head_default = _template("r", (input) => {
|
|
|
3944
3972
|
_if(() => {
|
|
3945
3973
|
if (input.actions) {
|
|
3946
3974
|
const $scope4_id = _scope_id();
|
|
3947
|
-
_html(`<div${_attr_class("
|
|
3975
|
+
_html(`<div${_attr_class("_bv")}>`);
|
|
3948
3976
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3949
3977
|
_html("</div>");
|
|
3950
3978
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -4012,7 +4040,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
4012
4040
|
n: $badge__closures
|
|
4013
4041
|
});
|
|
4014
4042
|
});
|
|
4015
|
-
var usageNote = "
|
|
4043
|
+
var usageNote = "_dk _S";
|
|
4016
4044
|
//#endregion
|
|
4017
4045
|
//#region src/tags/icons/icon-warning.marko
|
|
4018
4046
|
var icon_warning_default = _template("kb", (input) => {
|
|
@@ -4053,11 +4081,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4053
4081
|
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);
|
|
4054
4082
|
const $scope0_id = _scope_id();
|
|
4055
4083
|
const agent = input.agent;
|
|
4056
|
-
_html(`<div${_attr_class(["
|
|
4084
|
+
_html(`<div${_attr_class(["_de", { ["_df"]: input.hideName }])}><div${_attr_class("_dg")}>`);
|
|
4057
4085
|
_if(() => {
|
|
4058
4086
|
if (!input.hideName) {
|
|
4059
4087
|
const $scope1_id = _scope_id();
|
|
4060
|
-
_html(`<strong${_attr_class("
|
|
4088
|
+
_html(`<strong${_attr_class("_dz")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
4061
4089
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
4062
4090
|
return 0;
|
|
4063
4091
|
}
|
|
@@ -4065,7 +4093,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4065
4093
|
_if(() => {
|
|
4066
4094
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
4067
4095
|
const $scope2_id = _scope_id();
|
|
4068
|
-
_html(`<span${_attr_class("
|
|
4096
|
+
_html(`<span${_attr_class("_dh")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
4069
4097
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
4070
4098
|
return 0;
|
|
4071
4099
|
}
|
|
@@ -4073,21 +4101,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
4073
4101
|
_if(() => {
|
|
4074
4102
|
if (agent.stale_seconds != null) {
|
|
4075
4103
|
const $scope3_id = _scope_id();
|
|
4076
|
-
_html(`<span${_attr_class("
|
|
4104
|
+
_html(`<span${_attr_class("_di")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
4077
4105
|
icon_warning_default({ size: 12 });
|
|
4078
4106
|
_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)}`);
|
|
4079
4107
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
4080
4108
|
return 0;
|
|
4081
4109
|
}
|
|
4082
4110
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
4083
|
-
_html(`</div><div${_attr_class(["
|
|
4111
|
+
_html(`</div><div${_attr_class(["_dj", { ["_dA"]: agent.stale_seconds != null }])}>`);
|
|
4084
4112
|
_for_of(agent.windows || [], (win) => {
|
|
4085
4113
|
const $scope4_id = _scope_id();
|
|
4086
4114
|
const pct = pctText$1(win.used_percent);
|
|
4087
4115
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
4088
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
4089
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
4090
|
-
_html(`<div${_attr_class("
|
|
4116
|
+
const fillClass = win.used_percent >= 90 ? "_ds" : win.used_percent >= 70 ? "_dr" : win.used_percent >= 40 ? "_dq" : "_dp";
|
|
4117
|
+
const pctClass = win.used_percent >= 90 ? "_dx" : win.used_percent >= 70 ? "_dw" : win.used_percent >= 40 ? "_dv" : "_du";
|
|
4118
|
+
_html(`<div${_attr_class("_dl")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dm")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_dn")}><span${_attr_class(["_do", 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(["_dt", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dy")}>`);
|
|
4091
4119
|
_if(() => {
|
|
4092
4120
|
if (label) {
|
|
4093
4121
|
const $scope6_id = _scope_id();
|
|
@@ -4166,14 +4194,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4166
4194
|
localCode = null;
|
|
4167
4195
|
}
|
|
4168
4196
|
}, "z0", $scope0_id);
|
|
4169
|
-
_html(`<div${_attr_class("
|
|
4197
|
+
_html(`<div${_attr_class("_dB")}>`);
|
|
4170
4198
|
_if(() => {
|
|
4171
4199
|
if (input.items.length) {
|
|
4172
4200
|
const $scope1_id = _scope_id();
|
|
4173
|
-
_html(`<p${_attr_class("
|
|
4201
|
+
_html(`<p${_attr_class("_dM")}>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("_dC")}>`);
|
|
4174
4202
|
_for_of(input.items, (s) => {
|
|
4175
4203
|
const $scope2_id = _scope_id();
|
|
4176
|
-
_html(`<li${_attr_class("
|
|
4204
|
+
_html(`<li${_attr_class("_dD")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_dE")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
4177
4205
|
icon_xmark_default({ size: 11 });
|
|
4178
4206
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
4179
4207
|
_script($scope2_id, "z1");
|
|
@@ -4182,17 +4210,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4182
4210
|
_: _scope_with_id($scope1_id)
|
|
4183
4211
|
}));
|
|
4184
4212
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
4185
|
-
_html(`<div${_attr_class("
|
|
4213
|
+
_html(`<div${_attr_class("_dF")}>`);
|
|
4186
4214
|
_if(() => {
|
|
4187
4215
|
if (busy && authCode$2) {
|
|
4188
4216
|
const $scope5_id = _scope_id();
|
|
4189
|
-
_html(`<span${_attr_class("
|
|
4217
|
+
_html(`<span${_attr_class("_dG")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dH")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dI")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
4190
4218
|
_script($scope5_id, "z2");
|
|
4191
4219
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
4192
4220
|
return 0;
|
|
4193
4221
|
} else if (busy) {
|
|
4194
4222
|
const $scope8_id = _scope_id();
|
|
4195
|
-
_html(`<span${_attr_class("
|
|
4223
|
+
_html(`<span${_attr_class("_dG")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
4196
4224
|
writeScope($scope8_id, {});
|
|
4197
4225
|
return 1;
|
|
4198
4226
|
} else {
|
|
@@ -4206,7 +4234,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4206
4234
|
_if(() => {
|
|
4207
4235
|
if (localError) {
|
|
4208
4236
|
const $scope6_id = _scope_id();
|
|
4209
|
-
_html(`<p${_attr_class("
|
|
4237
|
+
_html(`<p${_attr_class("_dM")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4210
4238
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4211
4239
|
return 0;
|
|
4212
4240
|
}
|
|
@@ -4218,10 +4246,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4218
4246
|
_if(() => {
|
|
4219
4247
|
if (skipped$1.length) {
|
|
4220
4248
|
const $scope3_id = _scope_id();
|
|
4221
|
-
_html(`<p${_attr_class("
|
|
4249
|
+
_html(`<p${_attr_class("_dJ")}>Skipped SSO for `);
|
|
4222
4250
|
_for_of(skipped$1, (s) => {
|
|
4223
4251
|
const $scope4_id = _scope_id();
|
|
4224
|
-
_html(`<span${_attr_class("
|
|
4252
|
+
_html(`<span${_attr_class("_dK")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dL")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4225
4253
|
_script($scope4_id, "z4");
|
|
4226
4254
|
writeScope($scope4_id, {
|
|
4227
4255
|
f: s?.org,
|
|
@@ -4296,7 +4324,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4296
4324
|
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;
|
|
4297
4325
|
const dismissable = input.dismissable !== false;
|
|
4298
4326
|
let open = input.open;
|
|
4299
|
-
_html(`<dialog${_attr_class(["
|
|
4327
|
+
_html(`<dialog${_attr_class(["_fo", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4300
4328
|
...htmlInput,
|
|
4301
4329
|
open: null
|
|
4302
4330
|
}, {
|
|
@@ -4306,20 +4334,20 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4306
4334
|
closedby: 1,
|
|
4307
4335
|
"on-cancel": 1,
|
|
4308
4336
|
"on-close": 1
|
|
4309
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4337
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fp")}>`);
|
|
4310
4338
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4311
4339
|
_html("</div>");
|
|
4312
4340
|
_if(() => {
|
|
4313
4341
|
if (footer) {
|
|
4314
4342
|
const $scope1_id = _scope_id();
|
|
4315
|
-
_html(`<form method=dialog${_attr_class("
|
|
4343
|
+
_html(`<form method=dialog${_attr_class("_fq")}>`);
|
|
4316
4344
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4317
4345
|
_html("</form>");
|
|
4318
4346
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4319
4347
|
return 0;
|
|
4320
4348
|
} else if (input.openChange) {
|
|
4321
4349
|
const $scope2_id = _scope_id();
|
|
4322
|
-
_html(`<form method=dialog${_attr_class("
|
|
4350
|
+
_html(`<form method=dialog${_attr_class("_fq")}>`);
|
|
4323
4351
|
dialog_close_default({
|
|
4324
4352
|
class: ["_o", "_p"],
|
|
4325
4353
|
content: _content("p0", () => {
|
|
@@ -4378,7 +4406,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4378
4406
|
const $childScope = _peek_scope_id();
|
|
4379
4407
|
modal_view_default({
|
|
4380
4408
|
label: input.label,
|
|
4381
|
-
class: "
|
|
4409
|
+
class: "_dc",
|
|
4382
4410
|
open: input.open,
|
|
4383
4411
|
openChange: input.openChange,
|
|
4384
4412
|
"aria-labelledby": titleId,
|
|
@@ -4401,7 +4429,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4401
4429
|
content: _content("s6", () => {
|
|
4402
4430
|
_scope_reason();
|
|
4403
4431
|
const $scope2_id = _scope_id();
|
|
4404
|
-
_html(`<h2${_attr_class("
|
|
4432
|
+
_html(`<h2${_attr_class("_dd")}${_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) => {
|
|
4405
4433
|
value = _new_value;
|
|
4406
4434
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4407
4435
|
_script($scope2_id, "s4");
|
|
@@ -4783,7 +4811,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4783
4811
|
const githubId = _id();
|
|
4784
4812
|
const machineId = _id();
|
|
4785
4813
|
const skillsId = _id();
|
|
4786
|
-
_html(`<div${_attr_class("
|
|
4814
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$2)}>`);
|
|
4787
4815
|
_set_serialize_reason({
|
|
4788
4816
|
0: _serialize_guard($scope0_reason, 4),
|
|
4789
4817
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4807,12 +4835,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4807
4835
|
return 0;
|
|
4808
4836
|
} else if (setup.ready) {
|
|
4809
4837
|
const $scope67_id = _scope_id();
|
|
4810
|
-
_html(`<span${_attr_class("
|
|
4838
|
+
_html(`<span${_attr_class("_b7")}>Ready</span>. Tools, GitHub, and an agent are all in place.`);
|
|
4811
4839
|
writeScope($scope67_id, {});
|
|
4812
4840
|
return 1;
|
|
4813
4841
|
} else {
|
|
4814
4842
|
const $scope6_id = _scope_id();
|
|
4815
|
-
_html(`<span${_attr_class("
|
|
4843
|
+
_html(`<span${_attr_class("_b8")}>Not ready</span>. Missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope6_id, "b")}.`);
|
|
4816
4844
|
_subscribe($setup_missing__closures, writeScope($scope6_id, {}));
|
|
4817
4845
|
return 2;
|
|
4818
4846
|
}
|
|
@@ -4862,16 +4890,16 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4862
4890
|
_if(() => {
|
|
4863
4891
|
if (selfUpdatePending || selfUpdating) {
|
|
4864
4892
|
const $scope45_id = _scope_id();
|
|
4865
|
-
_html(`<div${_attr_class("
|
|
4893
|
+
_html(`<div${_attr_class("_cB")} role=status><div${_attr_class("_cC")}>`);
|
|
4866
4894
|
_if(() => {
|
|
4867
4895
|
if (selfUpdating) {
|
|
4868
4896
|
const $scope68_id = _scope_id();
|
|
4869
|
-
_html(`<span${_attr_class("
|
|
4897
|
+
_html(`<span${_attr_class("_cD")}><span${_attr_class("_F")}></span> Updating work…</span><span${_attr_class("_cE")}>The app restarts and reloads when it is done.</span>`);
|
|
4870
4898
|
writeScope($scope68_id, {});
|
|
4871
4899
|
return 0;
|
|
4872
4900
|
} else {
|
|
4873
4901
|
const $scope46_id = _scope_id();
|
|
4874
|
-
_html(`<span${_attr_class("
|
|
4902
|
+
_html(`<span${_attr_class("_cD")}>Update available</span><span${_attr_class("_cE")}>v<!>${_escape(self.version)}${_el_resume($scope46_id, "c")} → v<!>${_escape(self.latest)}${_el_resume($scope46_id, "d")}</span>`);
|
|
4875
4903
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
4876
4904
|
return 1;
|
|
4877
4905
|
}
|
|
@@ -4890,11 +4918,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4890
4918
|
return 0;
|
|
4891
4919
|
}
|
|
4892
4920
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
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("
|
|
4921
|
+
_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("_ca")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4894
4922
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4895
4923
|
setPreferred(v);
|
|
4896
4924
|
}, "v2", $scope0_id), () => {
|
|
4897
|
-
_html(`<select${_attr_class(["_n", "
|
|
4925
|
+
_html(`<select${_attr_class(["_n", "_cb"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4898
4926
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4899
4927
|
const $scope69_id = _scope_id();
|
|
4900
4928
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope69_id, "b", $sg__input_agents)}</option>${_el_resume($scope69_id, "a", $sg__input_agents)}`);
|
|
@@ -4915,7 +4943,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4915
4943
|
const rows = lone ? [] : a.instances;
|
|
4916
4944
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4917
4945
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4918
|
-
_html(`<li${_attr_class(["_bC", "
|
|
4946
|
+
_html(`<li${_attr_class(["_bC", "_b_"])}><div${_attr_class(["_cc", { ["_cf"]: lone && !lone.enabled }])}>`);
|
|
4919
4947
|
_set_serialize_reason(12);
|
|
4920
4948
|
const $childScope4 = _peek_scope_id();
|
|
4921
4949
|
icon_agent_default({
|
|
@@ -4935,7 +4963,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4935
4963
|
_if(() => {
|
|
4936
4964
|
if (active.has(a.id)) {
|
|
4937
4965
|
const $scope11_id = _scope_id();
|
|
4938
|
-
_html(`<span${_attr_class("
|
|
4966
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4939
4967
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4940
4968
|
return 0;
|
|
4941
4969
|
} else if (!a.installed) {
|
|
@@ -4972,18 +5000,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4972
5000
|
_if(() => {
|
|
4973
5001
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
4974
5002
|
const $scope2_id = _scope_id();
|
|
4975
|
-
_html(`<ul${_attr_class("
|
|
5003
|
+
_html(`<ul${_attr_class("_ch")}>`);
|
|
4976
5004
|
_for_of(rows, (inst) => {
|
|
4977
5005
|
const $scope3_id = _scope_id();
|
|
4978
5006
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
4979
|
-
_html(`<li${_attr_class("
|
|
5007
|
+
_html(`<li${_attr_class("_cd")}><div${_attr_class(["_ce", { ["_cf"]: !inst.enabled }])}>`);
|
|
4980
5008
|
_set_serialize_reason(12);
|
|
4981
5009
|
const $childScope5 = _peek_scope_id();
|
|
4982
5010
|
icon_agent_default({
|
|
4983
5011
|
agent: inst.id,
|
|
4984
5012
|
size: 15
|
|
4985
5013
|
});
|
|
4986
|
-
_html(`<span${_attr_class(["
|
|
5014
|
+
_html(`<span${_attr_class(["_cg", "_x"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4987
5015
|
_if(() => {
|
|
4988
5016
|
if (input.preferred === inst.id) {
|
|
4989
5017
|
const $scope72_id = _scope_id();
|
|
@@ -5058,7 +5086,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5058
5086
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
5059
5087
|
_for_of(otherUsage, (u) => {
|
|
5060
5088
|
const $scope76_id = _scope_id();
|
|
5061
|
-
_html(`<li${_attr_class(["_bC", "
|
|
5089
|
+
_html(`<li${_attr_class(["_bC", "_b_"])}>`);
|
|
5062
5090
|
_set_serialize_reason(6);
|
|
5063
5091
|
const $childScope9 = _peek_scope_id();
|
|
5064
5092
|
usage_meters_default({ agent: u });
|
|
@@ -5093,7 +5121,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5093
5121
|
const skippedSso = (() => {
|
|
5094
5122
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
5095
5123
|
})();
|
|
5096
|
-
_html(`<li${_attr_class(["_bC", "
|
|
5124
|
+
_html(`<li${_attr_class(["_bC", "_cr"])}><div${_attr_class("_cs")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
5097
5125
|
_if(() => {
|
|
5098
5126
|
if (h.isEnterprise) {
|
|
5099
5127
|
const $scope80_id = _scope_id();
|
|
@@ -5106,12 +5134,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5106
5134
|
_if(() => {
|
|
5107
5135
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
5108
5136
|
const $scope32_id = _scope_id();
|
|
5109
|
-
_html(`<span${_attr_class("
|
|
5137
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_cp")}>${_escape(authCodes.get(h.host))}${_el_resume($scope32_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cq")}>${_escape(h.host)}${_el_resume($scope32_id, "f")}/login/device</a>${_el_resume($scope32_id, "e")}</span>`);
|
|
5110
5138
|
_subscribe($authCodes__closures, writeScope($scope32_id, { Ces: 1 }));
|
|
5111
5139
|
return 0;
|
|
5112
5140
|
} else if (active.has(h.host)) {
|
|
5113
5141
|
const $scope13_id = _scope_id();
|
|
5114
|
-
_html(`<span${_attr_class("
|
|
5142
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
5115
5143
|
_subscribe($active__closures, writeScope($scope13_id, { Ceq: 1 }));
|
|
5116
5144
|
return 1;
|
|
5117
5145
|
} else if (h.authed) {
|
|
@@ -5236,7 +5264,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5236
5264
|
_if(() => {
|
|
5237
5265
|
if (setup) {
|
|
5238
5266
|
const $scope43_id = _scope_id();
|
|
5239
|
-
_html(`<form${_attr_class("
|
|
5267
|
+
_html(`<form${_attr_class("_co")}><label${_attr_class("_W")}>`);
|
|
5240
5268
|
icon_plus_default({
|
|
5241
5269
|
size: 14,
|
|
5242
5270
|
class: "_X"
|
|
@@ -5299,11 +5327,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5299
5327
|
_if(() => {
|
|
5300
5328
|
if (self) {
|
|
5301
5329
|
const $scope48_id = _scope_id();
|
|
5302
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["
|
|
5330
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_ck", "_x"])}>work</span>`);
|
|
5303
5331
|
_if(() => {
|
|
5304
5332
|
if (selfUpdating) {
|
|
5305
5333
|
const $scope84_id = _scope_id();
|
|
5306
|
-
_html(`<span${_attr_class("
|
|
5334
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
5307
5335
|
writeScope($scope84_id, {});
|
|
5308
5336
|
return 0;
|
|
5309
5337
|
} else {
|
|
@@ -5317,7 +5345,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5317
5345
|
return 0;
|
|
5318
5346
|
} else if (self.latest && self.latest !== self.version) {
|
|
5319
5347
|
const $scope50_id = _scope_id();
|
|
5320
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5348
|
+
_html(`<button${_attr_class([btnSm, "_cm"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
5321
5349
|
icon_arrow_up_default({ size: 12 });
|
|
5322
5350
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope50_id, "c")}</button>${_el_resume($scope50_id, "a")}`);
|
|
5323
5351
|
_script($scope50_id, "v51");
|
|
@@ -5358,11 +5386,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5358
5386
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5359
5387
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5360
5388
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5361
|
-
_html(`<li${_attr_class([row, { ["
|
|
5389
|
+
_html(`<li${_attr_class([row, { ["_cj"]: !t.installed }])}><span${_attr_class(["_ck", "_x"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5362
5390
|
_if(() => {
|
|
5363
5391
|
if (active.has(t.id)) {
|
|
5364
5392
|
const $scope19_id = _scope_id();
|
|
5365
|
-
_html(`<span${_attr_class("
|
|
5393
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5366
5394
|
_subscribe($active__closures, writeScope($scope19_id, { Ceq: 3 }));
|
|
5367
5395
|
return 0;
|
|
5368
5396
|
} else if (t.installed) {
|
|
@@ -5370,7 +5398,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5370
5398
|
_if(() => {
|
|
5371
5399
|
if (t.version) {
|
|
5372
5400
|
const $scope40_id = _scope_id();
|
|
5373
|
-
_html(`<button${_attr_class(["
|
|
5401
|
+
_html(`<button${_attr_class(["_cl", "_x"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope40_id, "b")}</button>${_el_resume($scope40_id, "a")}`);
|
|
5374
5402
|
_script($scope40_id, "v52");
|
|
5375
5403
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope40_id, { Cu: 1 }))));
|
|
5376
5404
|
return 0;
|
|
@@ -5384,7 +5412,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5384
5412
|
_if(() => {
|
|
5385
5413
|
if (outdated(t)) {
|
|
5386
5414
|
const $scope58_id = _scope_id();
|
|
5387
|
-
_html(`<button${_attr_class([btnSm, "
|
|
5415
|
+
_html(`<button${_attr_class([btnSm, "_cm"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
5388
5416
|
icon_arrow_up_default({ size: 12 });
|
|
5389
5417
|
_html(` <!>${_escape(t.latest)}${_el_resume($scope58_id, "c")}</button>${_el_resume($scope58_id, "a")}`);
|
|
5390
5418
|
_script($scope58_id, "v53");
|
|
@@ -5486,14 +5514,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5486
5514
|
_if(() => {
|
|
5487
5515
|
if (hits && hits.length) {
|
|
5488
5516
|
const $scope21_id = _scope_id();
|
|
5489
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
5517
|
+
_html(`<ul${_attr_class([toolGrid, "_cn"])}>`);
|
|
5490
5518
|
_for_of(hits, (h) => {
|
|
5491
5519
|
const $scope22_id = _scope_id();
|
|
5492
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["
|
|
5520
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ck", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5493
5521
|
_if(() => {
|
|
5494
5522
|
if (active.has(h.name)) {
|
|
5495
5523
|
const $scope23_id = _scope_id();
|
|
5496
|
-
_html(`<span${_attr_class("
|
|
5524
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5497
5525
|
_subscribe($active__closures, writeScope($scope23_id, { Ceq: 5 }));
|
|
5498
5526
|
return 0;
|
|
5499
5527
|
} else if (h.description) {
|
|
@@ -5579,7 +5607,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5579
5607
|
_if(() => {
|
|
5580
5608
|
if (active.has(s.id)) {
|
|
5581
5609
|
const $scope26_id = _scope_id();
|
|
5582
|
-
_html(`<span${_attr_class("
|
|
5610
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(s.id) || "Starting…")}${_el_resume($scope26_id, "c")}</span>`);
|
|
5583
5611
|
_subscribe($active__closures, writeScope($scope26_id, { Ceq: 6 }));
|
|
5584
5612
|
return 0;
|
|
5585
5613
|
} else if (s.description) {
|
|
@@ -5592,7 +5620,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5592
5620
|
_if(() => {
|
|
5593
5621
|
if (s.sourceUrl) {
|
|
5594
5622
|
const $scope98_id = _scope_id();
|
|
5595
|
-
_html(`<a${_attr_class(["_bG", "
|
|
5623
|
+
_html(`<a${_attr_class(["_bG", "_cL"])}${_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")}`);
|
|
5596
5624
|
writeScope($scope98_id, {});
|
|
5597
5625
|
return 0;
|
|
5598
5626
|
} else if (s.source) {
|
|
@@ -5678,15 +5706,15 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5678
5706
|
size: 14,
|
|
5679
5707
|
class: "_X"
|
|
5680
5708
|
});
|
|
5681
|
-
_html(`<input${_attr_input_value($scope27_id, "c", skillQuery, searchSkills)}${_attr_class([inputLg, "_Y"])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope27_id, "c")}</label><ul${_attr_class([toolGrid, "
|
|
5709
|
+
_html(`<input${_attr_input_value($scope27_id, "c", skillQuery, searchSkills)}${_attr_class([inputLg, "_Y"])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope27_id, "c")}</label><ul${_attr_class([toolGrid, "_cn"])}${_attr("hidden", !skillQuery.trim())}>`);
|
|
5682
5710
|
_if(() => {
|
|
5683
5711
|
if (looksLikeSource(skillQuery)) {
|
|
5684
5712
|
const $scope28_id = _scope_id();
|
|
5685
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["
|
|
5713
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ck", "_x"])}>${_escape(skillQuery.trim())}${_el_resume($scope28_id, "d")}</span>`);
|
|
5686
5714
|
_if(() => {
|
|
5687
5715
|
if (active.has(skillQuery.trim())) {
|
|
5688
5716
|
const $scope29_id = _scope_id();
|
|
5689
|
-
_html(`<span${_attr_class("
|
|
5717
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(skillQuery.trim()) || "Starting…")}${_el_resume($scope29_id, "c")}</span>`);
|
|
5690
5718
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope29_id, {
|
|
5691
5719
|
Ceq: 8,
|
|
5692
5720
|
Cfa: 1
|
|
@@ -5717,11 +5745,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5717
5745
|
_for_of(skillHits || [], (h) => {
|
|
5718
5746
|
const $scope30_id = _scope_id();
|
|
5719
5747
|
const $for_content8__h_installs__closures = /* @__PURE__ */ new Set();
|
|
5720
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["
|
|
5748
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_ck", "_x"])}>${_escape(h.name)}${_el_resume($scope30_id, "d")}</span>`);
|
|
5721
5749
|
_if(() => {
|
|
5722
5750
|
if (active.has(h.skillId)) {
|
|
5723
5751
|
const $scope31_id = _scope_id();
|
|
5724
|
-
_html(`<span${_attr_class("
|
|
5752
|
+
_html(`<span${_attr_class("_b6")}><span${_attr_class("_F")}></span><!>${_escape(active.get(h.skillId) || "Starting…")}${_el_resume($scope31_id, "c")}</span>`);
|
|
5725
5753
|
_subscribe($active__closures, writeScope($scope31_id, { Ceq: 10 }));
|
|
5726
5754
|
return 0;
|
|
5727
5755
|
} else {
|
|
@@ -5800,9 +5828,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5800
5828
|
label: "Dark"
|
|
5801
5829
|
}
|
|
5802
5830
|
];
|
|
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", "
|
|
5831
|
+
_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", "_ct"])}><label${_attr_class("_cu")}><span${_attr_class("_cv")}>Name</span><input${_attr_input_value($scope0_id, "ar", input.instance.name, _resume(function(v) {
|
|
5804
5832
|
setInstance({ name: v });
|
|
5805
|
-
}, "v4", $scope0_id))}${_attr_class(["_U", "
|
|
5833
|
+
}, "v4", $scope0_id))}${_attr_class(["_U", "_cw"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ar")}</label><div${_attr_class("_cu")}><span${_attr_class("_cv")}>Theme</span><span${_attr_class("_cy")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
5806
5834
|
_for_of(themeOpts, (opt) => {
|
|
5807
5835
|
const $scope51_id = _scope_id();
|
|
5808
5836
|
_html(`<button type=button${_attr_class(["_8", { ["_7"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
@@ -5812,25 +5840,25 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5812
5840
|
_: _scope_with_id($scope0_id)
|
|
5813
5841
|
});
|
|
5814
5842
|
}, "id", $scope0_id, "av", 1, 0, 1, 0, 1);
|
|
5815
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
5843
|
+
_html(`</span><span${_attr_class(["_m", "_cz"])}>`);
|
|
5816
5844
|
_attr_select_value($scope0_id, "ax", themeMode, _resume(function(v) {
|
|
5817
5845
|
setThemeMode(v);
|
|
5818
5846
|
}, "v5", $scope0_id), () => {
|
|
5819
|
-
_html(`<select${_attr_class(["_n", "
|
|
5847
|
+
_html(`<select${_attr_class(["_n", "_cA"])} aria-label="Color theme">`);
|
|
5820
5848
|
forOf(themeOpts, (opt) => {
|
|
5821
5849
|
_scope_id();
|
|
5822
5850
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
5823
5851
|
});
|
|
5824
5852
|
_html("</select>");
|
|
5825
5853
|
});
|
|
5826
|
-
_html(`${_el_resume($scope0_id, "ax")}</span></span></div><div${_attr_class("
|
|
5827
|
-
"
|
|
5828
|
-
"
|
|
5829
|
-
{ ["
|
|
5854
|
+
_html(`${_el_resume($scope0_id, "ax")}</span></span></div><div${_attr_class("_cu")}><span${_attr_class("_cv")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
5855
|
+
"_cG",
|
|
5856
|
+
"_cI",
|
|
5857
|
+
{ ["_cH"]: !input.instance.accent }
|
|
5830
5858
|
])} role=radio aria-checked=${!input.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b1")}`);
|
|
5831
5859
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
5832
5860
|
const $scope4_id = _scope_id();
|
|
5833
|
-
_html(`<button type=button${_attr_class(["
|
|
5861
|
+
_html(`<button type=button${_attr_class(["_cG", { ["_cH"]: input.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
5834
5862
|
_script($scope4_id, "v65");
|
|
5835
5863
|
writeScope($scope4_id, {
|
|
5836
5864
|
d: p?.value,
|
|
@@ -5839,12 +5867,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5839
5867
|
}, "value", $scope0_id, "b2", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
5840
5868
|
const customOn = !!input.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input.instance.accent);
|
|
5841
5869
|
_html(`<label${_attr_class([
|
|
5842
|
-
"
|
|
5843
|
-
"
|
|
5844
|
-
{ ["
|
|
5870
|
+
"_cG",
|
|
5871
|
+
"_cJ",
|
|
5872
|
+
{ ["_cH"]: customOn }
|
|
5845
5873
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b4", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5846
5874
|
setInstance({ accent: v });
|
|
5847
|
-
}, "v6", $scope0_id))}${_attr_class("
|
|
5875
|
+
}, "v6", $scope0_id))}${_attr_class("_cK")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b4")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b3", $sg__input_instance_accent)}</span></div></div></section></div></div></div>`);
|
|
5848
5876
|
_if(() => {
|
|
5849
5877
|
if (versionPick) {
|
|
5850
5878
|
const $scope38_id = _scope_id();
|
|
@@ -5972,12 +6000,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5972
6000
|
});
|
|
5973
6001
|
//#endregion
|
|
5974
6002
|
//#region src/tags/new-workspace.css.ts
|
|
5975
|
-
var content$1 = "
|
|
5976
|
-
var section$1 = "
|
|
5977
|
-
var curBase = "
|
|
5978
|
-
var archived = "
|
|
5979
|
-
var archivedHint = "
|
|
5980
|
-
var archivedCard = "
|
|
6003
|
+
var content$1 = "_bN _bp";
|
|
6004
|
+
var section$1 = "_bR _bx";
|
|
6005
|
+
var curBase = "_bW _T _S";
|
|
6006
|
+
var archived = "_b1 _bx";
|
|
6007
|
+
var archivedHint = "_b2 _S";
|
|
6008
|
+
var archivedCard = "_b3 _bC";
|
|
5981
6009
|
//#endregion
|
|
5982
6010
|
//#region src/tags/icons/icon-check.marko
|
|
5983
6011
|
var icon_check_default = _template("P", (input) => {
|
|
@@ -6012,7 +6040,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
6012
6040
|
});
|
|
6013
6041
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6014
6042
|
});
|
|
6015
|
-
var resultBranch = "
|
|
6043
|
+
var resultBranch = "_c3 _Z _j";
|
|
6016
6044
|
//#endregion
|
|
6017
6045
|
//#region src/tags/branch-pick.marko
|
|
6018
6046
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -6025,7 +6053,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
6025
6053
|
let branchFilter = "";
|
|
6026
6054
|
let reloadTick = 0;
|
|
6027
6055
|
let refreshing = false;
|
|
6028
|
-
_html(`<div${_attr_class("
|
|
6056
|
+
_html(`<div${_attr_class("_c5")}>`);
|
|
6029
6057
|
_if(() => {
|
|
6030
6058
|
{
|
|
6031
6059
|
const $scope4_id = _scope_id();
|
|
@@ -6107,11 +6135,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6107
6135
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
6108
6136
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
6109
6137
|
})();
|
|
6110
|
-
_html(`<div${_attr_class("
|
|
6138
|
+
_html(`<div${_attr_class("_cW")}>`);
|
|
6111
6139
|
_if(() => {
|
|
6112
6140
|
if (ssoPending.length) {
|
|
6113
6141
|
const $scope7_id = _scope_id();
|
|
6114
|
-
_html(`<div${_attr_class("
|
|
6142
|
+
_html(`<div${_attr_class("_cX")}>`);
|
|
6115
6143
|
_set_serialize_reason(154);
|
|
6116
6144
|
const $childScope = _peek_scope_id();
|
|
6117
6145
|
sso_auth_default({
|
|
@@ -6141,16 +6169,16 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6141
6169
|
_if(() => {
|
|
6142
6170
|
if (pasted) {
|
|
6143
6171
|
const $scope1_id = _scope_id();
|
|
6144
|
-
_html(`<ul${_attr_class("
|
|
6172
|
+
_html(`<ul${_attr_class("_cY")}><li><div${_attr_class(["_c0", "_cZ"])}><button${_attr_class("_c1")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
6145
6173
|
icon_plus_default({
|
|
6146
6174
|
size: 12,
|
|
6147
|
-
class: "
|
|
6175
|
+
class: "_c7"
|
|
6148
6176
|
});
|
|
6149
|
-
_html(`<span${_attr_class("
|
|
6177
|
+
_html(`<span${_attr_class("_c8")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
6150
6178
|
_if(() => {
|
|
6151
6179
|
if (pastedForkable) {
|
|
6152
6180
|
const $scope8_id = _scope_id();
|
|
6153
|
-
_html(`<button${_attr_class(["
|
|
6181
|
+
_html(`<button${_attr_class(["_c4", { ["_c2"]: 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"}>`);
|
|
6154
6182
|
_if(() => {
|
|
6155
6183
|
if (pasteWillFork) {
|
|
6156
6184
|
const $scope10_id = _scope_id();
|
|
@@ -6170,7 +6198,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6170
6198
|
return 0;
|
|
6171
6199
|
}
|
|
6172
6200
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
6173
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
6201
|
+
_html(`<button${_attr_class([resultBranch, { ["_c2"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
6174
6202
|
icon_branch_default({ size: 12 });
|
|
6175
6203
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
6176
6204
|
_if(() => {
|
|
@@ -6205,15 +6233,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
6205
6233
|
_if(() => {
|
|
6206
6234
|
if (results.length) {
|
|
6207
6235
|
const $scope3_id = _scope_id();
|
|
6208
|
-
_html(`<ul${_attr_class("
|
|
6236
|
+
_html(`<ul${_attr_class("_cY")}>`);
|
|
6209
6237
|
_for_of(results, (repo, i) => {
|
|
6210
6238
|
const $scope4_id = _scope_id();
|
|
6211
|
-
_html(`<li><div${_attr_class(["
|
|
6239
|
+
_html(`<li><div${_attr_class(["_c0", { ["_cZ"]: i === highlight }])}><button${_attr_class("_c1")}>`);
|
|
6212
6240
|
icon_plus_default({
|
|
6213
6241
|
size: 12,
|
|
6214
|
-
class: "
|
|
6242
|
+
class: "_c7"
|
|
6215
6243
|
});
|
|
6216
|
-
_html(`<span${_attr_class("
|
|
6244
|
+
_html(`<span${_attr_class("_c8")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c2"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
6217
6245
|
icon_branch_default({ size: 12 });
|
|
6218
6246
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
6219
6247
|
_if(() => {
|
|
@@ -6389,7 +6417,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6389
6417
|
}
|
|
6390
6418
|
}, "q6", $scope0_id);
|
|
6391
6419
|
const titleId = _id();
|
|
6392
|
-
_html(`<div${_attr_class("
|
|
6420
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$1)}>`);
|
|
6393
6421
|
_set_serialize_reason({
|
|
6394
6422
|
0: _serialize_guard($scope0_reason, 2),
|
|
6395
6423
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -6428,23 +6456,23 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6428
6456
|
return 0;
|
|
6429
6457
|
}
|
|
6430
6458
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
6431
|
-
_html(`<label${_attr_class("
|
|
6459
|
+
_html(`<label${_attr_class("_bQ")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
6432
6460
|
name = _new_name;
|
|
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("
|
|
6461
|
+
}, "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("_bS")}><h2${_attr_class("_bM")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
6434
6462
|
_set_serialize_reason(1);
|
|
6435
6463
|
const $childScope2 = _peek_scope_id();
|
|
6436
6464
|
icon_refresh_default({
|
|
6437
6465
|
size: 14,
|
|
6438
6466
|
class: catalogRefreshing && "_E"
|
|
6439
6467
|
});
|
|
6440
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
6468
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bT")}>`);
|
|
6441
6469
|
_for_of(selected, (repo) => {
|
|
6442
6470
|
const $scope2_id = _scope_id();
|
|
6443
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
6471
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_bU")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
6444
6472
|
_if(() => {
|
|
6445
6473
|
if (repo.fork !== void 0) {
|
|
6446
6474
|
const $scope3_id = _scope_id();
|
|
6447
|
-
_html(`<button${_attr_class(["
|
|
6475
|
+
_html(`<button${_attr_class(["_bX", { ["_bV"]: 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)}>`);
|
|
6448
6476
|
_if(() => {
|
|
6449
6477
|
if (repo.fork) {
|
|
6450
6478
|
const $scope12_id = _scope_id();
|
|
@@ -6467,7 +6495,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6467
6495
|
_html(`<button${_attr_class([
|
|
6468
6496
|
curBase,
|
|
6469
6497
|
"_x",
|
|
6470
|
-
{ ["
|
|
6498
|
+
{ ["_bV"]: branchesFor === repo.fullName }
|
|
6471
6499
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
6472
6500
|
icon_branch_default({ size: 12 });
|
|
6473
6501
|
_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)}>`);
|
|
@@ -6528,10 +6556,10 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6528
6556
|
_if(() => {
|
|
6529
6557
|
if (busy && steps$1.length) {
|
|
6530
6558
|
const $scope9_id = _scope_id();
|
|
6531
|
-
_html(`<ul${_attr_class("
|
|
6559
|
+
_html(`<ul${_attr_class("_bY")}>`);
|
|
6532
6560
|
_for_of(steps$1, (step$1, i) => {
|
|
6533
6561
|
const $scope10_id = _scope_id();
|
|
6534
|
-
_html(`<li${_attr_class(["
|
|
6562
|
+
_html(`<li${_attr_class(["_b4", { ["_bZ"]: i === steps$1.length - 1 }])}>`);
|
|
6535
6563
|
_if(() => {
|
|
6536
6564
|
if (i === steps$1.length - 1) {
|
|
6537
6565
|
const $scope15_id = _scope_id();
|
|
@@ -6540,7 +6568,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6540
6568
|
return 0;
|
|
6541
6569
|
} else {
|
|
6542
6570
|
const $scope16_id = _scope_id();
|
|
6543
|
-
_html(`<span${_attr_class("
|
|
6571
|
+
_html(`<span${_attr_class("_b0")}>`);
|
|
6544
6572
|
icon_check_default({ size: 14 });
|
|
6545
6573
|
_html("</span>");
|
|
6546
6574
|
writeScope($scope16_id, {});
|
|
@@ -6554,7 +6582,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6554
6582
|
return 0;
|
|
6555
6583
|
}
|
|
6556
6584
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6557
|
-
_html(`<div${_attr_class("
|
|
6585
|
+
_html(`<div${_attr_class("_bO")}>`);
|
|
6558
6586
|
_if(() => {
|
|
6559
6587
|
if (input.onExit || busy) {
|
|
6560
6588
|
const $scope1_id = _scope_id();
|
|
@@ -6567,12 +6595,12 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6567
6595
|
_html(`<button type=button${_attr_class([
|
|
6568
6596
|
btnLg,
|
|
6569
6597
|
"_p",
|
|
6570
|
-
"
|
|
6598
|
+
"_bP"
|
|
6571
6599
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6572
6600
|
_if(() => {
|
|
6573
6601
|
if (archived$1.length) {
|
|
6574
6602
|
const $scope4_id = _scope_id();
|
|
6575
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6603
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bS")}><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")}>`);
|
|
6576
6604
|
_for_of(archived$1, (ws) => {
|
|
6577
6605
|
const $scope5_id = _scope_id();
|
|
6578
6606
|
_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)}>`);
|
|
@@ -6702,8 +6730,8 @@ function activeAgent(session) {
|
|
|
6702
6730
|
const command = session.state?.command?.trim();
|
|
6703
6731
|
return command && agentFromCommand(command) || session.agent;
|
|
6704
6732
|
}
|
|
6705
|
-
var iconBtn$1 = "
|
|
6706
|
-
var navToggle = "
|
|
6733
|
+
var iconBtn$1 = "_dZ _j";
|
|
6734
|
+
var navToggle = "_d4 _j";
|
|
6707
6735
|
_template("N", (input) => {
|
|
6708
6736
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6709
6737
|
const $scope0_id = _scope_id();
|
|
@@ -6801,22 +6829,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6801
6829
|
if (windows.length) {
|
|
6802
6830
|
const $scope1_id = _scope_id();
|
|
6803
6831
|
_html(`<span${_attr_class([
|
|
6804
|
-
"
|
|
6832
|
+
"_fr",
|
|
6805
6833
|
input.class,
|
|
6806
|
-
{ ["
|
|
6834
|
+
{ ["_fs"]: agent.stale_seconds != null }
|
|
6807
6835
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6808
6836
|
_for_of(windows, (win$1, i) => {
|
|
6809
6837
|
const $scope2_id = _scope_id();
|
|
6810
|
-
_html(`<span${_attr_class("
|
|
6838
|
+
_html(`<span${_attr_class("_ft")}>`);
|
|
6811
6839
|
_if(() => {
|
|
6812
6840
|
if (i) {
|
|
6813
6841
|
const $scope3_id = _scope_id();
|
|
6814
|
-
_html(`<span${_attr_class("
|
|
6842
|
+
_html(`<span${_attr_class("_fw")} aria-hidden=true>·</span>`);
|
|
6815
6843
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6816
6844
|
return 0;
|
|
6817
6845
|
}
|
|
6818
6846
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6819
|
-
_html(`<span${_attr_class("
|
|
6847
|
+
_html(`<span${_attr_class("_fu")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fv", win$1.used_percent >= 90 ? "_dx" : win$1.used_percent >= 70 ? "_dw" : win$1.used_percent >= 40 ? "_dv" : "_du"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6820
6848
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6821
6849
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6822
6850
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7475,34 +7503,34 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7475
7503
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
7476
7504
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
7477
7505
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
7478
|
-
_html(`<aside${_attr_class(["
|
|
7479
|
-
["
|
|
7480
|
-
["
|
|
7506
|
+
_html(`<aside${_attr_class(["_d3", {
|
|
7507
|
+
["_d1"]: !navOpen,
|
|
7508
|
+
["_d2"]: isPage
|
|
7481
7509
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
7482
7510
|
_if(() => {
|
|
7483
7511
|
if (isPage) {
|
|
7484
7512
|
const $scope1_id = _scope_id();
|
|
7485
|
-
_html(`<header${_attr_class("
|
|
7513
|
+
_html(`<header${_attr_class("_d6")}><div${_attr_class("_ee")}>`);
|
|
7486
7514
|
_if(() => {
|
|
7487
7515
|
if (input.instanceName) {
|
|
7488
7516
|
const $scope2_id = _scope_id();
|
|
7489
|
-
_html(`<div${_attr_class("
|
|
7517
|
+
_html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7490
7518
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
7491
7519
|
return 0;
|
|
7492
7520
|
}
|
|
7493
7521
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
7494
|
-
_html(`<h1${_attr_class("
|
|
7522
|
+
_html(`<h1${_attr_class("_d7")}>Workspaces</h1></div><div${_attr_class("_d8")}>`);
|
|
7495
7523
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
7496
7524
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
7497
7525
|
iconBtn$1,
|
|
7498
|
-
"
|
|
7499
|
-
{ ["
|
|
7526
|
+
"_d9",
|
|
7527
|
+
{ ["_dY"]: view === "settings" }
|
|
7500
7528
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7501
7529
|
icon_settings_default({ size: 16 });
|
|
7502
7530
|
_if(() => {
|
|
7503
7531
|
if (input.setupReady === false) {
|
|
7504
7532
|
const $scope12_id = _scope_id();
|
|
7505
|
-
_html(`<span${_attr_class(["_z", "
|
|
7533
|
+
_html(`<span${_attr_class(["_z", "_d0"])} title="Machine setup incomplete"></span>`);
|
|
7506
7534
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
7507
7535
|
return 0;
|
|
7508
7536
|
}
|
|
@@ -7515,18 +7543,18 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7515
7543
|
_if(() => {
|
|
7516
7544
|
if (!isPage && input.instanceName) {
|
|
7517
7545
|
const $scope3_id = _scope_id();
|
|
7518
|
-
_html(`<div${_attr_class("
|
|
7546
|
+
_html(`<div${_attr_class("_eb")} title="This work server (Settings → Appearance)"><img${_attr_class("_ec")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ed")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7519
7547
|
writeScope($scope3_id, {});
|
|
7520
7548
|
return 0;
|
|
7521
7549
|
}
|
|
7522
7550
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
7523
|
-
_html(`<div${_attr_class("
|
|
7551
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
7524
7552
|
_for_of(listIds, (wsId) => {
|
|
7525
7553
|
const $scope4_id = _scope_id();
|
|
7526
7554
|
_if(() => {
|
|
7527
7555
|
if (isPage && wsId === ws.id) {
|
|
7528
7556
|
const $scope13_id = _scope_id();
|
|
7529
|
-
_html(`<h2${_attr_class(["_bM", "
|
|
7557
|
+
_html(`<h2${_attr_class(["_bM", "_d_"])}>Current</h2>`);
|
|
7530
7558
|
writeScope($scope13_id, {});
|
|
7531
7559
|
return 0;
|
|
7532
7560
|
}
|
|
@@ -7534,7 +7562,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7534
7562
|
_if(() => {
|
|
7535
7563
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7536
7564
|
const $scope14_id = _scope_id();
|
|
7537
|
-
_html(`<h2${_attr_class(["_bM", "
|
|
7565
|
+
_html(`<h2${_attr_class(["_bM", "_d_"])}>Other workspaces</h2>`);
|
|
7538
7566
|
writeScope($scope14_id, {});
|
|
7539
7567
|
return 0;
|
|
7540
7568
|
}
|
|
@@ -7618,7 +7646,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7618
7646
|
railHover = null;
|
|
7619
7647
|
}, 150);
|
|
7620
7648
|
}, "y6", $scope5_id);
|
|
7621
|
-
_html(`<div${_attr_class("
|
|
7649
|
+
_html(`<div${_attr_class("_eg")}>`);
|
|
7622
7650
|
_for_of(itemIds, (wsId, i) => {
|
|
7623
7651
|
const $scope6_id = _scope_id();
|
|
7624
7652
|
_html("<span>");
|
|
@@ -7672,7 +7700,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7672
7700
|
if (railHover) {
|
|
7673
7701
|
const $scope7_id = _scope_id();
|
|
7674
7702
|
const hoverId = railHover.id;
|
|
7675
|
-
_html(`<div${_attr_class(["_4", "
|
|
7703
|
+
_html(`<div${_attr_class(["_4", "_ej"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7676
7704
|
_set_serialize_reason({
|
|
7677
7705
|
0: 1,
|
|
7678
7706
|
1: 1,
|
|
@@ -7757,7 +7785,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7757
7785
|
return 0;
|
|
7758
7786
|
}
|
|
7759
7787
|
}, $scope0_id, "e");
|
|
7760
|
-
_html(`<div${_attr_class("
|
|
7788
|
+
_html(`<div${_attr_class("_eh")}>`);
|
|
7761
7789
|
_if(() => {
|
|
7762
7790
|
if (isPage) {
|
|
7763
7791
|
const $scope9_id = _scope_id();
|
|
@@ -7765,7 +7793,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7765
7793
|
"_o",
|
|
7766
7794
|
"_p",
|
|
7767
7795
|
btnLg,
|
|
7768
|
-
"
|
|
7796
|
+
"_ea"
|
|
7769
7797
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7770
7798
|
icon_folder_plus_default({ size: 16 });
|
|
7771
7799
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7787,19 +7815,19 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7787
7815
|
return 1;
|
|
7788
7816
|
}
|
|
7789
7817
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7790
|
-
_html(`<div${_attr_class(["_y", "
|
|
7818
|
+
_html(`<div${_attr_class(["_y", "_ei"])}></div>`);
|
|
7791
7819
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7792
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7820
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dY"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7793
7821
|
icon_settings_default({ size: 15 });
|
|
7794
7822
|
_if(() => {
|
|
7795
7823
|
if (input.setupReady === false) {
|
|
7796
7824
|
const $scope17_id = _scope_id();
|
|
7797
|
-
_html(`<span${_attr_class(["_z", "
|
|
7825
|
+
_html(`<span${_attr_class(["_z", "_d0"])} title="Machine setup incomplete"></span>`);
|
|
7798
7826
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7799
7827
|
return 0;
|
|
7800
7828
|
}
|
|
7801
7829
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7802
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7830
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dY"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7803
7831
|
icon_folder_plus_default({ size: 16 });
|
|
7804
7832
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7805
7833
|
_script($scope8_id, "y15");
|
|
@@ -7866,10 +7894,10 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7866
7894
|
});
|
|
7867
7895
|
var iconBtn = "_0 _j";
|
|
7868
7896
|
var sectionCount = "_bz _I _J";
|
|
7869
|
-
var content = "
|
|
7870
|
-
var pageMeta = "
|
|
7871
|
-
var pathMeta = "
|
|
7872
|
-
var dangerHint = "
|
|
7897
|
+
var content = "_dN _bp";
|
|
7898
|
+
var pageMeta = "_dO _bu";
|
|
7899
|
+
var pathMeta = "_dR _x";
|
|
7900
|
+
var dangerHint = "_dX _S";
|
|
7873
7901
|
//#endregion
|
|
7874
7902
|
//#region src/tags/manage-workspace.marko
|
|
7875
7903
|
var api$2;
|
|
@@ -8000,7 +8028,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8000
8028
|
setTimeout(() => loadProcs(void 0), 500);
|
|
8001
8029
|
}, "o7", $scope0_id);
|
|
8002
8030
|
const titleId = _id();
|
|
8003
|
-
_html(`<div${_attr_class("
|
|
8031
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content)}>`);
|
|
8004
8032
|
_set_serialize_reason(30);
|
|
8005
8033
|
const $childScope = _peek_scope_id();
|
|
8006
8034
|
page_head_default({
|
|
@@ -8013,7 +8041,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8013
8041
|
meta: attrTag({ content: _content_resume("o13", () => {
|
|
8014
8042
|
_scope_reason();
|
|
8015
8043
|
const $scope13_id = _scope_id();
|
|
8016
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
8044
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dP")}>${_escape(ws.name)}${_el_resume($scope13_id, "c")}</span>`);
|
|
8017
8045
|
_if(() => {
|
|
8018
8046
|
if (ws.status !== "active") {
|
|
8019
8047
|
const $scope17_id = _scope_id();
|
|
@@ -8022,7 +8050,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8022
8050
|
return 0;
|
|
8023
8051
|
}
|
|
8024
8052
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
8025
|
-
_html(`<span${_attr_class("
|
|
8053
|
+
_html(`<span${_attr_class("_dQ")} 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")}`);
|
|
8026
8054
|
_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) })))));
|
|
8027
8055
|
_resume_branch($scope13_id);
|
|
8028
8056
|
}, $scope0_id) })
|
|
@@ -8065,7 +8093,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8065
8093
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bA")}>`);
|
|
8066
8094
|
_for_of(ws.repos, (row) => {
|
|
8067
8095
|
const $scope1_id = _scope_id();
|
|
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", "
|
|
8096
|
+
_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", "_dT"])}${_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")}`);
|
|
8069
8097
|
_if(() => {
|
|
8070
8098
|
if (row.base_branch !== row.default_branch) {
|
|
8071
8099
|
const $scope18_id = _scope_id();
|
|
@@ -8131,7 +8159,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8131
8159
|
return 0;
|
|
8132
8160
|
}
|
|
8133
8161
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8134
|
-
_html(`<div${_attr_class("
|
|
8162
|
+
_html(`<div${_attr_class("_dS")}>`);
|
|
8135
8163
|
const $childScope3 = _peek_scope_id();
|
|
8136
8164
|
let refreshCatalog = repo_picker_default({
|
|
8137
8165
|
exclude: inWorkspace,
|
|
@@ -8210,7 +8238,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8210
8238
|
_if(() => {
|
|
8211
8239
|
if (s.sourceUrl) {
|
|
8212
8240
|
const $scope29_id = _scope_id();
|
|
8213
|
-
_html(`<a${_attr_class(["_bG", "
|
|
8241
|
+
_html(`<a${_attr_class(["_bG", "_dT"])}${_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")}`);
|
|
8214
8242
|
writeScope($scope29_id, {});
|
|
8215
8243
|
return 0;
|
|
8216
8244
|
}
|
|
@@ -8332,7 +8360,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8332
8360
|
_html(`<span${_attr_class("_bF")}>`);
|
|
8333
8361
|
_for_of(p.ports, (port) => {
|
|
8334
8362
|
const $scope38_id = _scope_id();
|
|
8335
|
-
_html(`<button${_attr_class(["_s", "
|
|
8363
|
+
_html(`<button${_attr_class(["_s", "_dU"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope38_id, "b")}</button>${_el_resume($scope38_id, "a")}`);
|
|
8336
8364
|
_script($scope38_id, "o19");
|
|
8337
8365
|
writeScope($scope38_id, { d: port });
|
|
8338
8366
|
}, (x) => String(x), $scope37_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -8354,7 +8382,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
8354
8382
|
return 0;
|
|
8355
8383
|
}
|
|
8356
8384
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8357
|
-
_html(`<section${_attr_class(["_bx", "
|
|
8385
|
+
_html(`<section${_attr_class(["_bx", "_dV"])}><div${_attr_class("_by")}><h2${_attr_class("_bM")}>Workspace</h2></div><div${_attr_class("_dW")}>`);
|
|
8358
8386
|
_if(() => {
|
|
8359
8387
|
if (ws.status === "active") {
|
|
8360
8388
|
const $scope8_id = _scope_id();
|
|
@@ -8468,19 +8496,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
8468
8496
|
const canStep = hasQuery && open;
|
|
8469
8497
|
const keybar = input.placement === "keybar";
|
|
8470
8498
|
_html(`<div${_attr_class([
|
|
8471
|
-
"
|
|
8472
|
-
keybar ? "
|
|
8473
|
-
!open && "
|
|
8474
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
8499
|
+
"_fD",
|
|
8500
|
+
keybar ? "_fF" : "_fE",
|
|
8501
|
+
!open && "_fH"
|
|
8502
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fy", keybar ? "_fG" : "_fA"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
8475
8503
|
if (!open) return;
|
|
8476
8504
|
query = v;
|
|
8477
8505
|
live.query = v;
|
|
8478
8506
|
run(0);
|
|
8479
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
8507
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fI"])} 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 && "_fJ"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8480
8508
|
icon_arrow_up_default({ size: 14 });
|
|
8481
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8509
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fJ"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
8482
8510
|
icon_arrow_down_default({ size: 14 });
|
|
8483
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
8511
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fJ"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
8484
8512
|
icon_xmark_default({ size: 14 });
|
|
8485
8513
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
8486
8514
|
_script($scope0_id, "A4");
|
|
@@ -8887,48 +8915,49 @@ var term_default = _template("B", (input) => {
|
|
|
8887
8915
|
y: input.agents,
|
|
8888
8916
|
z: input.workspaceName,
|
|
8889
8917
|
a0: input.active,
|
|
8890
|
-
a1:
|
|
8891
|
-
a2:
|
|
8892
|
-
a3:
|
|
8893
|
-
a4:
|
|
8894
|
-
|
|
8895
|
-
a8:
|
|
8896
|
-
|
|
8897
|
-
ab:
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
ah: searchBox.
|
|
8901
|
-
ai: searchBox.
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
an:
|
|
8905
|
-
ao:
|
|
8906
|
-
ap:
|
|
8907
|
-
|
|
8908
|
-
as:
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
ay:
|
|
8912
|
-
az:
|
|
8913
|
-
|
|
8914
|
-
b2:
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
b7:
|
|
8918
|
-
b8:
|
|
8919
|
-
|
|
8920
|
-
bc:
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
bi: $
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8918
|
+
a1: input.parked,
|
|
8919
|
+
a2: dead,
|
|
8920
|
+
a3: deadReason,
|
|
8921
|
+
a4: kb,
|
|
8922
|
+
a5: touch,
|
|
8923
|
+
a8: trapOpen,
|
|
8924
|
+
a9: findOpen,
|
|
8925
|
+
ab: $openChange,
|
|
8926
|
+
ac: findTick,
|
|
8927
|
+
ae: ioBox.current,
|
|
8928
|
+
ah: searchBox.query,
|
|
8929
|
+
ai: searchBox.overlay,
|
|
8930
|
+
aj: searchBox.refreshTimer,
|
|
8931
|
+
al: findFocusRef,
|
|
8932
|
+
an: scheduleFindRefresh,
|
|
8933
|
+
ao: runFind,
|
|
8934
|
+
ap: clearFind,
|
|
8935
|
+
aq: openFind,
|
|
8936
|
+
as: toggleFind,
|
|
8937
|
+
at: onTermPage,
|
|
8938
|
+
aw: canKeys,
|
|
8939
|
+
ay: findLit,
|
|
8940
|
+
az: toggleSharedFind,
|
|
8941
|
+
b0: thisAgent,
|
|
8942
|
+
b2: copyFlashBox.timer,
|
|
8943
|
+
b3: flashCopied,
|
|
8944
|
+
b5: holdBox.current,
|
|
8945
|
+
b7: startHold,
|
|
8946
|
+
b8: stopHold,
|
|
8947
|
+
b9: uploadAsset,
|
|
8948
|
+
bc: handlePasted,
|
|
8949
|
+
bd: pasteClipboard,
|
|
8950
|
+
bs: $findOpen__closures,
|
|
8951
|
+
bu: $findTick__closures,
|
|
8952
|
+
bi: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
8953
|
+
bj: $si__input_sessionId && $input_sessionId__closures,
|
|
8954
|
+
bm: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
8955
|
+
bl: $si__input_sessions && $input_sessions__closures,
|
|
8956
|
+
bg: $si__input_sessionState && $input_sessionState__closures,
|
|
8957
|
+
bn: $si__input_agents && $input_agents__closures,
|
|
8958
|
+
bz: $si__input_mode && $onTermPage__closures,
|
|
8959
|
+
c2: $si__input_agent__OR__input_sessionState && $thisAgent__closures,
|
|
8960
|
+
bo: $si__input_workspaceName && $input_workspaceName__closures
|
|
8932
8961
|
});
|
|
8933
8962
|
_resume_branch($scope0_id);
|
|
8934
8963
|
});
|
|
@@ -8961,7 +8990,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8961
8990
|
let DiffView = null;
|
|
8962
8991
|
const loadDiffView = _resume(() => {
|
|
8963
8992
|
if (DiffView) return;
|
|
8964
|
-
import("./
|
|
8993
|
+
import("./_2VcubQzL.js").then((m) => {
|
|
8965
8994
|
DiffView = m.default;
|
|
8966
8995
|
});
|
|
8967
8996
|
}, "F6", $scope0_id);
|
|
@@ -9149,10 +9178,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
9149
9178
|
toggleDiff();
|
|
9150
9179
|
}
|
|
9151
9180
|
}, "F21", $scope0_id);
|
|
9152
|
-
_html(`<div${_attr_class(["
|
|
9153
|
-
["
|
|
9154
|
-
["
|
|
9155
|
-
}])}><div${_attr_class("
|
|
9181
|
+
_html(`<div${_attr_class(["_cO", {
|
|
9182
|
+
["_cM"]: view === "nav",
|
|
9183
|
+
["_cN"]: !input.active
|
|
9184
|
+
}])}><div${_attr_class("_cP")}>`);
|
|
9156
9185
|
_set_serialize_reason({
|
|
9157
9186
|
0: _serialize_guard($scope0_reason, 0),
|
|
9158
9187
|
1: 1,
|
|
@@ -9221,7 +9250,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9221
9250
|
});
|
|
9222
9251
|
}, "F30", $scope0_id)
|
|
9223
9252
|
});
|
|
9224
|
-
_html(`</div><div${_attr_class("
|
|
9253
|
+
_html(`</div><div${_attr_class("_cQ")}>`);
|
|
9225
9254
|
_if(() => {
|
|
9226
9255
|
if (error) {
|
|
9227
9256
|
const $scope8_id = _scope_id();
|
|
@@ -9244,7 +9273,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9244
9273
|
_if(() => {
|
|
9245
9274
|
if (diffMounted && DiffView) {
|
|
9246
9275
|
const $scope1_id = _scope_id();
|
|
9247
|
-
_html(`<div${_attr_class("
|
|
9276
|
+
_html(`<div${_attr_class("_cR")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
9248
9277
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
9249
9278
|
workspaceId: ws.id,
|
|
9250
9279
|
workspaceBranch: ws.branch,
|
|
@@ -9284,7 +9313,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9284
9313
|
_if(() => {
|
|
9285
9314
|
if (manageMounted) {
|
|
9286
9315
|
const $scope2_id = _scope_id();
|
|
9287
|
-
_html(`<div${_attr_class("
|
|
9316
|
+
_html(`<div${_attr_class("_cR")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
9288
9317
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
9289
9318
|
const $childScope2 = _peek_scope_id();
|
|
9290
9319
|
manage_workspace_default({
|
|
@@ -9307,7 +9336,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9307
9336
|
_if(() => {
|
|
9308
9337
|
if (settingsMounted) {
|
|
9309
9338
|
const $scope3_id = _scope_id();
|
|
9310
|
-
_html(`<div${_attr_class("
|
|
9339
|
+
_html(`<div${_attr_class("_cR")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
9311
9340
|
_set_serialize_reason({
|
|
9312
9341
|
0: _serialize_guard($scope0_reason, 1),
|
|
9313
9342
|
1: $sg__input_workspace,
|
|
@@ -9348,7 +9377,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9348
9377
|
_if(() => {
|
|
9349
9378
|
if (newMounted) {
|
|
9350
9379
|
const $scope4_id = _scope_id();
|
|
9351
|
-
_html(`<div${_attr_class("
|
|
9380
|
+
_html(`<div${_attr_class("_cR")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
9352
9381
|
_set_serialize_reason({
|
|
9353
9382
|
0: 1,
|
|
9354
9383
|
1: $sg__input_allWorkspaces,
|
|
@@ -9375,13 +9404,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
9375
9404
|
return 0;
|
|
9376
9405
|
}
|
|
9377
9406
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
9378
|
-
_html(`<div${_attr_class(["
|
|
9407
|
+
_html(`<div${_attr_class(["_cT", { ["_cS"]: view !== "term" }])}>`);
|
|
9379
9408
|
_if(() => {
|
|
9380
9409
|
if (shownSessions) {
|
|
9381
9410
|
const $scope5_id = _scope_id();
|
|
9382
9411
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
9383
9412
|
const $scope6_id = _scope_id();
|
|
9384
|
-
_html(`<div${_attr_class("
|
|
9413
|
+
_html(`<div${_attr_class("_cU")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
9385
9414
|
_set_serialize_reason({
|
|
9386
9415
|
0: 1,
|
|
9387
9416
|
1: 1,
|
|
@@ -9422,6 +9451,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
9422
9451
|
renameSession(id, title);
|
|
9423
9452
|
}, "F46", $scope6_id),
|
|
9424
9453
|
active: input.active && view === "term" && s.id === curTab,
|
|
9454
|
+
parked: !input.active,
|
|
9425
9455
|
mode: view,
|
|
9426
9456
|
onOpenNav: _resume(function() {
|
|
9427
9457
|
toggleNav();
|
|
@@ -9942,9 +9972,8 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9942
9972
|
//#endregion
|
|
9943
9973
|
//#region src/tags/app-page.marko
|
|
9944
9974
|
var app_page_default = _template("b", (input) => {
|
|
9945
|
-
const $scope0_reason = _scope_reason()
|
|
9975
|
+
const $scope0_reason = _scope_reason();
|
|
9946
9976
|
const $scope0_id = _scope_id();
|
|
9947
|
-
const $input_initial__closures = /* @__PURE__ */ new Set();
|
|
9948
9977
|
const { workspaces, settings, prefs, status, setup, usage } = $global().data;
|
|
9949
9978
|
const base = {
|
|
9950
9979
|
workspaces,
|
|
@@ -9953,86 +9982,18 @@ var app_page_default = _template("b", (input) => {
|
|
|
9953
9982
|
setup,
|
|
9954
9983
|
usage: usage ?? null
|
|
9955
9984
|
};
|
|
9956
|
-
const ready = status instanceof Promise ? null : status;
|
|
9957
9985
|
_html(`<main${_attr_class("_c")}>`);
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
status: ready
|
|
9967
|
-
},
|
|
9968
|
-
initial: input.initial
|
|
9969
|
-
});
|
|
9970
|
-
$si__input_initial && writeScope($scope1_id, {
|
|
9971
|
-
_: _scope_with_id($scope0_id),
|
|
9972
|
-
a: _existing_scope($childScope)
|
|
9973
|
-
});
|
|
9974
|
-
return 0;
|
|
9975
|
-
} else {
|
|
9976
|
-
const $scope2_id = _scope_id();
|
|
9977
|
-
_try($scope2_id, "a", _content_resume("b3", () => {
|
|
9978
|
-
const $scope4_id = _scope_id();
|
|
9979
|
-
_scope_reason();
|
|
9980
|
-
_await($scope4_id, "a", status, (st) => {
|
|
9981
|
-
const $scope5_id = _scope_id();
|
|
9982
|
-
$si__input_initial && _script($scope5_id, "b0");
|
|
9983
|
-
_set_serialize_reason($sg__input_initial);
|
|
9984
|
-
const $childScope3 = _peek_scope_id();
|
|
9985
|
-
app_shell_default({
|
|
9986
|
-
boot: {
|
|
9987
|
-
...base,
|
|
9988
|
-
status: st
|
|
9989
|
-
},
|
|
9990
|
-
initial: input.initial
|
|
9991
|
-
});
|
|
9992
|
-
$si__input_initial && writeScope($scope5_id, {
|
|
9993
|
-
_: _scope_with_id($scope4_id),
|
|
9994
|
-
a: _existing_scope($childScope3),
|
|
9995
|
-
Co: 1
|
|
9996
|
-
});
|
|
9997
|
-
_resume_branch($scope5_id);
|
|
9998
|
-
}, $sg__input_initial);
|
|
9999
|
-
$si__input_initial && writeScope($scope4_id, { _: _scope_with_id($scope2_id) });
|
|
10000
|
-
_resume_branch($scope4_id);
|
|
10001
|
-
}, $scope2_id), {
|
|
10002
|
-
placeholder: attrTag({ content: _content_resume("b1", () => {
|
|
10003
|
-
_scope_reason();
|
|
10004
|
-
const $scope3_id = _scope_id();
|
|
10005
|
-
_set_serialize_reason($sg__input_initial);
|
|
10006
|
-
const $childScope2 = _peek_scope_id();
|
|
10007
|
-
app_shell_default({
|
|
10008
|
-
boot: {
|
|
10009
|
-
...base,
|
|
10010
|
-
status: {}
|
|
10011
|
-
},
|
|
10012
|
-
initial: input.initial
|
|
10013
|
-
});
|
|
10014
|
-
_subscribe($si__input_initial && $input_initial__closures, writeScope($scope3_id, {
|
|
10015
|
-
_: _scope_with_id($scope2_id),
|
|
10016
|
-
a: $si__input_initial && _existing_scope($childScope2)
|
|
10017
|
-
}));
|
|
10018
|
-
_resume_branch($scope3_id);
|
|
10019
|
-
}, $scope2_id) }),
|
|
10020
|
-
catch: attrTag({ content: _content_resume("b2", (err) => {
|
|
10021
|
-
const $scope6_reason = _scope_reason();
|
|
10022
|
-
const $scope6_id = _scope_id();
|
|
10023
|
-
_html(`<div${_attr_class("_b")}><p>${err instanceof Error ? _escape(err.message) : _escape(String(err))}${_el_resume($scope6_id, "b", _serialize_guard($scope6_reason, 0))}</p></div>`);
|
|
10024
|
-
_serialize_if($scope6_reason, 0) && writeScope($scope6_id, {});
|
|
10025
|
-
}, $scope2_id) })
|
|
10026
|
-
});
|
|
10027
|
-
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
10028
|
-
}
|
|
10029
|
-
}, $scope0_id, "a", $sg__input_initial, 0, 0);
|
|
10030
|
-
_html("</main>");
|
|
10031
|
-
writeScope($scope0_id, {
|
|
10032
|
-
d: input.initial,
|
|
10033
|
-
m: base,
|
|
10034
|
-
o: $si__input_initial && $input_initial__closures
|
|
9986
|
+
_set_serialize_reason(_serialize_guard($scope0_reason, 0));
|
|
9987
|
+
const $childScope = _peek_scope_id();
|
|
9988
|
+
app_shell_default({
|
|
9989
|
+
boot: {
|
|
9990
|
+
...base,
|
|
9991
|
+
status
|
|
9992
|
+
},
|
|
9993
|
+
initial: input.initial
|
|
10035
9994
|
});
|
|
9995
|
+
_html("</main>");
|
|
9996
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { b: _existing_scope($childScope) });
|
|
10036
9997
|
});
|
|
10037
9998
|
//#endregion
|
|
10038
9999
|
//#region src/routes/_app/new/+page.marko
|
|
@@ -10118,10 +10079,11 @@ function head3(context) {
|
|
|
10118
10079
|
var _page_default$2 = _template("pb", (input) => {
|
|
10119
10080
|
_scope_reason();
|
|
10120
10081
|
_scope_id();
|
|
10082
|
+
const $global$3 = $global();
|
|
10121
10083
|
app_page_default({ initial: {
|
|
10122
|
-
workspaceId: $global
|
|
10084
|
+
workspaceId: $global$3.params.id,
|
|
10123
10085
|
view: "term",
|
|
10124
|
-
sessionId: $global
|
|
10086
|
+
sessionId: $global$3.url.searchParams.get("s")
|
|
10125
10087
|
} });
|
|
10126
10088
|
});
|
|
10127
10089
|
//#endregion
|
|
@@ -10191,10 +10153,11 @@ function head5(context) {
|
|
|
10191
10153
|
var _page_default = _template("rb", (input) => {
|
|
10192
10154
|
_scope_reason();
|
|
10193
10155
|
_scope_id();
|
|
10194
|
-
const
|
|
10156
|
+
const $global$1 = $global();
|
|
10157
|
+
const q = $global$1.url.searchParams;
|
|
10195
10158
|
const scope = q.get("scope");
|
|
10196
10159
|
app_page_default({ initial: {
|
|
10197
|
-
workspaceId: $global
|
|
10160
|
+
workspaceId: $global$1.params.id,
|
|
10198
10161
|
view: "diff",
|
|
10199
10162
|
pr: q.get("pr"),
|
|
10200
10163
|
scope: scope === "working" || scope === "dirty" ? scope : null,
|
|
@@ -18027,4 +17990,4 @@ server.listen(port, () => {
|
|
|
18027
17990
|
//#endregion
|
|
18028
17991
|
export {};
|
|
18029
17992
|
|
|
18030
|
-
;var __MARKO_MANIFEST__={"
|
|
17993
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-_SomNQI4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_SomNQI4.css\"",">"],"defer":[2,"/assets/settings-D4FonsrF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-D4FonsrF.js\"","></script>",2,"modulepreload#/assets/_CB5WZwvq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CB5WZwvq.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-_SomNQI4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_SomNQI4.css\"",">"],"defer":[2,"/assets/w._-D4FonsrF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-D4FonsrF.js\"","></script>",2,"modulepreload#/assets/_CB5WZwvq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CB5WZwvq.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-_SomNQI4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_SomNQI4.css\"",">"],"defer":[2,"/assets/new-D4FonsrF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-D4FonsrF.js\"","></script>",2,"modulepreload#/assets/_CB5WZwvq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CB5WZwvq.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-_SomNQI4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_SomNQI4.css\"",">"],"defer":[2,"/assets/w._-BVk_bPU2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BVk_bPU2.js\"","></script>",2,"modulepreload#/assets/_CB5WZwvq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CB5WZwvq.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-_SomNQI4.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_SomNQI4.css\"",">"],"defer":[2,"/assets/w-D4FonsrF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-D4FonsrF.js\"","></script>",2,"modulepreload#/assets/_CB5WZwvq.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CB5WZwvq.js\"",">"]}};
|