@dylanpiercey/work 0.0.50 → 0.0.51
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 +1 -1
- package/dist/{_CkFSxwl9.js → _ChsFL4HL.js} +67 -67
- package/dist/{_BMPRQiid.js → _hWr23FrN.js} +21 -21
- package/dist/index.mjs +199 -192
- package/dist/public/assets/{_14Rf7auw2.js → _-OkpjNFC2.js} +1 -1
- package/dist/public/assets/_-OkpjNFC2.js.br +0 -0
- package/dist/public/assets/{_3L9qJ2FI.js → _7zKhgk70.js} +1 -1
- package/dist/public/assets/_7zKhgk70.js.br +0 -0
- package/dist/public/assets/{_BO7NVUTp.js → _ANZIBcq8.js} +1 -1
- package/dist/public/assets/_ANZIBcq8.js.br +0 -0
- package/dist/public/assets/{_CxVYrK29.js → _B1kAPDJf.js} +1 -1
- package/dist/public/assets/_B1kAPDJf.js.br +0 -0
- package/dist/public/assets/{_DaFCn9AP.js → _B1q1XEz1.js} +1 -1
- package/dist/public/assets/_B1q1XEz1.js.br +0 -0
- package/dist/public/assets/{_D4Agz1BW.js → _BAe2Rkst.js} +1 -1
- package/dist/public/assets/_BAe2Rkst.js.br +0 -0
- package/dist/public/assets/{_B3OlqMGd.js → _BMRMEvO7.js} +1 -1
- package/dist/public/assets/_BMRMEvO7.js.br +0 -0
- package/dist/public/assets/{_CoZJRwLV.js → _BQWd9iua.js} +1 -1
- package/dist/public/assets/_BQWd9iua.js.br +0 -0
- package/dist/public/assets/{_BM1T1EOI.js → _BXzA1hkF.js} +1 -1
- package/dist/public/assets/_BXzA1hkF.js.br +0 -0
- package/dist/public/assets/{_CwesB1Zy2.js → _BY6UBzWo2.js} +1 -1
- package/dist/public/assets/{_BKrb_vR32.js → _BZMQNYA92.js} +1 -1
- package/dist/public/assets/_BZMQNYA92.js.br +0 -0
- package/dist/public/assets/{_BXOM5Rv62.js → _BZZMGQsS2.js} +1 -1
- package/dist/public/assets/{_R2u4F0-3.js → _BdKJVs01.js} +1 -1
- package/dist/public/assets/_BdKJVs01.js.br +0 -0
- package/dist/public/assets/{_DrzuvLS6.js → _Bdd-EVvo.js} +1 -1
- package/dist/public/assets/_Bdd-EVvo.js.br +0 -0
- package/dist/public/assets/{_ylRundRE.js → _BepwNj2c.js} +1 -1
- package/dist/public/assets/_BepwNj2c.js.br +0 -0
- package/dist/public/assets/{_CnAW-XtK.js → _BgR6JlxP.js} +1 -1
- package/dist/public/assets/_BgR6JlxP.js.br +0 -0
- package/dist/public/assets/{_CTCAIoky.js → _BglwyDVi.js} +1 -1
- package/dist/public/assets/_BglwyDVi.js.br +0 -0
- package/dist/public/assets/{_DmD3gC-H.js → _BiDu7TT-.js} +1 -1
- package/dist/public/assets/_BiDu7TT-.js.br +0 -0
- package/dist/public/assets/{_BKFltGNM2.js → _BosbXyNb2.js} +1 -1
- package/dist/public/assets/_BosbXyNb2.js.br +0 -0
- package/dist/public/assets/{_Cl5zwC6C.js → _BsogDiXx.js} +1 -1
- package/dist/public/assets/{_CAq8JoYd.js → _Bt7Eey0L.js} +1 -1
- package/dist/public/assets/_Bt7Eey0L.js.br +0 -0
- package/dist/public/assets/{_CJRnhPJ5.js → _BvXRPJdv.js} +1 -1
- package/dist/public/assets/_BvXRPJdv.js.br +0 -0
- package/dist/public/assets/{_C0yzBH1I.js → _BxtJHtVP.js} +1 -1
- package/dist/public/assets/_BxtJHtVP.js.br +0 -0
- package/dist/public/assets/{_oOOdPbmX2.js → _By0A-jZS2.js} +1 -1
- package/dist/public/assets/_By0A-jZS2.js.br +0 -0
- package/dist/public/assets/{_CYutj5Nn.js → _C0oWdnE5.js} +1 -1
- package/dist/public/assets/_C0oWdnE5.js.br +0 -0
- package/dist/public/assets/{_8OBdOEN_.js → _C2I7cHEj.js} +1 -1
- package/dist/public/assets/_C2I7cHEj.js.br +0 -0
- package/dist/public/assets/{_vdLXTjUv2.js → _CHrLzFRU2.js} +1 -1
- package/dist/public/assets/_CHrLzFRU2.js.br +0 -0
- package/dist/public/assets/{_Bqk-7ZnJ.js → _COh_iyNM.js} +1 -1
- package/dist/public/assets/_COh_iyNM.js.br +0 -0
- package/dist/public/assets/{_B0BWvFlM.js → _CTZYzJI9.js} +1 -1
- package/dist/public/assets/_CTZYzJI9.js.br +0 -0
- package/dist/public/assets/{_g5scf0ei.js → _CWmZT485.js} +1 -1
- package/dist/public/assets/_CWmZT485.js.br +0 -0
- package/dist/public/assets/{_BAmdta6F.js → _CZzND5iW.js} +1 -1
- package/dist/public/assets/_CZzND5iW.js.br +0 -0
- package/dist/public/assets/{_LbQesljk.js → _Cd9v1nzp.js} +1 -1
- package/dist/public/assets/_Cd9v1nzp.js.br +0 -0
- package/dist/public/assets/{_B7_X6QKl.js → _Cf3MmuUY.js} +1 -1
- package/dist/public/assets/_Cf3MmuUY.js.br +0 -0
- package/dist/public/assets/{_MWudDHh02.js → _Cjp1_INh2.js} +1 -1
- package/dist/public/assets/_Cjp1_INh2.js.br +0 -0
- package/dist/public/assets/{_ZMT8kCL52.js → _ClePGw1Q2.js} +1 -1
- package/dist/public/assets/_ClePGw1Q2.js.br +0 -0
- package/dist/public/assets/{_D7t5subj.js → _CnOIrHd4.js} +1 -1
- package/dist/public/assets/_CnOIrHd4.js.br +0 -0
- package/dist/public/assets/{_B3vaoKEN2.js → _Co5f57QZ2.js} +1 -1
- package/dist/public/assets/_Co5f57QZ2.js.br +0 -0
- package/dist/public/assets/{_B7zx6ruH.js → _CozR6WAm.js} +1 -1
- package/dist/public/assets/_CozR6WAm.js.br +0 -0
- package/dist/public/assets/{_END-bJOF2.js → _CpF0eDyO2.js} +1 -1
- package/dist/public/assets/_CpF0eDyO2.js.br +0 -0
- package/dist/public/assets/{_Dwi7467c.js → _Ct4X_xxt.js} +1 -1
- package/dist/public/assets/_Ct4X_xxt.js.br +0 -0
- package/dist/public/assets/{_BipcKLQ82.js → _CtUpTTh_2.js} +1 -1
- package/dist/public/assets/_CtUpTTh_2.js.br +0 -0
- package/dist/public/assets/{_yXYQK3xI2.js → _Cuf3C8O12.js} +1 -1
- package/dist/public/assets/_Cuf3C8O12.js.br +0 -0
- package/dist/public/assets/{_BVn7ySs5.js → _CzWr4WDS.js} +1 -1
- package/dist/public/assets/_CzWr4WDS.js.br +0 -0
- package/dist/public/assets/{_mooiyN7w2.js → _D6rlRNb42.js} +1 -1
- package/dist/public/assets/_D6rlRNb42.js.br +0 -0
- package/dist/public/assets/{_BqTMyizJ.js → _DDHqFyT6.js} +1 -1
- package/dist/public/assets/_DDHqFyT6.js.br +0 -0
- package/dist/public/assets/{_DaBnEzqR.js → _DDIsmVeS.js} +1 -1
- package/dist/public/assets/_DDIsmVeS.js.br +0 -0
- package/dist/public/assets/{_46jbMvnT.js → _DEMYRqVb.js} +1 -1
- package/dist/public/assets/_DEMYRqVb.js.br +0 -0
- package/dist/public/assets/{_6FgRPbD12.js → _DHn-Con42.js} +1 -1
- package/dist/public/assets/_DHn-Con42.js.br +0 -0
- package/dist/public/assets/{_eLSetQBz.js → _DJbEi800.js} +1 -1
- package/dist/public/assets/_DJbEi800.js.br +0 -0
- package/dist/public/assets/{_YpsD0CNd.js → _DPZvn_Ns.js} +1 -1
- package/dist/public/assets/_DPZvn_Ns.js.br +0 -0
- package/dist/public/assets/{_5B_C1ELg2.js → _DS46Nokf2.js} +1 -1
- package/dist/public/assets/_DS46Nokf2.js.br +0 -0
- package/dist/public/assets/{_D8LNkUUk.js → _DSSFuJur.js} +1 -1
- package/dist/public/assets/_DSSFuJur.js.br +0 -0
- package/dist/public/assets/{_CpuGya-f2.js → _DTl3WJKW2.js} +1 -1
- package/dist/public/assets/_DTl3WJKW2.js.br +0 -0
- package/dist/public/assets/{_DKExcf_t.js → _Daxa4EBi.js} +1 -1
- package/dist/public/assets/_Daxa4EBi.js.br +0 -0
- package/dist/public/assets/{_BDs5gBRu.js → _Dd2aGpDJ.js} +1 -1
- package/dist/public/assets/_Dd2aGpDJ.js.br +0 -0
- package/dist/public/assets/{_qDJ6gb3q.js → _De6QD9bA.js} +1 -1
- package/dist/public/assets/_De6QD9bA.js.br +0 -0
- package/dist/public/assets/{_CG33pVWf.js → _DhkDcW9a.js} +1 -1
- package/dist/public/assets/_DhkDcW9a.js.br +0 -0
- package/dist/public/assets/{_CmPpWb_a.js → _DieSr1Ar.js} +1 -1
- package/dist/public/assets/_DieSr1Ar.js.br +0 -0
- package/dist/public/assets/{_eXTAehNM2.js → _Dkkv3pWr2.js} +1 -1
- package/dist/public/assets/_Dkkv3pWr2.js.br +0 -0
- package/dist/public/assets/{_BHyVr2SL2.js → _DmR5fI7m2.js} +1 -1
- package/dist/public/assets/_DmR5fI7m2.js.br +0 -0
- package/dist/public/assets/{_aTh5ZUn4.js → _DmhFYJm3.js} +1 -1
- package/dist/public/assets/_DmhFYJm3.js.br +0 -0
- package/dist/public/assets/{_CLFzw6tJ2.js → _DqeMgS1a2.js} +1 -1
- package/dist/public/assets/_DqeMgS1a2.js.br +0 -0
- package/dist/public/assets/{_ChMN3jzE.js → _DsZJYF5S.js} +5 -5
- package/dist/public/assets/_DsZJYF5S.js.br +0 -0
- package/dist/public/assets/{_Bw4RcZCP2.js → _Dxgr5ZEE2.js} +1 -1
- package/dist/public/assets/_Dxgr5ZEE2.js.br +0 -0
- package/dist/public/assets/{_CUk8oM8X.js → _DypMRhyB.js} +1 -1
- package/dist/public/assets/_DypMRhyB.js.br +0 -0
- package/dist/public/assets/{_gVQOuQ8i.js → _LpvSvw1m.js} +1 -1
- package/dist/public/assets/_LpvSvw1m.js.br +0 -0
- package/dist/public/assets/{_ds7D8iP9.js → _OrWHmnP_.js} +1 -1
- package/dist/public/assets/_OrWHmnP_.js.br +0 -0
- package/dist/public/assets/{_BTA9H0Q3.js → _WWEgOS99.js} +1 -1
- package/dist/public/assets/_WWEgOS99.js.br +0 -0
- package/dist/public/assets/{_Dp1uWzpq2.js → __yh22OJv2.js} +1 -1
- package/dist/public/assets/__yh22OJv2.js.br +0 -0
- package/dist/public/assets/{_Ip505vk_.js → _c0RV9ZTi.js} +1 -1
- package/dist/public/assets/_c0RV9ZTi.js.br +0 -0
- package/dist/public/assets/{_Bfrb3Fvn2.js → _h4RVOlAc2.js} +1 -1
- package/dist/public/assets/_h4RVOlAc2.js.br +0 -0
- package/dist/public/assets/{_BPVwmM2e.js → _k8EORKKh.js} +1 -1
- package/dist/public/assets/_k8EORKKh.js.br +0 -0
- package/dist/public/assets/{_BrIeskzm.js → _ror9VoLz.js} +1 -1
- package/dist/public/assets/_ror9VoLz.js.br +0 -0
- package/dist/public/assets/{_CvF3Yy4B.js → _um1Uylai.js} +1 -1
- package/dist/public/assets/_um1Uylai.js.br +0 -0
- package/dist/public/assets/{_BteZRGy02.js → _z-TE6bLm2.js} +1 -1
- package/dist/public/assets/_z-TE6bLm2.js.br +0 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css +1 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css.br +0 -0
- package/dist/public/assets/index-BTS1WPEB.css +1 -0
- package/dist/public/assets/index-BTS1WPEB.css.br +0 -0
- package/dist/public/assets/{index-CLK3dq8r.js → index-g4T1J5qh.js} +3 -3
- package/dist/public/assets/index-g4T1J5qh.js.br +0 -0
- package/lib/setup/install.mjs +10 -7
- package/package.json +1 -1
- package/dist/public/assets/_14Rf7auw2.js.br +0 -0
- package/dist/public/assets/_3L9qJ2FI.js.br +0 -0
- package/dist/public/assets/_46jbMvnT.js.br +0 -0
- package/dist/public/assets/_5B_C1ELg2.js.br +0 -0
- package/dist/public/assets/_6FgRPbD12.js.br +0 -0
- package/dist/public/assets/_8OBdOEN_.js.br +0 -0
- package/dist/public/assets/_B0BWvFlM.js.br +0 -0
- package/dist/public/assets/_B3OlqMGd.js.br +0 -0
- package/dist/public/assets/_B3vaoKEN2.js.br +0 -0
- package/dist/public/assets/_B7_X6QKl.js.br +0 -0
- package/dist/public/assets/_B7zx6ruH.js.br +0 -0
- package/dist/public/assets/_BAmdta6F.js.br +0 -0
- package/dist/public/assets/_BDs5gBRu.js.br +0 -0
- package/dist/public/assets/_BHyVr2SL2.js.br +0 -0
- package/dist/public/assets/_BKFltGNM2.js.br +0 -0
- package/dist/public/assets/_BKrb_vR32.js.br +0 -0
- package/dist/public/assets/_BM1T1EOI.js.br +0 -0
- package/dist/public/assets/_BO7NVUTp.js.br +0 -0
- package/dist/public/assets/_BPVwmM2e.js.br +0 -0
- package/dist/public/assets/_BTA9H0Q3.js.br +0 -0
- package/dist/public/assets/_BVn7ySs5.js.br +0 -0
- package/dist/public/assets/_Bfrb3Fvn2.js.br +0 -0
- package/dist/public/assets/_BipcKLQ82.js.br +0 -0
- package/dist/public/assets/_BqTMyizJ.js.br +0 -0
- package/dist/public/assets/_Bqk-7ZnJ.js.br +0 -0
- package/dist/public/assets/_BrIeskzm.js.br +0 -0
- package/dist/public/assets/_BteZRGy02.js.br +0 -0
- package/dist/public/assets/_Bw4RcZCP2.js.br +0 -0
- package/dist/public/assets/_C0yzBH1I.js.br +0 -0
- package/dist/public/assets/_CAq8JoYd.js.br +0 -0
- package/dist/public/assets/_CG33pVWf.js.br +0 -0
- package/dist/public/assets/_CJRnhPJ5.js.br +0 -0
- package/dist/public/assets/_CLFzw6tJ2.js.br +0 -0
- package/dist/public/assets/_CTCAIoky.js.br +0 -0
- package/dist/public/assets/_CUk8oM8X.js.br +0 -0
- package/dist/public/assets/_CYutj5Nn.js.br +0 -0
- package/dist/public/assets/_ChMN3jzE.js.br +0 -0
- package/dist/public/assets/_CmPpWb_a.js.br +0 -0
- package/dist/public/assets/_CnAW-XtK.js.br +0 -0
- package/dist/public/assets/_CoZJRwLV.js.br +0 -0
- package/dist/public/assets/_CpuGya-f2.js.br +0 -0
- package/dist/public/assets/_CvF3Yy4B.js.br +0 -0
- package/dist/public/assets/_CxVYrK29.js.br +0 -0
- package/dist/public/assets/_D4Agz1BW.js.br +0 -0
- package/dist/public/assets/_D7t5subj.js.br +0 -0
- package/dist/public/assets/_D8LNkUUk.js.br +0 -0
- package/dist/public/assets/_DKExcf_t.js.br +0 -0
- package/dist/public/assets/_DaBnEzqR.js.br +0 -0
- package/dist/public/assets/_DaFCn9AP.js.br +0 -0
- package/dist/public/assets/_DmD3gC-H.js.br +0 -0
- package/dist/public/assets/_Dp1uWzpq2.js.br +0 -0
- package/dist/public/assets/_DrzuvLS6.js.br +0 -0
- package/dist/public/assets/_Dwi7467c.js.br +0 -0
- package/dist/public/assets/_END-bJOF2.js.br +0 -0
- package/dist/public/assets/_Ip505vk_.js.br +0 -0
- package/dist/public/assets/_LbQesljk.js.br +0 -0
- package/dist/public/assets/_MWudDHh02.js.br +0 -0
- package/dist/public/assets/_R2u4F0-3.js.br +0 -0
- package/dist/public/assets/_YpsD0CNd.js.br +0 -0
- package/dist/public/assets/_ZMT8kCL52.js.br +0 -0
- package/dist/public/assets/_aTh5ZUn4.js.br +0 -0
- package/dist/public/assets/_ds7D8iP9.js.br +0 -0
- package/dist/public/assets/_eLSetQBz.js.br +0 -0
- package/dist/public/assets/_eXTAehNM2.js.br +0 -0
- package/dist/public/assets/_g5scf0ei.js.br +0 -0
- package/dist/public/assets/_gVQOuQ8i.js.br +0 -0
- package/dist/public/assets/_mooiyN7w2.js.br +0 -0
- package/dist/public/assets/_oOOdPbmX2.js.br +0 -0
- package/dist/public/assets/_qDJ6gb3q.js.br +0 -0
- package/dist/public/assets/_vdLXTjUv2.js.br +0 -0
- package/dist/public/assets/_yXYQK3xI2.js.br +0 -0
- package/dist/public/assets/_ylRundRE.js.br +0 -0
- package/dist/public/assets/diff-view-CFyPUyMl.css +0 -1
- package/dist/public/assets/diff-view-CFyPUyMl.css.br +0 -0
- package/dist/public/assets/index-CLK3dq8r.js.br +0 -0
- package/dist/public/assets/index-DL_Vi7rw.css +0 -1
- package/dist/public/assets/index-DL_Vi7rw.css.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 "./_hWr23FrN.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2740,11 +2740,13 @@ async function installAgent(id, opts = {}) {
|
|
|
2740
2740
|
if (!a.bins.some((b) => which(b))) throw new Error(`${a.label} installer finished but ${a.bins[0]} is not on PATH`);
|
|
2741
2741
|
}
|
|
2742
2742
|
/**
|
|
2743
|
-
* Sign in to a GitHub host with gh's browser device flow
|
|
2744
|
-
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2747
|
-
*
|
|
2743
|
+
* Sign in to a GitHub host with gh's browser device flow, never opening a
|
|
2744
|
+
* browser: `work` usually runs on a remote box, so gh's attempt to launch
|
|
2745
|
+
* one only produces "Failed opening a web browser" noise. Interactive (CLI)
|
|
2746
|
+
* lets gh own the terminal (it prints the code + URL and polls); otherwise
|
|
2747
|
+
* (server) we press Enter for it and the code and URL flow out through
|
|
2748
|
+
* `log` for the UI to show — gh keeps polling until the user finishes in
|
|
2749
|
+
* their own browser.
|
|
2748
2750
|
*/
|
|
2749
2751
|
async function authGithub(host, { interactive = false, ...opts } = {}) {
|
|
2750
2752
|
if (!which("gh")) throw new Error("gh is not installed");
|
|
@@ -2757,15 +2759,20 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
|
|
|
2757
2759
|
"--git-protocol",
|
|
2758
2760
|
"https"
|
|
2759
2761
|
];
|
|
2762
|
+
const env = {
|
|
2763
|
+
...opts.env,
|
|
2764
|
+
BROWSER: "true"
|
|
2765
|
+
};
|
|
2760
2766
|
if (interactive) return runStreaming("gh", args, {
|
|
2761
2767
|
...opts,
|
|
2768
|
+
env,
|
|
2762
2769
|
interactive: true
|
|
2763
2770
|
});
|
|
2764
2771
|
return runStreaming("gh", args, {
|
|
2765
2772
|
...opts,
|
|
2766
2773
|
input: "\n",
|
|
2767
2774
|
env: {
|
|
2768
|
-
|
|
2775
|
+
...env,
|
|
2769
2776
|
GH_PROMPT_DISABLED: "1"
|
|
2770
2777
|
}
|
|
2771
2778
|
});
|
|
@@ -3078,11 +3085,11 @@ function agentFromCommand(command) {
|
|
|
3078
3085
|
}
|
|
3079
3086
|
//#endregion
|
|
3080
3087
|
//#region src/tags/settings-page.css.ts
|
|
3081
|
-
var content$2 = "
|
|
3082
|
-
var agentGrid = "
|
|
3083
|
-
var defaultTag = "
|
|
3084
|
-
var toolGrid = "
|
|
3085
|
-
var iconBtn$3 = "_bU
|
|
3088
|
+
var content$2 = "_bW _F _G";
|
|
3089
|
+
var agentGrid = "_b0 _bI";
|
|
3090
|
+
var defaultTag = "_b6 _bP";
|
|
3091
|
+
var toolGrid = "_cc _bI";
|
|
3092
|
+
var iconBtn$3 = "_bU _M";
|
|
3086
3093
|
//#endregion
|
|
3087
3094
|
//#region src/tags/icons/icon-agent.marko
|
|
3088
3095
|
var PATHS = {
|
|
@@ -3102,7 +3109,7 @@ var icon_agent_default = _template("z", (input) => {
|
|
|
3102
3109
|
_if(() => {
|
|
3103
3110
|
if (d) {
|
|
3104
3111
|
const $scope1_id = _scope_id();
|
|
3105
|
-
_html(`<svg${_attr_class(["
|
|
3112
|
+
_html(`<svg${_attr_class(["_b", 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)}`);
|
|
3106
3113
|
_if(() => {
|
|
3107
3114
|
if (badge) {
|
|
3108
3115
|
const $scope3_id = _scope_id();
|
|
@@ -3260,7 +3267,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3260
3267
|
const $scope2_id = _scope_id();
|
|
3261
3268
|
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3262
3269
|
dialog_close_default({
|
|
3263
|
-
class: ["
|
|
3270
|
+
class: ["_f", "_g"],
|
|
3264
3271
|
content: _content("l0", () => {
|
|
3265
3272
|
_scope_reason();
|
|
3266
3273
|
_scope_id();
|
|
@@ -3324,9 +3331,9 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3324
3331
|
footer: attrTag({ content: _content_resume("o5", () => {
|
|
3325
3332
|
_scope_reason();
|
|
3326
3333
|
const $scope1_id = _scope_id();
|
|
3327
|
-
_html(`<button type=button${_attr_class(["
|
|
3334
|
+
_html(`<button type=button${_attr_class(["_f", "_g"])}${_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("_p")}></div>`);
|
|
3328
3335
|
dialog_close_default({
|
|
3329
|
-
class: "
|
|
3336
|
+
class: "_f",
|
|
3330
3337
|
content: _content("o2", () => {
|
|
3331
3338
|
_scope_reason();
|
|
3332
3339
|
_scope_id();
|
|
@@ -3564,7 +3571,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3564
3571
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "q15", $scope0_id);
|
|
3565
3572
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3566
3573
|
const titleId = _id();
|
|
3567
|
-
_html(`<div${_attr_class("
|
|
3574
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content$2)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>Settings</h1><p${_attr_class("_K")}>`);
|
|
3568
3575
|
_if(() => {
|
|
3569
3576
|
if (!setup) {
|
|
3570
3577
|
const $scope39_id = _scope_id();
|
|
@@ -3573,22 +3580,22 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3573
3580
|
return 0;
|
|
3574
3581
|
} else if (setup.ready) {
|
|
3575
3582
|
const $scope40_id = _scope_id();
|
|
3576
|
-
_html(`<span${_attr_class("
|
|
3583
|
+
_html(`<span${_attr_class("_bY")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
|
|
3577
3584
|
writeScope($scope40_id, {});
|
|
3578
3585
|
return 1;
|
|
3579
3586
|
} else {
|
|
3580
3587
|
const $scope4_id = _scope_id();
|
|
3581
|
-
_html(`<span${_attr_class("
|
|
3588
|
+
_html(`<span${_attr_class("_bZ")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope4_id, "b")}.`);
|
|
3582
3589
|
writeScope($scope4_id, {});
|
|
3583
3590
|
return 2;
|
|
3584
3591
|
}
|
|
3585
3592
|
}, $scope0_id, "g", 1, 1, 1, "</p>");
|
|
3586
|
-
_html(`</div><div${_attr_class("
|
|
3593
|
+
_html(`</div><div${_attr_class("_L")}><button${_attr_class(iconBtn$3)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
3587
3594
|
_set_serialize_reason(1);
|
|
3588
3595
|
const $childScope = _peek_scope_id();
|
|
3589
3596
|
icon_refresh_default({
|
|
3590
3597
|
size: 14,
|
|
3591
|
-
class: refreshing && "
|
|
3598
|
+
class: refreshing && "_v"
|
|
3592
3599
|
});
|
|
3593
3600
|
_html(`</button>${_el_resume($scope0_id, "i")}</div></header>`);
|
|
3594
3601
|
_if(() => {
|
|
@@ -3611,11 +3618,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3611
3618
|
return 0;
|
|
3612
3619
|
}
|
|
3613
3620
|
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
3614
|
-
_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("_p")}></div><label${_attr_class("_b2")}><span${_attr_class("_b3")}>Default</span><span${_attr_class("_d")}>`);
|
|
3615
3622
|
_attr_select_value($scope0_id, "s", input.preferred, _resume(function(v) {
|
|
3616
3623
|
setPreferred(v);
|
|
3617
3624
|
}, "q0", $scope0_id), () => {
|
|
3618
|
-
_html(`<select${_attr_class(["
|
|
3625
|
+
_html(`<select${_attr_class(["_e", "_b4"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
|
|
3619
3626
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3620
3627
|
const $scope41_id = _scope_id();
|
|
3621
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)}`);
|
|
@@ -3627,7 +3634,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3627
3634
|
const $childScope2 = _peek_scope_id();
|
|
3628
3635
|
icon_refresh_default({
|
|
3629
3636
|
size: 14,
|
|
3630
|
-
class: usageRefreshing && "
|
|
3637
|
+
class: usageRefreshing && "_v"
|
|
3631
3638
|
});
|
|
3632
3639
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(agentGrid)}>`);
|
|
3633
3640
|
_for_of(families, (a) => {
|
|
@@ -3636,7 +3643,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3636
3643
|
const rows = lone ? [] : a.instances;
|
|
3637
3644
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3638
3645
|
const extraAccounts = strayAccountsFor(a);
|
|
3639
|
-
_html(`<li${_attr_class(["_bK", "
|
|
3646
|
+
_html(`<li${_attr_class(["_bK", "_b1"])}><div${_attr_class("_b5")}>`);
|
|
3640
3647
|
_set_serialize_reason(12);
|
|
3641
3648
|
const $childScope3 = _peek_scope_id();
|
|
3642
3649
|
icon_agent_default({
|
|
@@ -3656,7 +3663,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3656
3663
|
_if(() => {
|
|
3657
3664
|
if (active.has(a.id)) {
|
|
3658
3665
|
const $scope8_id = _scope_id();
|
|
3659
|
-
_html(`<span${_attr_class("
|
|
3666
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope8_id, "c")}</span>`);
|
|
3660
3667
|
_subscribe($active__closures, writeScope($scope8_id, {}));
|
|
3661
3668
|
return 0;
|
|
3662
3669
|
} else if (!a.installed) {
|
|
@@ -3679,7 +3686,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3679
3686
|
_if(() => {
|
|
3680
3687
|
if (lone) {
|
|
3681
3688
|
const $scope36_id = _scope_id();
|
|
3682
|
-
_html(`<button${_attr_class(["
|
|
3689
|
+
_html(`<button${_attr_class(["_b8", { ["_b7"]: lone.enabled }])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope36_id, "b")}</button>${_el_resume($scope36_id, "a")}`);
|
|
3683
3690
|
_script($scope36_id, "q21");
|
|
3684
3691
|
writeScope($scope36_id, {});
|
|
3685
3692
|
return 0;
|
|
@@ -3689,18 +3696,18 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3689
3696
|
_if(() => {
|
|
3690
3697
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3691
3698
|
const $scope2_id = _scope_id();
|
|
3692
|
-
_html(`<ul${_attr_class("
|
|
3699
|
+
_html(`<ul${_attr_class("_cb")}>`);
|
|
3693
3700
|
_for_of(rows, (inst) => {
|
|
3694
3701
|
const $scope3_id = _scope_id();
|
|
3695
3702
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3696
|
-
_html(`<li${_attr_class("
|
|
3703
|
+
_html(`<li${_attr_class("_b9")}><div${_attr_class("_b_")}>`);
|
|
3697
3704
|
_set_serialize_reason(12);
|
|
3698
3705
|
const $childScope4 = _peek_scope_id();
|
|
3699
3706
|
icon_agent_default({
|
|
3700
3707
|
agent: inst.id,
|
|
3701
3708
|
size: 15
|
|
3702
3709
|
});
|
|
3703
|
-
_html(`<span${_attr_class(["
|
|
3710
|
+
_html(`<span${_attr_class(["_ca", "_o"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3704
3711
|
_if(() => {
|
|
3705
3712
|
if (input.preferred === inst.id) {
|
|
3706
3713
|
const $scope44_id = _scope_id();
|
|
@@ -3709,7 +3716,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3709
3716
|
return 0;
|
|
3710
3717
|
}
|
|
3711
3718
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
3712
|
-
_html(`<span${_attr_class("
|
|
3719
|
+
_html(`<span${_attr_class("_p")}></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>`);
|
|
3713
3720
|
_for_of(accounts, (u) => {
|
|
3714
3721
|
const $scope45_id = _scope_id();
|
|
3715
3722
|
_set_serialize_reason(6);
|
|
@@ -3771,7 +3778,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3771
3778
|
}, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
3772
3779
|
_for_of(otherUsage, (u) => {
|
|
3773
3780
|
const $scope48_id = _scope_id();
|
|
3774
|
-
_html(`<li${_attr_class(["_bK", "
|
|
3781
|
+
_html(`<li${_attr_class(["_bK", "_b1"])}>`);
|
|
3775
3782
|
_set_serialize_reason(6);
|
|
3776
3783
|
const $childScope8 = _peek_scope_id();
|
|
3777
3784
|
usage_meters_default({ agent: u });
|
|
@@ -3782,7 +3789,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3782
3789
|
_if(() => {
|
|
3783
3790
|
if (!usage && families.length) {
|
|
3784
3791
|
const $scope49_id = _scope_id();
|
|
3785
|
-
_html(`<p${_attr_class("_bT")}><span${_attr_class("
|
|
3792
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_w")}></span> Loading usage…</p>`);
|
|
3786
3793
|
writeScope($scope49_id, {});
|
|
3787
3794
|
return 0;
|
|
3788
3795
|
} else if (usage?.error) {
|
|
@@ -3796,7 +3803,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3796
3803
|
_for_of(setup?.github || [], (h) => {
|
|
3797
3804
|
const $scope9_id = _scope_id();
|
|
3798
3805
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3799
|
-
_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", "_o"])}>${_escape(h.host)}${_el_resume($scope9_id, "e")}</span>`);
|
|
3800
3807
|
_if(() => {
|
|
3801
3808
|
if (h.isEnterprise) {
|
|
3802
3809
|
const $scope52_id = _scope_id();
|
|
@@ -3809,12 +3816,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3809
3816
|
_if(() => {
|
|
3810
3817
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3811
3818
|
const $scope20_id = _scope_id();
|
|
3812
|
-
_html(`<span${_attr_class("
|
|
3819
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></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>`);
|
|
3813
3820
|
_subscribe($authCodes__closures, writeScope($scope20_id, {}));
|
|
3814
3821
|
return 0;
|
|
3815
3822
|
} else if (active.has(h.host)) {
|
|
3816
3823
|
const $scope10_id = _scope_id();
|
|
3817
|
-
_html(`<span${_attr_class("
|
|
3824
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3818
3825
|
_subscribe($active__closures, writeScope($scope10_id, { Cch: 1 }));
|
|
3819
3826
|
return 1;
|
|
3820
3827
|
} else if (h.authed) {
|
|
@@ -3880,7 +3887,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3880
3887
|
_if(() => {
|
|
3881
3888
|
if (setup) {
|
|
3882
3889
|
const $scope30_id = _scope_id();
|
|
3883
|
-
_html(`<form${_attr_class("
|
|
3890
|
+
_html(`<form${_attr_class("_cm")}><input${_attr_input_value($scope30_id, "b", hostInput)}${_attr_class("_ck")} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope30_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope30_id, "d")}</button>${_el_resume($scope30_id, "c")}</form>${_el_resume($scope30_id, "a")}`);
|
|
3884
3891
|
_script($scope30_id, "q25");
|
|
3885
3892
|
writeScope($scope30_id, {});
|
|
3886
3893
|
return 0;
|
|
@@ -3903,7 +3910,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3903
3910
|
return 0;
|
|
3904
3911
|
}
|
|
3905
3912
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
3906
|
-
_html(`<div${_attr_class("
|
|
3913
|
+
_html(`<div${_attr_class("_p")}></div>`);
|
|
3907
3914
|
_if(() => {
|
|
3908
3915
|
if (outdatedIds.length > 1) {
|
|
3909
3916
|
const $scope11_id = _scope_id();
|
|
@@ -3942,13 +3949,13 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3942
3949
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
3943
3950
|
_html(`<li${_attr_class([
|
|
3944
3951
|
"_bK",
|
|
3945
|
-
"
|
|
3946
|
-
{ ["
|
|
3947
|
-
])}><span${_attr_class(["
|
|
3952
|
+
"_cd",
|
|
3953
|
+
{ ["_ce"]: !t.installed }
|
|
3954
|
+
])}><span${_attr_class(["_cf", "_o"])}>${_escape(t.label)}${_el_resume($scope14_id, "c")}</span>`);
|
|
3948
3955
|
_if(() => {
|
|
3949
3956
|
if (active.has(t.id)) {
|
|
3950
3957
|
const $scope15_id = _scope_id();
|
|
3951
|
-
_html(`<span${_attr_class("
|
|
3958
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope15_id, "c")}</span>`);
|
|
3952
3959
|
_subscribe($active__closures, writeScope($scope15_id, { Cch: 2 }));
|
|
3953
3960
|
return 0;
|
|
3954
3961
|
} else if (t.installed) {
|
|
@@ -3956,13 +3963,13 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3956
3963
|
_if(() => {
|
|
3957
3964
|
if (t.version) {
|
|
3958
3965
|
const $scope27_id = _scope_id();
|
|
3959
|
-
_html(`<button${_attr_class(["
|
|
3966
|
+
_html(`<button${_attr_class(["_ch", "_o"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
|
|
3960
3967
|
_script($scope27_id, "q29");
|
|
3961
3968
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope27_id, { Cu: 1 }))));
|
|
3962
3969
|
return 0;
|
|
3963
3970
|
} else {
|
|
3964
3971
|
const $scope54_id = _scope_id();
|
|
3965
|
-
_html(`<span${_attr_class(["
|
|
3972
|
+
_html(`<span${_attr_class(["_cg", "_o"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope54_id, "b")}</span>${_el_resume($scope54_id, "a")}`);
|
|
3966
3973
|
_subscribe($for_content4__t_path__closures, writeScope($scope54_id, { Cx: 1 }));
|
|
3967
3974
|
return 1;
|
|
3968
3975
|
}
|
|
@@ -3970,7 +3977,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3970
3977
|
_if(() => {
|
|
3971
3978
|
if (outdated(t)) {
|
|
3972
3979
|
const $scope34_id = _scope_id();
|
|
3973
|
-
_html(`<button${_attr_class([btnSm, "
|
|
3980
|
+
_html(`<button${_attr_class([btnSm, "_ci"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope34_id, "b")}</button>${_el_resume($scope34_id, "a")}`);
|
|
3974
3981
|
_script($scope34_id, "q30");
|
|
3975
3982
|
_subscribe($for_content4__t_latest__closures, writeScope($scope34_id, {}));
|
|
3976
3983
|
return 0;
|
|
@@ -3980,17 +3987,17 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3980
3987
|
return 1;
|
|
3981
3988
|
} else if (t.installable) {
|
|
3982
3989
|
const $scope55_id = _scope_id();
|
|
3983
|
-
_html(`<span${_attr_class("
|
|
3990
|
+
_html(`<span${_attr_class("_cg")}>not installed</span>`);
|
|
3984
3991
|
writeScope($scope55_id, {});
|
|
3985
3992
|
return 2;
|
|
3986
3993
|
} else {
|
|
3987
3994
|
const $scope56_id = _scope_id();
|
|
3988
|
-
_html(`<span${_attr_class("
|
|
3995
|
+
_html(`<span${_attr_class("_cg")} title="Add it with your package manager">system package</span>`);
|
|
3989
3996
|
writeScope($scope56_id, {});
|
|
3990
3997
|
return 3;
|
|
3991
3998
|
}
|
|
3992
3999
|
}, $scope14_id, "d");
|
|
3993
|
-
_html(`<span${_attr_class("
|
|
4000
|
+
_html(`<span${_attr_class("_p")}></span>`);
|
|
3994
4001
|
_if(() => {
|
|
3995
4002
|
if (!active.has(t.id)) {
|
|
3996
4003
|
const $scope23_id = _scope_id();
|
|
@@ -4014,7 +4021,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4014
4021
|
_html(`<button${_attr_class([
|
|
4015
4022
|
"_bQ",
|
|
4016
4023
|
"_bS",
|
|
4017
|
-
"
|
|
4024
|
+
"_cj",
|
|
4018
4025
|
{ ["_bR"]: confirmingRemove === t.id }
|
|
4019
4026
|
])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
|
|
4020
4027
|
_script($scope24_id, "q32");
|
|
@@ -4047,18 +4054,18 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4047
4054
|
_if(() => {
|
|
4048
4055
|
if (setup && setup.mise.installed) {
|
|
4049
4056
|
const $scope16_id = _scope_id();
|
|
4050
|
-
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("
|
|
4057
|
+
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("_ck")} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope16_id, "a")}`);
|
|
4051
4058
|
_if(() => {
|
|
4052
4059
|
if (hits && hits.length) {
|
|
4053
4060
|
const $scope17_id = _scope_id();
|
|
4054
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4061
|
+
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4055
4062
|
_for_of(hits, (h) => {
|
|
4056
4063
|
const $scope18_id = _scope_id();
|
|
4057
|
-
_html(`<li${_attr_class(["_bK", "
|
|
4064
|
+
_html(`<li${_attr_class(["_bK", "_cd"])}><div${_attr_class("_bL")}><span${_attr_class(["_cf", "_o"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
4058
4065
|
_if(() => {
|
|
4059
4066
|
if (active.has(h.name)) {
|
|
4060
4067
|
const $scope19_id = _scope_id();
|
|
4061
|
-
_html(`<span${_attr_class("
|
|
4068
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
4062
4069
|
_subscribe($active__closures, writeScope($scope19_id, { Cch: 4 }));
|
|
4063
4070
|
return 0;
|
|
4064
4071
|
} else if (h.description) {
|
|
@@ -4201,8 +4208,8 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4201
4208
|
});
|
|
4202
4209
|
//#endregion
|
|
4203
4210
|
//#region src/tags/new-workspace.css.ts
|
|
4204
|
-
var content$1 = "
|
|
4205
|
-
var iconBtn$2 = "
|
|
4211
|
+
var content$1 = "_0 _F";
|
|
4212
|
+
var iconBtn$2 = "_3 _M";
|
|
4206
4213
|
//#endregion
|
|
4207
4214
|
//#region src/tags/icons/icon-plus.marko
|
|
4208
4215
|
var icon_plus_default = _template("M", (input) => {
|
|
@@ -4269,14 +4276,14 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4269
4276
|
input.onError?.(String(err.message || err));
|
|
4270
4277
|
}
|
|
4271
4278
|
}, "p5", $scope0_id);
|
|
4272
|
-
_html(`<div${_attr_class("
|
|
4279
|
+
_html(`<div${_attr_class("_cp")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
|
|
4273
4280
|
filter = v;
|
|
4274
4281
|
highlight = 0;
|
|
4275
|
-
}, "p0", $scope0_id))}${_attr_class("
|
|
4282
|
+
}, "p0", $scope0_id))}${_attr_class("_cB")} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
|
|
4276
4283
|
_if(() => {
|
|
4277
4284
|
if (filter && !catalog) {
|
|
4278
4285
|
const $scope8_id = _scope_id();
|
|
4279
|
-
_html(`<p${_attr_class("
|
|
4286
|
+
_html(`<p${_attr_class("_cA")}>Loading repos…</p>`);
|
|
4280
4287
|
writeScope($scope8_id, {});
|
|
4281
4288
|
return 0;
|
|
4282
4289
|
}
|
|
@@ -4284,23 +4291,23 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4284
4291
|
_if(() => {
|
|
4285
4292
|
if (results.length) {
|
|
4286
4293
|
const $scope2_id = _scope_id();
|
|
4287
|
-
_html(`<ul${_attr_class("
|
|
4294
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
4288
4295
|
_for_of(results, (repo, i) => {
|
|
4289
4296
|
const $scope3_id = _scope_id();
|
|
4290
|
-
_html(`<li><div${_attr_class(["
|
|
4297
|
+
_html(`<li><div${_attr_class(["_cs", { ["_cr"]: i === highlight }])}><button${_attr_class("_ct")}>`);
|
|
4291
4298
|
icon_plus_default({
|
|
4292
4299
|
size: 12,
|
|
4293
|
-
class: "
|
|
4300
|
+
class: "_cy"
|
|
4294
4301
|
});
|
|
4295
|
-
_html(`<span${_attr_class("
|
|
4302
|
+
_html(`<span${_attr_class("_cz")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class(["_cv", { ["_cu"]: 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")}`);
|
|
4296
4303
|
_if(() => {
|
|
4297
4304
|
if (branchesFor === repo.nameWithOwner) {
|
|
4298
4305
|
const $scope4_id = _scope_id();
|
|
4299
|
-
_html(`<div${_attr_class("
|
|
4306
|
+
_html(`<div${_attr_class("_cw")}>`);
|
|
4300
4307
|
_if(() => {
|
|
4301
4308
|
if (!branches) {
|
|
4302
4309
|
const $scope9_id = _scope_id();
|
|
4303
|
-
_html(`<p${_attr_class("
|
|
4310
|
+
_html(`<p${_attr_class("_cA")}><span${_attr_class("_w")}></span> Loading branches…</p>`);
|
|
4304
4311
|
writeScope($scope9_id, {});
|
|
4305
4312
|
return 0;
|
|
4306
4313
|
} else {
|
|
@@ -4310,24 +4317,24 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4310
4317
|
const $scope6_id = _scope_id();
|
|
4311
4318
|
_html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
|
|
4312
4319
|
branchFilter = _new_branchFilter;
|
|
4313
|
-
}, "p1", $scope6_id))}${_attr_class("
|
|
4320
|
+
}, "p1", $scope6_id))}${_attr_class("_cC")} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
|
|
4314
4321
|
_script($scope6_id, "p6");
|
|
4315
4322
|
_subscribe($branchFilter__closures, writeScope($scope6_id, { Ca9: 1 }));
|
|
4316
4323
|
return 0;
|
|
4317
4324
|
}
|
|
4318
4325
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4319
4326
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4320
|
-
_html(`<ul${_attr_class("
|
|
4327
|
+
_html(`<ul${_attr_class("_cx")}>`);
|
|
4321
4328
|
_for_of(shown, (branch) => {
|
|
4322
4329
|
const $scope7_id = _scope_id();
|
|
4323
|
-
_html(`<li><button${_attr_class(["
|
|
4330
|
+
_html(`<li><button${_attr_class(["_ct", "_cD"])}><span${_attr_class(["_cz", "_o"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4324
4331
|
_script($scope7_id, "p7");
|
|
4325
4332
|
writeScope($scope7_id, { e: branch });
|
|
4326
4333
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
4327
4334
|
_if(() => {
|
|
4328
4335
|
if (!shown.length) {
|
|
4329
4336
|
const $scope10_id = _scope_id();
|
|
4330
|
-
_html(`<li><p${_attr_class("
|
|
4337
|
+
_html(`<li><p${_attr_class("_cA")}>No branches match.</p></li>`);
|
|
4331
4338
|
writeScope($scope10_id, {});
|
|
4332
4339
|
return 0;
|
|
4333
4340
|
}
|
|
@@ -4352,7 +4359,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4352
4359
|
return 0;
|
|
4353
4360
|
} else if (filter && catalog) {
|
|
4354
4361
|
const $scope1_id = _scope_id();
|
|
4355
|
-
_html(`<p${_attr_class("
|
|
4362
|
+
_html(`<p${_attr_class("_cA")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4356
4363
|
writeScope($scope1_id, {});
|
|
4357
4364
|
return 1;
|
|
4358
4365
|
}
|
|
@@ -4466,7 +4473,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4466
4473
|
}
|
|
4467
4474
|
}, "m4", $scope0_id);
|
|
4468
4475
|
const titleId = _id();
|
|
4469
|
-
_html(`<div${_attr_class("
|
|
4476
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content$1)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>New workspace</h1><p${_attr_class("_K")}>Name the space and pick repos — or restore an archived one below.</p></div></header>`);
|
|
4470
4477
|
_if(() => {
|
|
4471
4478
|
if (error) {
|
|
4472
4479
|
const $scope4_id = _scope_id();
|
|
@@ -4487,28 +4494,28 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4487
4494
|
return 0;
|
|
4488
4495
|
}
|
|
4489
4496
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
4490
|
-
_html(`<label${_attr_class("
|
|
4497
|
+
_html(`<label${_attr_class("_4")}><span${_attr_class("_bo")}>Name</span><input${_attr_input_value($scope0_id, "k", name, _resume((_new_name) => {
|
|
4491
4498
|
name = _new_name;
|
|
4492
|
-
}, "m0", $scope0_id))}${_attr_class("
|
|
4499
|
+
}, "m0", $scope0_id))}${_attr_class("_bp")} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "k")}</label><section${_attr_class("_5")}><div${_attr_class("_6")}><h2${_attr_class("_bq")}>Repos</h2><button${_attr_class(iconBtn$2)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
4493
4500
|
_set_serialize_reason(1);
|
|
4494
4501
|
const $childScope = _peek_scope_id();
|
|
4495
4502
|
icon_refresh_default({
|
|
4496
4503
|
size: 14,
|
|
4497
|
-
class: catalogRefreshing && "
|
|
4504
|
+
class: catalogRefreshing && "_v"
|
|
4498
4505
|
});
|
|
4499
|
-
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("
|
|
4506
|
+
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("_7")}>`);
|
|
4500
4507
|
_for_of(selected, (repo) => {
|
|
4501
4508
|
const $scope1_id = _scope_id();
|
|
4502
|
-
_html(`<li${_attr_class("
|
|
4509
|
+
_html(`<li${_attr_class("_8")}><span${_attr_class("_9")}>${_escape(repo.fullName)}${_el_resume($scope1_id, "c")}</span>`);
|
|
4503
4510
|
_if(() => {
|
|
4504
4511
|
if (repo.baseBranch) {
|
|
4505
4512
|
const $scope8_id = _scope_id();
|
|
4506
|
-
_html(`<span${_attr_class(["
|
|
4513
|
+
_html(`<span${_attr_class(["__", "_o"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "b")}</span>`);
|
|
4507
4514
|
writeScope($scope8_id, {});
|
|
4508
4515
|
return 0;
|
|
4509
4516
|
}
|
|
4510
4517
|
}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
4511
|
-
_html(`<button${_attr_class("
|
|
4518
|
+
_html(`<button${_attr_class("_ba")}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope1_id, "e")}</li>`);
|
|
4512
4519
|
_script($scope1_id, "m10");
|
|
4513
4520
|
writeScope($scope1_id, {
|
|
4514
4521
|
h: repo?.fullName,
|
|
@@ -4518,7 +4525,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4518
4525
|
_if(() => {
|
|
4519
4526
|
if (!selected.length) {
|
|
4520
4527
|
const $scope9_id = _scope_id();
|
|
4521
|
-
_html(`<li${_attr_class("
|
|
4528
|
+
_html(`<li${_attr_class("_bb")}>No repos yet — search below to add one (or create empty).</li>`);
|
|
4522
4529
|
writeScope($scope9_id, {});
|
|
4523
4530
|
return 0;
|
|
4524
4531
|
}
|
|
@@ -4543,19 +4550,19 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4543
4550
|
_if(() => {
|
|
4544
4551
|
if (busy && steps$1.length) {
|
|
4545
4552
|
const $scope6_id = _scope_id();
|
|
4546
|
-
_html(`<ul${_attr_class("
|
|
4553
|
+
_html(`<ul${_attr_class("_bc")}>`);
|
|
4547
4554
|
_for_of(steps$1, (step$1, i) => {
|
|
4548
4555
|
const $scope7_id = _scope_id();
|
|
4549
|
-
_html(`<li${_attr_class(["
|
|
4556
|
+
_html(`<li${_attr_class(["_br", { ["_bd"]: i === steps$1.length - 1 }])}>`);
|
|
4550
4557
|
_if(() => {
|
|
4551
4558
|
if (i === steps$1.length - 1) {
|
|
4552
4559
|
const $scope10_id = _scope_id();
|
|
4553
|
-
_html(`<span${_attr_class("
|
|
4560
|
+
_html(`<span${_attr_class("_w")}></span>`);
|
|
4554
4561
|
writeScope($scope10_id, {});
|
|
4555
4562
|
return 0;
|
|
4556
4563
|
} else {
|
|
4557
4564
|
const $scope11_id = _scope_id();
|
|
4558
|
-
_html(`<span${_attr_class("
|
|
4565
|
+
_html(`<span${_attr_class("_be")}>✓</span>`);
|
|
4559
4566
|
writeScope($scope11_id, {});
|
|
4560
4567
|
return 1;
|
|
4561
4568
|
}
|
|
@@ -4567,23 +4574,23 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4567
4574
|
return 0;
|
|
4568
4575
|
}
|
|
4569
4576
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
4570
|
-
_html(`<div${_attr_class("
|
|
4571
|
-
"
|
|
4572
|
-
"
|
|
4573
|
-
"
|
|
4574
|
-
"
|
|
4577
|
+
_html(`<div${_attr_class("_1")}><button type=button${_attr_class(["_f", "_bs"])}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope0_id, "x")}<button type=button${_attr_class([
|
|
4578
|
+
"_f",
|
|
4579
|
+
"_g",
|
|
4580
|
+
"_2",
|
|
4581
|
+
"_bs"
|
|
4575
4582
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "z")}</button>${_el_resume($scope0_id, "y")}</div>`);
|
|
4576
4583
|
_if(() => {
|
|
4577
4584
|
if (archived$1.length) {
|
|
4578
4585
|
const $scope2_id = _scope_id();
|
|
4579
|
-
_html(`<section${_attr_class("
|
|
4586
|
+
_html(`<section${_attr_class("_bf")}><div${_attr_class("_6")}><h2${_attr_class("_bq")}>Archived</h2><span${_attr_class("_bg")}>${_escape(archived$1.length)}${_el_resume($scope2_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class("_bh")}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bi")}>`);
|
|
4580
4587
|
_for_of(archived$1, (ws) => {
|
|
4581
4588
|
const $scope3_id = _scope_id();
|
|
4582
|
-
_html(`<li${_attr_class("
|
|
4589
|
+
_html(`<li${_attr_class("_bj")}><div${_attr_class("_bk")}><span${_attr_class("_bl")}>${_escape(ws.name)}${_el_resume($scope3_id, "d", $sg__input_workspaces)}</span><span${_attr_class(["_bm", "_o"])}${_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(["_f", "_bn"])}${_attr("disabled", busy || !!restoring)}>`);
|
|
4583
4590
|
_if(() => {
|
|
4584
4591
|
if (restoring === ws.id) {
|
|
4585
4592
|
const $scope12_id = _scope_id();
|
|
4586
|
-
_html(`<span${_attr_class("
|
|
4593
|
+
_html(`<span${_attr_class("_w")}></span> Restoring…`);
|
|
4587
4594
|
writeScope($scope12_id, {});
|
|
4588
4595
|
return 0;
|
|
4589
4596
|
} else {
|
|
@@ -4718,8 +4725,8 @@ function activeAgent(session) {
|
|
|
4718
4725
|
const command = session.state?.command?.trim();
|
|
4719
4726
|
return command && agentFromCommand(command) || session.agent;
|
|
4720
4727
|
}
|
|
4721
|
-
var iconBtn$1 = "
|
|
4722
|
-
var navToggle = "
|
|
4728
|
+
var iconBtn$1 = "_dv _M";
|
|
4729
|
+
var navToggle = "_dA _M";
|
|
4723
4730
|
_template("C", (input) => {
|
|
4724
4731
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4725
4732
|
const $scope0_id = _scope_id();
|
|
@@ -4752,7 +4759,7 @@ var icon_settings_default = _template("P", (input) => {
|
|
|
4752
4759
|
});
|
|
4753
4760
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4754
4761
|
});
|
|
4755
|
-
var railBtn = "
|
|
4762
|
+
var railBtn = "_fC _M";
|
|
4756
4763
|
//#endregion
|
|
4757
4764
|
//#region src/tags/icons/icon-diff.marko
|
|
4758
4765
|
var icon_diff_default = _template("F", (input) => {
|
|
@@ -4804,8 +4811,8 @@ var icon_edit_default = _template("H", (input) => {
|
|
|
4804
4811
|
});
|
|
4805
4812
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4806
4813
|
});
|
|
4807
|
-
var prChip = "_ge
|
|
4808
|
-
var portChip = "_gf
|
|
4814
|
+
var prChip = "_ge _j _gd";
|
|
4815
|
+
var portChip = "_gf _j _gd";
|
|
4809
4816
|
var prState = {
|
|
4810
4817
|
open: "_gk",
|
|
4811
4818
|
merged: "_gl",
|
|
@@ -4880,11 +4887,11 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4880
4887
|
const $scope3_id = _scope_id();
|
|
4881
4888
|
const open = isOpen(pr);
|
|
4882
4889
|
_html(`<span${_attr_class([
|
|
4883
|
-
"
|
|
4890
|
+
"_j",
|
|
4884
4891
|
prChip,
|
|
4885
4892
|
{
|
|
4886
|
-
["
|
|
4887
|
-
["
|
|
4893
|
+
["_l"]: open && !pr.isDraft,
|
|
4894
|
+
["_m"]: open && pr.isDraft,
|
|
4888
4895
|
[prState.merged]: pr.state === "MERGED",
|
|
4889
4896
|
[prState.closed]: pr.state === "CLOSED"
|
|
4890
4897
|
}
|
|
@@ -4927,7 +4934,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4927
4934
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
4928
4935
|
_for_of(ports, (p) => {
|
|
4929
4936
|
const $scope5_id = _scope_id();
|
|
4930
|
-
_html(`<span${_attr_class(["
|
|
4937
|
+
_html(`<span${_attr_class(["_j", 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([
|
|
4931
4938
|
"_gg",
|
|
4932
4939
|
"_gh",
|
|
4933
4940
|
"_gi",
|
|
@@ -5013,10 +5020,10 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5013
5020
|
_if(() => {
|
|
5014
5021
|
if (input.rail) {
|
|
5015
5022
|
const $scope2_id = _scope_id();
|
|
5016
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5017
|
-
"
|
|
5023
|
+
_html(`<button${_attr_class([railBtn, { ["_fz"]: 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
|
+
"_q",
|
|
5018
5025
|
phase[dot],
|
|
5019
|
-
"
|
|
5026
|
+
"_fD"
|
|
5020
5027
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5021
5028
|
_script($scope2_id, "s3");
|
|
5022
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) }))));
|
|
@@ -5025,14 +5032,14 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5025
5032
|
const $scope3_id = _scope_id();
|
|
5026
5033
|
const sessions$1 = input.sessions || [];
|
|
5027
5034
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
5028
|
-
_html(`<section${_attr_class(["
|
|
5029
|
-
["
|
|
5030
|
-
["
|
|
5031
|
-
["
|
|
5032
|
-
}])}><div${_attr_class("
|
|
5033
|
-
"
|
|
5035
|
+
_html(`<section${_attr_class(["_fF", {
|
|
5036
|
+
["_fz"]: input.current,
|
|
5037
|
+
["_fG"]: input.railPop,
|
|
5038
|
+
["_fE"]: input.page
|
|
5039
|
+
}])}><div${_attr_class("_fH")}><button${_attr_class("_fI")}><span${_attr_class([
|
|
5040
|
+
"_q",
|
|
5034
5041
|
phase[dot],
|
|
5035
|
-
"
|
|
5042
|
+
"_fS"
|
|
5036
5043
|
])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5037
5044
|
_if(() => {
|
|
5038
5045
|
if (sessions$1.length === 1) {
|
|
@@ -5045,7 +5052,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5045
5052
|
icon_agent_default({
|
|
5046
5053
|
agent: activeAgent(sessions$1[0]),
|
|
5047
5054
|
size: 12,
|
|
5048
|
-
class: "
|
|
5055
|
+
class: "_fN"
|
|
5049
5056
|
});
|
|
5050
5057
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5051
5058
|
_: _scope_with_id($scope3_id),
|
|
@@ -5055,11 +5062,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5055
5062
|
}
|
|
5056
5063
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5057
5064
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5058
|
-
_html(`<span${_attr_class("
|
|
5065
|
+
_html(`<span${_attr_class("_fO")}><span${_attr_class("_fP")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5059
5066
|
_if(() => {
|
|
5060
5067
|
if (input.page && metaText) {
|
|
5061
5068
|
const $scope13_id = _scope_id();
|
|
5062
|
-
_html(`<span${_attr_class("
|
|
5069
|
+
_html(`<span${_attr_class("_fQ")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5063
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) });
|
|
5064
5071
|
return 0;
|
|
5065
5072
|
}
|
|
@@ -5068,7 +5075,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5068
5075
|
_if(() => {
|
|
5069
5076
|
if (input.page) {
|
|
5070
5077
|
const $scope4_id = _scope_id();
|
|
5071
|
-
_html(`<span${_attr_class("
|
|
5078
|
+
_html(`<span${_attr_class("_fR")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5072
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, {
|
|
5073
5080
|
_: _scope_with_id($scope3_id),
|
|
5074
5081
|
Cab: $si__input_current && 2
|
|
@@ -5080,21 +5087,21 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5080
5087
|
_if(() => {
|
|
5081
5088
|
if (!input.page) {
|
|
5082
5089
|
const $scope5_id = _scope_id();
|
|
5083
|
-
_html(`<div${_attr_class("
|
|
5090
|
+
_html(`<div${_attr_class("_fJ")}>`);
|
|
5084
5091
|
_if(() => {
|
|
5085
5092
|
if (input.onNewSession) {
|
|
5086
5093
|
const $scope6_id = _scope_id();
|
|
5087
5094
|
const newPopId = _id();
|
|
5088
5095
|
let pickerReady = false;
|
|
5089
|
-
_html(`<button${_attr_class("
|
|
5096
|
+
_html(`<button${_attr_class("_fL")} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
5090
5097
|
icon_agent_default({
|
|
5091
5098
|
agent: "shell",
|
|
5092
5099
|
size: 12
|
|
5093
5100
|
});
|
|
5094
|
-
_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("_e6")}>`);
|
|
5095
5102
|
_for_of([], (agent) => {
|
|
5096
5103
|
const $scope7_id = _scope_id();
|
|
5097
|
-
_html(`<button${_attr_class("
|
|
5104
|
+
_html(`<button${_attr_class("_e7")}>`);
|
|
5098
5105
|
_set_serialize_reason(12);
|
|
5099
5106
|
const $childScope2 = _peek_scope_id();
|
|
5100
5107
|
icon_agent_default({
|
|
@@ -5119,7 +5126,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5119
5126
|
_if(() => {
|
|
5120
5127
|
if (input.onReview) {
|
|
5121
5128
|
const $scope8_id = _scope_id();
|
|
5122
|
-
_html(`<button${_attr_class("
|
|
5129
|
+
_html(`<button${_attr_class("_fL")} title="Review changes">`);
|
|
5123
5130
|
icon_diff_default({ size: 12 });
|
|
5124
5131
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
5125
5132
|
_script($scope8_id, "s6");
|
|
@@ -5127,7 +5134,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5127
5134
|
return 0;
|
|
5128
5135
|
}
|
|
5129
5136
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5130
|
-
_html(`<button${_attr_class(["
|
|
5137
|
+
_html(`<button${_attr_class(["_fL", { ["_fA"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5131
5138
|
icon_manage_default({ size: 12 });
|
|
5132
5139
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5133
5140
|
_script($scope5_id, "s7");
|
|
@@ -5135,17 +5142,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5135
5142
|
return 0;
|
|
5136
5143
|
}
|
|
5137
5144
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
5138
|
-
_html(`</div><div${_attr_class("
|
|
5145
|
+
_html(`</div><div${_attr_class("_fX")}>`);
|
|
5139
5146
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5140
5147
|
const $scope9_id = _scope_id();
|
|
5141
|
-
_html(`<div${_attr_class(["
|
|
5148
|
+
_html(`<div${_attr_class(["_fK", { ["_fz"]: s.id === input.currentTab }])}>`);
|
|
5142
5149
|
_if(() => {
|
|
5143
5150
|
if (renamingId === s.id) {
|
|
5144
5151
|
const $scope11_id = _scope_id();
|
|
5145
5152
|
_html(`<span${_attr_class([
|
|
5146
|
-
"
|
|
5153
|
+
"_q",
|
|
5147
5154
|
phase[sessionPhase(s.state)],
|
|
5148
|
-
"
|
|
5155
|
+
"_fV"
|
|
5149
5156
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5150
5157
|
_set_serialize_reason({
|
|
5151
5158
|
1: $sg__input_sessions,
|
|
@@ -5155,17 +5162,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5155
5162
|
icon_agent_default({
|
|
5156
5163
|
agent: activeAgent(s),
|
|
5157
5164
|
size: 13,
|
|
5158
|
-
class: "
|
|
5165
|
+
class: "_fZ"
|
|
5159
5166
|
});
|
|
5160
5167
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5161
5168
|
renameValue = _new_renameValue;
|
|
5162
|
-
}, "s0", $scope11_id))}${_attr_class("
|
|
5169
|
+
}, "s0", $scope11_id))}${_attr_class("_fW")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5163
5170
|
_script($scope11_id, "s8");
|
|
5164
5171
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5165
5172
|
return 0;
|
|
5166
5173
|
} else {
|
|
5167
5174
|
const $scope10_id = _scope_id();
|
|
5168
|
-
_html(`<button${_attr_class("
|
|
5175
|
+
_html(`<button${_attr_class("_fY")}><span${_attr_class(["_q", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5169
5176
|
_set_serialize_reason({
|
|
5170
5177
|
1: $sg__input_sessions,
|
|
5171
5178
|
2: $sg__input_sessions
|
|
@@ -5174,11 +5181,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5174
5181
|
icon_agent_default({
|
|
5175
5182
|
agent: activeAgent(s),
|
|
5176
5183
|
size: 13,
|
|
5177
|
-
class: "
|
|
5184
|
+
class: "_fZ"
|
|
5178
5185
|
});
|
|
5179
|
-
_html(`<span${_attr_class("
|
|
5186
|
+
_html(`<span${_attr_class("_fT")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fU")}><button${_attr_class("_fL")} title="Rename session">`);
|
|
5180
5187
|
icon_edit_default({ size: 12 });
|
|
5181
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["
|
|
5188
|
+
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["_fM", { ["_fB"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
5182
5189
|
_script($scope10_id, "s9");
|
|
5183
5190
|
_subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5184
5191
|
return 1;
|
|
@@ -5359,25 +5366,25 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5359
5366
|
const wsSelected = view !== "settings" && view !== "new";
|
|
5360
5367
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5361
5368
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5362
|
-
_html(`<aside${_attr_class(["
|
|
5363
|
-
["
|
|
5364
|
-
["
|
|
5369
|
+
_html(`<aside${_attr_class(["_dz", {
|
|
5370
|
+
["_dx"]: !navOpen,
|
|
5371
|
+
["_dy"]: isPage
|
|
5365
5372
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5366
5373
|
_if(() => {
|
|
5367
5374
|
if (isPage) {
|
|
5368
5375
|
const $scope1_id = _scope_id();
|
|
5369
|
-
_html(`<header${_attr_class("
|
|
5376
|
+
_html(`<header${_attr_class("_dC")}><h1${_attr_class("_dD")}>Workspaces</h1><div${_attr_class("_dE")}>`);
|
|
5370
5377
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5371
5378
|
_html(`<button${_attr_class([
|
|
5372
5379
|
iconBtn$1,
|
|
5373
|
-
"
|
|
5374
|
-
{ ["
|
|
5380
|
+
"_dF",
|
|
5381
|
+
{ ["_du"]: view === "settings" }
|
|
5375
5382
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5376
5383
|
icon_settings_default({ size: 16 });
|
|
5377
5384
|
_if(() => {
|
|
5378
5385
|
if (input.setupReady === false) {
|
|
5379
5386
|
const $scope10_id = _scope_id();
|
|
5380
|
-
_html(`<span${_attr_class(["
|
|
5387
|
+
_html(`<span${_attr_class(["_q", "_dw"])} title="Machine setup incomplete"></span>`);
|
|
5381
5388
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5382
5389
|
return 0;
|
|
5383
5390
|
}
|
|
@@ -5388,13 +5395,13 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5388
5395
|
return 0;
|
|
5389
5396
|
}
|
|
5390
5397
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5391
|
-
_html(`<div${_attr_class("
|
|
5398
|
+
_html(`<div${_attr_class("_dI")}>`);
|
|
5392
5399
|
_for_of(listIds, (wsId) => {
|
|
5393
5400
|
const $scope2_id = _scope_id();
|
|
5394
5401
|
_if(() => {
|
|
5395
5402
|
if (isPage && wsId === ws.id) {
|
|
5396
5403
|
const $scope11_id = _scope_id();
|
|
5397
|
-
_html(`<h2${_attr_class("
|
|
5404
|
+
_html(`<h2${_attr_class("_dG")}>Current</h2>`);
|
|
5398
5405
|
writeScope($scope11_id, {});
|
|
5399
5406
|
return 0;
|
|
5400
5407
|
}
|
|
@@ -5402,7 +5409,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5402
5409
|
_if(() => {
|
|
5403
5410
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5404
5411
|
const $scope12_id = _scope_id();
|
|
5405
|
-
_html(`<h2${_attr_class("
|
|
5412
|
+
_html(`<h2${_attr_class("_dG")}>Other spaces</h2>`);
|
|
5406
5413
|
writeScope($scope12_id, {});
|
|
5407
5414
|
return 0;
|
|
5408
5415
|
}
|
|
@@ -5500,7 +5507,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5500
5507
|
railHover = null;
|
|
5501
5508
|
}, 150);
|
|
5502
5509
|
}, "t9", $scope3_id);
|
|
5503
|
-
_html(`<div${_attr_class("
|
|
5510
|
+
_html(`<div${_attr_class("_dJ")}>`);
|
|
5504
5511
|
_for_of(itemIds, (wsId, i) => {
|
|
5505
5512
|
const $scope4_id = _scope_id();
|
|
5506
5513
|
_html("<span>");
|
|
@@ -5547,7 +5554,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5547
5554
|
if (railHover) {
|
|
5548
5555
|
const $scope5_id = _scope_id();
|
|
5549
5556
|
const hoverId = railHover.id;
|
|
5550
|
-
_html(`<div${_attr_class("
|
|
5557
|
+
_html(`<div${_attr_class("_dM")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5551
5558
|
_set_serialize_reason({
|
|
5552
5559
|
0: 1,
|
|
5553
5560
|
1: 1,
|
|
@@ -5650,11 +5657,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5650
5657
|
return 0;
|
|
5651
5658
|
}
|
|
5652
5659
|
}, $scope0_id, "d");
|
|
5653
|
-
_html(`<div${_attr_class("
|
|
5660
|
+
_html(`<div${_attr_class("_dK")}>`);
|
|
5654
5661
|
_if(() => {
|
|
5655
5662
|
if (isPage) {
|
|
5656
5663
|
const $scope6_id = _scope_id();
|
|
5657
|
-
_html(`<button${_attr_class(["
|
|
5664
|
+
_html(`<button${_attr_class(["_dH", { ["_du"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5658
5665
|
icon_folder_plus_default({ size: 16 });
|
|
5659
5666
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
5660
5667
|
_script($scope6_id, "t21");
|
|
@@ -5676,19 +5683,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5676
5683
|
return 1;
|
|
5677
5684
|
}
|
|
5678
5685
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5679
|
-
_html(`<div${_attr_class(["
|
|
5686
|
+
_html(`<div${_attr_class(["_p", "_dL"])}></div>`);
|
|
5680
5687
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5681
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5688
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_du"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5682
5689
|
icon_settings_default({ size: 15 });
|
|
5683
5690
|
_if(() => {
|
|
5684
5691
|
if (input.setupReady === false) {
|
|
5685
5692
|
const $scope15_id = _scope_id();
|
|
5686
|
-
_html(`<span${_attr_class(["
|
|
5693
|
+
_html(`<span${_attr_class(["_q", "_dw"])} title="Machine setup incomplete"></span>`);
|
|
5687
5694
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5688
5695
|
return 0;
|
|
5689
5696
|
}
|
|
5690
5697
|
}, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
5691
|
-
_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, { ["_du"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5692
5699
|
icon_folder_plus_default({ size: 16 });
|
|
5693
5700
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5694
5701
|
_script($scope7_id, "t23");
|
|
@@ -5763,9 +5770,9 @@ function repoWebUrl(fullName) {
|
|
|
5763
5770
|
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
5764
5771
|
return `https://github.com/${fullName}`;
|
|
5765
5772
|
}
|
|
5766
|
-
var iconBtn = "_bU
|
|
5767
|
-
var content = "
|
|
5768
|
-
var pageMeta = "
|
|
5773
|
+
var iconBtn = "_bU _M";
|
|
5774
|
+
var content = "_cE _F";
|
|
5775
|
+
var pageMeta = "_cF _K";
|
|
5769
5776
|
//#endregion
|
|
5770
5777
|
//#region src/tags/manage-workspace.marko
|
|
5771
5778
|
var api$2;
|
|
@@ -5859,16 +5866,16 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5859
5866
|
setTimeout(() => loadProcs(void 0), 500);
|
|
5860
5867
|
}, "k5", $scope0_id);
|
|
5861
5868
|
const titleId = _id();
|
|
5862
|
-
_html(`<div${_attr_class("
|
|
5869
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cG")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
|
|
5863
5870
|
_if(() => {
|
|
5864
5871
|
if (ws.status !== "active") {
|
|
5865
5872
|
const $scope10_id = _scope_id();
|
|
5866
|
-
_html(`<span${_attr_class(["
|
|
5873
|
+
_html(`<span${_attr_class(["_cJ", "_cK"])}>Archived</span>`);
|
|
5867
5874
|
writeScope($scope10_id, {});
|
|
5868
5875
|
return 0;
|
|
5869
5876
|
}
|
|
5870
5877
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
5871
|
-
_html(`<span${_attr_class("
|
|
5878
|
+
_html(`<span${_attr_class("_cH")} aria-hidden=true>·</span><span${_attr_class(["_cI", "_o"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
|
|
5872
5879
|
_if(() => {
|
|
5873
5880
|
if (error) {
|
|
5874
5881
|
const $scope2_id = _scope_id();
|
|
@@ -5892,26 +5899,26 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5892
5899
|
_if(() => {
|
|
5893
5900
|
if (pendingAction && actionStep) {
|
|
5894
5901
|
const $scope7_id = _scope_id();
|
|
5895
|
-
_html(`<p${_attr_class("_bE")}><span${_attr_class("
|
|
5902
|
+
_html(`<p${_attr_class("_bE")}><span${_attr_class("_w")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
5896
5903
|
writeScope($scope7_id, {});
|
|
5897
5904
|
return 0;
|
|
5898
5905
|
}
|
|
5899
5906
|
}, $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
5900
|
-
_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("_p")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5901
5908
|
_set_serialize_reason(1);
|
|
5902
5909
|
const $childScope = _peek_scope_id();
|
|
5903
5910
|
icon_refresh_default({
|
|
5904
5911
|
size: 14,
|
|
5905
|
-
class: catalogRefreshing && "
|
|
5912
|
+
class: catalogRefreshing && "_v"
|
|
5906
5913
|
});
|
|
5907
5914
|
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_bI")}>`);
|
|
5908
5915
|
_for_of(ws.repos, (row) => {
|
|
5909
5916
|
const $scope1_id = _scope_id();
|
|
5910
|
-
_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", "_o"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bN")}><a${_attr_class(["_bO", "_cM"])}${_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")}`);
|
|
5911
5918
|
_if(() => {
|
|
5912
5919
|
if (row.base_branch !== row.default_branch) {
|
|
5913
5920
|
const $scope11_id = _scope_id();
|
|
5914
|
-
_html(`<span${_attr_class(["_bP", "
|
|
5921
|
+
_html(`<span${_attr_class(["_bP", "_o"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
|
|
5915
5922
|
writeScope($scope11_id, {});
|
|
5916
5923
|
return 0;
|
|
5917
5924
|
}
|
|
@@ -5920,7 +5927,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5920
5927
|
_if(() => {
|
|
5921
5928
|
if (busy.has(row.full_name)) {
|
|
5922
5929
|
const $scope12_id = _scope_id();
|
|
5923
|
-
_html(`<span${_attr_class("
|
|
5930
|
+
_html(`<span${_attr_class("_w")}></span>`);
|
|
5924
5931
|
writeScope($scope12_id, {});
|
|
5925
5932
|
return 0;
|
|
5926
5933
|
} else {
|
|
@@ -5945,7 +5952,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5945
5952
|
}, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5946
5953
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
5947
5954
|
const $scope13_id = _scope_id();
|
|
5948
|
-
_html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("
|
|
5955
|
+
_html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("_w")}></span><div${_attr_class("_bL")}><span${_attr_class("_bO")}>Adding <!>${_escape(name)}${_el_resume($scope13_id, "e")}…</span></div></li>`);
|
|
5949
5956
|
writeScope($scope13_id, {});
|
|
5950
5957
|
}, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5951
5958
|
_html("</ul>");
|
|
@@ -5957,7 +5964,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5957
5964
|
return 0;
|
|
5958
5965
|
}
|
|
5959
5966
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
5960
|
-
_html(`<div${_attr_class("
|
|
5967
|
+
_html(`<div${_attr_class("_cL")}>`);
|
|
5961
5968
|
const $childScope2 = _peek_scope_id();
|
|
5962
5969
|
let refreshCatalog = repo_picker_default({
|
|
5963
5970
|
exclude: inWorkspace,
|
|
@@ -5980,14 +5987,14 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5980
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")}>`);
|
|
5981
5988
|
_for_of(running, (p) => {
|
|
5982
5989
|
const $scope9_id = _scope_id();
|
|
5983
|
-
_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", "_o"])}>${_escape(p.cmd)}${_el_resume($scope9_id, "d")}</span>`);
|
|
5984
5991
|
_if(() => {
|
|
5985
5992
|
if (p.ports.length) {
|
|
5986
5993
|
const $scope15_id = _scope_id();
|
|
5987
5994
|
_html(`<span${_attr_class("_bN")}>`);
|
|
5988
5995
|
_for_of(p.ports, (port) => {
|
|
5989
5996
|
const $scope16_id = _scope_id();
|
|
5990
|
-
_html(`<button${_attr_class(["
|
|
5997
|
+
_html(`<button${_attr_class(["_j", "_cN"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
|
|
5991
5998
|
_script($scope16_id, "k13");
|
|
5992
5999
|
writeScope($scope16_id, { d: port });
|
|
5993
6000
|
}, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6007,28 +6014,28 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6007
6014
|
return 0;
|
|
6008
6015
|
}
|
|
6009
6016
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
6010
|
-
_html(`<section${_attr_class(["_bF", "
|
|
6017
|
+
_html(`<section${_attr_class(["_bF", "_cO"])}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Workspace</h2></div><div${_attr_class("_cP")}>`);
|
|
6011
6018
|
_if(() => {
|
|
6012
6019
|
if (ws.status === "active") {
|
|
6013
6020
|
const $scope4_id = _scope_id();
|
|
6014
|
-
_html(`<button type=button${_attr_class(["
|
|
6021
|
+
_html(`<button type=button${_attr_class(["_f", "_cQ"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
6015
6022
|
_script($scope4_id, "k15");
|
|
6016
6023
|
writeScope($scope4_id, {});
|
|
6017
6024
|
return 0;
|
|
6018
6025
|
} else {
|
|
6019
6026
|
const $scope5_id = _scope_id();
|
|
6020
|
-
_html(`<button type=button${_attr_class(["
|
|
6027
|
+
_html(`<button type=button${_attr_class(["_f", "_cQ"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
6021
6028
|
_script($scope5_id, "k16");
|
|
6022
6029
|
writeScope($scope5_id, {});
|
|
6023
6030
|
return 1;
|
|
6024
6031
|
}
|
|
6025
6032
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
6026
6033
|
_html(`<button type=button${_attr_class([
|
|
6027
|
-
"
|
|
6028
|
-
"
|
|
6029
|
-
"
|
|
6030
|
-
{ ["
|
|
6031
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("
|
|
6034
|
+
"_f",
|
|
6035
|
+
"_i",
|
|
6036
|
+
"_cQ",
|
|
6037
|
+
{ ["_h"]: confirmingDelete }
|
|
6038
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_cR")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
6032
6039
|
_script($scope0_id, "k17");
|
|
6033
6040
|
_script($scope0_id, "k18");
|
|
6034
6041
|
writeScope($scope0_id, {
|
|
@@ -6099,15 +6106,15 @@ var term_find_default = _template("u", (input) => {
|
|
|
6099
6106
|
const canStep = hasQuery && open;
|
|
6100
6107
|
const keybar = input.placement === "keybar";
|
|
6101
6108
|
_html(`<div${_attr_class([
|
|
6102
|
-
"
|
|
6103
|
-
keybar ? "
|
|
6104
|
-
!open && "
|
|
6105
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6109
|
+
"_fr",
|
|
6110
|
+
keybar ? "_ft" : "_fs",
|
|
6111
|
+
!open && "_fv"
|
|
6112
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fm", keybar ? "_fu" : "_fo"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6106
6113
|
if (!open) return;
|
|
6107
6114
|
query = v;
|
|
6108
6115
|
live.query = v;
|
|
6109
6116
|
run(0);
|
|
6110
|
-
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6117
|
+
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_fw"])} 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 && "_fx"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fx"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fx"])} 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")}`);
|
|
6111
6118
|
_script($scope0_id, "u4");
|
|
6112
6119
|
_script($scope0_id, "u5");
|
|
6113
6120
|
_script($scope0_id, "u6");
|
|
@@ -6376,7 +6383,7 @@ var term_default = _template("v", (input) => {
|
|
|
6376
6383
|
trapOpen = true;
|
|
6377
6384
|
}
|
|
6378
6385
|
}, "v14", $scope0_id);
|
|
6379
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6386
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_cT")}><div${_attr_class("_cU")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6380
6387
|
_if(() => {
|
|
6381
6388
|
if (findOpen) {
|
|
6382
6389
|
const $scope11_id = _scope_id();
|
|
@@ -6403,7 +6410,7 @@ var term_default = _template("v", (input) => {
|
|
|
6403
6410
|
_if(() => {
|
|
6404
6411
|
if (uploading) {
|
|
6405
6412
|
const $scope18_id = _scope_id();
|
|
6406
|
-
_html(`<div${_attr_class("
|
|
6413
|
+
_html(`<div${_attr_class("_cY")}>uploading…</div>`);
|
|
6407
6414
|
writeScope($scope18_id, {});
|
|
6408
6415
|
return 0;
|
|
6409
6416
|
}
|
|
@@ -6411,7 +6418,7 @@ var term_default = _template("v", (input) => {
|
|
|
6411
6418
|
_if(() => {
|
|
6412
6419
|
if (copiedFlash) {
|
|
6413
6420
|
const $scope19_id = _scope_id();
|
|
6414
|
-
_html(`<div${_attr_class("
|
|
6421
|
+
_html(`<div${_attr_class("_cX")}>Copied</div>`);
|
|
6415
6422
|
writeScope($scope19_id, {});
|
|
6416
6423
|
return 0;
|
|
6417
6424
|
}
|
|
@@ -6420,7 +6427,7 @@ var term_default = _template("v", (input) => {
|
|
|
6420
6427
|
_if(() => {
|
|
6421
6428
|
if (trapOpen) {
|
|
6422
6429
|
const $scope10_id = _scope_id();
|
|
6423
|
-
_html(`<div${_attr_class("
|
|
6430
|
+
_html(`<div${_attr_class("_cZ")}><div${_attr_class("_c0")}><p${_attr_class("_dt")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope10_id, "d")}<button${_attr_class("_f")}>Cancel</button>${_el_resume($scope10_id, "e")}</div>${_el_resume($scope10_id, "b")}</div>${_el_resume($scope10_id, "a")}`);
|
|
6424
6431
|
_script($scope10_id, "v23");
|
|
6425
6432
|
_script($scope10_id, "v24");
|
|
6426
6433
|
writeScope($scope10_id, {});
|
|
@@ -6525,7 +6532,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6525
6532
|
let DiffView = null;
|
|
6526
6533
|
const loadDiffView = _resume(() => {
|
|
6527
6534
|
if (DiffView) return;
|
|
6528
|
-
import("./
|
|
6535
|
+
import("./_ChsFL4HL.js").then((m) => {
|
|
6529
6536
|
DiffView = m.default;
|
|
6530
6537
|
});
|
|
6531
6538
|
}, "y4", $scope0_id);
|
|
@@ -6681,7 +6688,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6681
6688
|
error = String(err.message || err);
|
|
6682
6689
|
}
|
|
6683
6690
|
}, "y19", $scope0_id);
|
|
6684
|
-
_html(`<div${_attr_class(["
|
|
6691
|
+
_html(`<div${_attr_class(["_bu", { ["_bt"]: view === "nav" }])}><div${_attr_class("_bv")}>`);
|
|
6685
6692
|
_set_serialize_reason({
|
|
6686
6693
|
0: _serialize_guard($scope0_reason, 0),
|
|
6687
6694
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6754,7 +6761,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6754
6761
|
openDiff(pr);
|
|
6755
6762
|
}, "y31", $scope0_id)
|
|
6756
6763
|
});
|
|
6757
|
-
_html(`</div><div${_attr_class("
|
|
6764
|
+
_html(`</div><div${_attr_class("_bw")}>`);
|
|
6758
6765
|
_if(() => {
|
|
6759
6766
|
if (error) {
|
|
6760
6767
|
const $scope8_id = _scope_id();
|
|
@@ -6857,13 +6864,13 @@ var work_view_default = _template("y", (input) => {
|
|
|
6857
6864
|
}
|
|
6858
6865
|
}, $scope0_id, "h");
|
|
6859
6866
|
_if(() => {}, $scope0_id, "i");
|
|
6860
|
-
_html(`<div${_attr_class(["
|
|
6867
|
+
_html(`<div${_attr_class(["_by", { ["_bx"]: view !== "term" }])}>`);
|
|
6861
6868
|
_if(() => {
|
|
6862
6869
|
if (shownSessions) {
|
|
6863
6870
|
const $scope5_id = _scope_id();
|
|
6864
6871
|
_for_of(shownSessions, (s) => {
|
|
6865
6872
|
const $scope6_id = _scope_id();
|
|
6866
|
-
_html(`<div${_attr_class(["
|
|
6873
|
+
_html(`<div${_attr_class(["_bz", { ["_bA"]: s.id === curTab }])}>`);
|
|
6867
6874
|
_set_serialize_reason({
|
|
6868
6875
|
0: 1,
|
|
6869
6876
|
1: 1,
|
|
@@ -6930,7 +6937,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6930
6937
|
_if(() => {
|
|
6931
6938
|
if (!shownSessions.length && view === "term") {
|
|
6932
6939
|
const $scope7_id = _scope_id();
|
|
6933
|
-
_html(`<div${_attr_class("
|
|
6940
|
+
_html(`<div${_attr_class("_bC")}><p${_attr_class("_bD")}>No sessions in this workspace.</p><button${_attr_class(["_f", "_g"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope7_id, "d")}</button>${_el_resume($scope7_id, "c")}</div>`);
|
|
6934
6941
|
_script($scope7_id, "y51");
|
|
6935
6942
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
6936
6943
|
return 0;
|
|
@@ -6940,7 +6947,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6940
6947
|
return 0;
|
|
6941
6948
|
} else {
|
|
6942
6949
|
const $scope10_id = _scope_id();
|
|
6943
|
-
_html(`<p${_attr_class("
|
|
6950
|
+
_html(`<p${_attr_class("_bB")}>Loading sessions…</p>`);
|
|
6944
6951
|
writeScope($scope10_id, {});
|
|
6945
6952
|
return 1;
|
|
6946
6953
|
}
|
|
@@ -7186,7 +7193,7 @@ var page_boot_default = _template("n", (input) => {
|
|
|
7186
7193
|
};
|
|
7187
7194
|
}, "n8", $scope4_id)
|
|
7188
7195
|
});
|
|
7189
|
-
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("
|
|
7196
|
+
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("_f")}>Later — go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
7190
7197
|
_script($scope4_id, "n24");
|
|
7191
7198
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
7192
7199
|
return 0;
|
|
@@ -7338,7 +7345,7 @@ var _page_default = _template("b", (input) => {
|
|
|
7338
7345
|
setup: su
|
|
7339
7346
|
}));
|
|
7340
7347
|
})();
|
|
7341
|
-
_html(`<main${_attr_class("
|
|
7348
|
+
_html(`<main${_attr_class("_z")}>`);
|
|
7342
7349
|
_try($scope0_id, "b", _content_resume("b2", () => {
|
|
7343
7350
|
const $scope1_id = _scope_id();
|
|
7344
7351
|
_scope_reason();
|
|
@@ -7351,12 +7358,12 @@ var _page_default = _template("b", (input) => {
|
|
|
7351
7358
|
placeholder: attrTag({ content: _content_resume("b0", () => {
|
|
7352
7359
|
_scope_reason();
|
|
7353
7360
|
_scope_id();
|
|
7354
|
-
_html(`<div${_attr_class("
|
|
7361
|
+
_html(`<div${_attr_class("_y")}><span${_attr_class("_w")}></span>Loading workspaces…</div>`);
|
|
7355
7362
|
}, $scope0_id) }),
|
|
7356
7363
|
catch: attrTag({ content: _content_resume("b1", (err) => {
|
|
7357
7364
|
const $scope3_reason = _scope_reason();
|
|
7358
7365
|
const $scope3_id = _scope_id();
|
|
7359
|
-
_html(`<div${_attr_class("
|
|
7366
|
+
_html(`<div${_attr_class("_y")}><p>${err instanceof Error ? _escape(err.message) : _escape(String(err))}${_el_resume($scope3_id, "b", _serialize_guard($scope3_reason, 0))}</p></div>`);
|
|
7360
7367
|
_serialize_if($scope3_reason, 0) && writeScope($scope3_id, {});
|
|
7361
7368
|
}, $scope0_id) })
|
|
7362
7369
|
});
|
|
@@ -14775,4 +14782,4 @@ server.listen(port, () => {
|
|
|
14775
14782
|
//#endregion
|
|
14776
14783
|
export {};
|
|
14777
14784
|
|
|
14778
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
14785
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-BTS1WPEB.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-BTS1WPEB.css\"",">"],"defer":[2,"/assets/index-g4T1J5qh.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-g4T1J5qh.js\"","></script>"]}};
|