@dylanpiercey/work 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/work.mjs +7 -5
- package/dist/{_hWr23FrN.js → _de1ZuRrB.js} +21 -21
- package/dist/{_ChsFL4HL.js → _iq7sdxAv.js} +31 -31
- package/dist/index.mjs +167 -167
- package/dist/public/assets/{_COh_iyNM.js → _-4rQc6S0.js} +1 -1
- package/dist/public/assets/_-4rQc6S0.js.br +0 -0
- package/dist/public/assets/{_CzWr4WDS.js → _-TzDlcUm.js} +1 -1
- package/dist/public/assets/_-TzDlcUm.js.br +0 -0
- package/dist/public/assets/{_DPZvn_Ns.js → _0p5jUG5E.js} +1 -1
- package/dist/public/assets/_0p5jUG5E.js.br +0 -0
- package/dist/public/assets/{_C0oWdnE5.js → _4q9fduYo.js} +1 -1
- package/dist/public/assets/_4q9fduYo.js.br +0 -0
- package/dist/public/assets/{_DhkDcW9a.js → _7u4ldBIM.js} +1 -1
- package/dist/public/assets/_7u4ldBIM.js.br +0 -0
- package/dist/public/assets/{_um1Uylai.js → _AlVQz3lf.js} +1 -1
- package/dist/public/assets/_AlVQz3lf.js.br +0 -0
- package/dist/public/assets/{_BXzA1hkF.js → _AzliKxKZ.js} +1 -1
- package/dist/public/assets/_AzliKxKZ.js.br +0 -0
- package/dist/public/assets/{_BxtJHtVP.js → _B-_UzMFD.js} +1 -1
- package/dist/public/assets/_B-_UzMFD.js.br +0 -0
- package/dist/public/assets/{_Co5f57QZ2.js → _B0RbM4pA2.js} +1 -1
- package/dist/public/assets/_B0RbM4pA2.js.br +0 -0
- package/dist/public/assets/{_DS46Nokf2.js → _B9UdBbKa2.js} +1 -1
- package/dist/public/assets/_B9UdBbKa2.js.br +0 -0
- package/dist/public/assets/{_DJbEi800.js → _BDVm2J93.js} +1 -1
- package/dist/public/assets/_BDVm2J93.js.br +0 -0
- package/dist/public/assets/{_Bt7Eey0L.js → _BFASs7Ca.js} +1 -1
- package/dist/public/assets/_BFASs7Ca.js.br +0 -0
- package/dist/public/assets/{_Cd9v1nzp.js → _BK1X5zm6.js} +1 -1
- package/dist/public/assets/_BK1X5zm6.js.br +0 -0
- package/dist/public/assets/{_Cjp1_INh2.js → _BLYyrfYa2.js} +1 -1
- package/dist/public/assets/_BLYyrfYa2.js.br +0 -0
- package/dist/public/assets/{_BZZMGQsS2.js → _BN9x9rMF2.js} +1 -1
- package/dist/public/assets/{_DmhFYJm3.js → _BOyZYNyE.js} +1 -1
- package/dist/public/assets/_BOyZYNyE.js.br +0 -0
- package/dist/public/assets/{_DTl3WJKW2.js → _BQnq2_B62.js} +1 -1
- package/dist/public/assets/_BQnq2_B62.js.br +0 -0
- package/dist/public/assets/{_ANZIBcq8.js → _BREni51P.js} +1 -1
- package/dist/public/assets/_BREni51P.js.br +0 -0
- package/dist/public/assets/{_h4RVOlAc2.js → _BStNf75r2.js} +1 -1
- package/dist/public/assets/_BStNf75r2.js.br +0 -0
- package/dist/public/assets/{_CTZYzJI9.js → _BZIUSa0D.js} +1 -1
- package/dist/public/assets/_BZIUSa0D.js.br +0 -0
- package/dist/public/assets/{_DSSFuJur.js → _BcuInNx1.js} +1 -1
- package/dist/public/assets/_BcuInNx1.js.br +0 -0
- package/dist/public/assets/{_CtUpTTh_2.js → _Bhh_otkw2.js} +1 -1
- package/dist/public/assets/_Bhh_otkw2.js.br +0 -0
- package/dist/public/assets/{_D6rlRNb42.js → _BrqzYDoJ2.js} +1 -1
- package/dist/public/assets/_BrqzYDoJ2.js.br +0 -0
- package/dist/public/assets/{_Dkkv3pWr2.js → _Bwp6Zco22.js} +1 -1
- package/dist/public/assets/_Bwp6Zco22.js.br +0 -0
- package/dist/public/assets/{_ClePGw1Q2.js → _BzdNvqWQ2.js} +1 -1
- package/dist/public/assets/_BzdNvqWQ2.js.br +0 -0
- package/dist/public/assets/{_DmR5fI7m2.js → _C3s-lyCw2.js} +1 -1
- package/dist/public/assets/_C3s-lyCw2.js.br +0 -0
- package/dist/public/assets/{_BZMQNYA92.js → _C52nWJnM2.js} +1 -1
- package/dist/public/assets/_C52nWJnM2.js.br +0 -0
- package/dist/public/assets/{_Bdd-EVvo.js → _C5d_hWgs.js} +1 -1
- package/dist/public/assets/_C5d_hWgs.js.br +0 -0
- package/dist/public/assets/{_BglwyDVi.js → _C9j3tErx.js} +1 -1
- package/dist/public/assets/_C9j3tErx.js.br +0 -0
- package/dist/public/assets/{_BQWd9iua.js → _CA604V0E.js} +1 -1
- package/dist/public/assets/_CA604V0E.js.br +0 -0
- package/dist/public/assets/{_CozR6WAm.js → _CGIac9NZ.js} +1 -1
- package/dist/public/assets/_CGIac9NZ.js.br +0 -0
- package/dist/public/assets/{_BdKJVs01.js → _CGf-t6Ca.js} +1 -1
- package/dist/public/assets/_CGf-t6Ca.js.br +0 -0
- package/dist/public/assets/{_DqeMgS1a2.js → _CHiZDWP_2.js} +1 -1
- package/dist/public/assets/_CHiZDWP_2.js.br +0 -0
- package/dist/public/assets/{_BosbXyNb2.js → _CLtahdJU2.js} +1 -1
- package/dist/public/assets/_CLtahdJU2.js.br +0 -0
- package/dist/public/assets/{_Daxa4EBi.js → _CO4B6mZw.js} +1 -1
- package/dist/public/assets/_CO4B6mZw.js.br +0 -0
- package/dist/public/assets/{_CpF0eDyO2.js → _CRHTf8ad2.js} +1 -1
- package/dist/public/assets/_CRHTf8ad2.js.br +0 -0
- package/dist/public/assets/{_CHrLzFRU2.js → _CRk3NfF62.js} +1 -1
- package/dist/public/assets/_CRk3NfF62.js.br +0 -0
- package/dist/public/assets/{_Cf3MmuUY.js → _CSZno8YQ.js} +1 -1
- package/dist/public/assets/_CSZno8YQ.js.br +0 -0
- package/dist/public/assets/{_B1kAPDJf.js → _CUOamqpg.js} +1 -1
- package/dist/public/assets/_CUOamqpg.js.br +0 -0
- package/dist/public/assets/{_c0RV9ZTi.js → _CW-FNnbW.js} +1 -1
- package/dist/public/assets/_CW-FNnbW.js.br +0 -0
- package/dist/public/assets/{_Cuf3C8O12.js → _CXEtlPDj2.js} +1 -1
- package/dist/public/assets/_CXEtlPDj2.js.br +0 -0
- package/dist/public/assets/{_BAe2Rkst.js → _CYoE8ZP0.js} +1 -1
- package/dist/public/assets/_CYoE8ZP0.js.br +0 -0
- package/dist/public/assets/{_BvXRPJdv.js → _CbZ6lydj.js} +1 -1
- package/dist/public/assets/_CbZ6lydj.js.br +0 -0
- package/dist/public/assets/{_Dd2aGpDJ.js → _CmrFQoIw.js} +1 -1
- package/dist/public/assets/_CmrFQoIw.js.br +0 -0
- package/dist/public/assets/{_OrWHmnP_.js → _CnDHMPmv.js} +1 -1
- package/dist/public/assets/_CnDHMPmv.js.br +0 -0
- package/dist/public/assets/{_ror9VoLz.js → _CoV5FuXb.js} +1 -1
- package/dist/public/assets/_CoV5FuXb.js.br +0 -0
- package/dist/public/assets/{_BepwNj2c.js → _CunMhrFs.js} +1 -1
- package/dist/public/assets/_CunMhrFs.js.br +0 -0
- package/dist/public/assets/{_-OkpjNFC2.js → _Cvby4jcX2.js} +1 -1
- package/dist/public/assets/_Cvby4jcX2.js.br +0 -0
- package/dist/public/assets/{_DsZJYF5S.js → _Cw2xJE3Q.js} +5 -5
- package/dist/public/assets/_Cw2xJE3Q.js.br +0 -0
- package/dist/public/assets/{_CWmZT485.js → _D1hzBooi.js} +1 -1
- package/dist/public/assets/_D1hzBooi.js.br +0 -0
- package/dist/public/assets/{_CnOIrHd4.js → _D1zaFfpm.js} +1 -1
- package/dist/public/assets/_D1zaFfpm.js.br +0 -0
- package/dist/public/assets/{_DypMRhyB.js → _DGigB5ux.js} +1 -1
- package/dist/public/assets/_DGigB5ux.js.br +0 -0
- package/dist/public/assets/{__yh22OJv2.js → _DI0ixq5J2.js} +1 -1
- package/dist/public/assets/_DI0ixq5J2.js.br +0 -0
- package/dist/public/assets/{_BsogDiXx.js → _DIX9qZgy.js} +1 -1
- package/dist/public/assets/{_C2I7cHEj.js → _DNEx3MHQ.js} +1 -1
- package/dist/public/assets/_DNEx3MHQ.js.br +0 -0
- package/dist/public/assets/{_BgR6JlxP.js → _DOTmS0cp.js} +1 -1
- package/dist/public/assets/_DOTmS0cp.js.br +0 -0
- package/dist/public/assets/{_CZzND5iW.js → _DPhdKkX7.js} +1 -1
- package/dist/public/assets/_DPhdKkX7.js.br +0 -0
- package/dist/public/assets/{_WWEgOS99.js → _D_k27192.js} +1 -1
- package/dist/public/assets/_D_k27192.js.br +0 -0
- package/dist/public/assets/{_7zKhgk70.js → _Da7xivlw.js} +1 -1
- package/dist/public/assets/_Da7xivlw.js.br +0 -0
- package/dist/public/assets/{_B1q1XEz1.js → _DhD7iarp.js} +1 -1
- package/dist/public/assets/_DhD7iarp.js.br +0 -0
- package/dist/public/assets/{_Ct4X_xxt.js → _DhWV-hm_.js} +1 -1
- package/dist/public/assets/_DhWV-hm_.js.br +0 -0
- package/dist/public/assets/{_BiDu7TT-.js → _DjlRIb7O.js} +1 -1
- package/dist/public/assets/_DjlRIb7O.js.br +0 -0
- package/dist/public/assets/{_LpvSvw1m.js → _Dpjn3Zkk.js} +1 -1
- package/dist/public/assets/_Dpjn3Zkk.js.br +0 -0
- package/dist/public/assets/{_k8EORKKh.js → _Due1zaTU.js} +1 -1
- package/dist/public/assets/_Due1zaTU.js.br +0 -0
- package/dist/public/assets/{_DieSr1Ar.js → _DwiKTjYM.js} +1 -1
- package/dist/public/assets/_DwiKTjYM.js.br +0 -0
- package/dist/public/assets/{_Dxgr5ZEE2.js → _Fxp36R1K2.js} +1 -1
- package/dist/public/assets/_Fxp36R1K2.js.br +0 -0
- package/dist/public/assets/{_DDIsmVeS.js → _Gzy1T1Uq.js} +1 -1
- package/dist/public/assets/_Gzy1T1Uq.js.br +0 -0
- package/dist/public/assets/{_BMRMEvO7.js → _K_omKo5s.js} +1 -1
- package/dist/public/assets/_K_omKo5s.js.br +0 -0
- package/dist/public/assets/{_DEMYRqVb.js → _aTVI86n_.js} +1 -1
- package/dist/public/assets/_aTVI86n_.js.br +0 -0
- package/dist/public/assets/{_By0A-jZS2.js → _muO7pl2P2.js} +1 -1
- package/dist/public/assets/_muO7pl2P2.js.br +0 -0
- package/dist/public/assets/{_DHn-Con42.js → _mvWY_P_T2.js} +1 -1
- package/dist/public/assets/_mvWY_P_T2.js.br +0 -0
- package/dist/public/assets/{_BY6UBzWo2.js → _p_tshFXB2.js} +1 -1
- package/dist/public/assets/{_z-TE6bLm2.js → _sH82j4gw2.js} +1 -1
- package/dist/public/assets/_sH82j4gw2.js.br +0 -0
- package/dist/public/assets/{_De6QD9bA.js → _tzax89UV.js} +1 -1
- package/dist/public/assets/_tzax89UV.js.br +0 -0
- package/dist/public/assets/{_DDHqFyT6.js → _zR9oOODl.js} +1 -1
- package/dist/public/assets/_zR9oOODl.js.br +0 -0
- package/dist/public/assets/{diff-view-Cb9k_CUr.css → diff-view-DaZR4b3i.css} +1 -1
- package/dist/public/assets/diff-view-DaZR4b3i.css.br +0 -0
- package/dist/public/assets/index-BJvGjZ42.css +1 -0
- package/dist/public/assets/index-BJvGjZ42.css.br +0 -0
- package/dist/public/assets/{index-g4T1J5qh.js → index-CL4dPVfR.js} +3 -3
- package/dist/public/assets/index-CL4dPVfR.js.br +0 -0
- package/package.json +1 -1
- package/dist/public/assets/_-OkpjNFC2.js.br +0 -0
- package/dist/public/assets/_7zKhgk70.js.br +0 -0
- package/dist/public/assets/_ANZIBcq8.js.br +0 -0
- package/dist/public/assets/_B1kAPDJf.js.br +0 -0
- package/dist/public/assets/_B1q1XEz1.js.br +0 -0
- package/dist/public/assets/_BAe2Rkst.js.br +0 -0
- package/dist/public/assets/_BMRMEvO7.js.br +0 -0
- package/dist/public/assets/_BQWd9iua.js.br +0 -0
- package/dist/public/assets/_BXzA1hkF.js.br +0 -0
- package/dist/public/assets/_BZMQNYA92.js.br +0 -0
- package/dist/public/assets/_BdKJVs01.js.br +0 -0
- package/dist/public/assets/_Bdd-EVvo.js.br +0 -0
- package/dist/public/assets/_BepwNj2c.js.br +0 -0
- package/dist/public/assets/_BgR6JlxP.js.br +0 -0
- package/dist/public/assets/_BglwyDVi.js.br +0 -0
- package/dist/public/assets/_BiDu7TT-.js.br +0 -0
- package/dist/public/assets/_BosbXyNb2.js.br +0 -0
- package/dist/public/assets/_Bt7Eey0L.js.br +0 -0
- package/dist/public/assets/_BvXRPJdv.js.br +0 -0
- package/dist/public/assets/_BxtJHtVP.js.br +0 -0
- package/dist/public/assets/_By0A-jZS2.js.br +0 -0
- package/dist/public/assets/_C0oWdnE5.js.br +0 -0
- package/dist/public/assets/_C2I7cHEj.js.br +0 -0
- package/dist/public/assets/_CHrLzFRU2.js.br +0 -0
- package/dist/public/assets/_COh_iyNM.js.br +0 -0
- package/dist/public/assets/_CTZYzJI9.js.br +0 -0
- package/dist/public/assets/_CWmZT485.js.br +0 -0
- package/dist/public/assets/_CZzND5iW.js.br +0 -0
- package/dist/public/assets/_Cd9v1nzp.js.br +0 -0
- package/dist/public/assets/_Cf3MmuUY.js.br +0 -0
- package/dist/public/assets/_Cjp1_INh2.js.br +0 -0
- package/dist/public/assets/_ClePGw1Q2.js.br +0 -0
- package/dist/public/assets/_CnOIrHd4.js.br +0 -0
- package/dist/public/assets/_Co5f57QZ2.js.br +0 -0
- package/dist/public/assets/_CozR6WAm.js.br +0 -0
- package/dist/public/assets/_CpF0eDyO2.js.br +0 -0
- package/dist/public/assets/_Ct4X_xxt.js.br +0 -0
- package/dist/public/assets/_CtUpTTh_2.js.br +0 -0
- package/dist/public/assets/_Cuf3C8O12.js.br +0 -0
- package/dist/public/assets/_CzWr4WDS.js.br +0 -0
- package/dist/public/assets/_D6rlRNb42.js.br +0 -0
- package/dist/public/assets/_DDHqFyT6.js.br +0 -0
- package/dist/public/assets/_DDIsmVeS.js.br +0 -0
- package/dist/public/assets/_DEMYRqVb.js.br +0 -0
- package/dist/public/assets/_DHn-Con42.js.br +0 -0
- package/dist/public/assets/_DJbEi800.js.br +0 -0
- package/dist/public/assets/_DPZvn_Ns.js.br +0 -0
- package/dist/public/assets/_DS46Nokf2.js.br +0 -0
- package/dist/public/assets/_DSSFuJur.js.br +0 -0
- package/dist/public/assets/_DTl3WJKW2.js.br +0 -0
- package/dist/public/assets/_Daxa4EBi.js.br +0 -0
- package/dist/public/assets/_Dd2aGpDJ.js.br +0 -0
- package/dist/public/assets/_De6QD9bA.js.br +0 -0
- package/dist/public/assets/_DhkDcW9a.js.br +0 -0
- package/dist/public/assets/_DieSr1Ar.js.br +0 -0
- package/dist/public/assets/_Dkkv3pWr2.js.br +0 -0
- package/dist/public/assets/_DmR5fI7m2.js.br +0 -0
- package/dist/public/assets/_DmhFYJm3.js.br +0 -0
- package/dist/public/assets/_DqeMgS1a2.js.br +0 -0
- package/dist/public/assets/_DsZJYF5S.js.br +0 -0
- package/dist/public/assets/_Dxgr5ZEE2.js.br +0 -0
- package/dist/public/assets/_DypMRhyB.js.br +0 -0
- package/dist/public/assets/_LpvSvw1m.js.br +0 -0
- package/dist/public/assets/_OrWHmnP_.js.br +0 -0
- package/dist/public/assets/_WWEgOS99.js.br +0 -0
- package/dist/public/assets/__yh22OJv2.js.br +0 -0
- package/dist/public/assets/_c0RV9ZTi.js.br +0 -0
- package/dist/public/assets/_h4RVOlAc2.js.br +0 -0
- package/dist/public/assets/_k8EORKKh.js.br +0 -0
- package/dist/public/assets/_ror9VoLz.js.br +0 -0
- package/dist/public/assets/_um1Uylai.js.br +0 -0
- package/dist/public/assets/_z-TE6bLm2.js.br +0 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css.br +0 -0
- package/dist/public/assets/index-BTS1WPEB.css +0 -1
- package/dist/public/assets/index-BTS1WPEB.css.br +0 -0
- package/dist/public/assets/index-g4T1J5qh.js.br +0 -0
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 get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./_Bi2N56tu.js";
|
|
3
|
-
import { $ as _set_serialize_reason, A as _dynamic_tag, B as _html, C as _attr_select_value, D as _await, E as _attrs_partial, F as _existing_scope, G as _resume_branch, H as _if, I as _flush_head, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, O as _content, P as _escape, Q as _serialize_if, R as _hoist, S as _attr_option_value, T as _attrs, U as _peek_scope_id, V as _id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, _ as $global, at as _trailers, c as sideNavOpen, ct as attrTag, d as rankRepos, et as _show_end, f as icon_refresh_default, g as phase, h as btnSm, i as icon_sidebar_default, it as _to_text, k as _content_resume, l as workspaceTab, lt as withPageAssets, m as toast_default, n as findIconBtn, nt as _subscribe, ot as _try, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, s as setWorkspaceTab, st as _var, tt as _show_start, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class, z as _hoist_read_error } from "./
|
|
3
|
+
import { $ as _set_serialize_reason, A as _dynamic_tag, B as _html, C as _attr_select_value, D as _await, E as _attrs_partial, F as _existing_scope, G as _resume_branch, H as _if, I as _flush_head, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, O as _content, P as _escape, Q as _serialize_if, R as _hoist, S as _attr_option_value, T as _attrs, U as _peek_scope_id, V as _id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, _ as $global, at as _trailers, c as sideNavOpen, ct as attrTag, d as rankRepos, et as _show_end, f as icon_refresh_default, g as phase, h as btnSm, i as icon_sidebar_default, it as _to_text, k as _content_resume, l as workspaceTab, lt as withPageAssets, m as toast_default, n as findIconBtn, nt as _subscribe, ot as _try, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, s as setWorkspaceTab, st as _var, tt as _show_start, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class, z as _hoist_read_error } from "./_de1ZuRrB.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3085,11 +3085,11 @@ function agentFromCommand(command) {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
//#endregion
|
|
3087
3087
|
//#region src/tags/settings-page.css.ts
|
|
3088
|
-
var content$2 = "_bW
|
|
3088
|
+
var content$2 = "_bW _4 _5";
|
|
3089
3089
|
var agentGrid = "_b0 _bI";
|
|
3090
3090
|
var defaultTag = "_b6 _bP";
|
|
3091
3091
|
var toolGrid = "_cc _bI";
|
|
3092
|
-
var iconBtn$3 = "_bU
|
|
3092
|
+
var iconBtn$3 = "_bU _D";
|
|
3093
3093
|
//#endregion
|
|
3094
3094
|
//#region src/tags/icons/icon-agent.marko
|
|
3095
3095
|
var PATHS = {
|
|
@@ -3109,7 +3109,7 @@ var icon_agent_default = _template("z", (input) => {
|
|
|
3109
3109
|
_if(() => {
|
|
3110
3110
|
if (d) {
|
|
3111
3111
|
const $scope1_id = _scope_id();
|
|
3112
|
-
_html(`<svg${_attr_class(["
|
|
3112
|
+
_html(`<svg${_attr_class(["_d", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
|
|
3113
3113
|
_if(() => {
|
|
3114
3114
|
if (badge) {
|
|
3115
3115
|
const $scope3_id = _scope_id();
|
|
@@ -3267,7 +3267,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3267
3267
|
const $scope2_id = _scope_id();
|
|
3268
3268
|
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3269
3269
|
dialog_close_default({
|
|
3270
|
-
class: ["
|
|
3270
|
+
class: ["_h", "_i"],
|
|
3271
3271
|
content: _content("l0", () => {
|
|
3272
3272
|
_scope_reason();
|
|
3273
3273
|
_scope_id();
|
|
@@ -3331,9 +3331,9 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3331
3331
|
footer: attrTag({ content: _content_resume("o5", () => {
|
|
3332
3332
|
_scope_reason();
|
|
3333
3333
|
const $scope1_id = _scope_id();
|
|
3334
|
-
_html(`<button type=button${_attr_class(["
|
|
3334
|
+
_html(`<button type=button${_attr_class(["_h", "_i"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_r")}></div>`);
|
|
3335
3335
|
dialog_close_default({
|
|
3336
|
-
class: "
|
|
3336
|
+
class: "_h",
|
|
3337
3337
|
content: _content("o2", () => {
|
|
3338
3338
|
_scope_reason();
|
|
3339
3339
|
_scope_id();
|
|
@@ -3571,7 +3571,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3571
3571
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "q15", $scope0_id);
|
|
3572
3572
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3573
3573
|
const titleId = _id();
|
|
3574
|
-
_html(`<div${_attr_class("
|
|
3574
|
+
_html(`<div${_attr_class("_2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_3")}><div${_attr_class(content$2)}><header${_attr_class("_6")}><div${_attr_class("_8")}><h1${_attr("id", titleId)}${_attr_class("_7")}>Settings</h1><p${_attr_class("_9")}>`);
|
|
3575
3575
|
_if(() => {
|
|
3576
3576
|
if (!setup) {
|
|
3577
3577
|
const $scope39_id = _scope_id();
|
|
@@ -3590,12 +3590,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3590
3590
|
return 2;
|
|
3591
3591
|
}
|
|
3592
3592
|
}, $scope0_id, "g", 1, 1, 1, "</p>");
|
|
3593
|
-
_html(`</div><div${_attr_class("
|
|
3593
|
+
_html(`</div><div${_attr_class("__")}><button${_attr_class(iconBtn$3)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
3594
3594
|
_set_serialize_reason(1);
|
|
3595
3595
|
const $childScope = _peek_scope_id();
|
|
3596
3596
|
icon_refresh_default({
|
|
3597
3597
|
size: 14,
|
|
3598
|
-
class: refreshing && "
|
|
3598
|
+
class: refreshing && "_x"
|
|
3599
3599
|
});
|
|
3600
3600
|
_html(`</button>${_el_resume($scope0_id, "i")}</div></header>`);
|
|
3601
3601
|
_if(() => {
|
|
@@ -3618,11 +3618,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3618
3618
|
return 0;
|
|
3619
3619
|
}
|
|
3620
3620
|
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
3621
|
-
_html(`<section${_attr_class("_bF")} aria-labelledby=settings-agents><div${_attr_class("_bG")}><h2 id=settings-agents${_attr_class("_bV")}>Agents</h2><div${_attr_class("
|
|
3621
|
+
_html(`<section${_attr_class("_bF")} aria-labelledby=settings-agents><div${_attr_class("_bG")}><h2 id=settings-agents${_attr_class("_bV")}>Agents</h2><div${_attr_class("_r")}></div><label${_attr_class("_b2")}><span${_attr_class("_b3")}>Default</span><span${_attr_class("_f")}>`);
|
|
3622
3622
|
_attr_select_value($scope0_id, "s", input.preferred, _resume(function(v) {
|
|
3623
3623
|
setPreferred(v);
|
|
3624
3624
|
}, "q0", $scope0_id), () => {
|
|
3625
|
-
_html(`<select${_attr_class(["
|
|
3625
|
+
_html(`<select${_attr_class(["_g", "_b4"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
|
|
3626
3626
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3627
3627
|
const $scope41_id = _scope_id();
|
|
3628
3628
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope41_id, "b", $sg__input_agents)}</option>${_el_resume($scope41_id, "a", $sg__input_agents)}`);
|
|
@@ -3634,7 +3634,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3634
3634
|
const $childScope2 = _peek_scope_id();
|
|
3635
3635
|
icon_refresh_default({
|
|
3636
3636
|
size: 14,
|
|
3637
|
-
class: usageRefreshing && "
|
|
3637
|
+
class: usageRefreshing && "_x"
|
|
3638
3638
|
});
|
|
3639
3639
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(agentGrid)}>`);
|
|
3640
3640
|
_for_of(families, (a) => {
|
|
@@ -3663,7 +3663,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3663
3663
|
_if(() => {
|
|
3664
3664
|
if (active.has(a.id)) {
|
|
3665
3665
|
const $scope8_id = _scope_id();
|
|
3666
|
-
_html(`<span${_attr_class("_bX")}><span${_attr_class("
|
|
3666
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope8_id, "c")}</span>`);
|
|
3667
3667
|
_subscribe($active__closures, writeScope($scope8_id, {}));
|
|
3668
3668
|
return 0;
|
|
3669
3669
|
} else if (!a.installed) {
|
|
@@ -3707,7 +3707,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3707
3707
|
agent: inst.id,
|
|
3708
3708
|
size: 15
|
|
3709
3709
|
});
|
|
3710
|
-
_html(`<span${_attr_class(["_ca", "
|
|
3710
|
+
_html(`<span${_attr_class(["_ca", "_q"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3711
3711
|
_if(() => {
|
|
3712
3712
|
if (input.preferred === inst.id) {
|
|
3713
3713
|
const $scope44_id = _scope_id();
|
|
@@ -3716,7 +3716,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3716
3716
|
return 0;
|
|
3717
3717
|
}
|
|
3718
3718
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
3719
|
-
_html(`<span${_attr_class("
|
|
3719
|
+
_html(`<span${_attr_class("_r")}></span><button${_attr_class(["_b8", { ["_b7"]: inst.enabled }])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
3720
3720
|
_for_of(accounts, (u) => {
|
|
3721
3721
|
const $scope45_id = _scope_id();
|
|
3722
3722
|
_set_serialize_reason(6);
|
|
@@ -3789,7 +3789,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3789
3789
|
_if(() => {
|
|
3790
3790
|
if (!usage && families.length) {
|
|
3791
3791
|
const $scope49_id = _scope_id();
|
|
3792
|
-
_html(`<p${_attr_class("_bT")}><span${_attr_class("
|
|
3792
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_y")}></span> Loading usage…</p>`);
|
|
3793
3793
|
writeScope($scope49_id, {});
|
|
3794
3794
|
return 0;
|
|
3795
3795
|
} else if (usage?.error) {
|
|
@@ -3803,7 +3803,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3803
3803
|
_for_of(setup?.github || [], (h) => {
|
|
3804
3804
|
const $scope9_id = _scope_id();
|
|
3805
3805
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3806
|
-
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class(["_bM", "
|
|
3806
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class(["_bM", "_q"])}>${_escape(h.host)}${_el_resume($scope9_id, "e")}</span>`);
|
|
3807
3807
|
_if(() => {
|
|
3808
3808
|
if (h.isEnterprise) {
|
|
3809
3809
|
const $scope52_id = _scope_id();
|
|
@@ -3816,12 +3816,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3816
3816
|
_if(() => {
|
|
3817
3817
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3818
3818
|
const $scope20_id = _scope_id();
|
|
3819
|
-
_html(`<span${_attr_class("_bX")}><span${_attr_class("
|
|
3819
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span> Enter code <strong${_attr_class("_cn")}>${_escape(authCodes.get(h.host))}${_el_resume($scope20_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_co")}>${_escape(h.host)}${_el_resume($scope20_id, "f")}/login/device</a>${_el_resume($scope20_id, "e")}</span>`);
|
|
3820
3820
|
_subscribe($authCodes__closures, writeScope($scope20_id, {}));
|
|
3821
3821
|
return 0;
|
|
3822
3822
|
} else if (active.has(h.host)) {
|
|
3823
3823
|
const $scope10_id = _scope_id();
|
|
3824
|
-
_html(`<span${_attr_class("_bX")}><span${_attr_class("
|
|
3824
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3825
3825
|
_subscribe($active__closures, writeScope($scope10_id, { Cch: 1 }));
|
|
3826
3826
|
return 1;
|
|
3827
3827
|
} else if (h.authed) {
|
|
@@ -3910,7 +3910,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3910
3910
|
return 0;
|
|
3911
3911
|
}
|
|
3912
3912
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
3913
|
-
_html(`<div${_attr_class("
|
|
3913
|
+
_html(`<div${_attr_class("_r")}></div>`);
|
|
3914
3914
|
_if(() => {
|
|
3915
3915
|
if (outdatedIds.length > 1) {
|
|
3916
3916
|
const $scope11_id = _scope_id();
|
|
@@ -3951,11 +3951,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3951
3951
|
"_bK",
|
|
3952
3952
|
"_cd",
|
|
3953
3953
|
{ ["_ce"]: !t.installed }
|
|
3954
|
-
])}><span${_attr_class(["_cf", "
|
|
3954
|
+
])}><span${_attr_class(["_cf", "_q"])}>${_escape(t.label)}${_el_resume($scope14_id, "c")}</span>`);
|
|
3955
3955
|
_if(() => {
|
|
3956
3956
|
if (active.has(t.id)) {
|
|
3957
3957
|
const $scope15_id = _scope_id();
|
|
3958
|
-
_html(`<span${_attr_class("_bX")}><span${_attr_class("
|
|
3958
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope15_id, "c")}</span>`);
|
|
3959
3959
|
_subscribe($active__closures, writeScope($scope15_id, { Cch: 2 }));
|
|
3960
3960
|
return 0;
|
|
3961
3961
|
} else if (t.installed) {
|
|
@@ -3963,13 +3963,13 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3963
3963
|
_if(() => {
|
|
3964
3964
|
if (t.version) {
|
|
3965
3965
|
const $scope27_id = _scope_id();
|
|
3966
|
-
_html(`<button${_attr_class(["_ch", "
|
|
3966
|
+
_html(`<button${_attr_class(["_ch", "_q"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
|
|
3967
3967
|
_script($scope27_id, "q29");
|
|
3968
3968
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope27_id, { Cu: 1 }))));
|
|
3969
3969
|
return 0;
|
|
3970
3970
|
} else {
|
|
3971
3971
|
const $scope54_id = _scope_id();
|
|
3972
|
-
_html(`<span${_attr_class(["_cg", "
|
|
3972
|
+
_html(`<span${_attr_class(["_cg", "_q"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope54_id, "b")}</span>${_el_resume($scope54_id, "a")}`);
|
|
3973
3973
|
_subscribe($for_content4__t_path__closures, writeScope($scope54_id, { Cx: 1 }));
|
|
3974
3974
|
return 1;
|
|
3975
3975
|
}
|
|
@@ -3997,7 +3997,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3997
3997
|
return 3;
|
|
3998
3998
|
}
|
|
3999
3999
|
}, $scope14_id, "d");
|
|
4000
|
-
_html(`<span${_attr_class("
|
|
4000
|
+
_html(`<span${_attr_class("_r")}></span>`);
|
|
4001
4001
|
_if(() => {
|
|
4002
4002
|
if (!active.has(t.id)) {
|
|
4003
4003
|
const $scope23_id = _scope_id();
|
|
@@ -4061,11 +4061,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4061
4061
|
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4062
4062
|
_for_of(hits, (h) => {
|
|
4063
4063
|
const $scope18_id = _scope_id();
|
|
4064
|
-
_html(`<li${_attr_class(["_bK", "_cd"])}><div${_attr_class("_bL")}><span${_attr_class(["_cf", "
|
|
4064
|
+
_html(`<li${_attr_class(["_bK", "_cd"])}><div${_attr_class("_bL")}><span${_attr_class(["_cf", "_q"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
4065
4065
|
_if(() => {
|
|
4066
4066
|
if (active.has(h.name)) {
|
|
4067
4067
|
const $scope19_id = _scope_id();
|
|
4068
|
-
_html(`<span${_attr_class("_bX")}><span${_attr_class("
|
|
4068
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
4069
4069
|
_subscribe($active__closures, writeScope($scope19_id, { Cch: 4 }));
|
|
4070
4070
|
return 0;
|
|
4071
4071
|
} else if (h.description) {
|
|
@@ -4208,8 +4208,8 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4208
4208
|
});
|
|
4209
4209
|
//#endregion
|
|
4210
4210
|
//#region src/tags/new-workspace.css.ts
|
|
4211
|
-
var content$1 = "
|
|
4212
|
-
var iconBtn$2 = "
|
|
4211
|
+
var content$1 = "_ba _4";
|
|
4212
|
+
var iconBtn$2 = "_bd _D";
|
|
4213
4213
|
//#endregion
|
|
4214
4214
|
//#region src/tags/icons/icon-plus.marko
|
|
4215
4215
|
var icon_plus_default = _template("M", (input) => {
|
|
@@ -4276,14 +4276,14 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4276
4276
|
input.onError?.(String(err.message || err));
|
|
4277
4277
|
}
|
|
4278
4278
|
}, "p5", $scope0_id);
|
|
4279
|
-
_html(`<div${_attr_class("
|
|
4279
|
+
_html(`<div${_attr_class("_cD")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
|
|
4280
4280
|
filter = v;
|
|
4281
4281
|
highlight = 0;
|
|
4282
|
-
}, "p0", $scope0_id))}${_attr_class("
|
|
4282
|
+
}, "p0", $scope0_id))}${_attr_class("_cP")} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
|
|
4283
4283
|
_if(() => {
|
|
4284
4284
|
if (filter && !catalog) {
|
|
4285
4285
|
const $scope8_id = _scope_id();
|
|
4286
|
-
_html(`<p${_attr_class("
|
|
4286
|
+
_html(`<p${_attr_class("_cO")}>Loading repos…</p>`);
|
|
4287
4287
|
writeScope($scope8_id, {});
|
|
4288
4288
|
return 0;
|
|
4289
4289
|
}
|
|
@@ -4291,23 +4291,23 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4291
4291
|
_if(() => {
|
|
4292
4292
|
if (results.length) {
|
|
4293
4293
|
const $scope2_id = _scope_id();
|
|
4294
|
-
_html(`<ul${_attr_class("
|
|
4294
|
+
_html(`<ul${_attr_class("_cE")}>`);
|
|
4295
4295
|
_for_of(results, (repo, i) => {
|
|
4296
4296
|
const $scope3_id = _scope_id();
|
|
4297
|
-
_html(`<li><div${_attr_class(["
|
|
4297
|
+
_html(`<li><div${_attr_class(["_cG", { ["_cF"]: i === highlight }])}><button${_attr_class("_cH")}>`);
|
|
4298
4298
|
icon_plus_default({
|
|
4299
4299
|
size: 12,
|
|
4300
|
-
class: "
|
|
4300
|
+
class: "_cM"
|
|
4301
4301
|
});
|
|
4302
|
-
_html(`<span${_attr_class("
|
|
4302
|
+
_html(`<span${_attr_class("_cN")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class(["_cJ", { ["_cI"]: 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($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
4303
4303
|
_if(() => {
|
|
4304
4304
|
if (branchesFor === repo.nameWithOwner) {
|
|
4305
4305
|
const $scope4_id = _scope_id();
|
|
4306
|
-
_html(`<div${_attr_class("
|
|
4306
|
+
_html(`<div${_attr_class("_cK")}>`);
|
|
4307
4307
|
_if(() => {
|
|
4308
4308
|
if (!branches) {
|
|
4309
4309
|
const $scope9_id = _scope_id();
|
|
4310
|
-
_html(`<p${_attr_class("
|
|
4310
|
+
_html(`<p${_attr_class("_cO")}><span${_attr_class("_y")}></span> Loading branches…</p>`);
|
|
4311
4311
|
writeScope($scope9_id, {});
|
|
4312
4312
|
return 0;
|
|
4313
4313
|
} else {
|
|
@@ -4317,24 +4317,24 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4317
4317
|
const $scope6_id = _scope_id();
|
|
4318
4318
|
_html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
|
|
4319
4319
|
branchFilter = _new_branchFilter;
|
|
4320
|
-
}, "p1", $scope6_id))}${_attr_class("
|
|
4320
|
+
}, "p1", $scope6_id))}${_attr_class("_cQ")} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
|
|
4321
4321
|
_script($scope6_id, "p6");
|
|
4322
4322
|
_subscribe($branchFilter__closures, writeScope($scope6_id, { Ca9: 1 }));
|
|
4323
4323
|
return 0;
|
|
4324
4324
|
}
|
|
4325
4325
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4326
4326
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4327
|
-
_html(`<ul${_attr_class("
|
|
4327
|
+
_html(`<ul${_attr_class("_cL")}>`);
|
|
4328
4328
|
_for_of(shown, (branch) => {
|
|
4329
4329
|
const $scope7_id = _scope_id();
|
|
4330
|
-
_html(`<li><button${_attr_class(["
|
|
4330
|
+
_html(`<li><button${_attr_class(["_cH", "_cR"])}><span${_attr_class(["_cN", "_q"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4331
4331
|
_script($scope7_id, "p7");
|
|
4332
4332
|
writeScope($scope7_id, { e: branch });
|
|
4333
4333
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
4334
4334
|
_if(() => {
|
|
4335
4335
|
if (!shown.length) {
|
|
4336
4336
|
const $scope10_id = _scope_id();
|
|
4337
|
-
_html(`<li><p${_attr_class("
|
|
4337
|
+
_html(`<li><p${_attr_class("_cO")}>No branches match.</p></li>`);
|
|
4338
4338
|
writeScope($scope10_id, {});
|
|
4339
4339
|
return 0;
|
|
4340
4340
|
}
|
|
@@ -4359,7 +4359,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4359
4359
|
return 0;
|
|
4360
4360
|
} else if (filter && catalog) {
|
|
4361
4361
|
const $scope1_id = _scope_id();
|
|
4362
|
-
_html(`<p${_attr_class("
|
|
4362
|
+
_html(`<p${_attr_class("_cO")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4363
4363
|
writeScope($scope1_id, {});
|
|
4364
4364
|
return 1;
|
|
4365
4365
|
}
|
|
@@ -4473,7 +4473,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
}, "m4", $scope0_id);
|
|
4475
4475
|
const titleId = _id();
|
|
4476
|
-
_html(`<div${_attr_class("
|
|
4476
|
+
_html(`<div${_attr_class("_2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_3")}><div${_attr_class(content$1)}><header${_attr_class("_6")}><div${_attr_class("_8")}><h1${_attr("id", titleId)}${_attr_class("_7")}>New workspace</h1><p${_attr_class("_9")}>Name the space and pick repos — or restore an archived one below.</p></div></header>`);
|
|
4477
4477
|
_if(() => {
|
|
4478
4478
|
if (error) {
|
|
4479
4479
|
const $scope4_id = _scope_id();
|
|
@@ -4494,28 +4494,28 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4494
4494
|
return 0;
|
|
4495
4495
|
}
|
|
4496
4496
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
4497
|
-
_html(`<label${_attr_class("
|
|
4497
|
+
_html(`<label${_attr_class("_be")}><span${_attr_class("_bz")}>Name</span><input${_attr_input_value($scope0_id, "k", name, _resume((_new_name) => {
|
|
4498
4498
|
name = _new_name;
|
|
4499
|
-
}, "m0", $scope0_id))}${_attr_class("
|
|
4499
|
+
}, "m0", $scope0_id))}${_attr_class("_bA")} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "k")}</label><section${_attr_class("_bf")}><div${_attr_class("_bg")}><h2${_attr_class("_bB")}>Repos</h2><button${_attr_class(iconBtn$2)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4500
4500
|
_set_serialize_reason(1);
|
|
4501
4501
|
const $childScope = _peek_scope_id();
|
|
4502
4502
|
icon_refresh_default({
|
|
4503
4503
|
size: 14,
|
|
4504
|
-
class: catalogRefreshing && "
|
|
4504
|
+
class: catalogRefreshing && "_x"
|
|
4505
4505
|
});
|
|
4506
|
-
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("
|
|
4506
|
+
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("_bh")}>`);
|
|
4507
4507
|
_for_of(selected, (repo) => {
|
|
4508
4508
|
const $scope1_id = _scope_id();
|
|
4509
|
-
_html(`<li${_attr_class("
|
|
4509
|
+
_html(`<li${_attr_class("_bi")}><span${_attr_class("_bj")}>${_escape(repo.fullName)}${_el_resume($scope1_id, "c")}</span>`);
|
|
4510
4510
|
_if(() => {
|
|
4511
4511
|
if (repo.baseBranch) {
|
|
4512
4512
|
const $scope8_id = _scope_id();
|
|
4513
|
-
_html(`<span${_attr_class(["
|
|
4513
|
+
_html(`<span${_attr_class(["_bk", "_q"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "b")}</span>`);
|
|
4514
4514
|
writeScope($scope8_id, {});
|
|
4515
4515
|
return 0;
|
|
4516
4516
|
}
|
|
4517
4517
|
}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
4518
|
-
_html(`<button${_attr_class("
|
|
4518
|
+
_html(`<button${_attr_class("_bl")}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope1_id, "e")}</li>`);
|
|
4519
4519
|
_script($scope1_id, "m10");
|
|
4520
4520
|
writeScope($scope1_id, {
|
|
4521
4521
|
h: repo?.fullName,
|
|
@@ -4525,7 +4525,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4525
4525
|
_if(() => {
|
|
4526
4526
|
if (!selected.length) {
|
|
4527
4527
|
const $scope9_id = _scope_id();
|
|
4528
|
-
_html(`<li${_attr_class("
|
|
4528
|
+
_html(`<li${_attr_class("_bm")}>No repos yet — search below to add one (or create empty).</li>`);
|
|
4529
4529
|
writeScope($scope9_id, {});
|
|
4530
4530
|
return 0;
|
|
4531
4531
|
}
|
|
@@ -4550,19 +4550,19 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4550
4550
|
_if(() => {
|
|
4551
4551
|
if (busy && steps$1.length) {
|
|
4552
4552
|
const $scope6_id = _scope_id();
|
|
4553
|
-
_html(`<ul${_attr_class("
|
|
4553
|
+
_html(`<ul${_attr_class("_bn")}>`);
|
|
4554
4554
|
_for_of(steps$1, (step$1, i) => {
|
|
4555
4555
|
const $scope7_id = _scope_id();
|
|
4556
|
-
_html(`<li${_attr_class(["
|
|
4556
|
+
_html(`<li${_attr_class(["_bC", { ["_bo"]: i === steps$1.length - 1 }])}>`);
|
|
4557
4557
|
_if(() => {
|
|
4558
4558
|
if (i === steps$1.length - 1) {
|
|
4559
4559
|
const $scope10_id = _scope_id();
|
|
4560
|
-
_html(`<span${_attr_class("
|
|
4560
|
+
_html(`<span${_attr_class("_y")}></span>`);
|
|
4561
4561
|
writeScope($scope10_id, {});
|
|
4562
4562
|
return 0;
|
|
4563
4563
|
} else {
|
|
4564
4564
|
const $scope11_id = _scope_id();
|
|
4565
|
-
_html(`<span${_attr_class("
|
|
4565
|
+
_html(`<span${_attr_class("_bp")}>✓</span>`);
|
|
4566
4566
|
writeScope($scope11_id, {});
|
|
4567
4567
|
return 1;
|
|
4568
4568
|
}
|
|
@@ -4574,23 +4574,23 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4574
4574
|
return 0;
|
|
4575
4575
|
}
|
|
4576
4576
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
4577
|
-
_html(`<div${_attr_class("
|
|
4578
|
-
"
|
|
4579
|
-
"
|
|
4580
|
-
"
|
|
4581
|
-
"
|
|
4577
|
+
_html(`<div${_attr_class("_bb")}><button type=button${_attr_class(["_h", "_bD"])}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope0_id, "x")}<button type=button${_attr_class([
|
|
4578
|
+
"_h",
|
|
4579
|
+
"_i",
|
|
4580
|
+
"_bc",
|
|
4581
|
+
"_bD"
|
|
4582
4582
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "z")}</button>${_el_resume($scope0_id, "y")}</div>`);
|
|
4583
4583
|
_if(() => {
|
|
4584
4584
|
if (archived$1.length) {
|
|
4585
4585
|
const $scope2_id = _scope_id();
|
|
4586
|
-
_html(`<section${_attr_class("
|
|
4586
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_bg")}><h2${_attr_class("_bB")}>Archived</h2><span${_attr_class("_br")}>${_escape(archived$1.length)}${_el_resume($scope2_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class("_bs")}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bt")}>`);
|
|
4587
4587
|
_for_of(archived$1, (ws) => {
|
|
4588
4588
|
const $scope3_id = _scope_id();
|
|
4589
|
-
_html(`<li${_attr_class("
|
|
4589
|
+
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class("_bw")}>${_escape(ws.name)}${_el_resume($scope3_id, "d", $sg__input_workspaces)}</span><span${_attr_class(["_bx", "_q"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope3_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope3_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(["_h", "_by"])}${_attr("disabled", busy || !!restoring)}>`);
|
|
4590
4590
|
_if(() => {
|
|
4591
4591
|
if (restoring === ws.id) {
|
|
4592
4592
|
const $scope12_id = _scope_id();
|
|
4593
|
-
_html(`<span${_attr_class("
|
|
4593
|
+
_html(`<span${_attr_class("_y")}></span> Restoring…`);
|
|
4594
4594
|
writeScope($scope12_id, {});
|
|
4595
4595
|
return 0;
|
|
4596
4596
|
} else {
|
|
@@ -4725,8 +4725,8 @@ function activeAgent(session) {
|
|
|
4725
4725
|
const command = session.state?.command?.trim();
|
|
4726
4726
|
return command && agentFromCommand(command) || session.agent;
|
|
4727
4727
|
}
|
|
4728
|
-
var iconBtn$1 = "
|
|
4729
|
-
var navToggle = "
|
|
4728
|
+
var iconBtn$1 = "_cT _D";
|
|
4729
|
+
var navToggle = "_cY _D";
|
|
4730
4730
|
_template("C", (input) => {
|
|
4731
4731
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4732
4732
|
const $scope0_id = _scope_id();
|
|
@@ -4759,7 +4759,7 @@ var icon_settings_default = _template("P", (input) => {
|
|
|
4759
4759
|
});
|
|
4760
4760
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4761
4761
|
});
|
|
4762
|
-
var railBtn = "
|
|
4762
|
+
var railBtn = "_fM _D";
|
|
4763
4763
|
//#endregion
|
|
4764
4764
|
//#region src/tags/icons/icon-diff.marko
|
|
4765
4765
|
var icon_diff_default = _template("F", (input) => {
|
|
@@ -4811,8 +4811,8 @@ var icon_edit_default = _template("H", (input) => {
|
|
|
4811
4811
|
});
|
|
4812
4812
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4813
4813
|
});
|
|
4814
|
-
var prChip = "_ge
|
|
4815
|
-
var portChip = "_gf
|
|
4814
|
+
var prChip = "_ge _l _gd";
|
|
4815
|
+
var portChip = "_gf _l _gd";
|
|
4816
4816
|
var prState = {
|
|
4817
4817
|
open: "_gk",
|
|
4818
4818
|
merged: "_gl",
|
|
@@ -4887,11 +4887,11 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4887
4887
|
const $scope3_id = _scope_id();
|
|
4888
4888
|
const open = isOpen(pr);
|
|
4889
4889
|
_html(`<span${_attr_class([
|
|
4890
|
-
"
|
|
4890
|
+
"_l",
|
|
4891
4891
|
prChip,
|
|
4892
4892
|
{
|
|
4893
|
-
["
|
|
4894
|
-
["
|
|
4893
|
+
["_n"]: open && !pr.isDraft,
|
|
4894
|
+
["_o"]: open && pr.isDraft,
|
|
4895
4895
|
[prState.merged]: pr.state === "MERGED",
|
|
4896
4896
|
[prState.closed]: pr.state === "CLOSED"
|
|
4897
4897
|
}
|
|
@@ -4934,7 +4934,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4934
4934
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
4935
4935
|
_for_of(ports, (p) => {
|
|
4936
4936
|
const $scope5_id = _scope_id();
|
|
4937
|
-
_html(`<span${_attr_class(["
|
|
4937
|
+
_html(`<span${_attr_class(["_l", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gg", "_gn"])}${_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([
|
|
4938
4938
|
"_gg",
|
|
4939
4939
|
"_gh",
|
|
4940
4940
|
"_gi",
|
|
@@ -5020,10 +5020,10 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5020
5020
|
_if(() => {
|
|
5021
5021
|
if (input.rail) {
|
|
5022
5022
|
const $scope2_id = _scope_id();
|
|
5023
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5024
|
-
"
|
|
5023
|
+
_html(`<button${_attr_class([railBtn, { ["_fJ"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
|
|
5024
|
+
"_s",
|
|
5025
5025
|
phase[dot],
|
|
5026
|
-
"
|
|
5026
|
+
"_fN"
|
|
5027
5027
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5028
5028
|
_script($scope2_id, "s3");
|
|
5029
5029
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
@@ -5032,14 +5032,14 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5032
5032
|
const $scope3_id = _scope_id();
|
|
5033
5033
|
const sessions$1 = input.sessions || [];
|
|
5034
5034
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
5035
|
-
_html(`<section${_attr_class(["
|
|
5036
|
-
["
|
|
5037
|
-
["
|
|
5038
|
-
["
|
|
5039
|
-
}])}><div${_attr_class("
|
|
5040
|
-
"
|
|
5035
|
+
_html(`<section${_attr_class(["_fP", {
|
|
5036
|
+
["_fJ"]: input.current,
|
|
5037
|
+
["_fQ"]: input.railPop,
|
|
5038
|
+
["_fO"]: input.page
|
|
5039
|
+
}])}><div${_attr_class("_fR")}><button${_attr_class("_fS")}><span${_attr_class([
|
|
5040
|
+
"_s",
|
|
5041
5041
|
phase[dot],
|
|
5042
|
-
"
|
|
5042
|
+
"_f2"
|
|
5043
5043
|
])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5044
5044
|
_if(() => {
|
|
5045
5045
|
if (sessions$1.length === 1) {
|
|
@@ -5052,7 +5052,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5052
5052
|
icon_agent_default({
|
|
5053
5053
|
agent: activeAgent(sessions$1[0]),
|
|
5054
5054
|
size: 12,
|
|
5055
|
-
class: "
|
|
5055
|
+
class: "_fX"
|
|
5056
5056
|
});
|
|
5057
5057
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5058
5058
|
_: _scope_with_id($scope3_id),
|
|
@@ -5062,11 +5062,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5062
5062
|
}
|
|
5063
5063
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5064
5064
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5065
|
-
_html(`<span${_attr_class("
|
|
5065
|
+
_html(`<span${_attr_class("_fY")}><span${_attr_class("_fZ")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5066
5066
|
_if(() => {
|
|
5067
5067
|
if (input.page && metaText) {
|
|
5068
5068
|
const $scope13_id = _scope_id();
|
|
5069
|
-
_html(`<span${_attr_class("
|
|
5069
|
+
_html(`<span${_attr_class("_f0")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5070
5070
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
|
|
5071
5071
|
return 0;
|
|
5072
5072
|
}
|
|
@@ -5075,7 +5075,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5075
5075
|
_if(() => {
|
|
5076
5076
|
if (input.page) {
|
|
5077
5077
|
const $scope4_id = _scope_id();
|
|
5078
|
-
_html(`<span${_attr_class("
|
|
5078
|
+
_html(`<span${_attr_class("_f1")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5079
5079
|
$si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5080
5080
|
_: _scope_with_id($scope3_id),
|
|
5081
5081
|
Cab: $si__input_current && 2
|
|
@@ -5087,21 +5087,21 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5087
5087
|
_if(() => {
|
|
5088
5088
|
if (!input.page) {
|
|
5089
5089
|
const $scope5_id = _scope_id();
|
|
5090
|
-
_html(`<div${_attr_class("
|
|
5090
|
+
_html(`<div${_attr_class("_fT")}>`);
|
|
5091
5091
|
_if(() => {
|
|
5092
5092
|
if (input.onNewSession) {
|
|
5093
5093
|
const $scope6_id = _scope_id();
|
|
5094
5094
|
const newPopId = _id();
|
|
5095
5095
|
let pickerReady = false;
|
|
5096
|
-
_html(`<button${_attr_class("
|
|
5096
|
+
_html(`<button${_attr_class("_fV")} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
5097
5097
|
icon_agent_default({
|
|
5098
5098
|
agent: "shell",
|
|
5099
5099
|
size: 12
|
|
5100
5100
|
});
|
|
5101
|
-
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("
|
|
5101
|
+
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("_fH")}>`);
|
|
5102
5102
|
_for_of([], (agent) => {
|
|
5103
5103
|
const $scope7_id = _scope_id();
|
|
5104
|
-
_html(`<button${_attr_class("
|
|
5104
|
+
_html(`<button${_attr_class("_fI")}>`);
|
|
5105
5105
|
_set_serialize_reason(12);
|
|
5106
5106
|
const $childScope2 = _peek_scope_id();
|
|
5107
5107
|
icon_agent_default({
|
|
@@ -5126,7 +5126,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5126
5126
|
_if(() => {
|
|
5127
5127
|
if (input.onReview) {
|
|
5128
5128
|
const $scope8_id = _scope_id();
|
|
5129
|
-
_html(`<button${_attr_class("
|
|
5129
|
+
_html(`<button${_attr_class("_fV")} title="Review changes">`);
|
|
5130
5130
|
icon_diff_default({ size: 12 });
|
|
5131
5131
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
5132
5132
|
_script($scope8_id, "s6");
|
|
@@ -5134,7 +5134,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5134
5134
|
return 0;
|
|
5135
5135
|
}
|
|
5136
5136
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5137
|
-
_html(`<button${_attr_class(["
|
|
5137
|
+
_html(`<button${_attr_class(["_fV", { ["_fK"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5138
5138
|
icon_manage_default({ size: 12 });
|
|
5139
5139
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5140
5140
|
_script($scope5_id, "s7");
|
|
@@ -5142,17 +5142,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5142
5142
|
return 0;
|
|
5143
5143
|
}
|
|
5144
5144
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
5145
|
-
_html(`</div><div${_attr_class("
|
|
5145
|
+
_html(`</div><div${_attr_class("_f7")}>`);
|
|
5146
5146
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5147
5147
|
const $scope9_id = _scope_id();
|
|
5148
|
-
_html(`<div${_attr_class(["
|
|
5148
|
+
_html(`<div${_attr_class(["_fU", { ["_fJ"]: s.id === input.currentTab }])}>`);
|
|
5149
5149
|
_if(() => {
|
|
5150
5150
|
if (renamingId === s.id) {
|
|
5151
5151
|
const $scope11_id = _scope_id();
|
|
5152
5152
|
_html(`<span${_attr_class([
|
|
5153
|
-
"
|
|
5153
|
+
"_s",
|
|
5154
5154
|
phase[sessionPhase(s.state)],
|
|
5155
|
-
"
|
|
5155
|
+
"_f5"
|
|
5156
5156
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5157
5157
|
_set_serialize_reason({
|
|
5158
5158
|
1: $sg__input_sessions,
|
|
@@ -5162,17 +5162,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5162
5162
|
icon_agent_default({
|
|
5163
5163
|
agent: activeAgent(s),
|
|
5164
5164
|
size: 13,
|
|
5165
|
-
class: "
|
|
5165
|
+
class: "_f9"
|
|
5166
5166
|
});
|
|
5167
5167
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5168
5168
|
renameValue = _new_renameValue;
|
|
5169
|
-
}, "s0", $scope11_id))}${_attr_class("
|
|
5169
|
+
}, "s0", $scope11_id))}${_attr_class("_f6")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5170
5170
|
_script($scope11_id, "s8");
|
|
5171
5171
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5172
5172
|
return 0;
|
|
5173
5173
|
} else {
|
|
5174
5174
|
const $scope10_id = _scope_id();
|
|
5175
|
-
_html(`<button${_attr_class("
|
|
5175
|
+
_html(`<button${_attr_class("_f8")}><span${_attr_class(["_s", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5176
5176
|
_set_serialize_reason({
|
|
5177
5177
|
1: $sg__input_sessions,
|
|
5178
5178
|
2: $sg__input_sessions
|
|
@@ -5181,11 +5181,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5181
5181
|
icon_agent_default({
|
|
5182
5182
|
agent: activeAgent(s),
|
|
5183
5183
|
size: 13,
|
|
5184
|
-
class: "
|
|
5184
|
+
class: "_f9"
|
|
5185
5185
|
});
|
|
5186
|
-
_html(`<span${_attr_class("
|
|
5186
|
+
_html(`<span${_attr_class("_f3")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_f4")}><button${_attr_class("_fV")} title="Rename session">`);
|
|
5187
5187
|
icon_edit_default({ size: 12 });
|
|
5188
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["
|
|
5188
|
+
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["_fW", { ["_fL"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
5189
5189
|
_script($scope10_id, "s9");
|
|
5190
5190
|
_subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5191
5191
|
return 1;
|
|
@@ -5366,25 +5366,25 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5366
5366
|
const wsSelected = view !== "settings" && view !== "new";
|
|
5367
5367
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5368
5368
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5369
|
-
_html(`<aside${_attr_class(["
|
|
5370
|
-
["
|
|
5371
|
-
["
|
|
5369
|
+
_html(`<aside${_attr_class(["_cX", {
|
|
5370
|
+
["_cV"]: !navOpen,
|
|
5371
|
+
["_cW"]: isPage
|
|
5372
5372
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5373
5373
|
_if(() => {
|
|
5374
5374
|
if (isPage) {
|
|
5375
5375
|
const $scope1_id = _scope_id();
|
|
5376
|
-
_html(`<header${_attr_class("
|
|
5376
|
+
_html(`<header${_attr_class("_c0")}><h1${_attr_class("_c1")}>Workspaces</h1><div${_attr_class("_c2")}>`);
|
|
5377
5377
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5378
5378
|
_html(`<button${_attr_class([
|
|
5379
5379
|
iconBtn$1,
|
|
5380
|
-
"
|
|
5381
|
-
{ ["
|
|
5380
|
+
"_c3",
|
|
5381
|
+
{ ["_cS"]: view === "settings" }
|
|
5382
5382
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5383
5383
|
icon_settings_default({ size: 16 });
|
|
5384
5384
|
_if(() => {
|
|
5385
5385
|
if (input.setupReady === false) {
|
|
5386
5386
|
const $scope10_id = _scope_id();
|
|
5387
|
-
_html(`<span${_attr_class(["
|
|
5387
|
+
_html(`<span${_attr_class(["_s", "_cU"])} title="Machine setup incomplete"></span>`);
|
|
5388
5388
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5389
5389
|
return 0;
|
|
5390
5390
|
}
|
|
@@ -5395,13 +5395,13 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5395
5395
|
return 0;
|
|
5396
5396
|
}
|
|
5397
5397
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5398
|
-
_html(`<div${_attr_class("
|
|
5398
|
+
_html(`<div${_attr_class("_c6")}>`);
|
|
5399
5399
|
_for_of(listIds, (wsId) => {
|
|
5400
5400
|
const $scope2_id = _scope_id();
|
|
5401
5401
|
_if(() => {
|
|
5402
5402
|
if (isPage && wsId === ws.id) {
|
|
5403
5403
|
const $scope11_id = _scope_id();
|
|
5404
|
-
_html(`<h2${_attr_class("
|
|
5404
|
+
_html(`<h2${_attr_class("_c4")}>Current</h2>`);
|
|
5405
5405
|
writeScope($scope11_id, {});
|
|
5406
5406
|
return 0;
|
|
5407
5407
|
}
|
|
@@ -5409,7 +5409,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5409
5409
|
_if(() => {
|
|
5410
5410
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5411
5411
|
const $scope12_id = _scope_id();
|
|
5412
|
-
_html(`<h2${_attr_class("
|
|
5412
|
+
_html(`<h2${_attr_class("_c4")}>Other spaces</h2>`);
|
|
5413
5413
|
writeScope($scope12_id, {});
|
|
5414
5414
|
return 0;
|
|
5415
5415
|
}
|
|
@@ -5507,7 +5507,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5507
5507
|
railHover = null;
|
|
5508
5508
|
}, 150);
|
|
5509
5509
|
}, "t9", $scope3_id);
|
|
5510
|
-
_html(`<div${_attr_class("
|
|
5510
|
+
_html(`<div${_attr_class("_c7")}>`);
|
|
5511
5511
|
_for_of(itemIds, (wsId, i) => {
|
|
5512
5512
|
const $scope4_id = _scope_id();
|
|
5513
5513
|
_html("<span>");
|
|
@@ -5554,7 +5554,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5554
5554
|
if (railHover) {
|
|
5555
5555
|
const $scope5_id = _scope_id();
|
|
5556
5556
|
const hoverId = railHover.id;
|
|
5557
|
-
_html(`<div${_attr_class("
|
|
5557
|
+
_html(`<div${_attr_class("_c_")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5558
5558
|
_set_serialize_reason({
|
|
5559
5559
|
0: 1,
|
|
5560
5560
|
1: 1,
|
|
@@ -5657,11 +5657,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5657
5657
|
return 0;
|
|
5658
5658
|
}
|
|
5659
5659
|
}, $scope0_id, "d");
|
|
5660
|
-
_html(`<div${_attr_class("
|
|
5660
|
+
_html(`<div${_attr_class("_c8")}>`);
|
|
5661
5661
|
_if(() => {
|
|
5662
5662
|
if (isPage) {
|
|
5663
5663
|
const $scope6_id = _scope_id();
|
|
5664
|
-
_html(`<button${_attr_class(["
|
|
5664
|
+
_html(`<button${_attr_class(["_c5", { ["_cS"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5665
5665
|
icon_folder_plus_default({ size: 16 });
|
|
5666
5666
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
5667
5667
|
_script($scope6_id, "t21");
|
|
@@ -5683,19 +5683,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5683
5683
|
return 1;
|
|
5684
5684
|
}
|
|
5685
5685
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5686
|
-
_html(`<div${_attr_class(["
|
|
5686
|
+
_html(`<div${_attr_class(["_r", "_c9"])}></div>`);
|
|
5687
5687
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5688
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5688
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_cS"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5689
5689
|
icon_settings_default({ size: 15 });
|
|
5690
5690
|
_if(() => {
|
|
5691
5691
|
if (input.setupReady === false) {
|
|
5692
5692
|
const $scope15_id = _scope_id();
|
|
5693
|
-
_html(`<span${_attr_class(["
|
|
5693
|
+
_html(`<span${_attr_class(["_s", "_cU"])} title="Machine setup incomplete"></span>`);
|
|
5694
5694
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5695
5695
|
return 0;
|
|
5696
5696
|
}
|
|
5697
5697
|
}, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
5698
|
-
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["
|
|
5698
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_cS"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5699
5699
|
icon_folder_plus_default({ size: 16 });
|
|
5700
5700
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5701
5701
|
_script($scope7_id, "t23");
|
|
@@ -5770,9 +5770,9 @@ function repoWebUrl(fullName) {
|
|
|
5770
5770
|
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
5771
5771
|
return `https://github.com/${fullName}`;
|
|
5772
5772
|
}
|
|
5773
|
-
var iconBtn = "_bU
|
|
5774
|
-
var content = "
|
|
5775
|
-
var pageMeta = "
|
|
5773
|
+
var iconBtn = "_bU _D";
|
|
5774
|
+
var content = "_cp _4";
|
|
5775
|
+
var pageMeta = "_cq _9";
|
|
5776
5776
|
//#endregion
|
|
5777
5777
|
//#region src/tags/manage-workspace.marko
|
|
5778
5778
|
var api$2;
|
|
@@ -5866,16 +5866,16 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5866
5866
|
setTimeout(() => loadProcs(void 0), 500);
|
|
5867
5867
|
}, "k5", $scope0_id);
|
|
5868
5868
|
const titleId = _id();
|
|
5869
|
-
_html(`<div${_attr_class("
|
|
5869
|
+
_html(`<div${_attr_class("_2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_3")}><div${_attr_class(content)}><header${_attr_class("_6")}><div${_attr_class("_8")}><h1${_attr("id", titleId)}${_attr_class("_7")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cr")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
|
|
5870
5870
|
_if(() => {
|
|
5871
5871
|
if (ws.status !== "active") {
|
|
5872
5872
|
const $scope10_id = _scope_id();
|
|
5873
|
-
_html(`<span${_attr_class(["
|
|
5873
|
+
_html(`<span${_attr_class(["_cu", "_cv"])}>Archived</span>`);
|
|
5874
5874
|
writeScope($scope10_id, {});
|
|
5875
5875
|
return 0;
|
|
5876
5876
|
}
|
|
5877
5877
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
5878
|
-
_html(`<span${_attr_class("
|
|
5878
|
+
_html(`<span${_attr_class("_cs")} aria-hidden=true>·</span><span${_attr_class(["_ct", "_q"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
|
|
5879
5879
|
_if(() => {
|
|
5880
5880
|
if (error) {
|
|
5881
5881
|
const $scope2_id = _scope_id();
|
|
@@ -5899,26 +5899,26 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5899
5899
|
_if(() => {
|
|
5900
5900
|
if (pendingAction && actionStep) {
|
|
5901
5901
|
const $scope7_id = _scope_id();
|
|
5902
|
-
_html(`<p${_attr_class("_bE")}><span${_attr_class("
|
|
5902
|
+
_html(`<p${_attr_class("_bE")}><span${_attr_class("_y")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
5903
5903
|
writeScope($scope7_id, {});
|
|
5904
5904
|
return 0;
|
|
5905
5905
|
}
|
|
5906
5906
|
}, $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
5907
|
-
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Repos</h2><span${_attr_class("_bH")}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("
|
|
5907
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Repos</h2><span${_attr_class("_bH")}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_r")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5908
5908
|
_set_serialize_reason(1);
|
|
5909
5909
|
const $childScope = _peek_scope_id();
|
|
5910
5910
|
icon_refresh_default({
|
|
5911
5911
|
size: 14,
|
|
5912
|
-
class: catalogRefreshing && "
|
|
5912
|
+
class: catalogRefreshing && "_x"
|
|
5913
5913
|
});
|
|
5914
5914
|
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_bI")}>`);
|
|
5915
5915
|
_for_of(ws.repos, (row) => {
|
|
5916
5916
|
const $scope1_id = _scope_id();
|
|
5917
|
-
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class(["_bM", "
|
|
5917
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class(["_bM", "_q"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bN")}><a${_attr_class(["_bO", "_cx"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
5918
5918
|
_if(() => {
|
|
5919
5919
|
if (row.base_branch !== row.default_branch) {
|
|
5920
5920
|
const $scope11_id = _scope_id();
|
|
5921
|
-
_html(`<span${_attr_class(["_bP", "
|
|
5921
|
+
_html(`<span${_attr_class(["_bP", "_q"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
|
|
5922
5922
|
writeScope($scope11_id, {});
|
|
5923
5923
|
return 0;
|
|
5924
5924
|
}
|
|
@@ -5927,7 +5927,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5927
5927
|
_if(() => {
|
|
5928
5928
|
if (busy.has(row.full_name)) {
|
|
5929
5929
|
const $scope12_id = _scope_id();
|
|
5930
|
-
_html(`<span${_attr_class("
|
|
5930
|
+
_html(`<span${_attr_class("_y")}></span>`);
|
|
5931
5931
|
writeScope($scope12_id, {});
|
|
5932
5932
|
return 0;
|
|
5933
5933
|
} else {
|
|
@@ -5952,7 +5952,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5952
5952
|
}, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5953
5953
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
5954
5954
|
const $scope13_id = _scope_id();
|
|
5955
|
-
_html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("
|
|
5955
|
+
_html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("_y")}></span><div${_attr_class("_bL")}><span${_attr_class("_bO")}>Adding <!>${_escape(name)}${_el_resume($scope13_id, "e")}…</span></div></li>`);
|
|
5956
5956
|
writeScope($scope13_id, {});
|
|
5957
5957
|
}, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5958
5958
|
_html("</ul>");
|
|
@@ -5964,7 +5964,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5964
5964
|
return 0;
|
|
5965
5965
|
}
|
|
5966
5966
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
5967
|
-
_html(`<div${_attr_class("
|
|
5967
|
+
_html(`<div${_attr_class("_cw")}>`);
|
|
5968
5968
|
const $childScope2 = _peek_scope_id();
|
|
5969
5969
|
let refreshCatalog = repo_picker_default({
|
|
5970
5970
|
exclude: inWorkspace,
|
|
@@ -5987,14 +5987,14 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5987
5987
|
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Running</h2><span${_attr_class("_bH")}>${_escape(running.length)}${_el_resume($scope8_id, "e")}</span></div><ul${_attr_class("_bI")}>`);
|
|
5988
5988
|
_for_of(running, (p) => {
|
|
5989
5989
|
const $scope9_id = _scope_id();
|
|
5990
|
-
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class(["_bM", "
|
|
5990
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class(["_bM", "_q"])}>${_escape(p.cmd)}${_el_resume($scope9_id, "d")}</span>`);
|
|
5991
5991
|
_if(() => {
|
|
5992
5992
|
if (p.ports.length) {
|
|
5993
5993
|
const $scope15_id = _scope_id();
|
|
5994
5994
|
_html(`<span${_attr_class("_bN")}>`);
|
|
5995
5995
|
_for_of(p.ports, (port) => {
|
|
5996
5996
|
const $scope16_id = _scope_id();
|
|
5997
|
-
_html(`<button${_attr_class(["
|
|
5997
|
+
_html(`<button${_attr_class(["_l", "_cy"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
|
|
5998
5998
|
_script($scope16_id, "k13");
|
|
5999
5999
|
writeScope($scope16_id, { d: port });
|
|
6000
6000
|
}, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6014,28 +6014,28 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6014
6014
|
return 0;
|
|
6015
6015
|
}
|
|
6016
6016
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
6017
|
-
_html(`<section${_attr_class(["_bF", "
|
|
6017
|
+
_html(`<section${_attr_class(["_bF", "_cz"])}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Workspace</h2></div><div${_attr_class("_cA")}>`);
|
|
6018
6018
|
_if(() => {
|
|
6019
6019
|
if (ws.status === "active") {
|
|
6020
6020
|
const $scope4_id = _scope_id();
|
|
6021
|
-
_html(`<button type=button${_attr_class(["
|
|
6021
|
+
_html(`<button type=button${_attr_class(["_h", "_cB"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
6022
6022
|
_script($scope4_id, "k15");
|
|
6023
6023
|
writeScope($scope4_id, {});
|
|
6024
6024
|
return 0;
|
|
6025
6025
|
} else {
|
|
6026
6026
|
const $scope5_id = _scope_id();
|
|
6027
|
-
_html(`<button type=button${_attr_class(["
|
|
6027
|
+
_html(`<button type=button${_attr_class(["_h", "_cB"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
6028
6028
|
_script($scope5_id, "k16");
|
|
6029
6029
|
writeScope($scope5_id, {});
|
|
6030
6030
|
return 1;
|
|
6031
6031
|
}
|
|
6032
6032
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
6033
6033
|
_html(`<button type=button${_attr_class([
|
|
6034
|
-
"
|
|
6035
|
-
"
|
|
6036
|
-
"
|
|
6037
|
-
{ ["
|
|
6038
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("
|
|
6034
|
+
"_h",
|
|
6035
|
+
"_k",
|
|
6036
|
+
"_cB",
|
|
6037
|
+
{ ["_j"]: confirmingDelete }
|
|
6038
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_cC")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
6039
6039
|
_script($scope0_id, "k17");
|
|
6040
6040
|
_script($scope0_id, "k18");
|
|
6041
6041
|
writeScope($scope0_id, {
|
|
@@ -6106,15 +6106,15 @@ var term_find_default = _template("u", (input) => {
|
|
|
6106
6106
|
const canStep = hasQuery && open;
|
|
6107
6107
|
const keybar = input.placement === "keybar";
|
|
6108
6108
|
_html(`<div${_attr_class([
|
|
6109
|
-
"
|
|
6110
|
-
keybar ? "
|
|
6111
|
-
!open && "
|
|
6112
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6109
|
+
"_e_",
|
|
6110
|
+
keybar ? "_fb" : "_fa",
|
|
6111
|
+
!open && "_fd"
|
|
6112
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_e5", keybar ? "_fc" : "_e7"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6113
6113
|
if (!open) return;
|
|
6114
6114
|
query = v;
|
|
6115
6115
|
live.query = v;
|
|
6116
6116
|
run(0);
|
|
6117
|
-
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6117
|
+
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_fe"])} 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 && "_ff"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_ff"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_ff"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6118
6118
|
_script($scope0_id, "u4");
|
|
6119
6119
|
_script($scope0_id, "u5");
|
|
6120
6120
|
_script($scope0_id, "u6");
|
|
@@ -6383,7 +6383,7 @@ var term_default = _template("v", (input) => {
|
|
|
6383
6383
|
trapOpen = true;
|
|
6384
6384
|
}
|
|
6385
6385
|
}, "v14", $scope0_id);
|
|
6386
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6386
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_db")}><div${_attr_class("_dc")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6387
6387
|
_if(() => {
|
|
6388
6388
|
if (findOpen) {
|
|
6389
6389
|
const $scope11_id = _scope_id();
|
|
@@ -6410,7 +6410,7 @@ var term_default = _template("v", (input) => {
|
|
|
6410
6410
|
_if(() => {
|
|
6411
6411
|
if (uploading) {
|
|
6412
6412
|
const $scope18_id = _scope_id();
|
|
6413
|
-
_html(`<div${_attr_class("
|
|
6413
|
+
_html(`<div${_attr_class("_dg")}>uploading…</div>`);
|
|
6414
6414
|
writeScope($scope18_id, {});
|
|
6415
6415
|
return 0;
|
|
6416
6416
|
}
|
|
@@ -6418,7 +6418,7 @@ var term_default = _template("v", (input) => {
|
|
|
6418
6418
|
_if(() => {
|
|
6419
6419
|
if (copiedFlash) {
|
|
6420
6420
|
const $scope19_id = _scope_id();
|
|
6421
|
-
_html(`<div${_attr_class("
|
|
6421
|
+
_html(`<div${_attr_class("_df")}>Copied</div>`);
|
|
6422
6422
|
writeScope($scope19_id, {});
|
|
6423
6423
|
return 0;
|
|
6424
6424
|
}
|
|
@@ -6427,7 +6427,7 @@ var term_default = _template("v", (input) => {
|
|
|
6427
6427
|
_if(() => {
|
|
6428
6428
|
if (trapOpen) {
|
|
6429
6429
|
const $scope10_id = _scope_id();
|
|
6430
|
-
_html(`<div${_attr_class("
|
|
6430
|
+
_html(`<div${_attr_class("_dh")}><div${_attr_class("_di")}><p${_attr_class("_dM")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope10_id, "d")}<button${_attr_class("_h")}>Cancel</button>${_el_resume($scope10_id, "e")}</div>${_el_resume($scope10_id, "b")}</div>${_el_resume($scope10_id, "a")}`);
|
|
6431
6431
|
_script($scope10_id, "v23");
|
|
6432
6432
|
_script($scope10_id, "v24");
|
|
6433
6433
|
writeScope($scope10_id, {});
|
|
@@ -6532,7 +6532,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6532
6532
|
let DiffView = null;
|
|
6533
6533
|
const loadDiffView = _resume(() => {
|
|
6534
6534
|
if (DiffView) return;
|
|
6535
|
-
import("./
|
|
6535
|
+
import("./_iq7sdxAv.js").then((m) => {
|
|
6536
6536
|
DiffView = m.default;
|
|
6537
6537
|
});
|
|
6538
6538
|
}, "y4", $scope0_id);
|
|
@@ -6688,7 +6688,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6688
6688
|
error = String(err.message || err);
|
|
6689
6689
|
}
|
|
6690
6690
|
}, "y19", $scope0_id);
|
|
6691
|
-
_html(`<div${_attr_class(["
|
|
6691
|
+
_html(`<div${_attr_class(["_S", { ["_R"]: view === "nav" }])}><div${_attr_class("_T")}>`);
|
|
6692
6692
|
_set_serialize_reason({
|
|
6693
6693
|
0: _serialize_guard($scope0_reason, 0),
|
|
6694
6694
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6761,7 +6761,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6761
6761
|
openDiff(pr);
|
|
6762
6762
|
}, "y31", $scope0_id)
|
|
6763
6763
|
});
|
|
6764
|
-
_html(`</div><div${_attr_class("
|
|
6764
|
+
_html(`</div><div${_attr_class("_U")}>`);
|
|
6765
6765
|
_if(() => {
|
|
6766
6766
|
if (error) {
|
|
6767
6767
|
const $scope8_id = _scope_id();
|
|
@@ -6864,13 +6864,13 @@ var work_view_default = _template("y", (input) => {
|
|
|
6864
6864
|
}
|
|
6865
6865
|
}, $scope0_id, "h");
|
|
6866
6866
|
_if(() => {}, $scope0_id, "i");
|
|
6867
|
-
_html(`<div${_attr_class(["
|
|
6867
|
+
_html(`<div${_attr_class(["_W", { ["_V"]: view !== "term" }])}>`);
|
|
6868
6868
|
_if(() => {
|
|
6869
6869
|
if (shownSessions) {
|
|
6870
6870
|
const $scope5_id = _scope_id();
|
|
6871
6871
|
_for_of(shownSessions, (s) => {
|
|
6872
6872
|
const $scope6_id = _scope_id();
|
|
6873
|
-
_html(`<div${_attr_class(["
|
|
6873
|
+
_html(`<div${_attr_class(["_X", { ["_Y"]: s.id === curTab }])}>`);
|
|
6874
6874
|
_set_serialize_reason({
|
|
6875
6875
|
0: 1,
|
|
6876
6876
|
1: 1,
|
|
@@ -6937,7 +6937,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6937
6937
|
_if(() => {
|
|
6938
6938
|
if (!shownSessions.length && view === "term") {
|
|
6939
6939
|
const $scope7_id = _scope_id();
|
|
6940
|
-
_html(`<div${_attr_class("
|
|
6940
|
+
_html(`<div${_attr_class("_0")}><p${_attr_class("_1")}>No sessions in this workspace.</p><button${_attr_class(["_h", "_i"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope7_id, "d")}</button>${_el_resume($scope7_id, "c")}</div>`);
|
|
6941
6941
|
_script($scope7_id, "y51");
|
|
6942
6942
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
6943
6943
|
return 0;
|
|
@@ -6947,7 +6947,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6947
6947
|
return 0;
|
|
6948
6948
|
} else {
|
|
6949
6949
|
const $scope10_id = _scope_id();
|
|
6950
|
-
_html(`<p${_attr_class("
|
|
6950
|
+
_html(`<p${_attr_class("_Z")}>Loading sessions…</p>`);
|
|
6951
6951
|
writeScope($scope10_id, {});
|
|
6952
6952
|
return 1;
|
|
6953
6953
|
}
|
|
@@ -7193,7 +7193,7 @@ var page_boot_default = _template("n", (input) => {
|
|
|
7193
7193
|
};
|
|
7194
7194
|
}, "n8", $scope4_id)
|
|
7195
7195
|
});
|
|
7196
|
-
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("
|
|
7196
|
+
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("_h")}>Later — go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
7197
7197
|
_script($scope4_id, "n24");
|
|
7198
7198
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
7199
7199
|
return 0;
|
|
@@ -7345,7 +7345,7 @@ var _page_default = _template("b", (input) => {
|
|
|
7345
7345
|
setup: su
|
|
7346
7346
|
}));
|
|
7347
7347
|
})();
|
|
7348
|
-
_html(`<main${_attr_class("
|
|
7348
|
+
_html(`<main${_attr_class("_c")}>`);
|
|
7349
7349
|
_try($scope0_id, "b", _content_resume("b2", () => {
|
|
7350
7350
|
const $scope1_id = _scope_id();
|
|
7351
7351
|
_scope_reason();
|
|
@@ -7358,12 +7358,12 @@ var _page_default = _template("b", (input) => {
|
|
|
7358
7358
|
placeholder: attrTag({ content: _content_resume("b0", () => {
|
|
7359
7359
|
_scope_reason();
|
|
7360
7360
|
_scope_id();
|
|
7361
|
-
_html(`<div${_attr_class("
|
|
7361
|
+
_html(`<div${_attr_class("_b")}><span${_attr_class("_y")}></span>Loading workspaces…</div>`);
|
|
7362
7362
|
}, $scope0_id) }),
|
|
7363
7363
|
catch: attrTag({ content: _content_resume("b1", (err) => {
|
|
7364
7364
|
const $scope3_reason = _scope_reason();
|
|
7365
7365
|
const $scope3_id = _scope_id();
|
|
7366
|
-
_html(`<div${_attr_class("
|
|
7366
|
+
_html(`<div${_attr_class("_b")}><p>${err instanceof Error ? _escape(err.message) : _escape(String(err))}${_el_resume($scope3_id, "b", _serialize_guard($scope3_reason, 0))}</p></div>`);
|
|
7367
7367
|
_serialize_if($scope3_reason, 0) && writeScope($scope3_id, {});
|
|
7368
7368
|
}, $scope0_id) })
|
|
7369
7369
|
});
|
|
@@ -14782,4 +14782,4 @@ server.listen(port, () => {
|
|
|
14782
14782
|
//#endregion
|
|
14783
14783
|
export {};
|
|
14784
14784
|
|
|
14785
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
14785
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-BJvGjZ42.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-BJvGjZ42.css\"",">"],"defer":[2,"/assets/index-CL4dPVfR.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CL4dPVfR.js\"","></script>"]}};
|