@dylanpiercey/work 0.0.92 → 0.0.94
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/{_8RPVAk_Y.js → _DILbc8yV.js} +70 -70
- package/dist/{_CPHDAjDZ.js → _tpJju-55.js} +4 -4
- package/dist/index.mjs +257 -248
- package/dist/public/assets/{_CyN7N3kv2.js → _-4uLyFkk2.js} +1 -1
- package/dist/public/assets/_-4uLyFkk2.js.br +0 -0
- package/dist/public/assets/{_Yg5QIDKH.js → _0ap9drti.js} +1 -1
- package/dist/public/assets/_0ap9drti.js.br +0 -0
- package/dist/public/assets/{_BloQpEjp.js → _3-QozS0i.js} +1 -1
- package/dist/public/assets/_3-QozS0i.js.br +0 -0
- package/dist/public/assets/{_BGLmCXNY.js → _4QTn6pgM.js} +6 -6
- package/dist/public/assets/_4QTn6pgM.js.br +0 -0
- package/dist/public/assets/{_CuMJuPze.js → _6sn0vJvZ.js} +1 -1
- package/dist/public/assets/_6sn0vJvZ.js.br +0 -0
- package/dist/public/assets/{_CWk2sy8k2.js → _7EZIn6_b2.js} +1 -1
- package/dist/public/assets/_7EZIn6_b2.js.br +0 -0
- package/dist/public/assets/{_6_4OUvYf.js → _9CNGJ9vT.js} +1 -1
- package/dist/public/assets/_9CNGJ9vT.js.br +0 -0
- package/dist/public/assets/{_K_vToD7J.js → _B1WdcSZg.js} +1 -1
- package/dist/public/assets/_B1WdcSZg.js.br +0 -0
- package/dist/public/assets/{_C2HzNbvz2.js → _B2p-Gk_h2.js} +1 -1
- package/dist/public/assets/_B2p-Gk_h2.js.br +0 -0
- package/dist/public/assets/{_CYNf9fgV.js → _BB6JnGn8.js} +1 -1
- package/dist/public/assets/_BB6JnGn8.js.br +0 -0
- package/dist/public/assets/{_RSqmIBPI.js → _BQgBjW_z.js} +1 -1
- package/dist/public/assets/_BQgBjW_z.js.br +0 -0
- package/dist/public/assets/{_BVC6e_Yp.js → _BQzt8gQO.js} +1 -1
- package/dist/public/assets/_BQzt8gQO.js.br +0 -0
- package/dist/public/assets/{_DUa466Zc2.js → _BTjvprBB2.js} +1 -1
- package/dist/public/assets/_BTjvprBB2.js.br +0 -0
- package/dist/public/assets/{_Cn1nxA6B.js → _BWPWFQVh.js} +1 -1
- package/dist/public/assets/_BWPWFQVh.js.br +0 -0
- package/dist/public/assets/{_BWbF3P8Z.js → _BdwOi-GZ.js} +1 -1
- package/dist/public/assets/_BdwOi-GZ.js.br +0 -0
- package/dist/public/assets/{_CN3BQYA72.js → _BeMdtqMm2.js} +1 -1
- package/dist/public/assets/_BeMdtqMm2.js.br +0 -0
- package/dist/public/assets/{_BQ0Y_y9u2.js → _Bh18hLqm2.js} +1 -1
- package/dist/public/assets/_Bh18hLqm2.js.br +0 -0
- package/dist/public/assets/{_BlyGQAQX2.js → _BiLvO1DD2.js} +1 -1
- package/dist/public/assets/{_szY7Fg742.js → _BojsTanh2.js} +1 -1
- package/dist/public/assets/_BojsTanh2.js.br +0 -0
- package/dist/public/assets/{_Cag67kCX2.js → _Bv7d26Fi2.js} +1 -1
- package/dist/public/assets/_Bv7d26Fi2.js.br +0 -0
- package/dist/public/assets/{_DYn7meV9.js → _BwV0gWNS.js} +1 -1
- package/dist/public/assets/{_DiP47yCd.js → _By8sbq8t.js} +1 -1
- package/dist/public/assets/_By8sbq8t.js.br +0 -0
- package/dist/public/assets/{_BFF66BtJ.js → _C4TNH2ZM.js} +1 -1
- package/dist/public/assets/_C4TNH2ZM.js.br +0 -0
- package/dist/public/assets/{_D-tRMW7L.js → _C7EUXi77.js} +20 -20
- package/dist/public/assets/_C7EUXi77.js.br +0 -0
- package/dist/public/assets/{_CpVLHpUR.js → _CAXDYTcU.js} +1 -1
- package/dist/public/assets/_CAXDYTcU.js.br +0 -0
- package/dist/public/assets/{_D0cVwAKB2.js → _CBDLBvL52.js} +1 -1
- package/dist/public/assets/_CBDLBvL52.js.br +0 -0
- package/dist/public/assets/{_CL6s0ICh.js → _CJuXw-yU.js} +1 -1
- package/dist/public/assets/_CJuXw-yU.js.br +0 -0
- package/dist/public/assets/{_S7EDCioe2.js → _CK6Y_nu02.js} +1 -1
- package/dist/public/assets/_CK6Y_nu02.js.br +0 -0
- package/dist/public/assets/{_3h4e0tEZ.js → _CK8_JQ-J.js} +1 -1
- package/dist/public/assets/_CK8_JQ-J.js.br +0 -0
- package/dist/public/assets/{_4ufvnJf72.js → _CM1DnGXf2.js} +1 -1
- package/dist/public/assets/_CM1DnGXf2.js.br +0 -0
- package/dist/public/assets/{_C2z9cX6l.js → _CS7v5Ou6.js} +1 -1
- package/dist/public/assets/_CS7v5Ou6.js.br +0 -0
- package/dist/public/assets/{_Ce3Yjzth.js → _CSMs4NeF.js} +1 -1
- package/dist/public/assets/_CSMs4NeF.js.br +0 -0
- package/dist/public/assets/{_CaSmGp4w.js → _CUPEXKrl.js} +1 -1
- package/dist/public/assets/_CUPEXKrl.js.br +0 -0
- package/dist/public/assets/{_CTgfRkBE.js → _CWWMMUQ2.js} +1 -1
- package/dist/public/assets/_CWWMMUQ2.js.br +0 -0
- package/dist/public/assets/{_23UIdfoQ2.js → _CbLNY8O12.js} +1 -1
- package/dist/public/assets/_CbLNY8O12.js.br +0 -0
- package/dist/public/assets/{_DduCbyPD2.js → _ChXihsr_2.js} +1 -1
- package/dist/public/assets/{_Cftb_32G.js → _CmDw7YCz.js} +1 -1
- package/dist/public/assets/_CmDw7YCz.js.br +0 -0
- package/dist/public/assets/{_BgYWEeM6.js → _CnHoenY3.js} +1 -1
- package/dist/public/assets/_CnHoenY3.js.br +0 -0
- package/dist/public/assets/{_BM5HMz6F.js → _Cn__Rzhw.js} +1 -1
- package/dist/public/assets/_Cn__Rzhw.js.br +0 -0
- package/dist/public/assets/{_DYQZlcx5.js → _D0KXsxOT.js} +1 -1
- package/dist/public/assets/_D0KXsxOT.js.br +0 -0
- package/dist/public/assets/{_3JsxY5jW.js → _D37AXv7r.js} +1 -1
- package/dist/public/assets/_D37AXv7r.js.br +0 -0
- package/dist/public/assets/{_DeC3yDfa.js → _DBqph3js.js} +1 -1
- package/dist/public/assets/_DBqph3js.js.br +0 -0
- package/dist/public/assets/{_DIzZtNeA.js → _DDwgXS0M.js} +1 -1
- package/dist/public/assets/_DDwgXS0M.js.br +0 -0
- package/dist/public/assets/{_Cf-YNYwd.js → _DGJJBFwy.js} +1 -1
- package/dist/public/assets/_DGJJBFwy.js.br +0 -0
- package/dist/public/assets/{_CeqZakIs.js → _DOTpO7fW.js} +1 -1
- package/dist/public/assets/_DOTpO7fW.js.br +0 -0
- package/dist/public/assets/{_Bje3KtwL.js → _DTu7x41J.js} +1 -1
- package/dist/public/assets/_DTu7x41J.js.br +0 -0
- package/dist/public/assets/{_BETMA-Hb2.js → _D_SSjw-p2.js} +1 -1
- package/dist/public/assets/_D_SSjw-p2.js.br +0 -0
- package/dist/public/assets/{_DXtPR5OD2.js → _Da02h1aJ2.js} +1 -1
- package/dist/public/assets/_Da02h1aJ2.js.br +0 -0
- package/dist/public/assets/{_C4J76yzG2.js → _DbbH1iIb2.js} +1 -1
- package/dist/public/assets/_DbbH1iIb2.js.br +0 -0
- package/dist/public/assets/{_3q4Nl5jL.js → _DcSYeYey.js} +1 -1
- package/dist/public/assets/_DcSYeYey.js.br +0 -0
- package/dist/public/assets/{_D4Ruk2t1.js → _DdnViDFP.js} +1 -1
- package/dist/public/assets/_DdnViDFP.js.br +0 -0
- package/dist/public/assets/{_B1z9k1lq.js → _DfnV6slB.js} +1 -1
- package/dist/public/assets/_DfnV6slB.js.br +0 -0
- package/dist/public/assets/{_DPWWL8iG.js → _Dmct9TiM.js} +1 -1
- package/dist/public/assets/_Dmct9TiM.js.br +0 -0
- package/dist/public/assets/{_31nacN_D.js → _Do2X8dol.js} +1 -1
- package/dist/public/assets/_Do2X8dol.js.br +0 -0
- package/dist/public/assets/{_DjIlWG3G.js → _DuQe1JMh.js} +1 -1
- package/dist/public/assets/_DuQe1JMh.js.br +0 -0
- package/dist/public/assets/{_B1dDpV96.js → _DuibtMJh.js} +1 -1
- package/dist/public/assets/_DuibtMJh.js.br +0 -0
- package/dist/public/assets/{_CCBCnuWw.js → _DxdpRnU9.js} +1 -1
- package/dist/public/assets/_DxdpRnU9.js.br +0 -0
- package/dist/public/assets/{_CXFZVHoG2.js → _Dz0jY0m42.js} +1 -1
- package/dist/public/assets/_Dz0jY0m42.js.br +0 -0
- package/dist/public/assets/{_Cfb5JM5h2.js → _EoqXooxT2.js} +1 -1
- package/dist/public/assets/_EoqXooxT2.js.br +0 -0
- package/dist/public/assets/{_a36kmn5a2.js → _FhaXp6fC2.js} +1 -1
- package/dist/public/assets/_FhaXp6fC2.js.br +0 -0
- package/dist/public/assets/{__0ZQaoRv2.js → _FtJI7TqL2.js} +1 -1
- package/dist/public/assets/_FtJI7TqL2.js.br +0 -0
- package/dist/public/assets/{_DxiFK03b.js → _MuSMLCM3.js} +1 -1
- package/dist/public/assets/_MuSMLCM3.js.br +0 -0
- package/dist/public/assets/{_DIY6SG-c.js → _RcUvSExn.js} +1 -1
- package/dist/public/assets/_RcUvSExn.js.br +0 -0
- package/dist/public/assets/{_Bd0H4f51.js → _VHLalE0r.js} +1 -1
- package/dist/public/assets/_VHLalE0r.js.br +0 -0
- package/dist/public/assets/{_BPNziY9z.js → _ZZxaDa4e.js} +1 -1
- package/dist/public/assets/_ZZxaDa4e.js.br +0 -0
- package/dist/public/assets/{_BcIUAm9X.js → __OFelAWw.js} +1 -1
- package/dist/public/assets/__OFelAWw.js.br +0 -0
- package/dist/public/assets/{_hSi-MRAR.js → _aUMNXFec.js} +1 -1
- package/dist/public/assets/_aUMNXFec.js.br +0 -0
- package/dist/public/assets/{_D4GRNDdk.js → _add36kcw.js} +1 -1
- package/dist/public/assets/_add36kcw.js.br +0 -0
- package/dist/public/assets/{_DpT3TmNe2.js → _bKDAmi-82.js} +1 -1
- package/dist/public/assets/_bKDAmi-82.js.br +0 -0
- package/dist/public/assets/{_CfBFNuDP.js → _bRfUNPeG.js} +1 -1
- package/dist/public/assets/_bRfUNPeG.js.br +0 -0
- package/dist/public/assets/{_C28V0U8l2.js → _bzyyofyd2.js} +1 -1
- package/dist/public/assets/_bzyyofyd2.js.br +0 -0
- package/dist/public/assets/{_Bq92Q0nR.js → _gJJKIoXJ.js} +1 -1
- package/dist/public/assets/_gJJKIoXJ.js.br +0 -0
- package/dist/public/assets/{_CkW6jGdd.js → _lRXSQmR6.js} +1 -1
- package/dist/public/assets/_lRXSQmR6.js.br +0 -0
- package/dist/public/assets/{_oz8w0szM.js → _reVR5VkG.js} +1 -1
- package/dist/public/assets/_reVR5VkG.js.br +0 -0
- package/dist/public/assets/{_CQUq-mT72.js → _tJnEccOk2.js} +1 -1
- package/dist/public/assets/_tJnEccOk2.js.br +0 -0
- package/dist/public/assets/{_c72G-AhS.js → _xROUdW2l.js} +1 -1
- package/dist/public/assets/_xROUdW2l.js.br +0 -0
- package/dist/public/assets/app-page-Br2mpp1y.css +1 -0
- package/dist/public/assets/app-page-Br2mpp1y.css.br +0 -0
- package/dist/public/assets/diff-view-l__lAr2d.css +1 -0
- package/dist/public/assets/diff-view-l__lAr2d.css.br +0 -0
- package/dist/public/assets/new-CwwrA15U.js +1 -0
- package/dist/public/assets/settings-CwwrA15U.js +1 -0
- package/dist/public/assets/w-CwwrA15U.js +1 -0
- package/dist/public/assets/w._-CwwrA15U.js +1 -0
- package/dist/public/assets/w._-CyPkgfCF.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_23UIdfoQ2.js.br +0 -0
- package/dist/public/assets/_31nacN_D.js.br +0 -0
- package/dist/public/assets/_3JsxY5jW.js.br +0 -0
- package/dist/public/assets/_3h4e0tEZ.js.br +0 -0
- package/dist/public/assets/_3q4Nl5jL.js.br +0 -0
- package/dist/public/assets/_4ufvnJf72.js.br +0 -0
- package/dist/public/assets/_6_4OUvYf.js.br +0 -0
- package/dist/public/assets/_B1dDpV96.js.br +0 -0
- package/dist/public/assets/_B1z9k1lq.js.br +0 -0
- package/dist/public/assets/_BETMA-Hb2.js.br +0 -0
- package/dist/public/assets/_BFF66BtJ.js.br +0 -0
- package/dist/public/assets/_BGLmCXNY.js.br +0 -0
- package/dist/public/assets/_BM5HMz6F.js.br +0 -0
- package/dist/public/assets/_BPNziY9z.js.br +0 -0
- package/dist/public/assets/_BQ0Y_y9u2.js.br +0 -0
- package/dist/public/assets/_BVC6e_Yp.js.br +0 -0
- package/dist/public/assets/_BWbF3P8Z.js.br +0 -0
- package/dist/public/assets/_BcIUAm9X.js.br +0 -0
- package/dist/public/assets/_Bd0H4f51.js.br +0 -0
- package/dist/public/assets/_BgYWEeM6.js.br +0 -0
- package/dist/public/assets/_Bje3KtwL.js.br +0 -0
- package/dist/public/assets/_BloQpEjp.js.br +0 -0
- package/dist/public/assets/_Bq92Q0nR.js.br +0 -0
- package/dist/public/assets/_C28V0U8l2.js.br +0 -0
- package/dist/public/assets/_C2HzNbvz2.js.br +0 -0
- package/dist/public/assets/_C2z9cX6l.js.br +0 -0
- package/dist/public/assets/_C4J76yzG2.js.br +0 -0
- package/dist/public/assets/_CCBCnuWw.js.br +0 -0
- package/dist/public/assets/_CL6s0ICh.js.br +0 -0
- package/dist/public/assets/_CN3BQYA72.js.br +0 -0
- package/dist/public/assets/_CQUq-mT72.js.br +0 -0
- package/dist/public/assets/_CTgfRkBE.js.br +0 -0
- package/dist/public/assets/_CWk2sy8k2.js.br +0 -0
- package/dist/public/assets/_CXFZVHoG2.js.br +0 -0
- package/dist/public/assets/_CYNf9fgV.js.br +0 -0
- package/dist/public/assets/_CaSmGp4w.js.br +0 -0
- package/dist/public/assets/_Cag67kCX2.js.br +0 -0
- package/dist/public/assets/_Ce3Yjzth.js.br +0 -0
- package/dist/public/assets/_CeqZakIs.js.br +0 -0
- package/dist/public/assets/_Cf-YNYwd.js.br +0 -0
- package/dist/public/assets/_CfBFNuDP.js.br +0 -0
- package/dist/public/assets/_Cfb5JM5h2.js.br +0 -0
- package/dist/public/assets/_Cftb_32G.js.br +0 -0
- package/dist/public/assets/_CkW6jGdd.js.br +0 -0
- package/dist/public/assets/_Cn1nxA6B.js.br +0 -0
- package/dist/public/assets/_CpVLHpUR.js.br +0 -0
- package/dist/public/assets/_CuMJuPze.js.br +0 -0
- package/dist/public/assets/_CyN7N3kv2.js.br +0 -0
- package/dist/public/assets/_D-tRMW7L.js.br +0 -0
- package/dist/public/assets/_D0cVwAKB2.js.br +0 -0
- package/dist/public/assets/_D4GRNDdk.js.br +0 -0
- package/dist/public/assets/_D4Ruk2t1.js.br +0 -0
- package/dist/public/assets/_DIY6SG-c.js.br +0 -0
- package/dist/public/assets/_DIzZtNeA.js.br +0 -0
- package/dist/public/assets/_DPWWL8iG.js.br +0 -0
- package/dist/public/assets/_DUa466Zc2.js.br +0 -0
- package/dist/public/assets/_DXtPR5OD2.js.br +0 -0
- package/dist/public/assets/_DYQZlcx5.js.br +0 -0
- package/dist/public/assets/_DeC3yDfa.js.br +0 -0
- package/dist/public/assets/_DiP47yCd.js.br +0 -0
- package/dist/public/assets/_DjIlWG3G.js.br +0 -0
- package/dist/public/assets/_DpT3TmNe2.js.br +0 -0
- package/dist/public/assets/_DxiFK03b.js.br +0 -0
- package/dist/public/assets/_K_vToD7J.js.br +0 -0
- package/dist/public/assets/_RSqmIBPI.js.br +0 -0
- package/dist/public/assets/_S7EDCioe2.js.br +0 -0
- package/dist/public/assets/_Yg5QIDKH.js.br +0 -0
- package/dist/public/assets/__0ZQaoRv2.js.br +0 -0
- package/dist/public/assets/_a36kmn5a2.js.br +0 -0
- package/dist/public/assets/_c72G-AhS.js.br +0 -0
- package/dist/public/assets/_hSi-MRAR.js.br +0 -0
- package/dist/public/assets/_oz8w0szM.js.br +0 -0
- package/dist/public/assets/_szY7Fg742.js.br +0 -0
- package/dist/public/assets/app-page-DLj_2NkQ.css +0 -1
- package/dist/public/assets/app-page-DLj_2NkQ.css.br +0 -0
- package/dist/public/assets/diff-view-CHWYgViP.css +0 -1
- package/dist/public/assets/diff-view-CHWYgViP.css.br +0 -0
- package/dist/public/assets/new-C5KOEVYV.js +0 -1
- package/dist/public/assets/settings-C5KOEVYV.js +0 -1
- package/dist/public/assets/w-C5KOEVYV.js +0 -1
- package/dist/public/assets/w._-BQduMkt9.js +0 -1
- package/dist/public/assets/w._-C5KOEVYV.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 tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
-
import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./
|
|
3
|
+
import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./_tpJju-55.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3694,26 +3694,26 @@ function applyInstance(inst) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
//#endregion
|
|
3696
3696
|
//#region src/tags/settings-page.css.ts
|
|
3697
|
-
var content$2 = "_ca
|
|
3698
|
-
var agentGrid = "_ce
|
|
3699
|
-
var toolGrid = "_co
|
|
3697
|
+
var content$2 = "_ca _bk _bl";
|
|
3698
|
+
var agentGrid = "_ce _bv";
|
|
3699
|
+
var toolGrid = "_co _bv";
|
|
3700
3700
|
//#endregion
|
|
3701
3701
|
//#region src/tags/page-head.marko
|
|
3702
3702
|
var page_head_default = _template("q", (input) => {
|
|
3703
3703
|
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);
|
|
3704
3704
|
const $scope0_id = _scope_id();
|
|
3705
|
-
_html(`<header${_attr_class("
|
|
3705
|
+
_html(`<header${_attr_class("_bm")}>`);
|
|
3706
3706
|
_if(() => {
|
|
3707
3707
|
if (input.backHref) {
|
|
3708
3708
|
const $scope1_id = _scope_id();
|
|
3709
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3709
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_c7"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3710
3710
|
icon_back_default({ size: 16 });
|
|
3711
3711
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3712
3712
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3713
3713
|
return 0;
|
|
3714
3714
|
} else if (input.onBack) {
|
|
3715
3715
|
const $scope2_id = _scope_id();
|
|
3716
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3716
|
+
_html(`<button${_attr_class([iconBtnRow, "_c7"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3717
3717
|
icon_back_default({ size: 16 });
|
|
3718
3718
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3719
3719
|
_script($scope2_id, "q0");
|
|
@@ -3721,11 +3721,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3721
3721
|
return 1;
|
|
3722
3722
|
}
|
|
3723
3723
|
}, $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);
|
|
3724
|
-
_html(`<div${_attr_class("
|
|
3724
|
+
_html(`<div${_attr_class("_bo")}><h1${_attr("id", input.titleId)}${_attr_class("_bn")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3725
3725
|
_if(() => {
|
|
3726
3726
|
if (input.meta) {
|
|
3727
3727
|
const $scope3_id = _scope_id();
|
|
3728
|
-
_html(`<p${_attr_class("
|
|
3728
|
+
_html(`<p${_attr_class("_bp")}>`);
|
|
3729
3729
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3730
3730
|
_html("</p>");
|
|
3731
3731
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3736,7 +3736,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3736
3736
|
_if(() => {
|
|
3737
3737
|
if (input.actions) {
|
|
3738
3738
|
const $scope4_id = _scope_id();
|
|
3739
|
-
_html(`<div${_attr_class("
|
|
3739
|
+
_html(`<div${_attr_class("_bq")}>`);
|
|
3740
3740
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3741
3741
|
_html("</div>");
|
|
3742
3742
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3804,7 +3804,7 @@ var icon_agent_default = _template("F", (input) => {
|
|
|
3804
3804
|
n: $badge__closures
|
|
3805
3805
|
});
|
|
3806
3806
|
});
|
|
3807
|
-
var usageNote = "
|
|
3807
|
+
var usageNote = "_dp _S";
|
|
3808
3808
|
//#endregion
|
|
3809
3809
|
//#region src/tags/usage-meters.marko
|
|
3810
3810
|
function duration(ms) {
|
|
@@ -3828,11 +3828,11 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3828
3828
|
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);
|
|
3829
3829
|
const $scope0_id = _scope_id();
|
|
3830
3830
|
const agent = input.agent;
|
|
3831
|
-
_html(`<div${_attr_class(["
|
|
3831
|
+
_html(`<div${_attr_class(["_dj", { ["_dk"]: input.hideName }])}><div${_attr_class("_dl")}>`);
|
|
3832
3832
|
_if(() => {
|
|
3833
3833
|
if (!input.hideName) {
|
|
3834
3834
|
const $scope1_id = _scope_id();
|
|
3835
|
-
_html(`<strong${_attr_class("
|
|
3835
|
+
_html(`<strong${_attr_class("_dE")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3836
3836
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3837
3837
|
return 0;
|
|
3838
3838
|
}
|
|
@@ -3840,7 +3840,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3840
3840
|
_if(() => {
|
|
3841
3841
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3842
3842
|
const $scope2_id = _scope_id();
|
|
3843
|
-
_html(`<span${_attr_class("
|
|
3843
|
+
_html(`<span${_attr_class("_dm")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3844
3844
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3845
3845
|
return 0;
|
|
3846
3846
|
}
|
|
@@ -3848,19 +3848,19 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3848
3848
|
_if(() => {
|
|
3849
3849
|
if (agent.stale_seconds != null) {
|
|
3850
3850
|
const $scope3_id = _scope_id();
|
|
3851
|
-
_html(`<span${_attr_class("
|
|
3851
|
+
_html(`<span${_attr_class("_dn")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3852
3852
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3853
3853
|
return 0;
|
|
3854
3854
|
}
|
|
3855
3855
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3856
|
-
_html(`</div><div${_attr_class(["
|
|
3856
|
+
_html(`</div><div${_attr_class(["_do", { ["_dF"]: agent.stale_seconds != null }])}>`);
|
|
3857
3857
|
_for_of(agent.windows || [], (win) => {
|
|
3858
3858
|
const $scope4_id = _scope_id();
|
|
3859
3859
|
const pct = pctText$1(win.used_percent);
|
|
3860
3860
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3861
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3862
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3863
|
-
_html(`<div${_attr_class("
|
|
3861
|
+
const fillClass = win.used_percent >= 90 ? "_dx" : win.used_percent >= 70 ? "_dw" : win.used_percent >= 40 ? "_dv" : "_du";
|
|
3862
|
+
const pctClass = win.used_percent >= 90 ? "_dC" : win.used_percent >= 70 ? "_dB" : win.used_percent >= 40 ? "_dA" : "_dz";
|
|
3863
|
+
_html(`<div${_attr_class("_dq")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_dr")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_ds")}><span${_attr_class(["_dt", 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(["_dy", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_dD")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3864
3864
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3865
3865
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3866
3866
|
_if(() => {
|
|
@@ -3884,8 +3884,12 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3884
3884
|
var api$7;
|
|
3885
3885
|
var watchProgress$2;
|
|
3886
3886
|
var sso_auth_default = _template("y", (input) => {
|
|
3887
|
-
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason,
|
|
3887
|
+
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $sg__input_skipped = _serialize_guard($scope0_reason, 1), $sg__input_skipped__OR__input_items_length = _serialize_guard($scope0_reason, 0), $si__input_items_0_host = _serialize_if($scope0_reason, 3);
|
|
3888
3888
|
const $scope0_id = _scope_id();
|
|
3889
|
+
const $busy__closures = /* @__PURE__ */ new Set();
|
|
3890
|
+
const $host__closures = /* @__PURE__ */ new Set();
|
|
3891
|
+
const $authCode__closures = /* @__PURE__ */ new Set();
|
|
3892
|
+
const $localError__closures = /* @__PURE__ */ new Set();
|
|
3889
3893
|
const skipped$1 = input.skipped || [];
|
|
3890
3894
|
const host = input.items[0]?.host || "github.com";
|
|
3891
3895
|
let localBusy = false;
|
|
@@ -3922,88 +3926,93 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3922
3926
|
localCode = null;
|
|
3923
3927
|
}
|
|
3924
3928
|
}, "y0", $scope0_id);
|
|
3925
|
-
_html(`<div${_attr_class("
|
|
3926
|
-
_for_of(input.items, (s) => {
|
|
3927
|
-
const $scope1_id = _scope_id();
|
|
3928
|
-
_html(`<li${_attr_class("_dy")}>${_escape(s.org)}${_el_resume($scope1_id, "b", $sg__input_items)}<button type=button${_attr_class("_dz")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3929
|
-
icon_xmark_default({ size: 11 });
|
|
3930
|
-
_html(`</button>${_el_resume($scope1_id, "c")}</li>`);
|
|
3931
|
-
_script($scope1_id, "y1");
|
|
3932
|
-
writeScope($scope1_id, {
|
|
3933
|
-
g: s?.org,
|
|
3934
|
-
_: _scope_with_id($scope0_id)
|
|
3935
|
-
});
|
|
3936
|
-
}, "org", $scope0_id, "d", 1, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3937
|
-
_html(`<div${_attr_class("_dA")}>`);
|
|
3929
|
+
_html(`<div${_attr_class("_c8")}>`);
|
|
3938
3930
|
_if(() => {
|
|
3939
|
-
if (
|
|
3940
|
-
const $
|
|
3941
|
-
_html(`<
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3931
|
+
if (input.items.length) {
|
|
3932
|
+
const $scope1_id = _scope_id();
|
|
3933
|
+
_html(`<p${_attr_class("_di")}>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("_c9")}>`);
|
|
3934
|
+
_for_of(input.items, (s) => {
|
|
3935
|
+
const $scope2_id = _scope_id();
|
|
3936
|
+
_html(`<li${_attr_class("_c_")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_da")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3937
|
+
icon_xmark_default({ size: 11 });
|
|
3938
|
+
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3939
|
+
_script($scope2_id, "y1");
|
|
3940
|
+
_subscribe($busy__closures, writeScope($scope2_id, {
|
|
3941
|
+
g: s?.org,
|
|
3942
|
+
_: _scope_with_id($scope1_id)
|
|
3943
|
+
}));
|
|
3944
|
+
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3945
|
+
_html(`<div${_attr_class("_db")}>`);
|
|
3946
|
+
_if(() => {
|
|
3947
|
+
if (busy && authCode$2) {
|
|
3948
|
+
const $scope5_id = _scope_id();
|
|
3949
|
+
_html(`<span${_attr_class("_dc")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dd")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_de")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
3950
|
+
_script($scope5_id, "y2");
|
|
3951
|
+
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3952
|
+
return 0;
|
|
3953
|
+
} else if (busy) {
|
|
3954
|
+
const $scope8_id = _scope_id();
|
|
3955
|
+
_html(`<span${_attr_class("_dc")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3956
|
+
writeScope($scope8_id, {});
|
|
3957
|
+
return 1;
|
|
3958
|
+
} else {
|
|
3959
|
+
const $scope7_id = _scope_id();
|
|
3960
|
+
_html(`<button type=button${_attr_class(btnSm)} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize SSO</button>${_el_resume($scope7_id, "a")}`);
|
|
3961
|
+
_script($scope7_id, "y3");
|
|
3962
|
+
writeScope($scope7_id, {});
|
|
3963
|
+
return 2;
|
|
3964
|
+
}
|
|
3965
|
+
}, $scope1_id, "d", 1, 1, 1, "</div>", 1);
|
|
3966
|
+
_if(() => {
|
|
3967
|
+
if (localError) {
|
|
3968
|
+
const $scope6_id = _scope_id();
|
|
3969
|
+
_html(`<p${_attr_class("_di")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
3970
|
+
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
3971
|
+
return 0;
|
|
3972
|
+
}
|
|
3973
|
+
}, $scope1_id, "e", 1, 1, 1, 0, 1);
|
|
3974
|
+
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
3963
3975
|
return 0;
|
|
3964
3976
|
}
|
|
3965
|
-
}, $scope0_id, "
|
|
3977
|
+
}, $scope0_id, "b", 1, _serialize_guard($scope0_reason, 6), $sg__input_skipped__OR__input_items_length);
|
|
3966
3978
|
_if(() => {
|
|
3967
3979
|
if (skipped$1.length) {
|
|
3968
|
-
const $
|
|
3969
|
-
_html(`<p${_attr_class("
|
|
3970
|
-
_for_of(skipped$1, (s
|
|
3971
|
-
const $
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
_html(", ");
|
|
3976
|
-
$si__input_skipped && writeScope($scope8_id, {});
|
|
3977
|
-
return 0;
|
|
3978
|
-
}
|
|
3979
|
-
}, $scope3_id, "a", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped);
|
|
3980
|
-
_html(`${_sep($sg__input_skipped)}${_escape(s.org)}${_el_resume($scope3_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dF")}${_attr("title", `Show ${s.org} again`)}> undo</button>${_el_resume($scope3_id, "c")}`);
|
|
3981
|
-
_script($scope3_id, "y4");
|
|
3982
|
-
writeScope($scope3_id, {
|
|
3980
|
+
const $scope3_id = _scope_id();
|
|
3981
|
+
_html(`<p${_attr_class("_df")}>Skipped SSO for `);
|
|
3982
|
+
_for_of(skipped$1, (s) => {
|
|
3983
|
+
const $scope4_id = _scope_id();
|
|
3984
|
+
_html(`<span${_attr_class("_dg")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dh")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
3985
|
+
_script($scope4_id, "y4");
|
|
3986
|
+
writeScope($scope4_id, {
|
|
3983
3987
|
f: s?.org,
|
|
3984
|
-
_: _scope_with_id($
|
|
3988
|
+
_: _scope_with_id($scope3_id)
|
|
3985
3989
|
});
|
|
3986
|
-
}, "org", $
|
|
3990
|
+
}, "org", $scope3_id, "b", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped, 0, 1);
|
|
3987
3991
|
_html("</p>");
|
|
3988
|
-
writeScope($
|
|
3992
|
+
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3989
3993
|
return 0;
|
|
3990
3994
|
}
|
|
3991
|
-
}, $scope0_id, "
|
|
3995
|
+
}, $scope0_id, "c", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped__OR__input_items_length, 0, 1);
|
|
3992
3996
|
_html("</div>");
|
|
3993
3997
|
writeScope($scope0_id, {
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
3998
|
+
g: _serialize_if($scope0_reason, 6) && input.items,
|
|
3999
|
+
j: input.busy,
|
|
4000
|
+
k: input.authCode,
|
|
4001
|
+
l: input.onAuthorize,
|
|
4002
|
+
m: input.onDone,
|
|
4003
|
+
o: input.onChange,
|
|
4004
|
+
p: _serialize_if($scope0_reason, 1) && skipped$1,
|
|
4005
|
+
r: host,
|
|
4006
|
+
s: _serialize_if($scope0_reason, 4) && localBusy,
|
|
4007
|
+
u: _serialize_if($scope0_reason, 5) && localCode,
|
|
4008
|
+
w: localError,
|
|
4009
|
+
x: busy,
|
|
4010
|
+
z: authCode$2,
|
|
4011
|
+
a0: authorize,
|
|
4012
|
+
a5: $busy__closures,
|
|
4013
|
+
a3: $si__input_items_0_host && $host__closures,
|
|
4014
|
+
a6: $authCode__closures,
|
|
4015
|
+
a4: $localError__closures
|
|
4007
4016
|
});
|
|
4008
4017
|
_resume_branch($scope0_id);
|
|
4009
4018
|
});
|
|
@@ -4047,7 +4056,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4047
4056
|
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;
|
|
4048
4057
|
const dismissable = input.dismissable !== false;
|
|
4049
4058
|
let open = input.open;
|
|
4050
|
-
_html(`<dialog${_attr_class(["
|
|
4059
|
+
_html(`<dialog${_attr_class(["_fs", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4051
4060
|
...htmlInput,
|
|
4052
4061
|
open: null
|
|
4053
4062
|
}, {
|
|
@@ -4057,20 +4066,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
4057
4066
|
closedby: 1,
|
|
4058
4067
|
"on-cancel": 1,
|
|
4059
4068
|
"on-close": 1
|
|
4060
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4069
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ft")}>`);
|
|
4061
4070
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4062
4071
|
_html("</div>");
|
|
4063
4072
|
_if(() => {
|
|
4064
4073
|
if (footer) {
|
|
4065
4074
|
const $scope1_id = _scope_id();
|
|
4066
|
-
_html(`<form method=dialog${_attr_class("
|
|
4075
|
+
_html(`<form method=dialog${_attr_class("_fu")}>`);
|
|
4067
4076
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4068
4077
|
_html("</form>");
|
|
4069
4078
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4070
4079
|
return 0;
|
|
4071
4080
|
} else if (input.openChange) {
|
|
4072
4081
|
const $scope2_id = _scope_id();
|
|
4073
|
-
_html(`<form method=dialog${_attr_class("
|
|
4082
|
+
_html(`<form method=dialog${_attr_class("_fu")}>`);
|
|
4074
4083
|
dialog_close_default({
|
|
4075
4084
|
class: ["_o", "_p"],
|
|
4076
4085
|
content: _content("o0", () => {
|
|
@@ -4129,7 +4138,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4129
4138
|
const $childScope = _peek_scope_id();
|
|
4130
4139
|
modal_view_default({
|
|
4131
4140
|
label: input.label,
|
|
4132
|
-
class: "
|
|
4141
|
+
class: "_dG",
|
|
4133
4142
|
open: input.open,
|
|
4134
4143
|
openChange: input.openChange,
|
|
4135
4144
|
"aria-labelledby": titleId,
|
|
@@ -4152,7 +4161,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4152
4161
|
content: _content("r6", () => {
|
|
4153
4162
|
_scope_reason();
|
|
4154
4163
|
const $scope2_id = _scope_id();
|
|
4155
|
-
_html(`<h2${_attr_class("
|
|
4164
|
+
_html(`<h2${_attr_class("_dH")}${_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) => {
|
|
4156
4165
|
value = _new_value;
|
|
4157
4166
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4158
4167
|
_script($scope2_id, "r4");
|
|
@@ -4462,7 +4471,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4462
4471
|
const appearanceId = _id();
|
|
4463
4472
|
const githubId = _id();
|
|
4464
4473
|
const machineId = _id();
|
|
4465
|
-
_html(`<div${_attr_class("
|
|
4474
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$2)}>`);
|
|
4466
4475
|
_set_serialize_reason({
|
|
4467
4476
|
0: _serialize_guard($scope0_reason, 4),
|
|
4468
4477
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4569,7 +4578,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4569
4578
|
return 0;
|
|
4570
4579
|
}
|
|
4571
4580
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4572
|
-
_html(`<section${_attr_class("
|
|
4581
|
+
_html(`<section${_attr_class("_bs")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bt")}><h2${_attr("id", agentsId)}${_attr_class("_bH")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4573
4582
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4574
4583
|
setPreferred(v);
|
|
4575
4584
|
}, "u1", $scope0_id), () => {
|
|
@@ -4594,14 +4603,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4594
4603
|
const rows = lone ? [] : a.instances;
|
|
4595
4604
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4596
4605
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4597
|
-
_html(`<li${_attr_class(["
|
|
4606
|
+
_html(`<li${_attr_class(["_bx", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
|
|
4598
4607
|
_set_serialize_reason(12);
|
|
4599
4608
|
const $childScope4 = _peek_scope_id();
|
|
4600
4609
|
icon_agent_default({
|
|
4601
4610
|
agent: a.id,
|
|
4602
4611
|
size: 18
|
|
4603
4612
|
});
|
|
4604
|
-
_html(`<div${_attr_class("
|
|
4613
|
+
_html(`<div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class("_bz")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4605
4614
|
_if(() => {
|
|
4606
4615
|
if (lone && input.preferred === lone.id) {
|
|
4607
4616
|
const $scope55_id = _scope_id();
|
|
@@ -4619,7 +4628,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4619
4628
|
return 0;
|
|
4620
4629
|
} else if (!a.installed) {
|
|
4621
4630
|
const $scope56_id = _scope_id();
|
|
4622
|
-
_html(`<span${_attr_class("
|
|
4631
|
+
_html(`<span${_attr_class("_bB")}>Not installed</span>`);
|
|
4623
4632
|
writeScope($scope56_id, {});
|
|
4624
4633
|
return 1;
|
|
4625
4634
|
}
|
|
@@ -4737,7 +4746,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4737
4746
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4738
4747
|
_for_of(otherUsage, (u) => {
|
|
4739
4748
|
const $scope61_id = _scope_id();
|
|
4740
|
-
_html(`<li${_attr_class(["
|
|
4749
|
+
_html(`<li${_attr_class(["_bx", "_cf"])}>`);
|
|
4741
4750
|
_set_serialize_reason(6);
|
|
4742
4751
|
const $childScope9 = _peek_scope_id();
|
|
4743
4752
|
usage_meters_default({ agent: u });
|
|
@@ -4748,17 +4757,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4748
4757
|
_if(() => {
|
|
4749
4758
|
if (!usage && families.length) {
|
|
4750
4759
|
const $scope62_id = _scope_id();
|
|
4751
|
-
_html(`<p${_attr_class("
|
|
4760
|
+
_html(`<p${_attr_class("_bD")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4752
4761
|
writeScope($scope62_id, {});
|
|
4753
4762
|
return 0;
|
|
4754
4763
|
} else if (usage?.error) {
|
|
4755
4764
|
const $scope7_id = _scope_id();
|
|
4756
|
-
_html(`<p${_attr_class("
|
|
4765
|
+
_html(`<p${_attr_class("_bD")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4757
4766
|
writeScope($scope7_id, {});
|
|
4758
4767
|
return 1;
|
|
4759
4768
|
}
|
|
4760
4769
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4761
|
-
_html(`</section><section${_attr_class("
|
|
4770
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bt")}><h2${_attr("id", githubId)}${_attr_class("_bH")}>GitHub</h2></div><ul${_attr_class("_bv")}>`);
|
|
4762
4771
|
_for_of(setup?.github || [], (h) => {
|
|
4763
4772
|
const $scope12_id = _scope_id();
|
|
4764
4773
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4772,7 +4781,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4772
4781
|
const skippedSso = (() => {
|
|
4773
4782
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4774
4783
|
})();
|
|
4775
|
-
_html(`<li${_attr_class(["
|
|
4784
|
+
_html(`<li${_attr_class(["_bx", "_cx"])}><div${_attr_class("_cy")}><div${_attr_class("_by")}><span${_attr_class("_bA")}><span${_attr_class(["_bz", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4776
4785
|
_if(() => {
|
|
4777
4786
|
if (h.isEnterprise) {
|
|
4778
4787
|
const $scope65_id = _scope_id();
|
|
@@ -4795,12 +4804,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4795
4804
|
return 1;
|
|
4796
4805
|
} else if (h.authed) {
|
|
4797
4806
|
const $scope63_id = _scope_id();
|
|
4798
|
-
_html(`<span${_attr_class("
|
|
4807
|
+
_html(`<span${_attr_class("_bB")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4799
4808
|
writeScope($scope63_id, {});
|
|
4800
4809
|
return 2;
|
|
4801
4810
|
} else {
|
|
4802
4811
|
const $scope64_id = _scope_id();
|
|
4803
|
-
_html(`<span${_attr_class("
|
|
4812
|
+
_html(`<span${_attr_class("_bB")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4804
4813
|
writeScope($scope64_id, {});
|
|
4805
4814
|
return 3;
|
|
4806
4815
|
}
|
|
@@ -4831,7 +4840,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4831
4840
|
if (h.isEnterprise) {
|
|
4832
4841
|
const $scope27_id = _scope_id();
|
|
4833
4842
|
_html(`<button${_attr_class([
|
|
4834
|
-
"
|
|
4843
|
+
"_bC",
|
|
4835
4844
|
"_2",
|
|
4836
4845
|
"_3",
|
|
4837
4846
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4907,7 +4916,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4907
4916
|
_if(() => {
|
|
4908
4917
|
if (setup && !setup.github.length) {
|
|
4909
4918
|
const $scope68_id = _scope_id();
|
|
4910
|
-
_html(`<p${_attr_class("
|
|
4919
|
+
_html(`<p${_attr_class("_bD")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4911
4920
|
writeScope($scope68_id, {});
|
|
4912
4921
|
return 0;
|
|
4913
4922
|
}
|
|
@@ -4928,7 +4937,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4928
4937
|
return 0;
|
|
4929
4938
|
}
|
|
4930
4939
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4931
|
-
_html(`</section><section${_attr_class("
|
|
4940
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bt")}><h2${_attr("id", machineId)}${_attr_class("_bH")}>Machine</h2>`);
|
|
4932
4941
|
_if(() => {
|
|
4933
4942
|
if (missingCount) {
|
|
4934
4943
|
const $scope49_id = _scope_id();
|
|
@@ -4968,7 +4977,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4968
4977
|
_if(() => {
|
|
4969
4978
|
if (setup && !setup.mise.installed) {
|
|
4970
4979
|
const $scope17_id = _scope_id();
|
|
4971
|
-
_html(`<p${_attr_class("
|
|
4980
|
+
_html(`<p${_attr_class("_bD")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
4972
4981
|
_script($scope17_id, "u45");
|
|
4973
4982
|
writeScope($scope17_id, {});
|
|
4974
4983
|
return 0;
|
|
@@ -5164,7 +5173,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5164
5173
|
_html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
|
|
5165
5174
|
_for_of(hits, (h) => {
|
|
5166
5175
|
const $scope22_id = _scope_id();
|
|
5167
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5176
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_by")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5168
5177
|
_if(() => {
|
|
5169
5178
|
if (active.has(h.name)) {
|
|
5170
5179
|
const $scope23_id = _scope_id();
|
|
@@ -5173,7 +5182,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5173
5182
|
return 0;
|
|
5174
5183
|
} else if (h.description) {
|
|
5175
5184
|
const $scope79_id = _scope_id();
|
|
5176
|
-
_html(`<span${_attr_class("
|
|
5185
|
+
_html(`<span${_attr_class("_bB")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5177
5186
|
writeScope($scope79_id, {});
|
|
5178
5187
|
return 1;
|
|
5179
5188
|
}
|
|
@@ -5212,7 +5221,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5212
5221
|
return 0;
|
|
5213
5222
|
} else if (hits && !searching) {
|
|
5214
5223
|
const $scope36_id = _scope_id();
|
|
5215
|
-
_html(`<p${_attr_class("
|
|
5224
|
+
_html(`<p${_attr_class("_bD")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5216
5225
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5217
5226
|
return 1;
|
|
5218
5227
|
}
|
|
@@ -5223,7 +5232,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5223
5232
|
return 0;
|
|
5224
5233
|
}
|
|
5225
5234
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5226
|
-
_html(`</section><section${_attr_class("
|
|
5235
|
+
_html(`</section><section${_attr_class("_bs")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bt")}><h2${_attr("id", appearanceId)}${_attr_class("_bH")}>Appearance</h2></div><div${_attr_class(["_bx", "_cz"])}><label${_attr_class("_cA")}><span${_attr_class("_cB")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5227
5236
|
setInstance({ name: v });
|
|
5228
5237
|
}, "u3", $scope0_id))}${_attr_class(["_U", "_cC"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cD"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cA")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cB")}>Theme</span><span${_attr_class("_cE")}>`);
|
|
5229
5238
|
_for_of([
|
|
@@ -5383,13 +5392,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5383
5392
|
});
|
|
5384
5393
|
//#endregion
|
|
5385
5394
|
//#region src/tags/new-workspace.css.ts
|
|
5386
|
-
var content$1 = "_bI
|
|
5387
|
-
var section$1 = "_bM
|
|
5395
|
+
var content$1 = "_bI _bk";
|
|
5396
|
+
var section$1 = "_bM _bs";
|
|
5388
5397
|
var curBase = "_bR _T _S";
|
|
5389
|
-
var archived = "_bW
|
|
5398
|
+
var archived = "_bW _bs";
|
|
5390
5399
|
var archivedHint = "_bX _S";
|
|
5391
|
-
var archivedCard = "_bY
|
|
5392
|
-
var resultBranch = "
|
|
5400
|
+
var archivedCard = "_bY _bx";
|
|
5401
|
+
var resultBranch = "_cY _Z _j";
|
|
5393
5402
|
//#endregion
|
|
5394
5403
|
//#region src/tags/branch-pick.marko
|
|
5395
5404
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5400,11 +5409,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5400
5409
|
let branches = null;
|
|
5401
5410
|
let defaultBranch = null;
|
|
5402
5411
|
let branchFilter = "";
|
|
5403
|
-
_html(`<div${_attr_class("
|
|
5412
|
+
_html(`<div${_attr_class("_c0")}>`);
|
|
5404
5413
|
_if(() => {
|
|
5405
5414
|
{
|
|
5406
5415
|
const $scope4_id = _scope_id();
|
|
5407
|
-
_html(`<p${_attr_class("
|
|
5416
|
+
_html(`<p${_attr_class("_bD")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5408
5417
|
writeScope($scope4_id, {});
|
|
5409
5418
|
return 0;
|
|
5410
5419
|
}
|
|
@@ -5480,12 +5489,12 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5480
5489
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5481
5490
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5482
5491
|
})();
|
|
5483
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_cR")}>`);
|
|
5484
5493
|
_if(() => {
|
|
5485
5494
|
if (ssoPending.length) {
|
|
5486
5495
|
const $scope7_id = _scope_id();
|
|
5487
|
-
_html(`<div${_attr_class("
|
|
5488
|
-
_set_serialize_reason(
|
|
5496
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
5497
|
+
_set_serialize_reason(154);
|
|
5489
5498
|
const $childScope = _peek_scope_id();
|
|
5490
5499
|
sso_auth_default({
|
|
5491
5500
|
items: ssoPending,
|
|
@@ -5514,22 +5523,22 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5514
5523
|
_if(() => {
|
|
5515
5524
|
if (pasted) {
|
|
5516
5525
|
const $scope1_id = _scope_id();
|
|
5517
|
-
_html(`<ul${_attr_class("
|
|
5526
|
+
_html(`<ul${_attr_class("_cT")}><li><div${_attr_class(["_cV", "_cU"])}><button${_attr_class("_cW")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5518
5527
|
icon_plus_default({
|
|
5519
5528
|
size: 12,
|
|
5520
|
-
class: "
|
|
5529
|
+
class: "_c2"
|
|
5521
5530
|
});
|
|
5522
|
-
_html(`<span${_attr_class("
|
|
5531
|
+
_html(`<span${_attr_class("_c3")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5523
5532
|
_if(() => {
|
|
5524
5533
|
if (pastedForkable) {
|
|
5525
5534
|
const $scope8_id = _scope_id();
|
|
5526
|
-
_html(`<button${_attr_class(["
|
|
5535
|
+
_html(`<button${_attr_class(["_cZ", { ["_cX"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
5527
5536
|
_script($scope8_id, "s13");
|
|
5528
5537
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
|
|
5529
5538
|
return 0;
|
|
5530
5539
|
}
|
|
5531
5540
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5532
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5541
|
+
_html(`<button${_attr_class([resultBranch, { ["_cX"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5533
5542
|
_if(() => {
|
|
5534
5543
|
if (branchesFor === pasted) {
|
|
5535
5544
|
const $scope2_id = _scope_id();
|
|
@@ -5554,7 +5563,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5554
5563
|
return 0;
|
|
5555
5564
|
} else if (filter && !catalog) {
|
|
5556
5565
|
const $scope9_id = _scope_id();
|
|
5557
|
-
_html(`<p${_attr_class("
|
|
5566
|
+
_html(`<p${_attr_class("_bD")}>Loading repos…</p>`);
|
|
5558
5567
|
writeScope($scope9_id, {});
|
|
5559
5568
|
return 1;
|
|
5560
5569
|
}
|
|
@@ -5562,15 +5571,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5562
5571
|
_if(() => {
|
|
5563
5572
|
if (results.length) {
|
|
5564
5573
|
const $scope3_id = _scope_id();
|
|
5565
|
-
_html(`<ul${_attr_class("
|
|
5574
|
+
_html(`<ul${_attr_class("_cT")}>`);
|
|
5566
5575
|
_for_of(results, (repo, i) => {
|
|
5567
5576
|
const $scope4_id = _scope_id();
|
|
5568
|
-
_html(`<li><div${_attr_class(["
|
|
5577
|
+
_html(`<li><div${_attr_class(["_cV", { ["_cU"]: i === highlight }])}><button${_attr_class("_cW")}>`);
|
|
5569
5578
|
icon_plus_default({
|
|
5570
5579
|
size: 12,
|
|
5571
|
-
class: "
|
|
5580
|
+
class: "_c2"
|
|
5572
5581
|
});
|
|
5573
|
-
_html(`<span${_attr_class("
|
|
5582
|
+
_html(`<span${_attr_class("_c3")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cX"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5574
5583
|
_if(() => {
|
|
5575
5584
|
if (branchesFor === repo.nameWithOwner) {
|
|
5576
5585
|
const $scope5_id = _scope_id();
|
|
@@ -5603,7 +5612,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5603
5612
|
return 0;
|
|
5604
5613
|
} else if (filter && catalog && !pasted) {
|
|
5605
5614
|
const $scope6_id = _scope_id();
|
|
5606
|
-
_html(`<p${_attr_class("
|
|
5615
|
+
_html(`<p${_attr_class("_bD")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5607
5616
|
writeScope($scope6_id, {});
|
|
5608
5617
|
return 1;
|
|
5609
5618
|
}
|
|
@@ -5744,7 +5753,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5744
5753
|
}
|
|
5745
5754
|
}, "p6", $scope0_id);
|
|
5746
5755
|
const titleId = _id();
|
|
5747
|
-
_html(`<div${_attr_class("
|
|
5756
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content$1)}>`);
|
|
5748
5757
|
_set_serialize_reason({
|
|
5749
5758
|
0: _serialize_guard($scope0_reason, 2),
|
|
5750
5759
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5783,9 +5792,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5783
5792
|
return 0;
|
|
5784
5793
|
}
|
|
5785
5794
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5786
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5795
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_bH")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5787
5796
|
name = _new_name;
|
|
5788
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5797
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("_bH")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5789
5798
|
_set_serialize_reason(1);
|
|
5790
5799
|
const $childScope2 = _peek_scope_id();
|
|
5791
5800
|
icon_refresh_default({
|
|
@@ -5842,7 +5851,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5842
5851
|
_if(() => {
|
|
5843
5852
|
if (!selected.length) {
|
|
5844
5853
|
const $scope12_id = _scope_id();
|
|
5845
|
-
_html(`<li${_attr_class("
|
|
5854
|
+
_html(`<li${_attr_class("_bD")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5846
5855
|
writeScope($scope12_id, {});
|
|
5847
5856
|
return 0;
|
|
5848
5857
|
}
|
|
@@ -5909,10 +5918,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5909
5918
|
_if(() => {
|
|
5910
5919
|
if (archived$1.length) {
|
|
5911
5920
|
const $scope4_id = _scope_id();
|
|
5912
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5921
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_bH")}>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("_bv")}>`);
|
|
5913
5922
|
_for_of(archived$1, (ws) => {
|
|
5914
5923
|
const $scope5_id = _scope_id();
|
|
5915
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5924
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_by")}><span${_attr_class("_bz")}>${_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)}>`);
|
|
5916
5925
|
_if(() => {
|
|
5917
5926
|
if (restoring === ws.id) {
|
|
5918
5927
|
const $scope15_id = _scope_id();
|
|
@@ -6069,8 +6078,8 @@ function activeAgent(session) {
|
|
|
6069
6078
|
const command = session.state?.command?.trim();
|
|
6070
6079
|
return command && agentFromCommand(command) || session.agent;
|
|
6071
6080
|
}
|
|
6072
|
-
var iconBtn$1 = "
|
|
6073
|
-
var navToggle = "
|
|
6081
|
+
var iconBtn$1 = "_dU _j";
|
|
6082
|
+
var navToggle = "_dZ _j";
|
|
6074
6083
|
_template("I", (input) => {
|
|
6075
6084
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6076
6085
|
const $scope0_id = _scope_id();
|
|
@@ -6113,12 +6122,12 @@ var ARM_MS = 3500;
|
|
|
6113
6122
|
function disarmLater(fn) {
|
|
6114
6123
|
return setTimeout(fn, ARM_MS);
|
|
6115
6124
|
}
|
|
6116
|
-
var railBtn = "
|
|
6117
|
-
var rowIcon = "
|
|
6118
|
-
var close = "
|
|
6125
|
+
var railBtn = "_go _j";
|
|
6126
|
+
var rowIcon = "_gx _Z _j";
|
|
6127
|
+
var close = "_gy _Z _j _2";
|
|
6119
6128
|
//#endregion
|
|
6120
6129
|
//#region src/styles/session-pop.css.ts
|
|
6121
|
-
var sessionPop = "
|
|
6130
|
+
var sessionPop = "_gk _4";
|
|
6122
6131
|
//#endregion
|
|
6123
6132
|
//#region src/client/usage.ts
|
|
6124
6133
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6179,22 +6188,22 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6179
6188
|
if (windows.length) {
|
|
6180
6189
|
const $scope1_id = _scope_id();
|
|
6181
6190
|
_html(`<span${_attr_class([
|
|
6182
|
-
"
|
|
6191
|
+
"_fm",
|
|
6183
6192
|
input.class,
|
|
6184
|
-
{ ["
|
|
6193
|
+
{ ["_fn"]: agent.stale_seconds != null }
|
|
6185
6194
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6186
6195
|
_for_of(windows, (win$1, i) => {
|
|
6187
6196
|
const $scope2_id = _scope_id();
|
|
6188
|
-
_html(`<span${_attr_class("
|
|
6197
|
+
_html(`<span${_attr_class("_fo")}>`);
|
|
6189
6198
|
_if(() => {
|
|
6190
6199
|
if (i) {
|
|
6191
6200
|
const $scope3_id = _scope_id();
|
|
6192
|
-
_html(`<span${_attr_class("
|
|
6201
|
+
_html(`<span${_attr_class("_fr")} aria-hidden=true>·</span>`);
|
|
6193
6202
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6194
6203
|
return 0;
|
|
6195
6204
|
}
|
|
6196
6205
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6197
|
-
_html(`<span${_attr_class("
|
|
6206
|
+
_html(`<span${_attr_class("_fp")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fq", win$1.used_percent >= 90 ? "_dC" : win$1.used_percent >= 70 ? "_dB" : win$1.used_percent >= 40 ? "_dA" : "_dz"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6198
6207
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6199
6208
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6200
6209
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6225,12 +6234,12 @@ var icon_edit_default = _template("N", (input) => {
|
|
|
6225
6234
|
});
|
|
6226
6235
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6227
6236
|
});
|
|
6228
|
-
var prChip = "
|
|
6229
|
-
var portChip = "
|
|
6237
|
+
var prChip = "_ho _s _hn";
|
|
6238
|
+
var portChip = "_hp _s _hn";
|
|
6230
6239
|
var prState = {
|
|
6231
|
-
open: "
|
|
6232
|
-
merged: "
|
|
6233
|
-
closed: "
|
|
6240
|
+
open: "_ht",
|
|
6241
|
+
merged: "_hu",
|
|
6242
|
+
closed: "_hv"
|
|
6234
6243
|
};
|
|
6235
6244
|
//#endregion
|
|
6236
6245
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6278,7 +6287,7 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6278
6287
|
const name = repo.full_name.split("/").at(-1);
|
|
6279
6288
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6280
6289
|
}, "v2", $scope1_id);
|
|
6281
|
-
_html(`<div${_attr_class("
|
|
6290
|
+
_html(`<div${_attr_class("_hm")}>`);
|
|
6282
6291
|
_for_of(repos, (repo) => {
|
|
6283
6292
|
const $scope2_id = _scope_id();
|
|
6284
6293
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6294,11 +6303,11 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6294
6303
|
[prState.merged]: pr.state === "MERGED",
|
|
6295
6304
|
[prState.closed]: pr.state === "CLOSED"
|
|
6296
6305
|
}
|
|
6297
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6306
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hq", { ["_hx"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
6298
6307
|
_if(() => {
|
|
6299
6308
|
if (open) {
|
|
6300
6309
|
const $scope4_id = _scope_id();
|
|
6301
|
-
_html(`<a${_attr_class(["
|
|
6310
|
+
_html(`<a${_attr_class(["_hq", "_hr"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6302
6311
|
icon_diff_default({ size: 12 });
|
|
6303
6312
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
6304
6313
|
_serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
|
|
@@ -6306,9 +6315,9 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6306
6315
|
} else {
|
|
6307
6316
|
const $scope6_id = _scope_id();
|
|
6308
6317
|
_html(`<button type=button${_attr_class([
|
|
6309
|
-
"_hp",
|
|
6310
6318
|
"_hq",
|
|
6311
|
-
"_hr"
|
|
6319
|
+
"_hr",
|
|
6320
|
+
"_hs"
|
|
6312
6321
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6313
6322
|
icon_xmark_default({ size: 12 });
|
|
6314
6323
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6333,10 +6342,10 @@ var side_nav_chips_default = _template("v", (input) => {
|
|
|
6333
6342
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
6334
6343
|
_for_of(ports, (p) => {
|
|
6335
6344
|
const $scope5_id = _scope_id();
|
|
6336
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
6337
|
-
"_hp",
|
|
6345
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hq", "_hw"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6338
6346
|
"_hq",
|
|
6339
6347
|
"_hr",
|
|
6348
|
+
"_hs",
|
|
6340
6349
|
{ ["_q"]: armedPid === p.pid }
|
|
6341
6350
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6342
6351
|
icon_xmark_default({ size: 12 });
|
|
@@ -6428,10 +6437,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6428
6437
|
_if(() => {
|
|
6429
6438
|
if (input.rail) {
|
|
6430
6439
|
const $scope2_id = _scope_id();
|
|
6431
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6440
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gm"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
6432
6441
|
"_z",
|
|
6433
6442
|
phase[dot],
|
|
6434
|
-
"
|
|
6443
|
+
"_gp"
|
|
6435
6444
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6436
6445
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
6437
6446
|
return 0;
|
|
@@ -6439,15 +6448,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6439
6448
|
const $scope3_id = _scope_id();
|
|
6440
6449
|
const sessions$1 = input.sessions || [];
|
|
6441
6450
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6442
|
-
_html(`<section${_attr_class(["
|
|
6443
|
-
["
|
|
6451
|
+
_html(`<section${_attr_class(["_gr", {
|
|
6452
|
+
["_gm"]: input.current,
|
|
6444
6453
|
["_5"]: input.current,
|
|
6445
|
-
["
|
|
6446
|
-
["
|
|
6447
|
-
}])}><div${_attr_class("
|
|
6454
|
+
["_gs"]: input.railPop,
|
|
6455
|
+
["_gq"]: input.page
|
|
6456
|
+
}])}><div${_attr_class("_gt")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gu")}><span${_attr_class([
|
|
6448
6457
|
"_z",
|
|
6449
6458
|
phase[dot],
|
|
6450
|
-
"
|
|
6459
|
+
"_gH"
|
|
6451
6460
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6452
6461
|
_if(() => {
|
|
6453
6462
|
if (sessions$1.length === 1) {
|
|
@@ -6460,7 +6469,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6460
6469
|
icon_agent_default({
|
|
6461
6470
|
agent: activeAgent(sessions$1[0]),
|
|
6462
6471
|
size: 12,
|
|
6463
|
-
class: "
|
|
6472
|
+
class: "_gz"
|
|
6464
6473
|
});
|
|
6465
6474
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6466
6475
|
_: _scope_with_id($scope3_id),
|
|
@@ -6470,16 +6479,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6470
6479
|
}
|
|
6471
6480
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6472
6481
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6473
|
-
_html(`<span${_attr_class("
|
|
6482
|
+
_html(`<span${_attr_class("_gA")}><span${_attr_class("_gB")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6474
6483
|
_if(() => {
|
|
6475
6484
|
if (input.page && metaText) {
|
|
6476
6485
|
const $scope16_id = _scope_id();
|
|
6477
|
-
_html(`<span${_attr_class("
|
|
6486
|
+
_html(`<span${_attr_class("_gF")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6478
6487
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
6479
6488
|
return 0;
|
|
6480
6489
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6481
6490
|
const $scope15_id = _scope_id();
|
|
6482
|
-
_html(`<span${_attr_class("
|
|
6491
|
+
_html(`<span${_attr_class("_gC")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6483
6492
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6484
6493
|
return 1;
|
|
6485
6494
|
}
|
|
@@ -6492,7 +6501,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6492
6501
|
"_I",
|
|
6493
6502
|
"_R",
|
|
6494
6503
|
"_K",
|
|
6495
|
-
"
|
|
6504
|
+
"_gG"
|
|
6496
6505
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6497
6506
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
6498
6507
|
_: _scope_with_id($scope3_id),
|
|
@@ -6505,7 +6514,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6505
6514
|
_if(() => {
|
|
6506
6515
|
if (!input.page) {
|
|
6507
6516
|
const $scope5_id = _scope_id();
|
|
6508
|
-
_html(`<div${_attr_class("
|
|
6517
|
+
_html(`<div${_attr_class("_gv")}>`);
|
|
6509
6518
|
_if(() => {
|
|
6510
6519
|
if (input.onNewSession) {
|
|
6511
6520
|
const $scope6_id = _scope_id();
|
|
@@ -6519,7 +6528,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6519
6528
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6520
6529
|
_for_of([], (agent) => {
|
|
6521
6530
|
const $scope7_id = _scope_id();
|
|
6522
|
-
_html(`<button${_attr_class("
|
|
6531
|
+
_html(`<button${_attr_class("_gl")}>`);
|
|
6523
6532
|
_set_serialize_reason(12);
|
|
6524
6533
|
const $childScope2 = _peek_scope_id();
|
|
6525
6534
|
icon_agent_default({
|
|
@@ -6554,7 +6563,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6554
6563
|
return 0;
|
|
6555
6564
|
}
|
|
6556
6565
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6557
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6566
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gn"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6558
6567
|
icon_manage_default({ size: 12 });
|
|
6559
6568
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6560
6569
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -6564,7 +6573,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6564
6573
|
return 0;
|
|
6565
6574
|
}
|
|
6566
6575
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6567
|
-
_html(`</div><div${_attr_class("
|
|
6576
|
+
_html(`</div><div${_attr_class("_gM")}>`);
|
|
6568
6577
|
_if(() => {
|
|
6569
6578
|
if (sessions$1.length === 1 && openPlan) {
|
|
6570
6579
|
const $scope11_id = _scope_id();
|
|
@@ -6572,7 +6581,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6572
6581
|
const $childScope3 = _peek_scope_id();
|
|
6573
6582
|
usage_pcts_default({
|
|
6574
6583
|
agent: openPlan,
|
|
6575
|
-
class: "
|
|
6584
|
+
class: "_gD"
|
|
6576
6585
|
});
|
|
6577
6586
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6578
6587
|
a: _existing_scope($childScope3),
|
|
@@ -6583,14 +6592,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6583
6592
|
}, $scope3_id, "m");
|
|
6584
6593
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6585
6594
|
const $scope8_id = _scope_id();
|
|
6586
|
-
_html(`<div${_attr_class(["
|
|
6595
|
+
_html(`<div${_attr_class(["_gw", { ["_gm"]: s.id === input.currentTab }])}>`);
|
|
6587
6596
|
_if(() => {
|
|
6588
6597
|
if (renamingId === s.id) {
|
|
6589
6598
|
const $scope10_id = _scope_id();
|
|
6590
6599
|
_html(`<span${_attr_class([
|
|
6591
6600
|
"_z",
|
|
6592
6601
|
phase[sessionPhase(s.state)],
|
|
6593
|
-
"
|
|
6602
|
+
"_gK"
|
|
6594
6603
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6595
6604
|
_set_serialize_reason({
|
|
6596
6605
|
1: $sg__input_sessions,
|
|
@@ -6600,17 +6609,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6600
6609
|
icon_agent_default({
|
|
6601
6610
|
agent: activeAgent(s),
|
|
6602
6611
|
size: 13,
|
|
6603
|
-
class: "
|
|
6612
|
+
class: "_gO"
|
|
6604
6613
|
});
|
|
6605
6614
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6606
6615
|
renameValue = _new_renameValue;
|
|
6607
|
-
}, "w0", $scope10_id))}${_attr_class(["_U", "
|
|
6616
|
+
}, "w0", $scope10_id))}${_attr_class(["_U", "_gL"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6608
6617
|
_script($scope10_id, "w5");
|
|
6609
6618
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6610
6619
|
return 0;
|
|
6611
6620
|
} else {
|
|
6612
6621
|
const $scope9_id = _scope_id();
|
|
6613
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6622
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gN")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6614
6623
|
_set_serialize_reason({
|
|
6615
6624
|
1: $sg__input_sessions,
|
|
6616
6625
|
2: $sg__input_sessions
|
|
@@ -6619,9 +6628,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6619
6628
|
icon_agent_default({
|
|
6620
6629
|
agent: activeAgent(s),
|
|
6621
6630
|
size: 13,
|
|
6622
|
-
class: "
|
|
6631
|
+
class: "_gO"
|
|
6623
6632
|
});
|
|
6624
|
-
_html(`<span${_attr_class("
|
|
6633
|
+
_html(`<span${_attr_class("_gI")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gJ")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6625
6634
|
icon_edit_default({ size: 12 });
|
|
6626
6635
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6627
6636
|
icon_xmark_default({ size: 12 });
|
|
@@ -6633,7 +6642,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6633
6642
|
const $childScope6 = _peek_scope_id();
|
|
6634
6643
|
usage_pcts_default({
|
|
6635
6644
|
agent: openPlan,
|
|
6636
|
-
class: "
|
|
6645
|
+
class: "_gE"
|
|
6637
6646
|
});
|
|
6638
6647
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6639
6648
|
a: _existing_scope($childScope6),
|
|
@@ -6836,34 +6845,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6836
6845
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6837
6846
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6838
6847
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6839
|
-
_html(`<aside${_attr_class(["
|
|
6840
|
-
["
|
|
6841
|
-
["
|
|
6848
|
+
_html(`<aside${_attr_class(["_dY", {
|
|
6849
|
+
["_dW"]: !navOpen,
|
|
6850
|
+
["_dX"]: isPage
|
|
6842
6851
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6843
6852
|
_if(() => {
|
|
6844
6853
|
if (isPage) {
|
|
6845
6854
|
const $scope1_id = _scope_id();
|
|
6846
|
-
_html(`<header${_attr_class("
|
|
6855
|
+
_html(`<header${_attr_class("_d1")}><div${_attr_class("_d_")}>`);
|
|
6847
6856
|
_if(() => {
|
|
6848
6857
|
if (input.instanceName) {
|
|
6849
6858
|
const $scope2_id = _scope_id();
|
|
6850
|
-
_html(`<div${_attr_class("
|
|
6859
|
+
_html(`<div${_attr_class("_d7")} title="This work server (Settings → Appearance)"><img${_attr_class("_d8")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d9")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6851
6860
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6852
6861
|
return 0;
|
|
6853
6862
|
}
|
|
6854
6863
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6855
|
-
_html(`<h1${_attr_class("
|
|
6864
|
+
_html(`<h1${_attr_class("_d2")}>Workspaces</h1></div><div${_attr_class("_d3")}>`);
|
|
6856
6865
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6857
6866
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6858
6867
|
iconBtn$1,
|
|
6859
|
-
"
|
|
6860
|
-
{ ["
|
|
6868
|
+
"_d4",
|
|
6869
|
+
{ ["_dT"]: view === "settings" }
|
|
6861
6870
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6862
6871
|
icon_settings_default({ size: 16 });
|
|
6863
6872
|
_if(() => {
|
|
6864
6873
|
if (input.setupReady === false) {
|
|
6865
6874
|
const $scope12_id = _scope_id();
|
|
6866
|
-
_html(`<span${_attr_class(["_z", "
|
|
6875
|
+
_html(`<span${_attr_class(["_z", "_dV"])} title="Machine setup incomplete"></span>`);
|
|
6867
6876
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6868
6877
|
return 0;
|
|
6869
6878
|
}
|
|
@@ -6876,18 +6885,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6876
6885
|
_if(() => {
|
|
6877
6886
|
if (!isPage && input.instanceName) {
|
|
6878
6887
|
const $scope3_id = _scope_id();
|
|
6879
|
-
_html(`<div${_attr_class("
|
|
6888
|
+
_html(`<div${_attr_class("_d7")} title="This work server (Settings → Appearance)"><img${_attr_class("_d8")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_d9")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6880
6889
|
writeScope($scope3_id, {});
|
|
6881
6890
|
return 0;
|
|
6882
6891
|
}
|
|
6883
6892
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6884
|
-
_html(`<div${_attr_class("
|
|
6893
|
+
_html(`<div${_attr_class("_ea")}>`);
|
|
6885
6894
|
_for_of(listIds, (wsId) => {
|
|
6886
6895
|
const $scope4_id = _scope_id();
|
|
6887
6896
|
_if(() => {
|
|
6888
6897
|
if (isPage && wsId === ws.id) {
|
|
6889
6898
|
const $scope13_id = _scope_id();
|
|
6890
|
-
_html(`<h2${_attr_class(["
|
|
6899
|
+
_html(`<h2${_attr_class(["_bH", "_d5"])}>Current</h2>`);
|
|
6891
6900
|
writeScope($scope13_id, {});
|
|
6892
6901
|
return 0;
|
|
6893
6902
|
}
|
|
@@ -6895,7 +6904,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6895
6904
|
_if(() => {
|
|
6896
6905
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6897
6906
|
const $scope14_id = _scope_id();
|
|
6898
|
-
_html(`<h2${_attr_class(["
|
|
6907
|
+
_html(`<h2${_attr_class(["_bH", "_d5"])}>Other workspaces</h2>`);
|
|
6899
6908
|
writeScope($scope14_id, {});
|
|
6900
6909
|
return 0;
|
|
6901
6910
|
}
|
|
@@ -6982,7 +6991,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6982
6991
|
railHover = null;
|
|
6983
6992
|
}, 150);
|
|
6984
6993
|
}, "x6", $scope5_id);
|
|
6985
|
-
_html(`<div${_attr_class("
|
|
6994
|
+
_html(`<div${_attr_class("_eb")}>`);
|
|
6986
6995
|
_for_of(itemIds, (wsId, i) => {
|
|
6987
6996
|
const $scope6_id = _scope_id();
|
|
6988
6997
|
_html("<span>");
|
|
@@ -7036,7 +7045,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7036
7045
|
if (railHover) {
|
|
7037
7046
|
const $scope7_id = _scope_id();
|
|
7038
7047
|
const hoverId = railHover.id;
|
|
7039
|
-
_html(`<div${_attr_class(["_4", "
|
|
7048
|
+
_html(`<div${_attr_class(["_4", "_ee"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7040
7049
|
_set_serialize_reason({
|
|
7041
7050
|
0: 1,
|
|
7042
7051
|
1: 1,
|
|
@@ -7124,7 +7133,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7124
7133
|
return 0;
|
|
7125
7134
|
}
|
|
7126
7135
|
}, $scope0_id, "e");
|
|
7127
|
-
_html(`<div${_attr_class("
|
|
7136
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
7128
7137
|
_if(() => {
|
|
7129
7138
|
if (isPage) {
|
|
7130
7139
|
const $scope9_id = _scope_id();
|
|
@@ -7132,7 +7141,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7132
7141
|
"_o",
|
|
7133
7142
|
"_p",
|
|
7134
7143
|
btnLg,
|
|
7135
|
-
"
|
|
7144
|
+
"_d6"
|
|
7136
7145
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7137
7146
|
icon_folder_plus_default({ size: 16 });
|
|
7138
7147
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7154,19 +7163,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7154
7163
|
return 1;
|
|
7155
7164
|
}
|
|
7156
7165
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7157
|
-
_html(`<div${_attr_class(["_y", "
|
|
7166
|
+
_html(`<div${_attr_class(["_y", "_ed"])}></div>`);
|
|
7158
7167
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7159
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7168
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_dT"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7160
7169
|
icon_settings_default({ size: 15 });
|
|
7161
7170
|
_if(() => {
|
|
7162
7171
|
if (input.setupReady === false) {
|
|
7163
7172
|
const $scope17_id = _scope_id();
|
|
7164
|
-
_html(`<span${_attr_class(["_z", "
|
|
7173
|
+
_html(`<span${_attr_class(["_z", "_dV"])} title="Machine setup incomplete"></span>`);
|
|
7165
7174
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7166
7175
|
return 0;
|
|
7167
7176
|
}
|
|
7168
7177
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7169
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7178
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_dT"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7170
7179
|
icon_folder_plus_default({ size: 16 });
|
|
7171
7180
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7172
7181
|
_script($scope8_id, "x15");
|
|
@@ -7231,11 +7240,11 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7231
7240
|
_resume_branch($scope0_id);
|
|
7232
7241
|
});
|
|
7233
7242
|
var iconBtn = "_0 _j";
|
|
7234
|
-
var sectionCount = "
|
|
7235
|
-
var content = "
|
|
7236
|
-
var pageMeta = "
|
|
7237
|
-
var pathMeta = "
|
|
7238
|
-
var dangerHint = "
|
|
7243
|
+
var sectionCount = "_bu _I _J";
|
|
7244
|
+
var content = "_dI _bk";
|
|
7245
|
+
var pageMeta = "_dJ _bp";
|
|
7246
|
+
var pathMeta = "_dM _x";
|
|
7247
|
+
var dangerHint = "_dS _S";
|
|
7239
7248
|
//#endregion
|
|
7240
7249
|
//#region src/tags/manage-workspace.marko
|
|
7241
7250
|
var api$2;
|
|
@@ -7334,7 +7343,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7334
7343
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7335
7344
|
}, "n5", $scope0_id);
|
|
7336
7345
|
const titleId = _id();
|
|
7337
|
-
_html(`<div${_attr_class("
|
|
7346
|
+
_html(`<div${_attr_class("_bi")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bj")}><div${_attr_class(content)}>`);
|
|
7338
7347
|
_set_serialize_reason(30);
|
|
7339
7348
|
const $childScope = _peek_scope_id();
|
|
7340
7349
|
page_head_default({
|
|
@@ -7347,7 +7356,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7347
7356
|
meta: attrTag({ content: _content_resume("n11", () => {
|
|
7348
7357
|
_scope_reason();
|
|
7349
7358
|
const $scope8_id = _scope_id();
|
|
7350
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7359
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dK")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
7351
7360
|
_if(() => {
|
|
7352
7361
|
if (ws.status !== "active") {
|
|
7353
7362
|
const $scope11_id = _scope_id();
|
|
@@ -7356,7 +7365,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7356
7365
|
return 0;
|
|
7357
7366
|
}
|
|
7358
7367
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7359
|
-
_html(`<span${_attr_class("
|
|
7368
|
+
_html(`<span${_attr_class("_dL")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
7360
7369
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
7361
7370
|
_resume_branch($scope8_id);
|
|
7362
7371
|
}, $scope0_id) })
|
|
@@ -7384,22 +7393,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7384
7393
|
_if(() => {
|
|
7385
7394
|
if (pendingAction && actionStep) {
|
|
7386
7395
|
const $scope7_id = _scope_id();
|
|
7387
|
-
_html(`<p${_attr_class("
|
|
7396
|
+
_html(`<p${_attr_class("_br")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7388
7397
|
writeScope($scope7_id, {});
|
|
7389
7398
|
return 0;
|
|
7390
7399
|
}
|
|
7391
7400
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7392
|
-
_html(`<section${_attr_class("
|
|
7401
|
+
_html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7393
7402
|
_set_serialize_reason(1);
|
|
7394
7403
|
const $childScope2 = _peek_scope_id();
|
|
7395
7404
|
icon_refresh_default({
|
|
7396
7405
|
size: 14,
|
|
7397
7406
|
class: catalogRefreshing && "_E"
|
|
7398
7407
|
});
|
|
7399
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7408
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bv")}>`);
|
|
7400
7409
|
_for_of(ws.repos, (row) => {
|
|
7401
7410
|
const $scope1_id = _scope_id();
|
|
7402
|
-
_html(`<li${_attr_class("
|
|
7411
|
+
_html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}><span${_attr_class(["_bz", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bA")}><a${_attr_class(["_bB", "_dO"])}${_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")}`);
|
|
7403
7412
|
_if(() => {
|
|
7404
7413
|
if (row.base_branch !== row.default_branch) {
|
|
7405
7414
|
const $scope12_id = _scope_id();
|
|
@@ -7418,7 +7427,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7418
7427
|
} else {
|
|
7419
7428
|
const $scope6_id = _scope_id();
|
|
7420
7429
|
_html(`<button${_attr_class([
|
|
7421
|
-
"
|
|
7430
|
+
"_bC",
|
|
7422
7431
|
"_2",
|
|
7423
7432
|
"_3",
|
|
7424
7433
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7451,19 +7460,19 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7451
7460
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7452
7461
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7453
7462
|
const $scope16_id = _scope_id();
|
|
7454
|
-
_html(`<li${_attr_class(["
|
|
7463
|
+
_html(`<li${_attr_class(["_bx", "_bw"])}><span${_attr_class("_F")}></span><div${_attr_class("_by")}><span${_attr_class("_bB")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7455
7464
|
writeScope($scope16_id, {});
|
|
7456
7465
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7457
7466
|
_html("</ul>");
|
|
7458
7467
|
_if(() => {
|
|
7459
7468
|
if (!ws.repos.length && !busy.size) {
|
|
7460
7469
|
const $scope17_id = _scope_id();
|
|
7461
|
-
_html(`<p${_attr_class("
|
|
7470
|
+
_html(`<p${_attr_class("_bD")}>No repos yet. Search below to add one.</p>`);
|
|
7462
7471
|
writeScope($scope17_id, {});
|
|
7463
7472
|
return 0;
|
|
7464
7473
|
}
|
|
7465
7474
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7466
|
-
_html(`<div${_attr_class("
|
|
7475
|
+
_html(`<div${_attr_class("_dN")}>`);
|
|
7467
7476
|
const $childScope3 = _peek_scope_id();
|
|
7468
7477
|
let refreshCatalog = repo_picker_default({
|
|
7469
7478
|
exclude: inWorkspace,
|
|
@@ -7483,17 +7492,17 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7483
7492
|
_if(() => {
|
|
7484
7493
|
if (running.length) {
|
|
7485
7494
|
const $scope9_id = _scope_id();
|
|
7486
|
-
_html(`<section${_attr_class("
|
|
7495
|
+
_html(`<section${_attr_class("_bs")}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bv")}>`);
|
|
7487
7496
|
_for_of(running, (p) => {
|
|
7488
7497
|
const $scope10_id = _scope_id();
|
|
7489
|
-
_html(`<li${_attr_class("
|
|
7498
|
+
_html(`<li${_attr_class("_bx")}><div${_attr_class("_by")}${_attr("title", p.args)}><span${_attr_class(["_bz", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7490
7499
|
_if(() => {
|
|
7491
7500
|
if (p.ports.length) {
|
|
7492
7501
|
const $scope18_id = _scope_id();
|
|
7493
|
-
_html(`<span${_attr_class("
|
|
7502
|
+
_html(`<span${_attr_class("_bA")}>`);
|
|
7494
7503
|
_for_of(p.ports, (port) => {
|
|
7495
7504
|
const $scope19_id = _scope_id();
|
|
7496
|
-
_html(`<button${_attr_class(["_s", "
|
|
7505
|
+
_html(`<button${_attr_class(["_s", "_dP"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7497
7506
|
_script($scope19_id, "n15");
|
|
7498
7507
|
writeScope($scope19_id, { d: port });
|
|
7499
7508
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7501,7 +7510,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7501
7510
|
return 0;
|
|
7502
7511
|
}
|
|
7503
7512
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7504
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7513
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bC", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7505
7514
|
icon_xmark_default({ size: 14 });
|
|
7506
7515
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7507
7516
|
_script($scope10_id, "n16");
|
|
@@ -7515,7 +7524,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7515
7524
|
return 0;
|
|
7516
7525
|
}
|
|
7517
7526
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7518
|
-
_html(`<section${_attr_class(["
|
|
7527
|
+
_html(`<section${_attr_class(["_bs", "_dQ"])}><div${_attr_class("_bt")}><h2${_attr_class("_bH")}>Workspace</h2></div><div${_attr_class("_dR")}>`);
|
|
7519
7528
|
_if(() => {
|
|
7520
7529
|
if (ws.status === "active") {
|
|
7521
7530
|
const $scope4_id = _scope_id();
|
|
@@ -7616,15 +7625,15 @@ var term_find_default = _template("z", (input) => {
|
|
|
7616
7625
|
const canStep = hasQuery && open;
|
|
7617
7626
|
const keybar = input.placement === "keybar";
|
|
7618
7627
|
_html(`<div${_attr_class([
|
|
7619
|
-
"
|
|
7620
|
-
keybar ? "
|
|
7621
|
-
!open && "
|
|
7622
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7628
|
+
"_fF",
|
|
7629
|
+
keybar ? "_fH" : "_fG",
|
|
7630
|
+
!open && "_fJ"
|
|
7631
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fA", keybar ? "_fI" : "_fC"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7623
7632
|
if (!open) return;
|
|
7624
7633
|
query = v;
|
|
7625
7634
|
live.query = v;
|
|
7626
7635
|
run(0);
|
|
7627
|
-
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7636
|
+
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "_fK"])} 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 && "_fL"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fL"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fL"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7628
7637
|
icon_xmark_default({ size: 14 });
|
|
7629
7638
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7630
7639
|
_script($scope0_id, "z4");
|
|
@@ -7898,7 +7907,7 @@ var term_default = _template("A", (input) => {
|
|
|
7898
7907
|
trapOpen = true;
|
|
7899
7908
|
}
|
|
7900
7909
|
}, "A14", $scope0_id);
|
|
7901
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7910
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_ef")}><div${_attr_class("_eg")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7902
7911
|
_if(() => {
|
|
7903
7912
|
if (findOpen) {
|
|
7904
7913
|
const $scope12_id = _scope_id();
|
|
@@ -7925,7 +7934,7 @@ var term_default = _template("A", (input) => {
|
|
|
7925
7934
|
_if(() => {
|
|
7926
7935
|
if (uploading) {
|
|
7927
7936
|
const $scope19_id = _scope_id();
|
|
7928
|
-
_html(`<div${_attr_class("
|
|
7937
|
+
_html(`<div${_attr_class("_em")}>uploading…</div>`);
|
|
7929
7938
|
writeScope($scope19_id, {});
|
|
7930
7939
|
return 0;
|
|
7931
7940
|
}
|
|
@@ -7933,7 +7942,7 @@ var term_default = _template("A", (input) => {
|
|
|
7933
7942
|
_if(() => {
|
|
7934
7943
|
if (copiedFlash) {
|
|
7935
7944
|
const $scope20_id = _scope_id();
|
|
7936
|
-
_html(`<div${_attr_class("
|
|
7945
|
+
_html(`<div${_attr_class("_el")}>Copied</div>`);
|
|
7937
7946
|
writeScope($scope20_id, {});
|
|
7938
7947
|
return 0;
|
|
7939
7948
|
}
|
|
@@ -7942,7 +7951,7 @@ var term_default = _template("A", (input) => {
|
|
|
7942
7951
|
_if(() => {
|
|
7943
7952
|
if (trapOpen) {
|
|
7944
7953
|
const $scope11_id = _scope_id();
|
|
7945
|
-
_html(`<div${_attr_class("
|
|
7954
|
+
_html(`<div${_attr_class("_en")}><div${_attr_class("_eo")}><p${_attr_class("_eT")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
7946
7955
|
_script($scope11_id, "A25");
|
|
7947
7956
|
_script($scope11_id, "A26");
|
|
7948
7957
|
writeScope($scope11_id, {});
|
|
@@ -8045,7 +8054,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8045
8054
|
let DiffView = null;
|
|
8046
8055
|
const loadDiffView = _resume(() => {
|
|
8047
8056
|
if (DiffView) return;
|
|
8048
|
-
import("./
|
|
8057
|
+
import("./_DILbc8yV.js").then((m) => {
|
|
8049
8058
|
DiffView = m.default;
|
|
8050
8059
|
});
|
|
8051
8060
|
}, "E6", $scope0_id);
|
|
@@ -8515,7 +8524,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8515
8524
|
_if(() => {
|
|
8516
8525
|
if (!shownSessions.length && view === "term") {
|
|
8517
8526
|
const $scope7_id = _scope_id();
|
|
8518
|
-
_html(`<div${_attr_class("
|
|
8527
|
+
_html(`<div${_attr_class("_bE")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
8519
8528
|
_script($scope7_id, "E49");
|
|
8520
8529
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8521
8530
|
return 0;
|
|
@@ -8525,7 +8534,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8525
8534
|
return 0;
|
|
8526
8535
|
} else {
|
|
8527
8536
|
const $scope10_id = _scope_id();
|
|
8528
|
-
_html(`<p${_attr_class("
|
|
8537
|
+
_html(`<p${_attr_class("_bE")}>Loading sessions…</p>`);
|
|
8529
8538
|
writeScope($scope10_id, {});
|
|
8530
8539
|
return 1;
|
|
8531
8540
|
}
|
|
@@ -16518,4 +16527,4 @@ server.listen(port, () => {
|
|
|
16518
16527
|
//#endregion
|
|
16519
16528
|
export {};
|
|
16520
16529
|
|
|
16521
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-
|
|
16530
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-Br2mpp1y.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Br2mpp1y.css\"",">"],"defer":[2,"/assets/new-CwwrA15U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CwwrA15U.js\"","></script>",2,"modulepreload#/assets/_C7EUXi77.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7EUXi77.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-Br2mpp1y.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Br2mpp1y.css\"",">"],"defer":[2,"/assets/w._-CwwrA15U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CwwrA15U.js\"","></script>",2,"modulepreload#/assets/_C7EUXi77.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7EUXi77.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-Br2mpp1y.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Br2mpp1y.css\"",">"],"defer":[2,"/assets/w-CwwrA15U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CwwrA15U.js\"","></script>",2,"modulepreload#/assets/_C7EUXi77.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7EUXi77.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-Br2mpp1y.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Br2mpp1y.css\"",">"],"defer":[2,"/assets/settings-CwwrA15U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CwwrA15U.js\"","></script>",2,"modulepreload#/assets/_C7EUXi77.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7EUXi77.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-Br2mpp1y.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Br2mpp1y.css\"",">"],"defer":[2,"/assets/w._-CyPkgfCF.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CyPkgfCF.js\"","></script>",2,"modulepreload#/assets/_C7EUXi77.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C7EUXi77.js\"",">"]}};
|