@dylanpiercey/work 0.0.49 → 0.0.50
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 +148 -1
- package/dist/{_DdgmjMNU.js → _BMPRQiid.js} +2 -2
- package/dist/{_DPQxTPYF.js → _CkFSxwl9.js} +58 -58
- package/dist/index.mjs +244 -256
- package/dist/public/assets/{_DkMIDB1P2.js → _14Rf7auw2.js} +1 -1
- package/dist/public/assets/_14Rf7auw2.js.br +0 -0
- package/dist/public/assets/{_BpxZLi8K.js → _3L9qJ2FI.js} +1 -1
- package/dist/public/assets/_3L9qJ2FI.js.br +0 -0
- package/dist/public/assets/{_DjKQr6mH.js → _46jbMvnT.js} +1 -1
- package/dist/public/assets/_46jbMvnT.js.br +0 -0
- package/dist/public/assets/{_BrNzM4EC2.js → _5B_C1ELg2.js} +1 -1
- package/dist/public/assets/_5B_C1ELg2.js.br +0 -0
- package/dist/public/assets/{_BX76n7oq2.js → _6FgRPbD12.js} +1 -1
- package/dist/public/assets/_6FgRPbD12.js.br +0 -0
- package/dist/public/assets/{_sBNm9tCS.js → _8OBdOEN_.js} +1 -1
- package/dist/public/assets/_8OBdOEN_.js.br +0 -0
- package/dist/public/assets/{_YLPBpmu6.js → _B0BWvFlM.js} +1 -1
- package/dist/public/assets/_B0BWvFlM.js.br +0 -0
- package/dist/public/assets/{_CVQKEVHV.js → _B3OlqMGd.js} +1 -1
- package/dist/public/assets/_B3OlqMGd.js.br +0 -0
- package/dist/public/assets/{_Dji7sUrK2.js → _B3vaoKEN2.js} +1 -1
- package/dist/public/assets/_B3vaoKEN2.js.br +0 -0
- package/dist/public/assets/{_D6xeqZLn.js → _B7_X6QKl.js} +1 -1
- package/dist/public/assets/_B7_X6QKl.js.br +0 -0
- package/dist/public/assets/{_C2-Kd826.js → _B7zx6ruH.js} +1 -1
- package/dist/public/assets/_B7zx6ruH.js.br +0 -0
- package/dist/public/assets/{_JYBrvu87.js → _BAmdta6F.js} +1 -1
- package/dist/public/assets/_BAmdta6F.js.br +0 -0
- package/dist/public/assets/{_C2rSDO7f.js → _BDs5gBRu.js} +1 -1
- package/dist/public/assets/_BDs5gBRu.js.br +0 -0
- package/dist/public/assets/{_BRURAzLu2.js → _BHyVr2SL2.js} +1 -1
- package/dist/public/assets/_BHyVr2SL2.js.br +0 -0
- package/dist/public/assets/{_B_Wegq962.js → _BKFltGNM2.js} +1 -1
- package/dist/public/assets/_BKFltGNM2.js.br +0 -0
- package/dist/public/assets/{_4zqifGZf2.js → _BKrb_vR32.js} +1 -1
- package/dist/public/assets/_BKrb_vR32.js.br +0 -0
- package/dist/public/assets/{_Cci4ZExC.js → _BM1T1EOI.js} +1 -1
- package/dist/public/assets/_BM1T1EOI.js.br +0 -0
- package/dist/public/assets/{_DRRQXGKH.js → _BO7NVUTp.js} +1 -1
- package/dist/public/assets/_BO7NVUTp.js.br +0 -0
- package/dist/public/assets/{_Bvgyberk.js → _BPVwmM2e.js} +1 -1
- package/dist/public/assets/_BPVwmM2e.js.br +0 -0
- package/dist/public/assets/{_ByKU0Hfi.js → _BTA9H0Q3.js} +1 -1
- package/dist/public/assets/_BTA9H0Q3.js.br +0 -0
- package/dist/public/assets/{_CRmHsbsL.js → _BVn7ySs5.js} +1 -1
- package/dist/public/assets/_BVn7ySs5.js.br +0 -0
- package/dist/public/assets/{_BZDb9Hzx2.js → _BXOM5Rv62.js} +1 -1
- package/dist/public/assets/{_HH6t8aRM2.js → _Bfrb3Fvn2.js} +1 -1
- package/dist/public/assets/_Bfrb3Fvn2.js.br +0 -0
- package/dist/public/assets/{_B-7M0VuK2.js → _BipcKLQ82.js} +1 -1
- package/dist/public/assets/_BipcKLQ82.js.br +0 -0
- package/dist/public/assets/{_D0L-Bq8g.js → _BqTMyizJ.js} +1 -1
- package/dist/public/assets/_BqTMyizJ.js.br +0 -0
- package/dist/public/assets/{_8D88iC2Y.js → _Bqk-7ZnJ.js} +1 -1
- package/dist/public/assets/_Bqk-7ZnJ.js.br +0 -0
- package/dist/public/assets/{_CMGqtmQt.js → _BrIeskzm.js} +1 -1
- package/dist/public/assets/_BrIeskzm.js.br +0 -0
- package/dist/public/assets/{_D7TvcnuF2.js → _BteZRGy02.js} +1 -1
- package/dist/public/assets/_BteZRGy02.js.br +0 -0
- package/dist/public/assets/{_BhAegdMF2.js → _Bw4RcZCP2.js} +1 -1
- package/dist/public/assets/_Bw4RcZCP2.js.br +0 -0
- package/dist/public/assets/{_CNxYMMPa.js → _C0yzBH1I.js} +1 -1
- package/dist/public/assets/_C0yzBH1I.js.br +0 -0
- package/dist/public/assets/{_DImQNomk.js → _CAq8JoYd.js} +1 -1
- package/dist/public/assets/_CAq8JoYd.js.br +0 -0
- package/dist/public/assets/{_B01yJM_n.js → _CG33pVWf.js} +1 -1
- package/dist/public/assets/_CG33pVWf.js.br +0 -0
- package/dist/public/assets/{_DlsPVtFC.js → _CJRnhPJ5.js} +1 -1
- package/dist/public/assets/_CJRnhPJ5.js.br +0 -0
- package/dist/public/assets/{_B3dWhBsL2.js → _CLFzw6tJ2.js} +1 -1
- package/dist/public/assets/_CLFzw6tJ2.js.br +0 -0
- package/dist/public/assets/{_D9jhO9rQ.js → _CTCAIoky.js} +1 -1
- package/dist/public/assets/_CTCAIoky.js.br +0 -0
- package/dist/public/assets/{_f4yPg-i-.js → _CUk8oM8X.js} +1 -1
- package/dist/public/assets/_CUk8oM8X.js.br +0 -0
- package/dist/public/assets/{_BUhKc7uT.js → _CYutj5Nn.js} +1 -1
- package/dist/public/assets/_CYutj5Nn.js.br +0 -0
- package/dist/public/assets/{_D48HGWNS.js → _ChMN3jzE.js} +5 -5
- package/dist/public/assets/_ChMN3jzE.js.br +0 -0
- package/dist/public/assets/{_B9STxcPh.js → _Cl5zwC6C.js} +1 -1
- package/dist/public/assets/{_D99Y49OA.js → _CmPpWb_a.js} +1 -1
- package/dist/public/assets/_CmPpWb_a.js.br +0 -0
- package/dist/public/assets/{_DBzS4J_k.js → _CnAW-XtK.js} +1 -1
- package/dist/public/assets/_CnAW-XtK.js.br +0 -0
- package/dist/public/assets/{_DlC4k_XP.js → _CoZJRwLV.js} +1 -1
- package/dist/public/assets/_CoZJRwLV.js.br +0 -0
- package/dist/public/assets/{_lBeubFtN2.js → _CpuGya-f2.js} +1 -1
- package/dist/public/assets/_CpuGya-f2.js.br +0 -0
- package/dist/public/assets/{_DDsFYxIq.js → _CvF3Yy4B.js} +1 -1
- package/dist/public/assets/_CvF3Yy4B.js.br +0 -0
- package/dist/public/assets/{_BYn0odAU2.js → _CwesB1Zy2.js} +1 -1
- package/dist/public/assets/{_Dmw0DArq.js → _CxVYrK29.js} +1 -1
- package/dist/public/assets/_CxVYrK29.js.br +0 -0
- package/dist/public/assets/{_B6JLzfQk.js → _D4Agz1BW.js} +1 -1
- package/dist/public/assets/_D4Agz1BW.js.br +0 -0
- package/dist/public/assets/{_BH7cFvM5.js → _D7t5subj.js} +1 -1
- package/dist/public/assets/_D7t5subj.js.br +0 -0
- package/dist/public/assets/{_ByaG8bWs.js → _D8LNkUUk.js} +1 -1
- package/dist/public/assets/_D8LNkUUk.js.br +0 -0
- package/dist/public/assets/{_C6jAYlE8.js → _DKExcf_t.js} +1 -1
- package/dist/public/assets/_DKExcf_t.js.br +0 -0
- package/dist/public/assets/{_D4J5RQqK.js → _DaBnEzqR.js} +1 -1
- package/dist/public/assets/_DaBnEzqR.js.br +0 -0
- package/dist/public/assets/{_Bb4a7oF1.js → _DaFCn9AP.js} +1 -1
- package/dist/public/assets/_DaFCn9AP.js.br +0 -0
- package/dist/public/assets/{_DIiEy_VP.js → _DmD3gC-H.js} +1 -1
- package/dist/public/assets/_DmD3gC-H.js.br +0 -0
- package/dist/public/assets/{_DljpB8742.js → _Dp1uWzpq2.js} +1 -1
- package/dist/public/assets/_Dp1uWzpq2.js.br +0 -0
- package/dist/public/assets/{_u3et6kdz.js → _DrzuvLS6.js} +1 -1
- package/dist/public/assets/_DrzuvLS6.js.br +0 -0
- package/dist/public/assets/{_DyNwE1Gc.js → _Dwi7467c.js} +1 -1
- package/dist/public/assets/_Dwi7467c.js.br +0 -0
- package/dist/public/assets/{_BziqIADV2.js → _END-bJOF2.js} +1 -1
- package/dist/public/assets/_END-bJOF2.js.br +0 -0
- package/dist/public/assets/{_C9hmrTBV.js → _Ip505vk_.js} +1 -1
- package/dist/public/assets/_Ip505vk_.js.br +0 -0
- package/dist/public/assets/{_B-XihPlt.js → _LbQesljk.js} +1 -1
- package/dist/public/assets/_LbQesljk.js.br +0 -0
- package/dist/public/assets/{_DZ0pRMJN2.js → _MWudDHh02.js} +1 -1
- package/dist/public/assets/_MWudDHh02.js.br +0 -0
- package/dist/public/assets/{_CgnZDJPL.js → _R2u4F0-3.js} +1 -1
- package/dist/public/assets/_R2u4F0-3.js.br +0 -0
- package/dist/public/assets/{_BPmHfnJD.js → _YpsD0CNd.js} +1 -1
- package/dist/public/assets/_YpsD0CNd.js.br +0 -0
- package/dist/public/assets/{_llnipctq2.js → _ZMT8kCL52.js} +1 -1
- package/dist/public/assets/_ZMT8kCL52.js.br +0 -0
- package/dist/public/assets/{_wvTh271a.js → _aTh5ZUn4.js} +1 -1
- package/dist/public/assets/_aTh5ZUn4.js.br +0 -0
- package/dist/public/assets/{_C9E3fz2-.js → _ds7D8iP9.js} +1 -1
- package/dist/public/assets/_ds7D8iP9.js.br +0 -0
- package/dist/public/assets/{_Kzpu52En.js → _eLSetQBz.js} +1 -1
- package/dist/public/assets/_eLSetQBz.js.br +0 -0
- package/dist/public/assets/{_CkeutYnJ2.js → _eXTAehNM2.js} +1 -1
- package/dist/public/assets/_eXTAehNM2.js.br +0 -0
- package/dist/public/assets/{_F3u8qQ9y.js → _g5scf0ei.js} +1 -1
- package/dist/public/assets/_g5scf0ei.js.br +0 -0
- package/dist/public/assets/{_B92xkQnk.js → _gVQOuQ8i.js} +1 -1
- package/dist/public/assets/_gVQOuQ8i.js.br +0 -0
- package/dist/public/assets/{_BlPl6sCu2.js → _mooiyN7w2.js} +1 -1
- package/dist/public/assets/_mooiyN7w2.js.br +0 -0
- package/dist/public/assets/{_BP2BHaYT2.js → _oOOdPbmX2.js} +1 -1
- package/dist/public/assets/_oOOdPbmX2.js.br +0 -0
- package/dist/public/assets/{_v4TxGuxE.js → _qDJ6gb3q.js} +1 -1
- package/dist/public/assets/_qDJ6gb3q.js.br +0 -0
- package/dist/public/assets/{_DbkjWa7i2.js → _vdLXTjUv2.js} +1 -1
- package/dist/public/assets/_vdLXTjUv2.js.br +0 -0
- package/dist/public/assets/{_BmEd20O42.js → _yXYQK3xI2.js} +1 -1
- package/dist/public/assets/_yXYQK3xI2.js.br +0 -0
- package/dist/public/assets/{_UWZzN8Rg.js → _ylRundRE.js} +1 -1
- package/dist/public/assets/_ylRundRE.js.br +0 -0
- package/dist/public/assets/diff-view-CFyPUyMl.css +1 -0
- package/dist/public/assets/diff-view-CFyPUyMl.css.br +0 -0
- package/dist/public/assets/{index-Bfh8nSee.js → index-CLK3dq8r.js} +20 -20
- package/dist/public/assets/index-CLK3dq8r.js.br +0 -0
- package/dist/public/assets/index-DL_Vi7rw.css +1 -0
- package/dist/public/assets/index-DL_Vi7rw.css.br +0 -0
- package/package.json +1 -1
- package/scripts/migrate.mjs +21 -0
- package/dist/public/assets/_4zqifGZf2.js.br +0 -0
- package/dist/public/assets/_8D88iC2Y.js.br +0 -0
- package/dist/public/assets/_B-7M0VuK2.js.br +0 -0
- package/dist/public/assets/_B-XihPlt.js.br +0 -0
- package/dist/public/assets/_B01yJM_n.js.br +0 -0
- package/dist/public/assets/_B3dWhBsL2.js.br +0 -0
- package/dist/public/assets/_B6JLzfQk.js.br +0 -0
- package/dist/public/assets/_B92xkQnk.js.br +0 -0
- package/dist/public/assets/_BH7cFvM5.js.br +0 -0
- package/dist/public/assets/_BP2BHaYT2.js.br +0 -0
- package/dist/public/assets/_BPmHfnJD.js.br +0 -0
- package/dist/public/assets/_BRURAzLu2.js.br +0 -0
- package/dist/public/assets/_BUhKc7uT.js.br +0 -0
- package/dist/public/assets/_BX76n7oq2.js.br +0 -0
- package/dist/public/assets/_B_Wegq962.js.br +0 -0
- package/dist/public/assets/_Bb4a7oF1.js.br +0 -0
- package/dist/public/assets/_BhAegdMF2.js.br +0 -0
- package/dist/public/assets/_BlPl6sCu2.js.br +0 -0
- package/dist/public/assets/_BmEd20O42.js.br +0 -0
- package/dist/public/assets/_BpxZLi8K.js.br +0 -0
- package/dist/public/assets/_BrNzM4EC2.js.br +0 -0
- package/dist/public/assets/_Bvgyberk.js.br +0 -0
- package/dist/public/assets/_ByKU0Hfi.js.br +0 -0
- package/dist/public/assets/_ByaG8bWs.js.br +0 -0
- package/dist/public/assets/_BziqIADV2.js.br +0 -0
- package/dist/public/assets/_C2-Kd826.js.br +0 -0
- package/dist/public/assets/_C2rSDO7f.js.br +0 -0
- package/dist/public/assets/_C6jAYlE8.js.br +0 -0
- package/dist/public/assets/_C9E3fz2-.js.br +0 -0
- package/dist/public/assets/_C9hmrTBV.js.br +0 -0
- package/dist/public/assets/_CMGqtmQt.js.br +0 -0
- package/dist/public/assets/_CNxYMMPa.js.br +0 -0
- package/dist/public/assets/_CRmHsbsL.js.br +0 -0
- package/dist/public/assets/_CVQKEVHV.js.br +0 -0
- package/dist/public/assets/_Cci4ZExC.js.br +0 -0
- package/dist/public/assets/_CgnZDJPL.js.br +0 -0
- package/dist/public/assets/_CkeutYnJ2.js.br +0 -0
- package/dist/public/assets/_D0L-Bq8g.js.br +0 -0
- package/dist/public/assets/_D48HGWNS.js.br +0 -0
- package/dist/public/assets/_D4J5RQqK.js.br +0 -0
- package/dist/public/assets/_D6xeqZLn.js.br +0 -0
- package/dist/public/assets/_D7TvcnuF2.js.br +0 -0
- package/dist/public/assets/_D99Y49OA.js.br +0 -0
- package/dist/public/assets/_D9jhO9rQ.js.br +0 -0
- package/dist/public/assets/_DBzS4J_k.js.br +0 -0
- package/dist/public/assets/_DDsFYxIq.js.br +0 -0
- package/dist/public/assets/_DIiEy_VP.js.br +0 -0
- package/dist/public/assets/_DImQNomk.js.br +0 -0
- package/dist/public/assets/_DRRQXGKH.js.br +0 -0
- package/dist/public/assets/_DZ0pRMJN2.js.br +0 -0
- package/dist/public/assets/_DbkjWa7i2.js.br +0 -0
- package/dist/public/assets/_DjKQr6mH.js.br +0 -0
- package/dist/public/assets/_Dji7sUrK2.js.br +0 -0
- package/dist/public/assets/_DkMIDB1P2.js.br +0 -0
- package/dist/public/assets/_DlC4k_XP.js.br +0 -0
- package/dist/public/assets/_DljpB8742.js.br +0 -0
- package/dist/public/assets/_DlsPVtFC.js.br +0 -0
- package/dist/public/assets/_Dmw0DArq.js.br +0 -0
- package/dist/public/assets/_DyNwE1Gc.js.br +0 -0
- package/dist/public/assets/_F3u8qQ9y.js.br +0 -0
- package/dist/public/assets/_HH6t8aRM2.js.br +0 -0
- package/dist/public/assets/_JYBrvu87.js.br +0 -0
- package/dist/public/assets/_Kzpu52En.js.br +0 -0
- package/dist/public/assets/_UWZzN8Rg.js.br +0 -0
- package/dist/public/assets/_YLPBpmu6.js.br +0 -0
- package/dist/public/assets/_f4yPg-i-.js.br +0 -0
- package/dist/public/assets/_lBeubFtN2.js.br +0 -0
- package/dist/public/assets/_llnipctq2.js.br +0 -0
- package/dist/public/assets/_sBNm9tCS.js.br +0 -0
- package/dist/public/assets/_u3et6kdz.js.br +0 -0
- package/dist/public/assets/_v4TxGuxE.js.br +0 -0
- package/dist/public/assets/_wvTh271a.js.br +0 -0
- package/dist/public/assets/diff-view-CKEylX6w.css +0 -1
- package/dist/public/assets/diff-view-CKEylX6w.css.br +0 -0
- package/dist/public/assets/index-Bfh8nSee.js.br +0 -0
- package/dist/public/assets/index-D41huIuZ.css +0 -1
- package/dist/public/assets/index-D41huIuZ.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 "./_BMPRQiid.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -2148,6 +2148,12 @@ ${repos.map((r) => `- \`${r.worktree}/\` — ${r.full_name} (base: \`${r.base_br
|
|
|
2148
2148
|
what changed and why. No verification logs or file-by-file detail. A topic
|
|
2149
2149
|
lane's PR is \`gh pr create --base ${branch}\` — GitHub will otherwise target
|
|
2150
2150
|
the repo default, and the local review will disagree with the files tab.
|
|
2151
|
+
- **Ask \`work\` for facts:** the \`work\` CLI answers from the same data as
|
|
2152
|
+
the app — \`work workspace\` (this workspace: repos, base branches, open PRs,
|
|
2153
|
+
sessions, running procs/ports), \`work repos\`, \`work procs\`,
|
|
2154
|
+
\`work workspaces\`, \`work doctor\` (installed tools / agents / GitHub
|
|
2155
|
+
sign-in), \`work usage\` (agent plan quotas). Add \`--json\` for machine
|
|
2156
|
+
output. Prefer these over guessing from the filesystem or calling GitHub.
|
|
2151
2157
|
`;
|
|
2152
2158
|
fs.writeFileSync(path.join(dir, "AGENTS.md"), content);
|
|
2153
2159
|
const claudeMd = path.join(dir, "CLAUDE.md");
|
|
@@ -3072,11 +3078,11 @@ function agentFromCommand(command) {
|
|
|
3072
3078
|
}
|
|
3073
3079
|
//#endregion
|
|
3074
3080
|
//#region src/tags/settings-page.css.ts
|
|
3075
|
-
var content$2 = "
|
|
3076
|
-
var agentGrid = "
|
|
3077
|
-
var defaultTag = "
|
|
3078
|
-
var toolGrid = "
|
|
3079
|
-
var iconBtn$3 = "
|
|
3081
|
+
var content$2 = "_b_ _4 _5";
|
|
3082
|
+
var agentGrid = "_cd _bI";
|
|
3083
|
+
var defaultTag = "_cj _bP";
|
|
3084
|
+
var toolGrid = "_cq _bI";
|
|
3085
|
+
var iconBtn$3 = "_bU _D";
|
|
3080
3086
|
//#endregion
|
|
3081
3087
|
//#region src/tags/icons/icon-agent.marko
|
|
3082
3088
|
var PATHS = {
|
|
@@ -3155,11 +3161,11 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3155
3161
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
3156
3162
|
const $scope0_id = _scope_id();
|
|
3157
3163
|
const agent = input.agent;
|
|
3158
|
-
_html(`<div${_attr_class(["
|
|
3164
|
+
_html(`<div${_attr_class(["_eH", { ["_eI"]: input.hideName }])}><div${_attr_class("_eJ")}>`);
|
|
3159
3165
|
_if(() => {
|
|
3160
3166
|
if (!input.hideName) {
|
|
3161
3167
|
const $scope1_id = _scope_id();
|
|
3162
|
-
_html(`<strong${_attr_class("
|
|
3168
|
+
_html(`<strong${_attr_class("_e2")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3163
3169
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3164
3170
|
return 0;
|
|
3165
3171
|
}
|
|
@@ -3167,7 +3173,7 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3167
3173
|
_if(() => {
|
|
3168
3174
|
if (agent.plan) {
|
|
3169
3175
|
const $scope2_id = _scope_id();
|
|
3170
|
-
_html(`<span${_attr_class("
|
|
3176
|
+
_html(`<span${_attr_class("_eK")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3171
3177
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3172
3178
|
return 0;
|
|
3173
3179
|
}
|
|
@@ -3175,25 +3181,25 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3175
3181
|
_if(() => {
|
|
3176
3182
|
if (agent.stale_seconds != null) {
|
|
3177
3183
|
const $scope3_id = _scope_id();
|
|
3178
|
-
_html(`<span${_attr_class("
|
|
3184
|
+
_html(`<span${_attr_class("_eL")}${_attr("title", `${agent.note || "couldn't reach this provider"} — these are the last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3179
3185
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3180
3186
|
return 0;
|
|
3181
3187
|
}
|
|
3182
3188
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3183
|
-
_html(`</div><div${_attr_class(["
|
|
3189
|
+
_html(`</div><div${_attr_class(["_eM", { ["_e3"]: agent.stale_seconds != null }])}>`);
|
|
3184
3190
|
_for_of(agent.windows || [], (win) => {
|
|
3185
3191
|
const $scope4_id = _scope_id();
|
|
3186
3192
|
const pct = Math.round(win.used_percent);
|
|
3187
3193
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3188
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3189
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3190
|
-
_html(`<div${_attr_class("
|
|
3194
|
+
const fillClass = win.used_percent >= 90 ? "_eV" : win.used_percent >= 70 ? "_eU" : win.used_percent >= 40 ? "_eT" : "_eS";
|
|
3195
|
+
const pctClass = win.used_percent >= 90 ? "_e0" : win.used_percent >= 70 ? "_eZ" : win.used_percent >= 40 ? "_eY" : "_eX";
|
|
3196
|
+
_html(`<div${_attr_class("_eO")}${_attr("title", `${win.window}: ${pct}% used${win.resets_at ? ` — resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eP")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eQ")}><span${_attr_class(["_eR", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_eW", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}%</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e1")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3191
3197
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3192
3198
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3193
3199
|
_if(() => {
|
|
3194
3200
|
if (agent.note) {
|
|
3195
3201
|
const $scope5_id = _scope_id();
|
|
3196
|
-
_html(`<p${_attr_class("
|
|
3202
|
+
_html(`<p${_attr_class("_eN")}>${_escape(agent.note)}${_el_resume($scope5_id, "b", $sg__input_agent)}</p>`);
|
|
3197
3203
|
$si__input_agent && writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
3198
3204
|
return 0;
|
|
3199
3205
|
}
|
|
@@ -3229,7 +3235,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3229
3235
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
3230
3236
|
const dismissable = input.dismissable !== false;
|
|
3231
3237
|
let open = input.open;
|
|
3232
|
-
_html(`<dialog${_attr_class(["
|
|
3238
|
+
_html(`<dialog${_attr_class(["_f_", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
3233
3239
|
...htmlInput,
|
|
3234
3240
|
open: null
|
|
3235
3241
|
}, {
|
|
@@ -3239,20 +3245,20 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3239
3245
|
closedby: 1,
|
|
3240
3246
|
"on-cancel": 1,
|
|
3241
3247
|
"on-close": 1
|
|
3242
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3248
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ga")}>`);
|
|
3243
3249
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3244
3250
|
_html("</div>");
|
|
3245
3251
|
_if(() => {
|
|
3246
3252
|
if (footer) {
|
|
3247
3253
|
const $scope1_id = _scope_id();
|
|
3248
|
-
_html(`<form method=dialog${_attr_class("
|
|
3254
|
+
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3249
3255
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3250
3256
|
_html("</form>");
|
|
3251
3257
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3252
3258
|
return 0;
|
|
3253
3259
|
} else if (input.openChange) {
|
|
3254
3260
|
const $scope2_id = _scope_id();
|
|
3255
|
-
_html(`<form method=dialog${_attr_class("
|
|
3261
|
+
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3256
3262
|
dialog_close_default({
|
|
3257
3263
|
class: ["_h", "_i"],
|
|
3258
3264
|
content: _content("l0", () => {
|
|
@@ -3311,7 +3317,7 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3311
3317
|
const $childScope = _peek_scope_id();
|
|
3312
3318
|
modal_view_default({
|
|
3313
3319
|
label: input.label,
|
|
3314
|
-
class: "
|
|
3320
|
+
class: "_eF",
|
|
3315
3321
|
open: input.open,
|
|
3316
3322
|
openChange: input.openChange,
|
|
3317
3323
|
"aria-labelledby": titleId,
|
|
@@ -3334,7 +3340,7 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3334
3340
|
content: _content("o6", () => {
|
|
3335
3341
|
_scope_reason();
|
|
3336
3342
|
const $scope2_id = _scope_id();
|
|
3337
|
-
_html(`<h2${_attr_class("
|
|
3343
|
+
_html(`<h2${_attr_class("_eG")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
3338
3344
|
value = _new_value;
|
|
3339
3345
|
}, "o0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3340
3346
|
_script($scope2_id, "o4");
|
|
@@ -3364,7 +3370,7 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3364
3370
|
//#endregion
|
|
3365
3371
|
//#region src/tags/settings-page.marko
|
|
3366
3372
|
var api$6;
|
|
3367
|
-
var watchProgress;
|
|
3373
|
+
var watchProgress$1;
|
|
3368
3374
|
var MISSING_LABEL = {
|
|
3369
3375
|
"github-auth": "GitHub sign-in",
|
|
3370
3376
|
agent: "an agent CLI"
|
|
@@ -3440,11 +3446,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3440
3446
|
if (active.has(id)) return;
|
|
3441
3447
|
error = null;
|
|
3442
3448
|
setActive(id, "");
|
|
3443
|
-
const watcher = watchProgress(`setup:${id}`, (line) => {
|
|
3449
|
+
const watcher = watchProgress$1(`setup:${id}`, (line) => {
|
|
3444
3450
|
const code = /one-time code:\s*([A-Z0-9]{4}-[A-Z0-9]{4})/i.exec(line)?.[1];
|
|
3445
3451
|
if (code) authCodes = new Map(authCodes).set(id, code);
|
|
3446
3452
|
setActive(id, line);
|
|
3447
3453
|
});
|
|
3454
|
+
await watcher.ready;
|
|
3448
3455
|
try {
|
|
3449
3456
|
applySetup(await api$6(`/api/setup/${encodeURIComponent(id)}`, {
|
|
3450
3457
|
method: "POST",
|
|
@@ -3557,7 +3564,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3557
3564
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "q15", $scope0_id);
|
|
3558
3565
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3559
3566
|
const titleId = _id();
|
|
3560
|
-
_html(`<div${_attr_class("
|
|
3567
|
+
_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")}>`);
|
|
3561
3568
|
_if(() => {
|
|
3562
3569
|
if (!setup) {
|
|
3563
3570
|
const $scope39_id = _scope_id();
|
|
@@ -3566,17 +3573,17 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3566
3573
|
return 0;
|
|
3567
3574
|
} else if (setup.ready) {
|
|
3568
3575
|
const $scope40_id = _scope_id();
|
|
3569
|
-
_html(`<span${_attr_class("
|
|
3576
|
+
_html(`<span${_attr_class("_cb")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
|
|
3570
3577
|
writeScope($scope40_id, {});
|
|
3571
3578
|
return 1;
|
|
3572
3579
|
} else {
|
|
3573
3580
|
const $scope4_id = _scope_id();
|
|
3574
|
-
_html(`<span${_attr_class("
|
|
3581
|
+
_html(`<span${_attr_class("_cc")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope4_id, "b")}.`);
|
|
3575
3582
|
writeScope($scope4_id, {});
|
|
3576
3583
|
return 2;
|
|
3577
3584
|
}
|
|
3578
3585
|
}, $scope0_id, "g", 1, 1, 1, "</p>");
|
|
3579
|
-
_html(`</div><div${_attr_class("
|
|
3586
|
+
_html(`</div><div${_attr_class("__")}><button${_attr_class(iconBtn$3)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
3580
3587
|
_set_serialize_reason(1);
|
|
3581
3588
|
const $childScope = _peek_scope_id();
|
|
3582
3589
|
icon_refresh_default({
|
|
@@ -3604,11 +3611,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3604
3611
|
return 0;
|
|
3605
3612
|
}
|
|
3606
3613
|
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
3607
|
-
_html(`<section${_attr_class("
|
|
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("_r")}></div><label${_attr_class("_cf")}><span${_attr_class("_cg")}>Default</span><span${_attr_class("_f")}>`);
|
|
3608
3615
|
_attr_select_value($scope0_id, "s", input.preferred, _resume(function(v) {
|
|
3609
3616
|
setPreferred(v);
|
|
3610
3617
|
}, "q0", $scope0_id), () => {
|
|
3611
|
-
_html(`<select${_attr_class(["_g", "
|
|
3618
|
+
_html(`<select${_attr_class(["_g", "_ch"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
|
|
3612
3619
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3613
3620
|
const $scope41_id = _scope_id();
|
|
3614
3621
|
_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)}`);
|
|
@@ -3629,14 +3636,14 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3629
3636
|
const rows = lone ? [] : a.instances;
|
|
3630
3637
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3631
3638
|
const extraAccounts = strayAccountsFor(a);
|
|
3632
|
-
_html(`<li${_attr_class(["
|
|
3639
|
+
_html(`<li${_attr_class(["_bK", "_ce"])}><div${_attr_class("_ci")}>`);
|
|
3633
3640
|
_set_serialize_reason(12);
|
|
3634
3641
|
const $childScope3 = _peek_scope_id();
|
|
3635
3642
|
icon_agent_default({
|
|
3636
3643
|
agent: a.id,
|
|
3637
3644
|
size: 18
|
|
3638
3645
|
});
|
|
3639
|
-
_html(`<div${_attr_class("
|
|
3646
|
+
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3640
3647
|
_if(() => {
|
|
3641
3648
|
if (lone && input.preferred === lone.id) {
|
|
3642
3649
|
const $scope42_id = _scope_id();
|
|
@@ -3649,12 +3656,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3649
3656
|
_if(() => {
|
|
3650
3657
|
if (active.has(a.id)) {
|
|
3651
3658
|
const $scope8_id = _scope_id();
|
|
3652
|
-
_html(`<span${_attr_class("
|
|
3659
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_y")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope8_id, "c")}</span>`);
|
|
3653
3660
|
_subscribe($active__closures, writeScope($scope8_id, {}));
|
|
3654
3661
|
return 0;
|
|
3655
3662
|
} else if (!a.installed) {
|
|
3656
3663
|
const $scope43_id = _scope_id();
|
|
3657
|
-
_html(`<span${_attr_class("
|
|
3664
|
+
_html(`<span${_attr_class("_bO")}>Not installed</span>`);
|
|
3658
3665
|
writeScope($scope43_id, {});
|
|
3659
3666
|
return 1;
|
|
3660
3667
|
}
|
|
@@ -3672,7 +3679,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3672
3679
|
_if(() => {
|
|
3673
3680
|
if (lone) {
|
|
3674
3681
|
const $scope36_id = _scope_id();
|
|
3675
|
-
_html(`<button${_attr_class(["
|
|
3682
|
+
_html(`<button${_attr_class(["_cl", { ["_ck"]: 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")}`);
|
|
3676
3683
|
_script($scope36_id, "q21");
|
|
3677
3684
|
writeScope($scope36_id, {});
|
|
3678
3685
|
return 0;
|
|
@@ -3682,18 +3689,18 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3682
3689
|
_if(() => {
|
|
3683
3690
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3684
3691
|
const $scope2_id = _scope_id();
|
|
3685
|
-
_html(`<ul${_attr_class("
|
|
3692
|
+
_html(`<ul${_attr_class("_cp")}>`);
|
|
3686
3693
|
_for_of(rows, (inst) => {
|
|
3687
3694
|
const $scope3_id = _scope_id();
|
|
3688
3695
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3689
|
-
_html(`<li${_attr_class("
|
|
3696
|
+
_html(`<li${_attr_class("_cm")}><div${_attr_class("_cn")}>`);
|
|
3690
3697
|
_set_serialize_reason(12);
|
|
3691
3698
|
const $childScope4 = _peek_scope_id();
|
|
3692
3699
|
icon_agent_default({
|
|
3693
3700
|
agent: inst.id,
|
|
3694
3701
|
size: 15
|
|
3695
3702
|
});
|
|
3696
|
-
_html(`<span${_attr_class(["
|
|
3703
|
+
_html(`<span${_attr_class(["_co", "_q"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3697
3704
|
_if(() => {
|
|
3698
3705
|
if (input.preferred === inst.id) {
|
|
3699
3706
|
const $scope44_id = _scope_id();
|
|
@@ -3702,7 +3709,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3702
3709
|
return 0;
|
|
3703
3710
|
}
|
|
3704
3711
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
3705
|
-
_html(`<span${_attr_class("_r")}></span><button${_attr_class(["
|
|
3712
|
+
_html(`<span${_attr_class("_r")}></span><button${_attr_class(["_cl", { ["_ck"]: 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>`);
|
|
3706
3713
|
_for_of(accounts, (u) => {
|
|
3707
3714
|
const $scope45_id = _scope_id();
|
|
3708
3715
|
_set_serialize_reason(6);
|
|
@@ -3764,7 +3771,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3764
3771
|
}, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
3765
3772
|
_for_of(otherUsage, (u) => {
|
|
3766
3773
|
const $scope48_id = _scope_id();
|
|
3767
|
-
_html(`<li${_attr_class(["
|
|
3774
|
+
_html(`<li${_attr_class(["_bK", "_ce"])}>`);
|
|
3768
3775
|
_set_serialize_reason(6);
|
|
3769
3776
|
const $childScope8 = _peek_scope_id();
|
|
3770
3777
|
usage_meters_default({ agent: u });
|
|
@@ -3775,25 +3782,25 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3775
3782
|
_if(() => {
|
|
3776
3783
|
if (!usage && families.length) {
|
|
3777
3784
|
const $scope49_id = _scope_id();
|
|
3778
|
-
_html(`<p${_attr_class("
|
|
3785
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_y")}></span> Loading usage…</p>`);
|
|
3779
3786
|
writeScope($scope49_id, {});
|
|
3780
3787
|
return 0;
|
|
3781
3788
|
} else if (usage?.error) {
|
|
3782
3789
|
const $scope5_id = _scope_id();
|
|
3783
|
-
_html(`<p${_attr_class("
|
|
3790
|
+
_html(`<p${_attr_class("_bT")}>${_escape(usage.error)}${_el_resume($scope5_id, "b")}</p>`);
|
|
3784
3791
|
writeScope($scope5_id, {});
|
|
3785
3792
|
return 1;
|
|
3786
3793
|
}
|
|
3787
3794
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
3788
|
-
_html(`</section><section${_attr_class("
|
|
3795
|
+
_html(`</section><section${_attr_class("_bF")} aria-labelledby=settings-github><div${_attr_class("_bG")}><h2 id=settings-github${_attr_class("_bV")}>GitHub</h2></div><ul${_attr_class("_bI")}>`);
|
|
3789
3796
|
_for_of(setup?.github || [], (h) => {
|
|
3790
3797
|
const $scope9_id = _scope_id();
|
|
3791
3798
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3792
|
-
_html(`<li${_attr_class("
|
|
3799
|
+
_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>`);
|
|
3793
3800
|
_if(() => {
|
|
3794
3801
|
if (h.isEnterprise) {
|
|
3795
3802
|
const $scope52_id = _scope_id();
|
|
3796
|
-
_html(`<span${_attr_class("
|
|
3803
|
+
_html(`<span${_attr_class("_bP")}>Enterprise</span>`);
|
|
3797
3804
|
writeScope($scope52_id, {});
|
|
3798
3805
|
return 0;
|
|
3799
3806
|
}
|
|
@@ -3802,22 +3809,22 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3802
3809
|
_if(() => {
|
|
3803
3810
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3804
3811
|
const $scope20_id = _scope_id();
|
|
3805
|
-
_html(`<span${_attr_class("
|
|
3812
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_y")}></span> Enter code <strong${_attr_class("_cB")}>${_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("_cC")}>${_escape(h.host)}${_el_resume($scope20_id, "f")}/login/device</a>${_el_resume($scope20_id, "e")}</span>`);
|
|
3806
3813
|
_subscribe($authCodes__closures, writeScope($scope20_id, {}));
|
|
3807
3814
|
return 0;
|
|
3808
3815
|
} else if (active.has(h.host)) {
|
|
3809
3816
|
const $scope10_id = _scope_id();
|
|
3810
|
-
_html(`<span${_attr_class("
|
|
3817
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3811
3818
|
_subscribe($active__closures, writeScope($scope10_id, { Cch: 1 }));
|
|
3812
3819
|
return 1;
|
|
3813
3820
|
} else if (h.authed) {
|
|
3814
3821
|
const $scope50_id = _scope_id();
|
|
3815
|
-
_html(`<span${_attr_class("
|
|
3822
|
+
_html(`<span${_attr_class("_bO")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope50_id, "b")}</span>`);
|
|
3816
3823
|
writeScope($scope50_id, {});
|
|
3817
3824
|
return 2;
|
|
3818
3825
|
} else {
|
|
3819
3826
|
const $scope51_id = _scope_id();
|
|
3820
|
-
_html(`<span${_attr_class("
|
|
3827
|
+
_html(`<span${_attr_class("_bO")}>${_escape(h.error || "Not signed in")}${_el_resume($scope51_id, "b")}</span>`);
|
|
3821
3828
|
writeScope($scope51_id, {});
|
|
3822
3829
|
return 3;
|
|
3823
3830
|
}
|
|
@@ -3839,9 +3846,9 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3839
3846
|
if (h.isEnterprise) {
|
|
3840
3847
|
const $scope22_id = _scope_id();
|
|
3841
3848
|
_html(`<button${_attr_class([
|
|
3842
|
-
"
|
|
3843
|
-
"
|
|
3844
|
-
{ ["
|
|
3849
|
+
"_bQ",
|
|
3850
|
+
"_bS",
|
|
3851
|
+
{ ["_bR"]: confirmingRemove === h.host }
|
|
3845
3852
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>${confirmingRemove === h.host ? "Forget?" : "×"}${_el_resume($scope22_id, "b")}</button>${_el_resume($scope22_id, "a")}`);
|
|
3846
3853
|
_script($scope22_id, "q24");
|
|
3847
3854
|
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope22_id, {})));
|
|
@@ -3865,7 +3872,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3865
3872
|
_if(() => {
|
|
3866
3873
|
if (setup && !setup.github.length) {
|
|
3867
3874
|
const $scope53_id = _scope_id();
|
|
3868
|
-
_html(`<p${_attr_class("
|
|
3875
|
+
_html(`<p${_attr_class("_bT")}>Install the GitHub CLI below to sign in.</p>`);
|
|
3869
3876
|
writeScope($scope53_id, {});
|
|
3870
3877
|
return 0;
|
|
3871
3878
|
}
|
|
@@ -3873,17 +3880,17 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3873
3880
|
_if(() => {
|
|
3874
3881
|
if (setup) {
|
|
3875
3882
|
const $scope30_id = _scope_id();
|
|
3876
|
-
_html(`<form${_attr_class("
|
|
3883
|
+
_html(`<form${_attr_class("_cA")}><input${_attr_input_value($scope30_id, "b", hostInput)}${_attr_class("_cy")} 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")}`);
|
|
3877
3884
|
_script($scope30_id, "q25");
|
|
3878
3885
|
writeScope($scope30_id, {});
|
|
3879
3886
|
return 0;
|
|
3880
3887
|
}
|
|
3881
3888
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
3882
|
-
_html(`</section><section${_attr_class("
|
|
3889
|
+
_html(`</section><section${_attr_class("_bF")} aria-labelledby=settings-machine><div${_attr_class("_bG")}><h2 id=settings-machine${_attr_class("_bV")}>Machine</h2>`);
|
|
3883
3890
|
_if(() => {
|
|
3884
3891
|
if (missingCount) {
|
|
3885
3892
|
const $scope37_id = _scope_id();
|
|
3886
|
-
_html(`<span${_attr_class("
|
|
3893
|
+
_html(`<span${_attr_class("_bH")}>${_escape(missingCount)}${_el_resume($scope37_id, "b")} missing</span>`);
|
|
3887
3894
|
writeScope($scope37_id, {});
|
|
3888
3895
|
return 0;
|
|
3889
3896
|
}
|
|
@@ -3891,7 +3898,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3891
3898
|
_if(() => {
|
|
3892
3899
|
if (outdatedIds.length) {
|
|
3893
3900
|
const $scope38_id = _scope_id();
|
|
3894
|
-
_html(`<span${_attr_class("
|
|
3901
|
+
_html(`<span${_attr_class("_bH")}>${_escape(outdatedIds.length)}${_el_resume($scope38_id, "b")} outdated</span>`);
|
|
3895
3902
|
writeScope($scope38_id, {});
|
|
3896
3903
|
return 0;
|
|
3897
3904
|
}
|
|
@@ -3919,7 +3926,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3919
3926
|
_if(() => {
|
|
3920
3927
|
if (setup && !setup.mise.installed) {
|
|
3921
3928
|
const $scope13_id = _scope_id();
|
|
3922
|
-
_html(`<p${_attr_class("
|
|
3929
|
+
_html(`<p${_attr_class("_bT")}>mise isn't installed — it provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope13_id, "c")}</button>${_el_resume($scope13_id, "b")}</p>`);
|
|
3923
3930
|
_script($scope13_id, "q28");
|
|
3924
3931
|
writeScope($scope13_id, {});
|
|
3925
3932
|
return 0;
|
|
@@ -3934,14 +3941,14 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3934
3941
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
3935
3942
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
3936
3943
|
_html(`<li${_attr_class([
|
|
3937
|
-
"
|
|
3938
|
-
"
|
|
3939
|
-
{ ["
|
|
3940
|
-
])}><span${_attr_class(["
|
|
3944
|
+
"_bK",
|
|
3945
|
+
"_cr",
|
|
3946
|
+
{ ["_cs"]: !t.installed }
|
|
3947
|
+
])}><span${_attr_class(["_ct", "_q"])}>${_escape(t.label)}${_el_resume($scope14_id, "c")}</span>`);
|
|
3941
3948
|
_if(() => {
|
|
3942
3949
|
if (active.has(t.id)) {
|
|
3943
3950
|
const $scope15_id = _scope_id();
|
|
3944
|
-
_html(`<span${_attr_class("
|
|
3951
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_y")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope15_id, "c")}</span>`);
|
|
3945
3952
|
_subscribe($active__closures, writeScope($scope15_id, { Cch: 2 }));
|
|
3946
3953
|
return 0;
|
|
3947
3954
|
} else if (t.installed) {
|
|
@@ -3949,13 +3956,13 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3949
3956
|
_if(() => {
|
|
3950
3957
|
if (t.version) {
|
|
3951
3958
|
const $scope27_id = _scope_id();
|
|
3952
|
-
_html(`<button${_attr_class(["
|
|
3959
|
+
_html(`<button${_attr_class(["_cv", "_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")}`);
|
|
3953
3960
|
_script($scope27_id, "q29");
|
|
3954
3961
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope27_id, { Cu: 1 }))));
|
|
3955
3962
|
return 0;
|
|
3956
3963
|
} else {
|
|
3957
3964
|
const $scope54_id = _scope_id();
|
|
3958
|
-
_html(`<span${_attr_class(["
|
|
3965
|
+
_html(`<span${_attr_class(["_cu", "_q"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope54_id, "b")}</span>${_el_resume($scope54_id, "a")}`);
|
|
3959
3966
|
_subscribe($for_content4__t_path__closures, writeScope($scope54_id, { Cx: 1 }));
|
|
3960
3967
|
return 1;
|
|
3961
3968
|
}
|
|
@@ -3963,7 +3970,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3963
3970
|
_if(() => {
|
|
3964
3971
|
if (outdated(t)) {
|
|
3965
3972
|
const $scope34_id = _scope_id();
|
|
3966
|
-
_html(`<button${_attr_class([btnSm, "
|
|
3973
|
+
_html(`<button${_attr_class([btnSm, "_cw"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope34_id, "b")}</button>${_el_resume($scope34_id, "a")}`);
|
|
3967
3974
|
_script($scope34_id, "q30");
|
|
3968
3975
|
_subscribe($for_content4__t_latest__closures, writeScope($scope34_id, {}));
|
|
3969
3976
|
return 0;
|
|
@@ -3973,12 +3980,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3973
3980
|
return 1;
|
|
3974
3981
|
} else if (t.installable) {
|
|
3975
3982
|
const $scope55_id = _scope_id();
|
|
3976
|
-
_html(`<span${_attr_class("
|
|
3983
|
+
_html(`<span${_attr_class("_cu")}>not installed</span>`);
|
|
3977
3984
|
writeScope($scope55_id, {});
|
|
3978
3985
|
return 2;
|
|
3979
3986
|
} else {
|
|
3980
3987
|
const $scope56_id = _scope_id();
|
|
3981
|
-
_html(`<span${_attr_class("
|
|
3988
|
+
_html(`<span${_attr_class("_cu")} title="Add it with your package manager">system package</span>`);
|
|
3982
3989
|
writeScope($scope56_id, {});
|
|
3983
3990
|
return 3;
|
|
3984
3991
|
}
|
|
@@ -3990,7 +3997,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3990
3997
|
_if(() => {
|
|
3991
3998
|
if (t.required) {
|
|
3992
3999
|
const $scope57_id = _scope_id();
|
|
3993
|
-
_html(`<span${_attr_class("
|
|
4000
|
+
_html(`<span${_attr_class("_bP")}>required</span>`);
|
|
3994
4001
|
writeScope($scope57_id, {});
|
|
3995
4002
|
return 0;
|
|
3996
4003
|
}
|
|
@@ -4005,10 +4012,10 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4005
4012
|
} else if (t.installed && t.version && !t.required) {
|
|
4006
4013
|
const $scope24_id = _scope_id();
|
|
4007
4014
|
_html(`<button${_attr_class([
|
|
4008
|
-
"
|
|
4009
|
-
"
|
|
4010
|
-
"
|
|
4011
|
-
{ ["
|
|
4015
|
+
"_bQ",
|
|
4016
|
+
"_bS",
|
|
4017
|
+
"_cx",
|
|
4018
|
+
{ ["_bR"]: confirmingRemove === t.id }
|
|
4012
4019
|
])}${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")}`);
|
|
4013
4020
|
_script($scope24_id, "q32");
|
|
4014
4021
|
_subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, { Cck: 1 }))));
|
|
@@ -4040,23 +4047,23 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4040
4047
|
_if(() => {
|
|
4041
4048
|
if (setup && setup.mise.installed) {
|
|
4042
4049
|
const $scope16_id = _scope_id();
|
|
4043
|
-
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("
|
|
4050
|
+
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("_cy")} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope16_id, "a")}`);
|
|
4044
4051
|
_if(() => {
|
|
4045
4052
|
if (hits && hits.length) {
|
|
4046
4053
|
const $scope17_id = _scope_id();
|
|
4047
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4054
|
+
_html(`<ul${_attr_class([toolGrid, "_cz"])}>`);
|
|
4048
4055
|
_for_of(hits, (h) => {
|
|
4049
4056
|
const $scope18_id = _scope_id();
|
|
4050
|
-
_html(`<li${_attr_class(["
|
|
4057
|
+
_html(`<li${_attr_class(["_bK", "_cr"])}><div${_attr_class("_bL")}><span${_attr_class(["_ct", "_q"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
4051
4058
|
_if(() => {
|
|
4052
4059
|
if (active.has(h.name)) {
|
|
4053
4060
|
const $scope19_id = _scope_id();
|
|
4054
|
-
_html(`<span${_attr_class("
|
|
4061
|
+
_html(`<span${_attr_class("_ca")}><span${_attr_class("_y")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
4055
4062
|
_subscribe($active__closures, writeScope($scope19_id, { Cch: 4 }));
|
|
4056
4063
|
return 0;
|
|
4057
4064
|
} else if (h.description) {
|
|
4058
4065
|
const $scope58_id = _scope_id();
|
|
4059
|
-
_html(`<span${_attr_class("
|
|
4066
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope58_id, "b")}</span>${_el_resume($scope58_id, "a")}`);
|
|
4060
4067
|
writeScope($scope58_id, {});
|
|
4061
4068
|
return 1;
|
|
4062
4069
|
}
|
|
@@ -4068,7 +4075,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4068
4075
|
_if(() => {
|
|
4069
4076
|
if (h.installed) {
|
|
4070
4077
|
const $scope59_id = _scope_id();
|
|
4071
|
-
_html(`<span${_attr_class("
|
|
4078
|
+
_html(`<span${_attr_class("_bP")}>installed</span>`);
|
|
4072
4079
|
writeScope($scope59_id, {});
|
|
4073
4080
|
return 0;
|
|
4074
4081
|
} else {
|
|
@@ -4095,7 +4102,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4095
4102
|
return 0;
|
|
4096
4103
|
} else if (hits && !searching) {
|
|
4097
4104
|
const $scope31_id = _scope_id();
|
|
4098
|
-
_html(`<p${_attr_class("
|
|
4105
|
+
_html(`<p${_attr_class("_bT")}>No tools match “<!>${_escape(query)}${_el_resume($scope31_id, "b")}”.</p>`);
|
|
4099
4106
|
_subscribe($query__closures, writeScope($scope31_id, {}));
|
|
4100
4107
|
return 1;
|
|
4101
4108
|
}
|
|
@@ -4194,8 +4201,8 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4194
4201
|
});
|
|
4195
4202
|
//#endregion
|
|
4196
4203
|
//#region src/tags/new-workspace.css.ts
|
|
4197
|
-
var content$1 = "
|
|
4198
|
-
var iconBtn$2 = "
|
|
4204
|
+
var content$1 = "_ba _4";
|
|
4205
|
+
var iconBtn$2 = "_bd _D";
|
|
4199
4206
|
//#endregion
|
|
4200
4207
|
//#region src/tags/icons/icon-plus.marko
|
|
4201
4208
|
var icon_plus_default = _template("M", (input) => {
|
|
@@ -4262,14 +4269,14 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4262
4269
|
input.onError?.(String(err.message || err));
|
|
4263
4270
|
}
|
|
4264
4271
|
}, "p5", $scope0_id);
|
|
4265
|
-
_html(`<div${_attr_class("
|
|
4272
|
+
_html(`<div${_attr_class("_eq")}><input${_attr_input_value($scope0_id, "b", filter, _resume(function(v) {
|
|
4266
4273
|
filter = v;
|
|
4267
4274
|
highlight = 0;
|
|
4268
|
-
}, "p0", $scope0_id))}${_attr_class("
|
|
4275
|
+
}, "p0", $scope0_id))}${_attr_class("_eC")} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "b")}`);
|
|
4269
4276
|
_if(() => {
|
|
4270
4277
|
if (filter && !catalog) {
|
|
4271
4278
|
const $scope8_id = _scope_id();
|
|
4272
|
-
_html(`<p${_attr_class("
|
|
4279
|
+
_html(`<p${_attr_class("_eB")}>Loading repos…</p>`);
|
|
4273
4280
|
writeScope($scope8_id, {});
|
|
4274
4281
|
return 0;
|
|
4275
4282
|
}
|
|
@@ -4277,23 +4284,23 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4277
4284
|
_if(() => {
|
|
4278
4285
|
if (results.length) {
|
|
4279
4286
|
const $scope2_id = _scope_id();
|
|
4280
|
-
_html(`<ul${_attr_class("
|
|
4287
|
+
_html(`<ul${_attr_class("_er")}>`);
|
|
4281
4288
|
_for_of(results, (repo, i) => {
|
|
4282
4289
|
const $scope3_id = _scope_id();
|
|
4283
|
-
_html(`<li><div${_attr_class(["
|
|
4290
|
+
_html(`<li><div${_attr_class(["_et", { ["_es"]: i === highlight }])}><button${_attr_class("_eu")}>`);
|
|
4284
4291
|
icon_plus_default({
|
|
4285
4292
|
size: 12,
|
|
4286
|
-
class: "
|
|
4293
|
+
class: "_ez"
|
|
4287
4294
|
});
|
|
4288
|
-
_html(`<span${_attr_class("
|
|
4295
|
+
_html(`<span${_attr_class("_eA")}>${_escape(repo.nameWithOwner)}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class(["_ew", { ["_ev"]: 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")}`);
|
|
4289
4296
|
_if(() => {
|
|
4290
4297
|
if (branchesFor === repo.nameWithOwner) {
|
|
4291
4298
|
const $scope4_id = _scope_id();
|
|
4292
|
-
_html(`<div${_attr_class("
|
|
4299
|
+
_html(`<div${_attr_class("_ex")}>`);
|
|
4293
4300
|
_if(() => {
|
|
4294
4301
|
if (!branches) {
|
|
4295
4302
|
const $scope9_id = _scope_id();
|
|
4296
|
-
_html(`<p${_attr_class("
|
|
4303
|
+
_html(`<p${_attr_class("_eB")}><span${_attr_class("_y")}></span> Loading branches…</p>`);
|
|
4297
4304
|
writeScope($scope9_id, {});
|
|
4298
4305
|
return 0;
|
|
4299
4306
|
} else {
|
|
@@ -4303,24 +4310,24 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4303
4310
|
const $scope6_id = _scope_id();
|
|
4304
4311
|
_html(`<input${_attr_input_value($scope6_id, "a", branchFilter, _resume((_new_branchFilter) => {
|
|
4305
4312
|
branchFilter = _new_branchFilter;
|
|
4306
|
-
}, "p1", $scope6_id))}${_attr_class("
|
|
4313
|
+
}, "p1", $scope6_id))}${_attr_class("_eD")} placeholder="Filter branches…" aria-label="Filter branches" autofocus>${_el_resume($scope6_id, "a")}`);
|
|
4307
4314
|
_script($scope6_id, "p6");
|
|
4308
4315
|
_subscribe($branchFilter__closures, writeScope($scope6_id, { Ca9: 1 }));
|
|
4309
4316
|
return 0;
|
|
4310
4317
|
}
|
|
4311
4318
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4312
4319
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4313
|
-
_html(`<ul${_attr_class("
|
|
4320
|
+
_html(`<ul${_attr_class("_ey")}>`);
|
|
4314
4321
|
_for_of(shown, (branch) => {
|
|
4315
4322
|
const $scope7_id = _scope_id();
|
|
4316
|
-
_html(`<li><button${_attr_class(["
|
|
4323
|
+
_html(`<li><button${_attr_class(["_eu", "_eE"])}><span${_attr_class(["_eA", "_q"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4317
4324
|
_script($scope7_id, "p7");
|
|
4318
4325
|
writeScope($scope7_id, { e: branch });
|
|
4319
4326
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
4320
4327
|
_if(() => {
|
|
4321
4328
|
if (!shown.length) {
|
|
4322
4329
|
const $scope10_id = _scope_id();
|
|
4323
|
-
_html(`<li><p${_attr_class("
|
|
4330
|
+
_html(`<li><p${_attr_class("_eB")}>No branches match.</p></li>`);
|
|
4324
4331
|
writeScope($scope10_id, {});
|
|
4325
4332
|
return 0;
|
|
4326
4333
|
}
|
|
@@ -4345,7 +4352,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4345
4352
|
return 0;
|
|
4346
4353
|
} else if (filter && catalog) {
|
|
4347
4354
|
const $scope1_id = _scope_id();
|
|
4348
|
-
_html(`<p${_attr_class("
|
|
4355
|
+
_html(`<p${_attr_class("_eB")}>No repos match "<!>${_escape(filter)}${_el_resume($scope1_id, "b")}".</p>`);
|
|
4349
4356
|
writeScope($scope1_id, {});
|
|
4350
4357
|
return 1;
|
|
4351
4358
|
}
|
|
@@ -4383,6 +4390,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4383
4390
|
//#endregion
|
|
4384
4391
|
//#region src/tags/new-workspace.marko
|
|
4385
4392
|
var api$4;
|
|
4393
|
+
var watchProgress;
|
|
4386
4394
|
var new_workspace_default = _template("m", (input) => {
|
|
4387
4395
|
const $scope0_reason = _scope_reason(), $sg__input_workspaces = _serialize_guard($scope0_reason, 0), $si__input_workspaces = _serialize_if($scope0_reason, 0);
|
|
4388
4396
|
const $scope0_id = _scope_id();
|
|
@@ -4398,28 +4406,16 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4398
4406
|
let error = null;
|
|
4399
4407
|
let steps$1 = [];
|
|
4400
4408
|
const archived$1 = (input.workspaces || []).filter((ws) => ws.status === "archived").slice().sort((a, b) => b.created_at.localeCompare(a.created_at));
|
|
4401
|
-
const prog = {
|
|
4402
|
-
last: 0,
|
|
4403
|
-
op: ""
|
|
4404
|
-
};
|
|
4405
|
-
const takeProgress = _resume((entries) => {
|
|
4406
|
-
for (const e of entries) {
|
|
4407
|
-
if (e.op !== prog.op) continue;
|
|
4408
|
-
if (e.seq && e.seq <= prog.last) continue;
|
|
4409
|
-
if (e.seq) prog.last = e.seq;
|
|
4410
|
-
steps$1 = steps$1.concat(e.message);
|
|
4411
|
-
}
|
|
4412
|
-
}, "m1", $scope0_id);
|
|
4413
4409
|
const addRepo = _resume((fullName, baseBranch) => {
|
|
4414
4410
|
if (!fullName || selected.some((r) => r.fullName === fullName)) return;
|
|
4415
4411
|
selected = selected.concat({
|
|
4416
4412
|
fullName,
|
|
4417
4413
|
baseBranch
|
|
4418
4414
|
});
|
|
4419
|
-
}, "
|
|
4415
|
+
}, "m1", $scope0_id);
|
|
4420
4416
|
const removeRepo = _resume((fullName) => {
|
|
4421
4417
|
selected = selected.filter((r) => r.fullName !== fullName);
|
|
4422
|
-
}, "
|
|
4418
|
+
}, "m2", $scope0_id);
|
|
4423
4419
|
const restore = _resume(async (ws) => {
|
|
4424
4420
|
if (busy || restoring) return;
|
|
4425
4421
|
error = null;
|
|
@@ -4439,22 +4435,17 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4439
4435
|
} finally {
|
|
4440
4436
|
restoring = null;
|
|
4441
4437
|
}
|
|
4442
|
-
}, "
|
|
4438
|
+
}, "m3", $scope0_id);
|
|
4443
4439
|
const create = _resume(async () => {
|
|
4444
4440
|
if (restoring) return;
|
|
4445
4441
|
busy = true;
|
|
4446
4442
|
error = null;
|
|
4447
4443
|
steps$1 = [];
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
}
|
|
4452
|
-
|
|
4453
|
-
try {
|
|
4454
|
-
const r = await api$4(`/api/progress?since=${prog.last}&op=${prog.op}`);
|
|
4455
|
-
takeProgress(r.messages);
|
|
4456
|
-
} catch {}
|
|
4457
|
-
}, 800);
|
|
4444
|
+
const opId = Math.random().toString(36).slice(2, 10);
|
|
4445
|
+
const watcher = watchProgress(opId, (line) => {
|
|
4446
|
+
steps$1 = steps$1.concat(line);
|
|
4447
|
+
});
|
|
4448
|
+
await watcher.ready;
|
|
4458
4449
|
try {
|
|
4459
4450
|
const ws = await api$4("/api/workspaces", {
|
|
4460
4451
|
method: "POST",
|
|
@@ -4462,7 +4453,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4462
4453
|
body: JSON.stringify({
|
|
4463
4454
|
name,
|
|
4464
4455
|
repos: selected,
|
|
4465
|
-
opId
|
|
4456
|
+
opId
|
|
4466
4457
|
})
|
|
4467
4458
|
});
|
|
4468
4459
|
busy = false;
|
|
@@ -4471,11 +4462,11 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4471
4462
|
busy = false;
|
|
4472
4463
|
error = String(err.message || err);
|
|
4473
4464
|
} finally {
|
|
4474
|
-
|
|
4465
|
+
watcher.stop();
|
|
4475
4466
|
}
|
|
4476
|
-
}, "
|
|
4467
|
+
}, "m4", $scope0_id);
|
|
4477
4468
|
const titleId = _id();
|
|
4478
|
-
_html(`<div${_attr_class("
|
|
4469
|
+
_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>`);
|
|
4479
4470
|
_if(() => {
|
|
4480
4471
|
if (error) {
|
|
4481
4472
|
const $scope4_id = _scope_id();
|
|
@@ -4483,8 +4474,8 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4483
4474
|
placement: "inline",
|
|
4484
4475
|
onDismiss: _resume(function() {
|
|
4485
4476
|
error = null;
|
|
4486
|
-
}, "
|
|
4487
|
-
content: _content_resume("
|
|
4477
|
+
}, "m5", $scope4_id),
|
|
4478
|
+
content: _content_resume("m9", () => {
|
|
4488
4479
|
_scope_reason();
|
|
4489
4480
|
const $scope5_id = _scope_id();
|
|
4490
4481
|
_html(`${_escape(error)}${_el_resume($scope5_id, "a")}`);
|
|
@@ -4496,29 +4487,29 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4496
4487
|
return 0;
|
|
4497
4488
|
}
|
|
4498
4489
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
4499
|
-
_html(`<label${_attr_class("
|
|
4490
|
+
_html(`<label${_attr_class("_be")}><span${_attr_class("_bz")}>Name</span><input${_attr_input_value($scope0_id, "k", name, _resume((_new_name) => {
|
|
4500
4491
|
name = _new_name;
|
|
4501
|
-
}, "m0", $scope0_id))}${_attr_class("
|
|
4492
|
+
}, "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)}>`);
|
|
4502
4493
|
_set_serialize_reason(1);
|
|
4503
4494
|
const $childScope = _peek_scope_id();
|
|
4504
4495
|
icon_refresh_default({
|
|
4505
4496
|
size: 14,
|
|
4506
4497
|
class: catalogRefreshing && "_x"
|
|
4507
4498
|
});
|
|
4508
|
-
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("
|
|
4499
|
+
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("_bh")}>`);
|
|
4509
4500
|
_for_of(selected, (repo) => {
|
|
4510
4501
|
const $scope1_id = _scope_id();
|
|
4511
|
-
_html(`<li${_attr_class("
|
|
4502
|
+
_html(`<li${_attr_class("_bi")}><span${_attr_class("_bj")}>${_escape(repo.fullName)}${_el_resume($scope1_id, "c")}</span>`);
|
|
4512
4503
|
_if(() => {
|
|
4513
4504
|
if (repo.baseBranch) {
|
|
4514
4505
|
const $scope8_id = _scope_id();
|
|
4515
|
-
_html(`<span${_attr_class(["
|
|
4506
|
+
_html(`<span${_attr_class(["_bk", "_q"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "b")}</span>`);
|
|
4516
4507
|
writeScope($scope8_id, {});
|
|
4517
4508
|
return 0;
|
|
4518
4509
|
}
|
|
4519
4510
|
}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
4520
|
-
_html(`<button${_attr_class("
|
|
4521
|
-
_script($scope1_id, "
|
|
4511
|
+
_html(`<button${_attr_class("_bl")}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope1_id, "e")}</li>`);
|
|
4512
|
+
_script($scope1_id, "m10");
|
|
4522
4513
|
writeScope($scope1_id, {
|
|
4523
4514
|
h: repo?.fullName,
|
|
4524
4515
|
i: repo?.baseBranch
|
|
@@ -4527,7 +4518,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4527
4518
|
_if(() => {
|
|
4528
4519
|
if (!selected.length) {
|
|
4529
4520
|
const $scope9_id = _scope_id();
|
|
4530
|
-
_html(`<li${_attr_class("
|
|
4521
|
+
_html(`<li${_attr_class("_bm")}>No repos yet — search below to add one (or create empty).</li>`);
|
|
4531
4522
|
writeScope($scope9_id, {});
|
|
4532
4523
|
return 0;
|
|
4533
4524
|
}
|
|
@@ -4539,23 +4530,23 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4539
4530
|
disabled: busy,
|
|
4540
4531
|
onPick: _resume(function(fullName, baseBranch) {
|
|
4541
4532
|
addRepo(fullName, baseBranch);
|
|
4542
|
-
}, "
|
|
4533
|
+
}, "m6", $scope0_id),
|
|
4543
4534
|
onError: _resume(function(message) {
|
|
4544
4535
|
error = message;
|
|
4545
|
-
}, "
|
|
4536
|
+
}, "m7", $scope0_id),
|
|
4546
4537
|
refreshingChange: _resume(function(v) {
|
|
4547
4538
|
catalogRefreshing = v;
|
|
4548
|
-
}, "
|
|
4539
|
+
}, "m8", $scope0_id)
|
|
4549
4540
|
});
|
|
4550
|
-
_var($scope0_id, "u", $childScope2, "
|
|
4541
|
+
_var($scope0_id, "u", $childScope2, "m11");
|
|
4551
4542
|
_html("</section>");
|
|
4552
4543
|
_if(() => {
|
|
4553
4544
|
if (busy && steps$1.length) {
|
|
4554
4545
|
const $scope6_id = _scope_id();
|
|
4555
|
-
_html(`<ul${_attr_class("
|
|
4546
|
+
_html(`<ul${_attr_class("_bn")}>`);
|
|
4556
4547
|
_for_of(steps$1, (step$1, i) => {
|
|
4557
4548
|
const $scope7_id = _scope_id();
|
|
4558
|
-
_html(`<li${_attr_class(["
|
|
4549
|
+
_html(`<li${_attr_class(["_bC", { ["_bo"]: i === steps$1.length - 1 }])}>`);
|
|
4559
4550
|
_if(() => {
|
|
4560
4551
|
if (i === steps$1.length - 1) {
|
|
4561
4552
|
const $scope10_id = _scope_id();
|
|
@@ -4564,7 +4555,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4564
4555
|
return 0;
|
|
4565
4556
|
} else {
|
|
4566
4557
|
const $scope11_id = _scope_id();
|
|
4567
|
-
_html(`<span${_attr_class("
|
|
4558
|
+
_html(`<span${_attr_class("_bp")}>✓</span>`);
|
|
4568
4559
|
writeScope($scope11_id, {});
|
|
4569
4560
|
return 1;
|
|
4570
4561
|
}
|
|
@@ -4576,19 +4567,19 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4576
4567
|
return 0;
|
|
4577
4568
|
}
|
|
4578
4569
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
4579
|
-
_html(`<div${_attr_class("
|
|
4570
|
+
_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([
|
|
4580
4571
|
"_h",
|
|
4581
4572
|
"_i",
|
|
4582
|
-
"
|
|
4583
|
-
"
|
|
4573
|
+
"_bc",
|
|
4574
|
+
"_bD"
|
|
4584
4575
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "z")}</button>${_el_resume($scope0_id, "y")}</div>`);
|
|
4585
4576
|
_if(() => {
|
|
4586
4577
|
if (archived$1.length) {
|
|
4587
4578
|
const $scope2_id = _scope_id();
|
|
4588
|
-
_html(`<section${_attr_class("
|
|
4579
|
+
_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")}>`);
|
|
4589
4580
|
_for_of(archived$1, (ws) => {
|
|
4590
4581
|
const $scope3_id = _scope_id();
|
|
4591
|
-
_html(`<li${_attr_class("
|
|
4582
|
+
_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)}>`);
|
|
4592
4583
|
_if(() => {
|
|
4593
4584
|
if (restoring === ws.id) {
|
|
4594
4585
|
const $scope12_id = _scope_id();
|
|
@@ -4603,7 +4594,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4603
4594
|
}
|
|
4604
4595
|
}, $scope3_id, "g", 1, 1, 1, "</button>");
|
|
4605
4596
|
_html("</li>");
|
|
4606
|
-
_script($scope3_id, "
|
|
4597
|
+
_script($scope3_id, "m12");
|
|
4607
4598
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope3_id, {
|
|
4608
4599
|
i: ws,
|
|
4609
4600
|
n: ws?.id,
|
|
@@ -4616,8 +4607,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4616
4607
|
}
|
|
4617
4608
|
}, $scope0_id, "a0", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
4618
4609
|
_html("</div></div></div>");
|
|
4619
|
-
_script($scope0_id, "
|
|
4620
|
-
_script($scope0_id, "m15");
|
|
4610
|
+
_script($scope0_id, "m13");
|
|
4621
4611
|
writeScope($scope0_id, {
|
|
4622
4612
|
a4: input.onRestore,
|
|
4623
4613
|
a5: input.onCreate,
|
|
@@ -4628,23 +4618,20 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4628
4618
|
ac: restoring,
|
|
4629
4619
|
ag: error,
|
|
4630
4620
|
ah: steps$1,
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
an:
|
|
4635
|
-
ao:
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
av:
|
|
4640
|
-
aw: create,
|
|
4641
|
-
ay: refreshCatalog,
|
|
4642
|
-
b1: $error__closures,
|
|
4621
|
+
aj: steps$1?.length,
|
|
4622
|
+
al: $si__input_workspaces && archived$1,
|
|
4623
|
+
am: $si__input_workspaces && archived$1?.length,
|
|
4624
|
+
an: addRepo,
|
|
4625
|
+
ao: removeRepo,
|
|
4626
|
+
ap: restore,
|
|
4627
|
+
aq: create,
|
|
4628
|
+
as: refreshCatalog,
|
|
4629
|
+
av: $error__closures,
|
|
4643
4630
|
p: _existing_scope($childScope),
|
|
4644
4631
|
t: _existing_scope($childScope2),
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4632
|
+
ax: $steps_length__closures,
|
|
4633
|
+
at: $busy__closures,
|
|
4634
|
+
au: $restoring__closures
|
|
4648
4635
|
});
|
|
4649
4636
|
_resume_branch($scope0_id);
|
|
4650
4637
|
});
|
|
@@ -4731,8 +4718,8 @@ function activeAgent(session) {
|
|
|
4731
4718
|
const command = session.state?.command?.trim();
|
|
4732
4719
|
return command && agentFromCommand(command) || session.agent;
|
|
4733
4720
|
}
|
|
4734
|
-
var iconBtn$1 = "
|
|
4735
|
-
var navToggle = "
|
|
4721
|
+
var iconBtn$1 = "_dg _D";
|
|
4722
|
+
var navToggle = "_dl _D";
|
|
4736
4723
|
_template("C", (input) => {
|
|
4737
4724
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4738
4725
|
const $scope0_id = _scope_id();
|
|
@@ -4765,7 +4752,7 @@ var icon_settings_default = _template("P", (input) => {
|
|
|
4765
4752
|
});
|
|
4766
4753
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4767
4754
|
});
|
|
4768
|
-
var railBtn = "
|
|
4755
|
+
var railBtn = "_fM _D";
|
|
4769
4756
|
//#endregion
|
|
4770
4757
|
//#region src/tags/icons/icon-diff.marko
|
|
4771
4758
|
var icon_diff_default = _template("F", (input) => {
|
|
@@ -5026,10 +5013,10 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5026
5013
|
_if(() => {
|
|
5027
5014
|
if (input.rail) {
|
|
5028
5015
|
const $scope2_id = _scope_id();
|
|
5029
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5016
|
+
_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([
|
|
5030
5017
|
"_s",
|
|
5031
5018
|
phase[dot],
|
|
5032
|
-
"
|
|
5019
|
+
"_fN"
|
|
5033
5020
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5034
5021
|
_script($scope2_id, "s3");
|
|
5035
5022
|
_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) }))));
|
|
@@ -5038,14 +5025,14 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5038
5025
|
const $scope3_id = _scope_id();
|
|
5039
5026
|
const sessions$1 = input.sessions || [];
|
|
5040
5027
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs you" : dot === "idle" ? "Idle" : "Off";
|
|
5041
|
-
_html(`<section${_attr_class(["
|
|
5042
|
-
["
|
|
5043
|
-
["
|
|
5044
|
-
["
|
|
5045
|
-
}])}><div${_attr_class("
|
|
5028
|
+
_html(`<section${_attr_class(["_fP", {
|
|
5029
|
+
["_fJ"]: input.current,
|
|
5030
|
+
["_fQ"]: input.railPop,
|
|
5031
|
+
["_fO"]: input.page
|
|
5032
|
+
}])}><div${_attr_class("_fR")}><button${_attr_class("_fS")}><span${_attr_class([
|
|
5046
5033
|
"_s",
|
|
5047
5034
|
phase[dot],
|
|
5048
|
-
"
|
|
5035
|
+
"_f2"
|
|
5049
5036
|
])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5050
5037
|
_if(() => {
|
|
5051
5038
|
if (sessions$1.length === 1) {
|
|
@@ -5058,7 +5045,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5058
5045
|
icon_agent_default({
|
|
5059
5046
|
agent: activeAgent(sessions$1[0]),
|
|
5060
5047
|
size: 12,
|
|
5061
|
-
class: "
|
|
5048
|
+
class: "_fX"
|
|
5062
5049
|
});
|
|
5063
5050
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5064
5051
|
_: _scope_with_id($scope3_id),
|
|
@@ -5068,11 +5055,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5068
5055
|
}
|
|
5069
5056
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5070
5057
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5071
|
-
_html(`<span${_attr_class("
|
|
5058
|
+
_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>`);
|
|
5072
5059
|
_if(() => {
|
|
5073
5060
|
if (input.page && metaText) {
|
|
5074
5061
|
const $scope13_id = _scope_id();
|
|
5075
|
-
_html(`<span${_attr_class("
|
|
5062
|
+
_html(`<span${_attr_class("_f0")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5076
5063
|
$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) });
|
|
5077
5064
|
return 0;
|
|
5078
5065
|
}
|
|
@@ -5081,7 +5068,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5081
5068
|
_if(() => {
|
|
5082
5069
|
if (input.page) {
|
|
5083
5070
|
const $scope4_id = _scope_id();
|
|
5084
|
-
_html(`<span${_attr_class("
|
|
5071
|
+
_html(`<span${_attr_class("_f1")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5085
5072
|
$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, {
|
|
5086
5073
|
_: _scope_with_id($scope3_id),
|
|
5087
5074
|
Cab: $si__input_current && 2
|
|
@@ -5093,21 +5080,21 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5093
5080
|
_if(() => {
|
|
5094
5081
|
if (!input.page) {
|
|
5095
5082
|
const $scope5_id = _scope_id();
|
|
5096
|
-
_html(`<div${_attr_class("
|
|
5083
|
+
_html(`<div${_attr_class("_fT")}>`);
|
|
5097
5084
|
_if(() => {
|
|
5098
5085
|
if (input.onNewSession) {
|
|
5099
5086
|
const $scope6_id = _scope_id();
|
|
5100
5087
|
const newPopId = _id();
|
|
5101
5088
|
let pickerReady = false;
|
|
5102
|
-
_html(`<button${_attr_class("
|
|
5089
|
+
_html(`<button${_attr_class("_fV")} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
5103
5090
|
icon_agent_default({
|
|
5104
5091
|
agent: "shell",
|
|
5105
5092
|
size: 12
|
|
5106
5093
|
});
|
|
5107
|
-
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("
|
|
5094
|
+
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("_fH")}>`);
|
|
5108
5095
|
_for_of([], (agent) => {
|
|
5109
5096
|
const $scope7_id = _scope_id();
|
|
5110
|
-
_html(`<button${_attr_class("
|
|
5097
|
+
_html(`<button${_attr_class("_fI")}>`);
|
|
5111
5098
|
_set_serialize_reason(12);
|
|
5112
5099
|
const $childScope2 = _peek_scope_id();
|
|
5113
5100
|
icon_agent_default({
|
|
@@ -5132,7 +5119,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5132
5119
|
_if(() => {
|
|
5133
5120
|
if (input.onReview) {
|
|
5134
5121
|
const $scope8_id = _scope_id();
|
|
5135
|
-
_html(`<button${_attr_class("
|
|
5122
|
+
_html(`<button${_attr_class("_fV")} title="Review changes">`);
|
|
5136
5123
|
icon_diff_default({ size: 12 });
|
|
5137
5124
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
5138
5125
|
_script($scope8_id, "s6");
|
|
@@ -5140,7 +5127,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5140
5127
|
return 0;
|
|
5141
5128
|
}
|
|
5142
5129
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5143
|
-
_html(`<button${_attr_class(["
|
|
5130
|
+
_html(`<button${_attr_class(["_fV", { ["_fK"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5144
5131
|
icon_manage_default({ size: 12 });
|
|
5145
5132
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5146
5133
|
_script($scope5_id, "s7");
|
|
@@ -5148,17 +5135,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5148
5135
|
return 0;
|
|
5149
5136
|
}
|
|
5150
5137
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page, 0, 1);
|
|
5151
|
-
_html(`</div><div${_attr_class("
|
|
5138
|
+
_html(`</div><div${_attr_class("_f7")}>`);
|
|
5152
5139
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5153
5140
|
const $scope9_id = _scope_id();
|
|
5154
|
-
_html(`<div${_attr_class(["
|
|
5141
|
+
_html(`<div${_attr_class(["_fU", { ["_fJ"]: s.id === input.currentTab }])}>`);
|
|
5155
5142
|
_if(() => {
|
|
5156
5143
|
if (renamingId === s.id) {
|
|
5157
5144
|
const $scope11_id = _scope_id();
|
|
5158
5145
|
_html(`<span${_attr_class([
|
|
5159
5146
|
"_s",
|
|
5160
5147
|
phase[sessionPhase(s.state)],
|
|
5161
|
-
"
|
|
5148
|
+
"_f5"
|
|
5162
5149
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5163
5150
|
_set_serialize_reason({
|
|
5164
5151
|
1: $sg__input_sessions,
|
|
@@ -5168,17 +5155,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5168
5155
|
icon_agent_default({
|
|
5169
5156
|
agent: activeAgent(s),
|
|
5170
5157
|
size: 13,
|
|
5171
|
-
class: "
|
|
5158
|
+
class: "_f9"
|
|
5172
5159
|
});
|
|
5173
5160
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5174
5161
|
renameValue = _new_renameValue;
|
|
5175
|
-
}, "s0", $scope11_id))}${_attr_class("
|
|
5162
|
+
}, "s0", $scope11_id))}${_attr_class("_f6")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5176
5163
|
_script($scope11_id, "s8");
|
|
5177
5164
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5178
5165
|
return 0;
|
|
5179
5166
|
} else {
|
|
5180
5167
|
const $scope10_id = _scope_id();
|
|
5181
|
-
_html(`<button${_attr_class("
|
|
5168
|
+
_html(`<button${_attr_class("_f8")}><span${_attr_class(["_s", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5182
5169
|
_set_serialize_reason({
|
|
5183
5170
|
1: $sg__input_sessions,
|
|
5184
5171
|
2: $sg__input_sessions
|
|
@@ -5187,11 +5174,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5187
5174
|
icon_agent_default({
|
|
5188
5175
|
agent: activeAgent(s),
|
|
5189
5176
|
size: 13,
|
|
5190
|
-
class: "
|
|
5177
|
+
class: "_f9"
|
|
5191
5178
|
});
|
|
5192
|
-
_html(`<span${_attr_class("
|
|
5179
|
+
_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">`);
|
|
5193
5180
|
icon_edit_default({ size: 12 });
|
|
5194
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["
|
|
5181
|
+
_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>`);
|
|
5195
5182
|
_script($scope10_id, "s9");
|
|
5196
5183
|
_subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5197
5184
|
return 1;
|
|
@@ -5372,25 +5359,25 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5372
5359
|
const wsSelected = view !== "settings" && view !== "new";
|
|
5373
5360
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5374
5361
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5375
|
-
_html(`<aside${_attr_class(["
|
|
5376
|
-
["
|
|
5377
|
-
["
|
|
5362
|
+
_html(`<aside${_attr_class(["_dk", {
|
|
5363
|
+
["_di"]: !navOpen,
|
|
5364
|
+
["_dj"]: isPage
|
|
5378
5365
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5379
5366
|
_if(() => {
|
|
5380
5367
|
if (isPage) {
|
|
5381
5368
|
const $scope1_id = _scope_id();
|
|
5382
|
-
_html(`<header${_attr_class("
|
|
5369
|
+
_html(`<header${_attr_class("_dn")}><h1${_attr_class("_do")}>Workspaces</h1><div${_attr_class("_dp")}>`);
|
|
5383
5370
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5384
5371
|
_html(`<button${_attr_class([
|
|
5385
5372
|
iconBtn$1,
|
|
5386
|
-
"
|
|
5387
|
-
{ ["
|
|
5373
|
+
"_dq",
|
|
5374
|
+
{ ["_df"]: view === "settings" }
|
|
5388
5375
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5389
5376
|
icon_settings_default({ size: 16 });
|
|
5390
5377
|
_if(() => {
|
|
5391
5378
|
if (input.setupReady === false) {
|
|
5392
5379
|
const $scope10_id = _scope_id();
|
|
5393
|
-
_html(`<span${_attr_class(["_s", "
|
|
5380
|
+
_html(`<span${_attr_class(["_s", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
5394
5381
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5395
5382
|
return 0;
|
|
5396
5383
|
}
|
|
@@ -5401,13 +5388,13 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5401
5388
|
return 0;
|
|
5402
5389
|
}
|
|
5403
5390
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5404
|
-
_html(`<div${_attr_class("
|
|
5391
|
+
_html(`<div${_attr_class("_dt")}>`);
|
|
5405
5392
|
_for_of(listIds, (wsId) => {
|
|
5406
5393
|
const $scope2_id = _scope_id();
|
|
5407
5394
|
_if(() => {
|
|
5408
5395
|
if (isPage && wsId === ws.id) {
|
|
5409
5396
|
const $scope11_id = _scope_id();
|
|
5410
|
-
_html(`<h2${_attr_class("
|
|
5397
|
+
_html(`<h2${_attr_class("_dr")}>Current</h2>`);
|
|
5411
5398
|
writeScope($scope11_id, {});
|
|
5412
5399
|
return 0;
|
|
5413
5400
|
}
|
|
@@ -5415,7 +5402,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5415
5402
|
_if(() => {
|
|
5416
5403
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5417
5404
|
const $scope12_id = _scope_id();
|
|
5418
|
-
_html(`<h2${_attr_class("
|
|
5405
|
+
_html(`<h2${_attr_class("_dr")}>Other spaces</h2>`);
|
|
5419
5406
|
writeScope($scope12_id, {});
|
|
5420
5407
|
return 0;
|
|
5421
5408
|
}
|
|
@@ -5513,7 +5500,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5513
5500
|
railHover = null;
|
|
5514
5501
|
}, 150);
|
|
5515
5502
|
}, "t9", $scope3_id);
|
|
5516
|
-
_html(`<div${_attr_class("
|
|
5503
|
+
_html(`<div${_attr_class("_du")}>`);
|
|
5517
5504
|
_for_of(itemIds, (wsId, i) => {
|
|
5518
5505
|
const $scope4_id = _scope_id();
|
|
5519
5506
|
_html("<span>");
|
|
@@ -5560,7 +5547,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5560
5547
|
if (railHover) {
|
|
5561
5548
|
const $scope5_id = _scope_id();
|
|
5562
5549
|
const hoverId = railHover.id;
|
|
5563
|
-
_html(`<div${_attr_class("
|
|
5550
|
+
_html(`<div${_attr_class("_dx")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5564
5551
|
_set_serialize_reason({
|
|
5565
5552
|
0: 1,
|
|
5566
5553
|
1: 1,
|
|
@@ -5663,11 +5650,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5663
5650
|
return 0;
|
|
5664
5651
|
}
|
|
5665
5652
|
}, $scope0_id, "d");
|
|
5666
|
-
_html(`<div${_attr_class("
|
|
5653
|
+
_html(`<div${_attr_class("_dv")}>`);
|
|
5667
5654
|
_if(() => {
|
|
5668
5655
|
if (isPage) {
|
|
5669
5656
|
const $scope6_id = _scope_id();
|
|
5670
|
-
_html(`<button${_attr_class(["
|
|
5657
|
+
_html(`<button${_attr_class(["_ds", { ["_df"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5671
5658
|
icon_folder_plus_default({ size: 16 });
|
|
5672
5659
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
5673
5660
|
_script($scope6_id, "t21");
|
|
@@ -5689,19 +5676,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5689
5676
|
return 1;
|
|
5690
5677
|
}
|
|
5691
5678
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5692
|
-
_html(`<div${_attr_class(["_r", "
|
|
5679
|
+
_html(`<div${_attr_class(["_r", "_dw"])}></div>`);
|
|
5693
5680
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5694
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5681
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_df"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5695
5682
|
icon_settings_default({ size: 15 });
|
|
5696
5683
|
_if(() => {
|
|
5697
5684
|
if (input.setupReady === false) {
|
|
5698
5685
|
const $scope15_id = _scope_id();
|
|
5699
|
-
_html(`<span${_attr_class(["_s", "
|
|
5686
|
+
_html(`<span${_attr_class(["_s", "_dh"])} title="Machine setup incomplete"></span>`);
|
|
5700
5687
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5701
5688
|
return 0;
|
|
5702
5689
|
}
|
|
5703
5690
|
}, $scope7_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
5704
|
-
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["
|
|
5691
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_df"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5705
5692
|
icon_folder_plus_default({ size: 16 });
|
|
5706
5693
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5707
5694
|
_script($scope7_id, "t23");
|
|
@@ -5776,9 +5763,9 @@ function repoWebUrl(fullName) {
|
|
|
5776
5763
|
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
5777
5764
|
return `https://github.com/${fullName}`;
|
|
5778
5765
|
}
|
|
5779
|
-
var iconBtn = "
|
|
5780
|
-
var content = "
|
|
5781
|
-
var pageMeta = "
|
|
5766
|
+
var iconBtn = "_bU _D";
|
|
5767
|
+
var content = "_bW _4";
|
|
5768
|
+
var pageMeta = "_bX _9";
|
|
5782
5769
|
//#endregion
|
|
5783
5770
|
//#region src/tags/manage-workspace.marko
|
|
5784
5771
|
var api$2;
|
|
@@ -5872,16 +5859,16 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5872
5859
|
setTimeout(() => loadProcs(void 0), 500);
|
|
5873
5860
|
}, "k5", $scope0_id);
|
|
5874
5861
|
const titleId = _id();
|
|
5875
|
-
_html(`<div${_attr_class("
|
|
5862
|
+
_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("_bY")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
|
|
5876
5863
|
_if(() => {
|
|
5877
5864
|
if (ws.status !== "active") {
|
|
5878
5865
|
const $scope10_id = _scope_id();
|
|
5879
|
-
_html(`<span${_attr_class(["
|
|
5866
|
+
_html(`<span${_attr_class(["_b1", "_b2"])}>Archived</span>`);
|
|
5880
5867
|
writeScope($scope10_id, {});
|
|
5881
5868
|
return 0;
|
|
5882
5869
|
}
|
|
5883
5870
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
5884
|
-
_html(`<span${_attr_class("
|
|
5871
|
+
_html(`<span${_attr_class("_bZ")} aria-hidden=true>·</span><span${_attr_class(["_b0", "_q"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
|
|
5885
5872
|
_if(() => {
|
|
5886
5873
|
if (error) {
|
|
5887
5874
|
const $scope2_id = _scope_id();
|
|
@@ -5905,26 +5892,26 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5905
5892
|
_if(() => {
|
|
5906
5893
|
if (pendingAction && actionStep) {
|
|
5907
5894
|
const $scope7_id = _scope_id();
|
|
5908
|
-
_html(`<p${_attr_class("
|
|
5895
|
+
_html(`<p${_attr_class("_bE")}><span${_attr_class("_y")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
5909
5896
|
writeScope($scope7_id, {});
|
|
5910
5897
|
return 0;
|
|
5911
5898
|
}
|
|
5912
5899
|
}, $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
5913
|
-
_html(`<section${_attr_class("
|
|
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("_r")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5914
5901
|
_set_serialize_reason(1);
|
|
5915
5902
|
const $childScope = _peek_scope_id();
|
|
5916
5903
|
icon_refresh_default({
|
|
5917
5904
|
size: 14,
|
|
5918
5905
|
class: catalogRefreshing && "_x"
|
|
5919
5906
|
});
|
|
5920
|
-
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("
|
|
5907
|
+
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_bI")}>`);
|
|
5921
5908
|
_for_of(ws.repos, (row) => {
|
|
5922
5909
|
const $scope1_id = _scope_id();
|
|
5923
|
-
_html(`<li${_attr_class("
|
|
5910
|
+
_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", "_b4"])}${_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")}`);
|
|
5924
5911
|
_if(() => {
|
|
5925
5912
|
if (row.base_branch !== row.default_branch) {
|
|
5926
5913
|
const $scope11_id = _scope_id();
|
|
5927
|
-
_html(`<span${_attr_class(["
|
|
5914
|
+
_html(`<span${_attr_class(["_bP", "_q"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
|
|
5928
5915
|
writeScope($scope11_id, {});
|
|
5929
5916
|
return 0;
|
|
5930
5917
|
}
|
|
@@ -5939,9 +5926,9 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5939
5926
|
} else {
|
|
5940
5927
|
const $scope6_id = _scope_id();
|
|
5941
5928
|
_html(`<button${_attr_class([
|
|
5942
|
-
"
|
|
5943
|
-
"
|
|
5944
|
-
{ ["
|
|
5929
|
+
"_bQ",
|
|
5930
|
+
"_bS",
|
|
5931
|
+
{ ["_bR"]: confirmingRemove === row.full_name }
|
|
5945
5932
|
])}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "Remove?" : "×"}${_el_resume($scope6_id, "b")}</button>${_el_resume($scope6_id, "a")}`);
|
|
5946
5933
|
_script($scope6_id, "k11");
|
|
5947
5934
|
_subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
|
|
@@ -5958,19 +5945,19 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5958
5945
|
}, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5959
5946
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
5960
5947
|
const $scope13_id = _scope_id();
|
|
5961
|
-
_html(`<li${_attr_class(["
|
|
5948
|
+
_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>`);
|
|
5962
5949
|
writeScope($scope13_id, {});
|
|
5963
5950
|
}, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5964
5951
|
_html("</ul>");
|
|
5965
5952
|
_if(() => {
|
|
5966
5953
|
if (!ws.repos.length && !busy.size) {
|
|
5967
5954
|
const $scope14_id = _scope_id();
|
|
5968
|
-
_html(`<p${_attr_class("
|
|
5955
|
+
_html(`<p${_attr_class("_bT")}>No repos yet — search below to add one.</p>`);
|
|
5969
5956
|
writeScope($scope14_id, {});
|
|
5970
5957
|
return 0;
|
|
5971
5958
|
}
|
|
5972
5959
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
5973
|
-
_html(`<div${_attr_class("
|
|
5960
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
5974
5961
|
const $childScope2 = _peek_scope_id();
|
|
5975
5962
|
let refreshCatalog = repo_picker_default({
|
|
5976
5963
|
exclude: inWorkspace,
|
|
@@ -5990,17 +5977,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5990
5977
|
_if(() => {
|
|
5991
5978
|
if (running.length) {
|
|
5992
5979
|
const $scope8_id = _scope_id();
|
|
5993
|
-
_html(`<section${_attr_class("
|
|
5980
|
+
_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")}>`);
|
|
5994
5981
|
_for_of(running, (p) => {
|
|
5995
5982
|
const $scope9_id = _scope_id();
|
|
5996
|
-
_html(`<li${_attr_class("
|
|
5983
|
+
_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>`);
|
|
5997
5984
|
_if(() => {
|
|
5998
5985
|
if (p.ports.length) {
|
|
5999
5986
|
const $scope15_id = _scope_id();
|
|
6000
|
-
_html(`<span${_attr_class("
|
|
5987
|
+
_html(`<span${_attr_class("_bN")}>`);
|
|
6001
5988
|
_for_of(p.ports, (port) => {
|
|
6002
5989
|
const $scope16_id = _scope_id();
|
|
6003
|
-
_html(`<button${_attr_class(["_l", "
|
|
5990
|
+
_html(`<button${_attr_class(["_l", "_b5"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
|
|
6004
5991
|
_script($scope16_id, "k13");
|
|
6005
5992
|
writeScope($scope16_id, { d: port });
|
|
6006
5993
|
}, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6008,7 +5995,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6008
5995
|
return 0;
|
|
6009
5996
|
}
|
|
6010
5997
|
}, $scope9_id, "e", 1, 1, 1, 0, 1);
|
|
6011
|
-
_html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["
|
|
5998
|
+
_html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["_bQ", "_bS"])} type=button${_attr("title", `Kill ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>×</button>${_el_resume($scope9_id, "f")}</li>`);
|
|
6012
5999
|
_script($scope9_id, "k14");
|
|
6013
6000
|
writeScope($scope9_id, {
|
|
6014
6001
|
k: p?.ports,
|
|
@@ -6020,17 +6007,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6020
6007
|
return 0;
|
|
6021
6008
|
}
|
|
6022
6009
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
6023
|
-
_html(`<section${_attr_class(["
|
|
6010
|
+
_html(`<section${_attr_class(["_bF", "_b6"])}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Workspace</h2></div><div${_attr_class("_b7")}>`);
|
|
6024
6011
|
_if(() => {
|
|
6025
6012
|
if (ws.status === "active") {
|
|
6026
6013
|
const $scope4_id = _scope_id();
|
|
6027
|
-
_html(`<button type=button${_attr_class(["_h", "
|
|
6014
|
+
_html(`<button type=button${_attr_class(["_h", "_b8"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
6028
6015
|
_script($scope4_id, "k15");
|
|
6029
6016
|
writeScope($scope4_id, {});
|
|
6030
6017
|
return 0;
|
|
6031
6018
|
} else {
|
|
6032
6019
|
const $scope5_id = _scope_id();
|
|
6033
|
-
_html(`<button type=button${_attr_class(["_h", "
|
|
6020
|
+
_html(`<button type=button${_attr_class(["_h", "_b8"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
6034
6021
|
_script($scope5_id, "k16");
|
|
6035
6022
|
writeScope($scope5_id, {});
|
|
6036
6023
|
return 1;
|
|
@@ -6039,9 +6026,9 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6039
6026
|
_html(`<button type=button${_attr_class([
|
|
6040
6027
|
"_h",
|
|
6041
6028
|
"_k",
|
|
6042
|
-
"
|
|
6029
|
+
"_b8",
|
|
6043
6030
|
{ ["_j"]: confirmingDelete }
|
|
6044
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("
|
|
6031
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_b9")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
6045
6032
|
_script($scope0_id, "k17");
|
|
6046
6033
|
_script($scope0_id, "k18");
|
|
6047
6034
|
writeScope($scope0_id, {
|
|
@@ -6112,15 +6099,15 @@ var term_find_default = _template("u", (input) => {
|
|
|
6112
6099
|
const canStep = hasQuery && open;
|
|
6113
6100
|
const keybar = input.placement === "keybar";
|
|
6114
6101
|
_html(`<div${_attr_class([
|
|
6115
|
-
"
|
|
6116
|
-
keybar ? "
|
|
6117
|
-
!open && "
|
|
6118
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6102
|
+
"_fA",
|
|
6103
|
+
keybar ? "_fC" : "_fB",
|
|
6104
|
+
!open && "_fE"
|
|
6105
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fv", keybar ? "_fD" : "_fx"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6119
6106
|
if (!open) return;
|
|
6120
6107
|
query = v;
|
|
6121
6108
|
live.query = v;
|
|
6122
6109
|
run(0);
|
|
6123
|
-
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6110
|
+
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_fF"])} 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 && "_fG"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fG"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fG"])} 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")}`);
|
|
6124
6111
|
_script($scope0_id, "u4");
|
|
6125
6112
|
_script($scope0_id, "u5");
|
|
6126
6113
|
_script($scope0_id, "u6");
|
|
@@ -6389,7 +6376,7 @@ var term_default = _template("v", (input) => {
|
|
|
6389
6376
|
trapOpen = true;
|
|
6390
6377
|
}
|
|
6391
6378
|
}, "v14", $scope0_id);
|
|
6392
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6379
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_cE")}><div${_attr_class("_cF")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6393
6380
|
_if(() => {
|
|
6394
6381
|
if (findOpen) {
|
|
6395
6382
|
const $scope11_id = _scope_id();
|
|
@@ -6416,7 +6403,7 @@ var term_default = _template("v", (input) => {
|
|
|
6416
6403
|
_if(() => {
|
|
6417
6404
|
if (uploading) {
|
|
6418
6405
|
const $scope18_id = _scope_id();
|
|
6419
|
-
_html(`<div${_attr_class("
|
|
6406
|
+
_html(`<div${_attr_class("_cJ")}>uploading…</div>`);
|
|
6420
6407
|
writeScope($scope18_id, {});
|
|
6421
6408
|
return 0;
|
|
6422
6409
|
}
|
|
@@ -6424,7 +6411,7 @@ var term_default = _template("v", (input) => {
|
|
|
6424
6411
|
_if(() => {
|
|
6425
6412
|
if (copiedFlash) {
|
|
6426
6413
|
const $scope19_id = _scope_id();
|
|
6427
|
-
_html(`<div${_attr_class("
|
|
6414
|
+
_html(`<div${_attr_class("_cI")}>Copied</div>`);
|
|
6428
6415
|
writeScope($scope19_id, {});
|
|
6429
6416
|
return 0;
|
|
6430
6417
|
}
|
|
@@ -6433,7 +6420,7 @@ var term_default = _template("v", (input) => {
|
|
|
6433
6420
|
_if(() => {
|
|
6434
6421
|
if (trapOpen) {
|
|
6435
6422
|
const $scope10_id = _scope_id();
|
|
6436
|
-
_html(`<div${_attr_class("
|
|
6423
|
+
_html(`<div${_attr_class("_cK")}><div${_attr_class("_cL")}><p${_attr_class("_de")}>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")}`);
|
|
6437
6424
|
_script($scope10_id, "v23");
|
|
6438
6425
|
_script($scope10_id, "v24");
|
|
6439
6426
|
writeScope($scope10_id, {});
|
|
@@ -6538,7 +6525,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6538
6525
|
let DiffView = null;
|
|
6539
6526
|
const loadDiffView = _resume(() => {
|
|
6540
6527
|
if (DiffView) return;
|
|
6541
|
-
import("./
|
|
6528
|
+
import("./_CkFSxwl9.js").then((m) => {
|
|
6542
6529
|
DiffView = m.default;
|
|
6543
6530
|
});
|
|
6544
6531
|
}, "y4", $scope0_id);
|
|
@@ -6694,7 +6681,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6694
6681
|
error = String(err.message || err);
|
|
6695
6682
|
}
|
|
6696
6683
|
}, "y19", $scope0_id);
|
|
6697
|
-
_html(`<div${_attr_class(["
|
|
6684
|
+
_html(`<div${_attr_class(["_S", { ["_R"]: view === "nav" }])}><div${_attr_class("_T")}>`);
|
|
6698
6685
|
_set_serialize_reason({
|
|
6699
6686
|
0: _serialize_guard($scope0_reason, 0),
|
|
6700
6687
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6767,7 +6754,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6767
6754
|
openDiff(pr);
|
|
6768
6755
|
}, "y31", $scope0_id)
|
|
6769
6756
|
});
|
|
6770
|
-
_html(`</div><div${_attr_class("
|
|
6757
|
+
_html(`</div><div${_attr_class("_U")}>`);
|
|
6771
6758
|
_if(() => {
|
|
6772
6759
|
if (error) {
|
|
6773
6760
|
const $scope8_id = _scope_id();
|
|
@@ -6870,13 +6857,13 @@ var work_view_default = _template("y", (input) => {
|
|
|
6870
6857
|
}
|
|
6871
6858
|
}, $scope0_id, "h");
|
|
6872
6859
|
_if(() => {}, $scope0_id, "i");
|
|
6873
|
-
_html(`<div${_attr_class(["
|
|
6860
|
+
_html(`<div${_attr_class(["_W", { ["_V"]: view !== "term" }])}>`);
|
|
6874
6861
|
_if(() => {
|
|
6875
6862
|
if (shownSessions) {
|
|
6876
6863
|
const $scope5_id = _scope_id();
|
|
6877
6864
|
_for_of(shownSessions, (s) => {
|
|
6878
6865
|
const $scope6_id = _scope_id();
|
|
6879
|
-
_html(`<div${_attr_class(["
|
|
6866
|
+
_html(`<div${_attr_class(["_X", { ["_Y"]: s.id === curTab }])}>`);
|
|
6880
6867
|
_set_serialize_reason({
|
|
6881
6868
|
0: 1,
|
|
6882
6869
|
1: 1,
|
|
@@ -6943,7 +6930,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6943
6930
|
_if(() => {
|
|
6944
6931
|
if (!shownSessions.length && view === "term") {
|
|
6945
6932
|
const $scope7_id = _scope_id();
|
|
6946
|
-
_html(`<div${_attr_class("
|
|
6933
|
+
_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>`);
|
|
6947
6934
|
_script($scope7_id, "y51");
|
|
6948
6935
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
6949
6936
|
return 0;
|
|
@@ -6953,7 +6940,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6953
6940
|
return 0;
|
|
6954
6941
|
} else {
|
|
6955
6942
|
const $scope10_id = _scope_id();
|
|
6956
|
-
_html(`<p${_attr_class("
|
|
6943
|
+
_html(`<p${_attr_class("_Z")}>Loading sessions…</p>`);
|
|
6957
6944
|
writeScope($scope10_id, {});
|
|
6958
6945
|
return 1;
|
|
6959
6946
|
}
|
|
@@ -9382,6 +9369,7 @@ function parseRow(payload, auth, source) {
|
|
|
9382
9369
|
five_h_resets: null,
|
|
9383
9370
|
seven_d: used == null ? null : Math.trunc(used),
|
|
9384
9371
|
seven_d_resets: str(period.end || cfg.billingPeriodEnd) || null,
|
|
9372
|
+
seven_d_label: /MONTH/i.test(str(period.type)) ? "month" : "7d",
|
|
9385
9373
|
fable: null,
|
|
9386
9374
|
fable_resets: null,
|
|
9387
9375
|
source
|
|
@@ -14787,4 +14775,4 @@ server.listen(port, () => {
|
|
|
14787
14775
|
//#endregion
|
|
14788
14776
|
export {};
|
|
14789
14777
|
|
|
14790
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
14778
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-DL_Vi7rw.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-DL_Vi7rw.css\"",">"],"defer":[2,"/assets/index-CLK3dq8r.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-CLK3dq8r.js\"","></script>"]}};
|