@dylanpiercey/work 0.0.49 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/work.mjs +149 -2
- package/dist/{_DPQxTPYF.js → _ChsFL4HL.js} +67 -67
- package/dist/{_DdgmjMNU.js → _hWr23FrN.js} +21 -21
- package/dist/index.mjs +264 -269
- package/dist/public/assets/{_DkMIDB1P2.js → _-OkpjNFC2.js} +1 -1
- package/dist/public/assets/_-OkpjNFC2.js.br +0 -0
- package/dist/public/assets/{_BpxZLi8K.js → _7zKhgk70.js} +1 -1
- package/dist/public/assets/_7zKhgk70.js.br +0 -0
- package/dist/public/assets/{_DRRQXGKH.js → _ANZIBcq8.js} +1 -1
- package/dist/public/assets/_ANZIBcq8.js.br +0 -0
- package/dist/public/assets/{_Dmw0DArq.js → _B1kAPDJf.js} +1 -1
- package/dist/public/assets/_B1kAPDJf.js.br +0 -0
- package/dist/public/assets/{_Bb4a7oF1.js → _B1q1XEz1.js} +1 -1
- package/dist/public/assets/_B1q1XEz1.js.br +0 -0
- package/dist/public/assets/{_B6JLzfQk.js → _BAe2Rkst.js} +1 -1
- package/dist/public/assets/_BAe2Rkst.js.br +0 -0
- package/dist/public/assets/{_CVQKEVHV.js → _BMRMEvO7.js} +1 -1
- package/dist/public/assets/_BMRMEvO7.js.br +0 -0
- package/dist/public/assets/{_DlC4k_XP.js → _BQWd9iua.js} +1 -1
- package/dist/public/assets/_BQWd9iua.js.br +0 -0
- package/dist/public/assets/{_Cci4ZExC.js → _BXzA1hkF.js} +1 -1
- package/dist/public/assets/_BXzA1hkF.js.br +0 -0
- package/dist/public/assets/{_BYn0odAU2.js → _BY6UBzWo2.js} +1 -1
- package/dist/public/assets/{_4zqifGZf2.js → _BZMQNYA92.js} +1 -1
- package/dist/public/assets/_BZMQNYA92.js.br +0 -0
- package/dist/public/assets/{_BZDb9Hzx2.js → _BZZMGQsS2.js} +1 -1
- package/dist/public/assets/{_CgnZDJPL.js → _BdKJVs01.js} +1 -1
- package/dist/public/assets/_BdKJVs01.js.br +0 -0
- package/dist/public/assets/{_u3et6kdz.js → _Bdd-EVvo.js} +1 -1
- package/dist/public/assets/_Bdd-EVvo.js.br +0 -0
- package/dist/public/assets/{_UWZzN8Rg.js → _BepwNj2c.js} +1 -1
- package/dist/public/assets/_BepwNj2c.js.br +0 -0
- package/dist/public/assets/{_DBzS4J_k.js → _BgR6JlxP.js} +1 -1
- package/dist/public/assets/_BgR6JlxP.js.br +0 -0
- package/dist/public/assets/{_D9jhO9rQ.js → _BglwyDVi.js} +1 -1
- package/dist/public/assets/_BglwyDVi.js.br +0 -0
- package/dist/public/assets/{_DIiEy_VP.js → _BiDu7TT-.js} +1 -1
- package/dist/public/assets/_BiDu7TT-.js.br +0 -0
- package/dist/public/assets/{_B_Wegq962.js → _BosbXyNb2.js} +1 -1
- package/dist/public/assets/_BosbXyNb2.js.br +0 -0
- package/dist/public/assets/{_B9STxcPh.js → _BsogDiXx.js} +1 -1
- package/dist/public/assets/{_DImQNomk.js → _Bt7Eey0L.js} +1 -1
- package/dist/public/assets/_Bt7Eey0L.js.br +0 -0
- package/dist/public/assets/{_DlsPVtFC.js → _BvXRPJdv.js} +1 -1
- package/dist/public/assets/_BvXRPJdv.js.br +0 -0
- package/dist/public/assets/{_CNxYMMPa.js → _BxtJHtVP.js} +1 -1
- package/dist/public/assets/_BxtJHtVP.js.br +0 -0
- package/dist/public/assets/{_BP2BHaYT2.js → _By0A-jZS2.js} +1 -1
- package/dist/public/assets/_By0A-jZS2.js.br +0 -0
- package/dist/public/assets/{_BUhKc7uT.js → _C0oWdnE5.js} +1 -1
- package/dist/public/assets/_C0oWdnE5.js.br +0 -0
- package/dist/public/assets/{_sBNm9tCS.js → _C2I7cHEj.js} +1 -1
- package/dist/public/assets/_C2I7cHEj.js.br +0 -0
- package/dist/public/assets/{_DbkjWa7i2.js → _CHrLzFRU2.js} +1 -1
- package/dist/public/assets/_CHrLzFRU2.js.br +0 -0
- package/dist/public/assets/{_8D88iC2Y.js → _COh_iyNM.js} +1 -1
- package/dist/public/assets/_COh_iyNM.js.br +0 -0
- package/dist/public/assets/{_YLPBpmu6.js → _CTZYzJI9.js} +1 -1
- package/dist/public/assets/_CTZYzJI9.js.br +0 -0
- package/dist/public/assets/{_F3u8qQ9y.js → _CWmZT485.js} +1 -1
- package/dist/public/assets/_CWmZT485.js.br +0 -0
- package/dist/public/assets/{_JYBrvu87.js → _CZzND5iW.js} +1 -1
- package/dist/public/assets/_CZzND5iW.js.br +0 -0
- package/dist/public/assets/{_B-XihPlt.js → _Cd9v1nzp.js} +1 -1
- package/dist/public/assets/_Cd9v1nzp.js.br +0 -0
- package/dist/public/assets/{_D6xeqZLn.js → _Cf3MmuUY.js} +1 -1
- package/dist/public/assets/_Cf3MmuUY.js.br +0 -0
- package/dist/public/assets/{_DZ0pRMJN2.js → _Cjp1_INh2.js} +1 -1
- package/dist/public/assets/_Cjp1_INh2.js.br +0 -0
- package/dist/public/assets/{_llnipctq2.js → _ClePGw1Q2.js} +1 -1
- package/dist/public/assets/_ClePGw1Q2.js.br +0 -0
- package/dist/public/assets/{_BH7cFvM5.js → _CnOIrHd4.js} +1 -1
- package/dist/public/assets/_CnOIrHd4.js.br +0 -0
- package/dist/public/assets/{_Dji7sUrK2.js → _Co5f57QZ2.js} +1 -1
- package/dist/public/assets/_Co5f57QZ2.js.br +0 -0
- package/dist/public/assets/{_C2-Kd826.js → _CozR6WAm.js} +1 -1
- package/dist/public/assets/_CozR6WAm.js.br +0 -0
- package/dist/public/assets/{_BziqIADV2.js → _CpF0eDyO2.js} +1 -1
- package/dist/public/assets/_CpF0eDyO2.js.br +0 -0
- package/dist/public/assets/{_DyNwE1Gc.js → _Ct4X_xxt.js} +1 -1
- package/dist/public/assets/_Ct4X_xxt.js.br +0 -0
- package/dist/public/assets/{_B-7M0VuK2.js → _CtUpTTh_2.js} +1 -1
- package/dist/public/assets/_CtUpTTh_2.js.br +0 -0
- package/dist/public/assets/{_BmEd20O42.js → _Cuf3C8O12.js} +1 -1
- package/dist/public/assets/_Cuf3C8O12.js.br +0 -0
- package/dist/public/assets/{_CRmHsbsL.js → _CzWr4WDS.js} +1 -1
- package/dist/public/assets/_CzWr4WDS.js.br +0 -0
- package/dist/public/assets/{_BlPl6sCu2.js → _D6rlRNb42.js} +1 -1
- package/dist/public/assets/_D6rlRNb42.js.br +0 -0
- package/dist/public/assets/{_D0L-Bq8g.js → _DDHqFyT6.js} +1 -1
- package/dist/public/assets/_DDHqFyT6.js.br +0 -0
- package/dist/public/assets/{_D4J5RQqK.js → _DDIsmVeS.js} +1 -1
- package/dist/public/assets/_DDIsmVeS.js.br +0 -0
- package/dist/public/assets/{_DjKQr6mH.js → _DEMYRqVb.js} +1 -1
- package/dist/public/assets/_DEMYRqVb.js.br +0 -0
- package/dist/public/assets/{_BX76n7oq2.js → _DHn-Con42.js} +1 -1
- package/dist/public/assets/_DHn-Con42.js.br +0 -0
- package/dist/public/assets/{_Kzpu52En.js → _DJbEi800.js} +1 -1
- package/dist/public/assets/_DJbEi800.js.br +0 -0
- package/dist/public/assets/{_BPmHfnJD.js → _DPZvn_Ns.js} +1 -1
- package/dist/public/assets/_DPZvn_Ns.js.br +0 -0
- package/dist/public/assets/{_BrNzM4EC2.js → _DS46Nokf2.js} +1 -1
- package/dist/public/assets/_DS46Nokf2.js.br +0 -0
- package/dist/public/assets/{_ByaG8bWs.js → _DSSFuJur.js} +1 -1
- package/dist/public/assets/_DSSFuJur.js.br +0 -0
- package/dist/public/assets/{_lBeubFtN2.js → _DTl3WJKW2.js} +1 -1
- package/dist/public/assets/_DTl3WJKW2.js.br +0 -0
- package/dist/public/assets/{_C6jAYlE8.js → _Daxa4EBi.js} +1 -1
- package/dist/public/assets/_Daxa4EBi.js.br +0 -0
- package/dist/public/assets/{_C2rSDO7f.js → _Dd2aGpDJ.js} +1 -1
- package/dist/public/assets/_Dd2aGpDJ.js.br +0 -0
- package/dist/public/assets/{_v4TxGuxE.js → _De6QD9bA.js} +1 -1
- package/dist/public/assets/_De6QD9bA.js.br +0 -0
- package/dist/public/assets/{_B01yJM_n.js → _DhkDcW9a.js} +1 -1
- package/dist/public/assets/_DhkDcW9a.js.br +0 -0
- package/dist/public/assets/{_D99Y49OA.js → _DieSr1Ar.js} +1 -1
- package/dist/public/assets/_DieSr1Ar.js.br +0 -0
- package/dist/public/assets/{_CkeutYnJ2.js → _Dkkv3pWr2.js} +1 -1
- package/dist/public/assets/_Dkkv3pWr2.js.br +0 -0
- package/dist/public/assets/{_BRURAzLu2.js → _DmR5fI7m2.js} +1 -1
- package/dist/public/assets/_DmR5fI7m2.js.br +0 -0
- package/dist/public/assets/{_wvTh271a.js → _DmhFYJm3.js} +1 -1
- package/dist/public/assets/_DmhFYJm3.js.br +0 -0
- package/dist/public/assets/{_B3dWhBsL2.js → _DqeMgS1a2.js} +1 -1
- package/dist/public/assets/_DqeMgS1a2.js.br +0 -0
- package/dist/public/assets/{_D48HGWNS.js → _DsZJYF5S.js} +5 -5
- package/dist/public/assets/_DsZJYF5S.js.br +0 -0
- package/dist/public/assets/{_BhAegdMF2.js → _Dxgr5ZEE2.js} +1 -1
- package/dist/public/assets/_Dxgr5ZEE2.js.br +0 -0
- package/dist/public/assets/{_f4yPg-i-.js → _DypMRhyB.js} +1 -1
- package/dist/public/assets/_DypMRhyB.js.br +0 -0
- package/dist/public/assets/{_B92xkQnk.js → _LpvSvw1m.js} +1 -1
- package/dist/public/assets/_LpvSvw1m.js.br +0 -0
- package/dist/public/assets/{_C9E3fz2-.js → _OrWHmnP_.js} +1 -1
- package/dist/public/assets/_OrWHmnP_.js.br +0 -0
- package/dist/public/assets/{_ByKU0Hfi.js → _WWEgOS99.js} +1 -1
- package/dist/public/assets/_WWEgOS99.js.br +0 -0
- package/dist/public/assets/{_DljpB8742.js → __yh22OJv2.js} +1 -1
- package/dist/public/assets/__yh22OJv2.js.br +0 -0
- package/dist/public/assets/{_C9hmrTBV.js → _c0RV9ZTi.js} +1 -1
- package/dist/public/assets/_c0RV9ZTi.js.br +0 -0
- package/dist/public/assets/{_HH6t8aRM2.js → _h4RVOlAc2.js} +1 -1
- package/dist/public/assets/_h4RVOlAc2.js.br +0 -0
- package/dist/public/assets/{_Bvgyberk.js → _k8EORKKh.js} +1 -1
- package/dist/public/assets/_k8EORKKh.js.br +0 -0
- package/dist/public/assets/{_CMGqtmQt.js → _ror9VoLz.js} +1 -1
- package/dist/public/assets/_ror9VoLz.js.br +0 -0
- package/dist/public/assets/{_DDsFYxIq.js → _um1Uylai.js} +1 -1
- package/dist/public/assets/_um1Uylai.js.br +0 -0
- package/dist/public/assets/{_D7TvcnuF2.js → _z-TE6bLm2.js} +1 -1
- package/dist/public/assets/_z-TE6bLm2.js.br +0 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css +1 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css.br +0 -0
- package/dist/public/assets/{index-D41huIuZ.css → index-BTS1WPEB.css} +1 -1
- package/dist/public/assets/index-BTS1WPEB.css.br +0 -0
- package/dist/public/assets/{index-Bfh8nSee.js → index-g4T1J5qh.js} +20 -20
- package/dist/public/assets/index-g4T1J5qh.js.br +0 -0
- package/lib/setup/install.mjs +10 -7
- 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.br +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
2
|
import { $ as get, A as subscribe, B as setPref, C as setScrapedPhase, D as pushPublicKey, E as deleteSubscription, F as disabledAgents, G as setupPath, H as doctor, I as enabledAgents, J as TOOLS, K as which, L as getSetting, M as subscriberJoins, N as agentChoices, O as saveSubscription, P as allPrefs, Q as db, R as preferredAgent, S as setAgentPhase, T as summaryFromHookPayload, U as ghKnownHosts, V as setSetting, W as miseVersions, X as toolById, Y as agentById, Z as all, _ as tmuxName, a as ensureTmuxServer, at as tmux, b as clearAgentPhase, c as killWorkspaceSessions, d as newSessionArgs, et as workspacePath, g as sessionStates, h as sendToSession, i as disposeSessions, it as run, j as subscriberCount, k as publish, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as gh, o as getSession, ot as config, p as panePids, q as DEFAULT_GITHUB_HOST, r as createSession, rt as git, s as killSession, t as cleanEnv, tt as TMUX_SOCKET, u as markTmuxStarted, v as tmuxWasStarted, w as setSessionViewers, x as reasonFromHookPayload, y as reportsWorking, z as setDisabledAgents } from "./_Bi2N56tu.js";
|
|
3
|
-
import { $ as _set_serialize_reason, A as _dynamic_tag, B as _html, C as _attr_select_value, D as _await, E as _attrs_partial, F as _existing_scope, G as _resume_branch, H as _if, I as _flush_head, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, O as _content, P as _escape, Q as _serialize_if, R as _hoist, S as _attr_option_value, T as _attrs, U as _peek_scope_id, V as _id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, _ as $global, at as _trailers, c as sideNavOpen, ct as attrTag, d as rankRepos, et as _show_end, f as icon_refresh_default, g as phase, h as btnSm, i as icon_sidebar_default, it as _to_text, k as _content_resume, l as workspaceTab, lt as withPageAssets, m as toast_default, n as findIconBtn, nt as _subscribe, ot as _try, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, s as setWorkspaceTab, st as _var, tt as _show_start, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class, z as _hoist_read_error } from "./
|
|
3
|
+
import { $ as _set_serialize_reason, A as _dynamic_tag, B as _html, C as _attr_select_value, D as _await, E as _attrs_partial, F as _existing_scope, G as _resume_branch, H as _if, I as _flush_head, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, O as _content, P as _escape, Q as _serialize_if, R as _hoist, S as _attr_option_value, T as _attrs, U as _peek_scope_id, V as _id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, _ as $global, at as _trailers, c as sideNavOpen, ct as attrTag, d as rankRepos, et as _show_end, f as icon_refresh_default, g as phase, h as btnSm, i as icon_sidebar_default, it as _to_text, k as _content_resume, l as workspaceTab, lt as withPageAssets, m as toast_default, n as findIconBtn, nt as _subscribe, ot as _try, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, s as setWorkspaceTab, st as _var, tt as _show_start, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class, z as _hoist_read_error } from "./_hWr23FrN.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -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");
|
|
@@ -2734,11 +2740,13 @@ async function installAgent(id, opts = {}) {
|
|
|
2734
2740
|
if (!a.bins.some((b) => which(b))) throw new Error(`${a.label} installer finished but ${a.bins[0]} is not on PATH`);
|
|
2735
2741
|
}
|
|
2736
2742
|
/**
|
|
2737
|
-
* Sign in to a GitHub host with gh's browser device flow
|
|
2738
|
-
*
|
|
2739
|
-
*
|
|
2740
|
-
*
|
|
2741
|
-
*
|
|
2743
|
+
* Sign in to a GitHub host with gh's browser device flow, never opening a
|
|
2744
|
+
* browser: `work` usually runs on a remote box, so gh's attempt to launch
|
|
2745
|
+
* one only produces "Failed opening a web browser" noise. Interactive (CLI)
|
|
2746
|
+
* lets gh own the terminal (it prints the code + URL and polls); otherwise
|
|
2747
|
+
* (server) we press Enter for it and the code and URL flow out through
|
|
2748
|
+
* `log` for the UI to show — gh keeps polling until the user finishes in
|
|
2749
|
+
* their own browser.
|
|
2742
2750
|
*/
|
|
2743
2751
|
async function authGithub(host, { interactive = false, ...opts } = {}) {
|
|
2744
2752
|
if (!which("gh")) throw new Error("gh is not installed");
|
|
@@ -2751,15 +2759,20 @@ async function authGithub(host, { interactive = false, ...opts } = {}) {
|
|
|
2751
2759
|
"--git-protocol",
|
|
2752
2760
|
"https"
|
|
2753
2761
|
];
|
|
2762
|
+
const env = {
|
|
2763
|
+
...opts.env,
|
|
2764
|
+
BROWSER: "true"
|
|
2765
|
+
};
|
|
2754
2766
|
if (interactive) return runStreaming("gh", args, {
|
|
2755
2767
|
...opts,
|
|
2768
|
+
env,
|
|
2756
2769
|
interactive: true
|
|
2757
2770
|
});
|
|
2758
2771
|
return runStreaming("gh", args, {
|
|
2759
2772
|
...opts,
|
|
2760
2773
|
input: "\n",
|
|
2761
2774
|
env: {
|
|
2762
|
-
|
|
2775
|
+
...env,
|
|
2763
2776
|
GH_PROMPT_DISABLED: "1"
|
|
2764
2777
|
}
|
|
2765
2778
|
});
|
|
@@ -3072,11 +3085,11 @@ function agentFromCommand(command) {
|
|
|
3072
3085
|
}
|
|
3073
3086
|
//#endregion
|
|
3074
3087
|
//#region src/tags/settings-page.css.ts
|
|
3075
|
-
var content$2 = "
|
|
3076
|
-
var agentGrid = "
|
|
3077
|
-
var defaultTag = "
|
|
3078
|
-
var toolGrid = "
|
|
3079
|
-
var iconBtn$3 = "
|
|
3088
|
+
var content$2 = "_bW _F _G";
|
|
3089
|
+
var agentGrid = "_b0 _bI";
|
|
3090
|
+
var defaultTag = "_b6 _bP";
|
|
3091
|
+
var toolGrid = "_cc _bI";
|
|
3092
|
+
var iconBtn$3 = "_bU _M";
|
|
3080
3093
|
//#endregion
|
|
3081
3094
|
//#region src/tags/icons/icon-agent.marko
|
|
3082
3095
|
var PATHS = {
|
|
@@ -3096,7 +3109,7 @@ var icon_agent_default = _template("z", (input) => {
|
|
|
3096
3109
|
_if(() => {
|
|
3097
3110
|
if (d) {
|
|
3098
3111
|
const $scope1_id = _scope_id();
|
|
3099
|
-
_html(`<svg${_attr_class(["
|
|
3112
|
+
_html(`<svg${_attr_class(["_b", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
|
|
3100
3113
|
_if(() => {
|
|
3101
3114
|
if (badge) {
|
|
3102
3115
|
const $scope3_id = _scope_id();
|
|
@@ -3155,11 +3168,11 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3155
3168
|
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
3169
|
const $scope0_id = _scope_id();
|
|
3157
3170
|
const agent = input.agent;
|
|
3158
|
-
_html(`<div${_attr_class(["
|
|
3171
|
+
_html(`<div${_attr_class(["_eH", { ["_eI"]: input.hideName }])}><div${_attr_class("_eJ")}>`);
|
|
3159
3172
|
_if(() => {
|
|
3160
3173
|
if (!input.hideName) {
|
|
3161
3174
|
const $scope1_id = _scope_id();
|
|
3162
|
-
_html(`<strong${_attr_class("
|
|
3175
|
+
_html(`<strong${_attr_class("_e2")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3163
3176
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3164
3177
|
return 0;
|
|
3165
3178
|
}
|
|
@@ -3167,7 +3180,7 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3167
3180
|
_if(() => {
|
|
3168
3181
|
if (agent.plan) {
|
|
3169
3182
|
const $scope2_id = _scope_id();
|
|
3170
|
-
_html(`<span${_attr_class("
|
|
3183
|
+
_html(`<span${_attr_class("_eK")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3171
3184
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3172
3185
|
return 0;
|
|
3173
3186
|
}
|
|
@@ -3175,25 +3188,25 @@ var usage_meters_default = _template("x", (input) => {
|
|
|
3175
3188
|
_if(() => {
|
|
3176
3189
|
if (agent.stale_seconds != null) {
|
|
3177
3190
|
const $scope3_id = _scope_id();
|
|
3178
|
-
_html(`<span${_attr_class("
|
|
3191
|
+
_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
3192
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3180
3193
|
return 0;
|
|
3181
3194
|
}
|
|
3182
3195
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3183
|
-
_html(`</div><div${_attr_class(["
|
|
3196
|
+
_html(`</div><div${_attr_class(["_eM", { ["_e3"]: agent.stale_seconds != null }])}>`);
|
|
3184
3197
|
_for_of(agent.windows || [], (win) => {
|
|
3185
3198
|
const $scope4_id = _scope_id();
|
|
3186
3199
|
const pct = Math.round(win.used_percent);
|
|
3187
3200
|
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("
|
|
3201
|
+
const fillClass = win.used_percent >= 90 ? "_eV" : win.used_percent >= 70 ? "_eU" : win.used_percent >= 40 ? "_eT" : "_eS";
|
|
3202
|
+
const pctClass = win.used_percent >= 90 ? "_e0" : win.used_percent >= 70 ? "_eZ" : win.used_percent >= 40 ? "_eY" : "_eX";
|
|
3203
|
+
_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
3204
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3192
3205
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3193
3206
|
_if(() => {
|
|
3194
3207
|
if (agent.note) {
|
|
3195
3208
|
const $scope5_id = _scope_id();
|
|
3196
|
-
_html(`<p${_attr_class("
|
|
3209
|
+
_html(`<p${_attr_class("_eN")}>${_escape(agent.note)}${_el_resume($scope5_id, "b", $sg__input_agent)}</p>`);
|
|
3197
3210
|
$si__input_agent && writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
3198
3211
|
return 0;
|
|
3199
3212
|
}
|
|
@@ -3229,7 +3242,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3229
3242
|
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
3243
|
const dismissable = input.dismissable !== false;
|
|
3231
3244
|
let open = input.open;
|
|
3232
|
-
_html(`<dialog${_attr_class(["
|
|
3245
|
+
_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
3246
|
...htmlInput,
|
|
3234
3247
|
open: null
|
|
3235
3248
|
}, {
|
|
@@ -3239,22 +3252,22 @@ var modal_view_default = _template("l", (input) => {
|
|
|
3239
3252
|
closedby: 1,
|
|
3240
3253
|
"on-cancel": 1,
|
|
3241
3254
|
"on-close": 1
|
|
3242
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
3255
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ga")}>`);
|
|
3243
3256
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
3244
3257
|
_html("</div>");
|
|
3245
3258
|
_if(() => {
|
|
3246
3259
|
if (footer) {
|
|
3247
3260
|
const $scope1_id = _scope_id();
|
|
3248
|
-
_html(`<form method=dialog${_attr_class("
|
|
3261
|
+
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3249
3262
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
3250
3263
|
_html("</form>");
|
|
3251
3264
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
3252
3265
|
return 0;
|
|
3253
3266
|
} else if (input.openChange) {
|
|
3254
3267
|
const $scope2_id = _scope_id();
|
|
3255
|
-
_html(`<form method=dialog${_attr_class("
|
|
3268
|
+
_html(`<form method=dialog${_attr_class("_gb")}>`);
|
|
3256
3269
|
dialog_close_default({
|
|
3257
|
-
class: ["
|
|
3270
|
+
class: ["_f", "_g"],
|
|
3258
3271
|
content: _content("l0", () => {
|
|
3259
3272
|
_scope_reason();
|
|
3260
3273
|
_scope_id();
|
|
@@ -3311,16 +3324,16 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3311
3324
|
const $childScope = _peek_scope_id();
|
|
3312
3325
|
modal_view_default({
|
|
3313
3326
|
label: input.label,
|
|
3314
|
-
class: "
|
|
3327
|
+
class: "_eF",
|
|
3315
3328
|
open: input.open,
|
|
3316
3329
|
openChange: input.openChange,
|
|
3317
3330
|
"aria-labelledby": titleId,
|
|
3318
3331
|
footer: attrTag({ content: _content_resume("o5", () => {
|
|
3319
3332
|
_scope_reason();
|
|
3320
3333
|
const $scope1_id = _scope_id();
|
|
3321
|
-
_html(`<button type=button${_attr_class(["
|
|
3334
|
+
_html(`<button type=button${_attr_class(["_f", "_g"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_p")}></div>`);
|
|
3322
3335
|
dialog_close_default({
|
|
3323
|
-
class: "
|
|
3336
|
+
class: "_f",
|
|
3324
3337
|
content: _content("o2", () => {
|
|
3325
3338
|
_scope_reason();
|
|
3326
3339
|
_scope_id();
|
|
@@ -3334,7 +3347,7 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3334
3347
|
content: _content("o6", () => {
|
|
3335
3348
|
_scope_reason();
|
|
3336
3349
|
const $scope2_id = _scope_id();
|
|
3337
|
-
_html(`<h2${_attr_class("
|
|
3350
|
+
_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
3351
|
value = _new_value;
|
|
3339
3352
|
}, "o0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3340
3353
|
_script($scope2_id, "o4");
|
|
@@ -3364,7 +3377,7 @@ var prompt_dialog_default = _template("o", (input) => {
|
|
|
3364
3377
|
//#endregion
|
|
3365
3378
|
//#region src/tags/settings-page.marko
|
|
3366
3379
|
var api$6;
|
|
3367
|
-
var watchProgress;
|
|
3380
|
+
var watchProgress$1;
|
|
3368
3381
|
var MISSING_LABEL = {
|
|
3369
3382
|
"github-auth": "GitHub sign-in",
|
|
3370
3383
|
agent: "an agent CLI"
|
|
@@ -3440,11 +3453,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3440
3453
|
if (active.has(id)) return;
|
|
3441
3454
|
error = null;
|
|
3442
3455
|
setActive(id, "");
|
|
3443
|
-
const watcher = watchProgress(`setup:${id}`, (line) => {
|
|
3456
|
+
const watcher = watchProgress$1(`setup:${id}`, (line) => {
|
|
3444
3457
|
const code = /one-time code:\s*([A-Z0-9]{4}-[A-Z0-9]{4})/i.exec(line)?.[1];
|
|
3445
3458
|
if (code) authCodes = new Map(authCodes).set(id, code);
|
|
3446
3459
|
setActive(id, line);
|
|
3447
3460
|
});
|
|
3461
|
+
await watcher.ready;
|
|
3448
3462
|
try {
|
|
3449
3463
|
applySetup(await api$6(`/api/setup/${encodeURIComponent(id)}`, {
|
|
3450
3464
|
method: "POST",
|
|
@@ -3557,7 +3571,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3557
3571
|
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "q15", $scope0_id);
|
|
3558
3572
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
3559
3573
|
const titleId = _id();
|
|
3560
|
-
_html(`<div${_attr_class("
|
|
3574
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content$2)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>Settings</h1><p${_attr_class("_K")}>`);
|
|
3561
3575
|
_if(() => {
|
|
3562
3576
|
if (!setup) {
|
|
3563
3577
|
const $scope39_id = _scope_id();
|
|
@@ -3566,22 +3580,22 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3566
3580
|
return 0;
|
|
3567
3581
|
} else if (setup.ready) {
|
|
3568
3582
|
const $scope40_id = _scope_id();
|
|
3569
|
-
_html(`<span${_attr_class("
|
|
3583
|
+
_html(`<span${_attr_class("_bY")}>Ready</span> — tools, GitHub, and an agent are all in place.`);
|
|
3570
3584
|
writeScope($scope40_id, {});
|
|
3571
3585
|
return 1;
|
|
3572
3586
|
} else {
|
|
3573
3587
|
const $scope4_id = _scope_id();
|
|
3574
|
-
_html(`<span${_attr_class("
|
|
3588
|
+
_html(`<span${_attr_class("_bZ")}>Not ready</span> — missing <!>${_escape(setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "))}${_el_resume($scope4_id, "b")}.`);
|
|
3575
3589
|
writeScope($scope4_id, {});
|
|
3576
3590
|
return 2;
|
|
3577
3591
|
}
|
|
3578
3592
|
}, $scope0_id, "g", 1, 1, 1, "</p>");
|
|
3579
|
-
_html(`</div><div${_attr_class("
|
|
3593
|
+
_html(`</div><div${_attr_class("_L")}><button${_attr_class(iconBtn$3)} title="Re-check this machine" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
3580
3594
|
_set_serialize_reason(1);
|
|
3581
3595
|
const $childScope = _peek_scope_id();
|
|
3582
3596
|
icon_refresh_default({
|
|
3583
3597
|
size: 14,
|
|
3584
|
-
class: refreshing && "
|
|
3598
|
+
class: refreshing && "_v"
|
|
3585
3599
|
});
|
|
3586
3600
|
_html(`</button>${_el_resume($scope0_id, "i")}</div></header>`);
|
|
3587
3601
|
_if(() => {
|
|
@@ -3604,11 +3618,11 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3604
3618
|
return 0;
|
|
3605
3619
|
}
|
|
3606
3620
|
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
3607
|
-
_html(`<section${_attr_class("
|
|
3621
|
+
_html(`<section${_attr_class("_bF")} aria-labelledby=settings-agents><div${_attr_class("_bG")}><h2 id=settings-agents${_attr_class("_bV")}>Agents</h2><div${_attr_class("_p")}></div><label${_attr_class("_b2")}><span${_attr_class("_b3")}>Default</span><span${_attr_class("_d")}>`);
|
|
3608
3622
|
_attr_select_value($scope0_id, "s", input.preferred, _resume(function(v) {
|
|
3609
3623
|
setPreferred(v);
|
|
3610
3624
|
}, "q0", $scope0_id), () => {
|
|
3611
|
-
_html(`<select${_attr_class(["
|
|
3625
|
+
_html(`<select${_attr_class(["_e", "_b4"])} aria-label="Default agent — starts when a workspace has no session yet" title="Starts when a workspace has no session yet">`);
|
|
3612
3626
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
3613
3627
|
const $scope41_id = _scope_id();
|
|
3614
3628
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope41_id, "b", $sg__input_agents)}</option>${_el_resume($scope41_id, "a", $sg__input_agents)}`);
|
|
@@ -3620,7 +3634,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3620
3634
|
const $childScope2 = _peek_scope_id();
|
|
3621
3635
|
icon_refresh_default({
|
|
3622
3636
|
size: 14,
|
|
3623
|
-
class: usageRefreshing && "
|
|
3637
|
+
class: usageRefreshing && "_v"
|
|
3624
3638
|
});
|
|
3625
3639
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(agentGrid)}>`);
|
|
3626
3640
|
_for_of(families, (a) => {
|
|
@@ -3629,14 +3643,14 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3629
3643
|
const rows = lone ? [] : a.instances;
|
|
3630
3644
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3631
3645
|
const extraAccounts = strayAccountsFor(a);
|
|
3632
|
-
_html(`<li${_attr_class(["
|
|
3646
|
+
_html(`<li${_attr_class(["_bK", "_b1"])}><div${_attr_class("_b5")}>`);
|
|
3633
3647
|
_set_serialize_reason(12);
|
|
3634
3648
|
const $childScope3 = _peek_scope_id();
|
|
3635
3649
|
icon_agent_default({
|
|
3636
3650
|
agent: a.id,
|
|
3637
3651
|
size: 18
|
|
3638
3652
|
});
|
|
3639
|
-
_html(`<div${_attr_class("
|
|
3653
|
+
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3640
3654
|
_if(() => {
|
|
3641
3655
|
if (lone && input.preferred === lone.id) {
|
|
3642
3656
|
const $scope42_id = _scope_id();
|
|
@@ -3649,12 +3663,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3649
3663
|
_if(() => {
|
|
3650
3664
|
if (active.has(a.id)) {
|
|
3651
3665
|
const $scope8_id = _scope_id();
|
|
3652
|
-
_html(`<span${_attr_class("
|
|
3666
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope8_id, "c")}</span>`);
|
|
3653
3667
|
_subscribe($active__closures, writeScope($scope8_id, {}));
|
|
3654
3668
|
return 0;
|
|
3655
3669
|
} else if (!a.installed) {
|
|
3656
3670
|
const $scope43_id = _scope_id();
|
|
3657
|
-
_html(`<span${_attr_class("
|
|
3671
|
+
_html(`<span${_attr_class("_bO")}>Not installed</span>`);
|
|
3658
3672
|
writeScope($scope43_id, {});
|
|
3659
3673
|
return 1;
|
|
3660
3674
|
}
|
|
@@ -3672,7 +3686,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3672
3686
|
_if(() => {
|
|
3673
3687
|
if (lone) {
|
|
3674
3688
|
const $scope36_id = _scope_id();
|
|
3675
|
-
_html(`<button${_attr_class(["
|
|
3689
|
+
_html(`<button${_attr_class(["_b8", { ["_b7"]: lone.enabled }])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope36_id, "b")}</button>${_el_resume($scope36_id, "a")}`);
|
|
3676
3690
|
_script($scope36_id, "q21");
|
|
3677
3691
|
writeScope($scope36_id, {});
|
|
3678
3692
|
return 0;
|
|
@@ -3682,18 +3696,18 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3682
3696
|
_if(() => {
|
|
3683
3697
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
3684
3698
|
const $scope2_id = _scope_id();
|
|
3685
|
-
_html(`<ul${_attr_class("
|
|
3699
|
+
_html(`<ul${_attr_class("_cb")}>`);
|
|
3686
3700
|
_for_of(rows, (inst) => {
|
|
3687
3701
|
const $scope3_id = _scope_id();
|
|
3688
3702
|
const accounts = inst.enabled ? accountsFor(inst.id) : [];
|
|
3689
|
-
_html(`<li${_attr_class("
|
|
3703
|
+
_html(`<li${_attr_class("_b9")}><div${_attr_class("_b_")}>`);
|
|
3690
3704
|
_set_serialize_reason(12);
|
|
3691
3705
|
const $childScope4 = _peek_scope_id();
|
|
3692
3706
|
icon_agent_default({
|
|
3693
3707
|
agent: inst.id,
|
|
3694
3708
|
size: 15
|
|
3695
3709
|
});
|
|
3696
|
-
_html(`<span${_attr_class(["
|
|
3710
|
+
_html(`<span${_attr_class(["_ca", "_o"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
3697
3711
|
_if(() => {
|
|
3698
3712
|
if (input.preferred === inst.id) {
|
|
3699
3713
|
const $scope44_id = _scope_id();
|
|
@@ -3702,7 +3716,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3702
3716
|
return 0;
|
|
3703
3717
|
}
|
|
3704
3718
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
3705
|
-
_html(`<span${_attr_class("
|
|
3719
|
+
_html(`<span${_attr_class("_p")}></span><button${_attr_class(["_b8", { ["_b7"]: inst.enabled }])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers — click to hide\"" : "\"Hidden from session pickers — click to show\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
3706
3720
|
_for_of(accounts, (u) => {
|
|
3707
3721
|
const $scope45_id = _scope_id();
|
|
3708
3722
|
_set_serialize_reason(6);
|
|
@@ -3764,7 +3778,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3764
3778
|
}, "id", $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
3765
3779
|
_for_of(otherUsage, (u) => {
|
|
3766
3780
|
const $scope48_id = _scope_id();
|
|
3767
|
-
_html(`<li${_attr_class(["
|
|
3781
|
+
_html(`<li${_attr_class(["_bK", "_b1"])}>`);
|
|
3768
3782
|
_set_serialize_reason(6);
|
|
3769
3783
|
const $childScope8 = _peek_scope_id();
|
|
3770
3784
|
usage_meters_default({ agent: u });
|
|
@@ -3775,25 +3789,25 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3775
3789
|
_if(() => {
|
|
3776
3790
|
if (!usage && families.length) {
|
|
3777
3791
|
const $scope49_id = _scope_id();
|
|
3778
|
-
_html(`<p${_attr_class("
|
|
3792
|
+
_html(`<p${_attr_class("_bT")}><span${_attr_class("_w")}></span> Loading usage…</p>`);
|
|
3779
3793
|
writeScope($scope49_id, {});
|
|
3780
3794
|
return 0;
|
|
3781
3795
|
} else if (usage?.error) {
|
|
3782
3796
|
const $scope5_id = _scope_id();
|
|
3783
|
-
_html(`<p${_attr_class("
|
|
3797
|
+
_html(`<p${_attr_class("_bT")}>${_escape(usage.error)}${_el_resume($scope5_id, "b")}</p>`);
|
|
3784
3798
|
writeScope($scope5_id, {});
|
|
3785
3799
|
return 1;
|
|
3786
3800
|
}
|
|
3787
3801
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
3788
|
-
_html(`</section><section${_attr_class("
|
|
3802
|
+
_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
3803
|
_for_of(setup?.github || [], (h) => {
|
|
3790
3804
|
const $scope9_id = _scope_id();
|
|
3791
3805
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
3792
|
-
_html(`<li${_attr_class("
|
|
3806
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class(["_bM", "_o"])}>${_escape(h.host)}${_el_resume($scope9_id, "e")}</span>`);
|
|
3793
3807
|
_if(() => {
|
|
3794
3808
|
if (h.isEnterprise) {
|
|
3795
3809
|
const $scope52_id = _scope_id();
|
|
3796
|
-
_html(`<span${_attr_class("
|
|
3810
|
+
_html(`<span${_attr_class("_bP")}>Enterprise</span>`);
|
|
3797
3811
|
writeScope($scope52_id, {});
|
|
3798
3812
|
return 0;
|
|
3799
3813
|
}
|
|
@@ -3802,22 +3816,22 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3802
3816
|
_if(() => {
|
|
3803
3817
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
3804
3818
|
const $scope20_id = _scope_id();
|
|
3805
|
-
_html(`<span${_attr_class("
|
|
3819
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span> Enter code <strong${_attr_class("_cn")}>${_escape(authCodes.get(h.host))}${_el_resume($scope20_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_co")}>${_escape(h.host)}${_el_resume($scope20_id, "f")}/login/device</a>${_el_resume($scope20_id, "e")}</span>`);
|
|
3806
3820
|
_subscribe($authCodes__closures, writeScope($scope20_id, {}));
|
|
3807
3821
|
return 0;
|
|
3808
3822
|
} else if (active.has(h.host)) {
|
|
3809
3823
|
const $scope10_id = _scope_id();
|
|
3810
|
-
_html(`<span${_attr_class("
|
|
3824
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope10_id, "c")}</span>`);
|
|
3811
3825
|
_subscribe($active__closures, writeScope($scope10_id, { Cch: 1 }));
|
|
3812
3826
|
return 1;
|
|
3813
3827
|
} else if (h.authed) {
|
|
3814
3828
|
const $scope50_id = _scope_id();
|
|
3815
|
-
_html(`<span${_attr_class("
|
|
3829
|
+
_html(`<span${_attr_class("_bO")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope50_id, "b")}</span>`);
|
|
3816
3830
|
writeScope($scope50_id, {});
|
|
3817
3831
|
return 2;
|
|
3818
3832
|
} else {
|
|
3819
3833
|
const $scope51_id = _scope_id();
|
|
3820
|
-
_html(`<span${_attr_class("
|
|
3834
|
+
_html(`<span${_attr_class("_bO")}>${_escape(h.error || "Not signed in")}${_el_resume($scope51_id, "b")}</span>`);
|
|
3821
3835
|
writeScope($scope51_id, {});
|
|
3822
3836
|
return 3;
|
|
3823
3837
|
}
|
|
@@ -3839,9 +3853,9 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3839
3853
|
if (h.isEnterprise) {
|
|
3840
3854
|
const $scope22_id = _scope_id();
|
|
3841
3855
|
_html(`<button${_attr_class([
|
|
3842
|
-
"
|
|
3843
|
-
"
|
|
3844
|
-
{ ["
|
|
3856
|
+
"_bQ",
|
|
3857
|
+
"_bS",
|
|
3858
|
+
{ ["_bR"]: confirmingRemove === h.host }
|
|
3845
3859
|
])}${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
3860
|
_script($scope22_id, "q24");
|
|
3847
3861
|
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope22_id, {})));
|
|
@@ -3865,7 +3879,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3865
3879
|
_if(() => {
|
|
3866
3880
|
if (setup && !setup.github.length) {
|
|
3867
3881
|
const $scope53_id = _scope_id();
|
|
3868
|
-
_html(`<p${_attr_class("
|
|
3882
|
+
_html(`<p${_attr_class("_bT")}>Install the GitHub CLI below to sign in.</p>`);
|
|
3869
3883
|
writeScope($scope53_id, {});
|
|
3870
3884
|
return 0;
|
|
3871
3885
|
}
|
|
@@ -3873,17 +3887,17 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3873
3887
|
_if(() => {
|
|
3874
3888
|
if (setup) {
|
|
3875
3889
|
const $scope30_id = _scope_id();
|
|
3876
|
-
_html(`<form${_attr_class("
|
|
3890
|
+
_html(`<form${_attr_class("_cm")}><input${_attr_input_value($scope30_id, "b", hostInput)}${_attr_class("_ck")} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope30_id, "b")}<button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope30_id, "d")}</button>${_el_resume($scope30_id, "c")}</form>${_el_resume($scope30_id, "a")}`);
|
|
3877
3891
|
_script($scope30_id, "q25");
|
|
3878
3892
|
writeScope($scope30_id, {});
|
|
3879
3893
|
return 0;
|
|
3880
3894
|
}
|
|
3881
3895
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
3882
|
-
_html(`</section><section${_attr_class("
|
|
3896
|
+
_html(`</section><section${_attr_class("_bF")} aria-labelledby=settings-machine><div${_attr_class("_bG")}><h2 id=settings-machine${_attr_class("_bV")}>Machine</h2>`);
|
|
3883
3897
|
_if(() => {
|
|
3884
3898
|
if (missingCount) {
|
|
3885
3899
|
const $scope37_id = _scope_id();
|
|
3886
|
-
_html(`<span${_attr_class("
|
|
3900
|
+
_html(`<span${_attr_class("_bH")}>${_escape(missingCount)}${_el_resume($scope37_id, "b")} missing</span>`);
|
|
3887
3901
|
writeScope($scope37_id, {});
|
|
3888
3902
|
return 0;
|
|
3889
3903
|
}
|
|
@@ -3891,12 +3905,12 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3891
3905
|
_if(() => {
|
|
3892
3906
|
if (outdatedIds.length) {
|
|
3893
3907
|
const $scope38_id = _scope_id();
|
|
3894
|
-
_html(`<span${_attr_class("
|
|
3908
|
+
_html(`<span${_attr_class("_bH")}>${_escape(outdatedIds.length)}${_el_resume($scope38_id, "b")} outdated</span>`);
|
|
3895
3909
|
writeScope($scope38_id, {});
|
|
3896
3910
|
return 0;
|
|
3897
3911
|
}
|
|
3898
3912
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
3899
|
-
_html(`<div${_attr_class("
|
|
3913
|
+
_html(`<div${_attr_class("_p")}></div>`);
|
|
3900
3914
|
_if(() => {
|
|
3901
3915
|
if (outdatedIds.length > 1) {
|
|
3902
3916
|
const $scope11_id = _scope_id();
|
|
@@ -3919,7 +3933,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3919
3933
|
_if(() => {
|
|
3920
3934
|
if (setup && !setup.mise.installed) {
|
|
3921
3935
|
const $scope13_id = _scope_id();
|
|
3922
|
-
_html(`<p${_attr_class("
|
|
3936
|
+
_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
3937
|
_script($scope13_id, "q28");
|
|
3924
3938
|
writeScope($scope13_id, {});
|
|
3925
3939
|
return 0;
|
|
@@ -3934,14 +3948,14 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3934
3948
|
const $for_content4__t_latest__closures = /* @__PURE__ */ new Set();
|
|
3935
3949
|
const $for_content4__t_id__closures = /* @__PURE__ */ new Set();
|
|
3936
3950
|
_html(`<li${_attr_class([
|
|
3937
|
-
"
|
|
3938
|
-
"
|
|
3939
|
-
{ ["
|
|
3940
|
-
])}><span${_attr_class(["
|
|
3951
|
+
"_bK",
|
|
3952
|
+
"_cd",
|
|
3953
|
+
{ ["_ce"]: !t.installed }
|
|
3954
|
+
])}><span${_attr_class(["_cf", "_o"])}>${_escape(t.label)}${_el_resume($scope14_id, "c")}</span>`);
|
|
3941
3955
|
_if(() => {
|
|
3942
3956
|
if (active.has(t.id)) {
|
|
3943
3957
|
const $scope15_id = _scope_id();
|
|
3944
|
-
_html(`<span${_attr_class("
|
|
3958
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope15_id, "c")}</span>`);
|
|
3945
3959
|
_subscribe($active__closures, writeScope($scope15_id, { Cch: 2 }));
|
|
3946
3960
|
return 0;
|
|
3947
3961
|
} else if (t.installed) {
|
|
@@ -3949,13 +3963,13 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3949
3963
|
_if(() => {
|
|
3950
3964
|
if (t.version) {
|
|
3951
3965
|
const $scope27_id = _scope_id();
|
|
3952
|
-
_html(`<button${_attr_class(["
|
|
3966
|
+
_html(`<button${_attr_class(["_ch", "_o"])}${_attr("title", `${t.path || t.label} — pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope27_id, "b")}</button>${_el_resume($scope27_id, "a")}`);
|
|
3953
3967
|
_script($scope27_id, "q29");
|
|
3954
3968
|
_subscribe($for_content4__t_path__closures, _subscribe($for_content4__t_version__closures, _subscribe($for_content4__t_label__closures, writeScope($scope27_id, { Cu: 1 }))));
|
|
3955
3969
|
return 0;
|
|
3956
3970
|
} else {
|
|
3957
3971
|
const $scope54_id = _scope_id();
|
|
3958
|
-
_html(`<span${_attr_class(["
|
|
3972
|
+
_html(`<span${_attr_class(["_cg", "_o"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope54_id, "b")}</span>${_el_resume($scope54_id, "a")}`);
|
|
3959
3973
|
_subscribe($for_content4__t_path__closures, writeScope($scope54_id, { Cx: 1 }));
|
|
3960
3974
|
return 1;
|
|
3961
3975
|
}
|
|
@@ -3963,7 +3977,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3963
3977
|
_if(() => {
|
|
3964
3978
|
if (outdated(t)) {
|
|
3965
3979
|
const $scope34_id = _scope_id();
|
|
3966
|
-
_html(`<button${_attr_class([btnSm, "
|
|
3980
|
+
_html(`<button${_attr_class([btnSm, "_ci"])}${_attr("title", `Update to v${t.latest}`)}>↑ <!>${_escape(t.latest)}${_el_resume($scope34_id, "b")}</button>${_el_resume($scope34_id, "a")}`);
|
|
3967
3981
|
_script($scope34_id, "q30");
|
|
3968
3982
|
_subscribe($for_content4__t_latest__closures, writeScope($scope34_id, {}));
|
|
3969
3983
|
return 0;
|
|
@@ -3973,24 +3987,24 @@ var settings_page_default = _template("q", (input) => {
|
|
|
3973
3987
|
return 1;
|
|
3974
3988
|
} else if (t.installable) {
|
|
3975
3989
|
const $scope55_id = _scope_id();
|
|
3976
|
-
_html(`<span${_attr_class("
|
|
3990
|
+
_html(`<span${_attr_class("_cg")}>not installed</span>`);
|
|
3977
3991
|
writeScope($scope55_id, {});
|
|
3978
3992
|
return 2;
|
|
3979
3993
|
} else {
|
|
3980
3994
|
const $scope56_id = _scope_id();
|
|
3981
|
-
_html(`<span${_attr_class("
|
|
3995
|
+
_html(`<span${_attr_class("_cg")} title="Add it with your package manager">system package</span>`);
|
|
3982
3996
|
writeScope($scope56_id, {});
|
|
3983
3997
|
return 3;
|
|
3984
3998
|
}
|
|
3985
3999
|
}, $scope14_id, "d");
|
|
3986
|
-
_html(`<span${_attr_class("
|
|
4000
|
+
_html(`<span${_attr_class("_p")}></span>`);
|
|
3987
4001
|
_if(() => {
|
|
3988
4002
|
if (!active.has(t.id)) {
|
|
3989
4003
|
const $scope23_id = _scope_id();
|
|
3990
4004
|
_if(() => {
|
|
3991
4005
|
if (t.required) {
|
|
3992
4006
|
const $scope57_id = _scope_id();
|
|
3993
|
-
_html(`<span${_attr_class("
|
|
4007
|
+
_html(`<span${_attr_class("_bP")}>required</span>`);
|
|
3994
4008
|
writeScope($scope57_id, {});
|
|
3995
4009
|
return 0;
|
|
3996
4010
|
}
|
|
@@ -4005,10 +4019,10 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4005
4019
|
} else if (t.installed && t.version && !t.required) {
|
|
4006
4020
|
const $scope24_id = _scope_id();
|
|
4007
4021
|
_html(`<button${_attr_class([
|
|
4008
|
-
"
|
|
4009
|
-
"
|
|
4010
|
-
"
|
|
4011
|
-
{ ["
|
|
4022
|
+
"_bQ",
|
|
4023
|
+
"_bS",
|
|
4024
|
+
"_cj",
|
|
4025
|
+
{ ["_bR"]: confirmingRemove === t.id }
|
|
4012
4026
|
])}${confirmingRemove === t.id ? _attr("title", `Really remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>${confirmingRemove === t.id ? "Remove?" : "×"}${_el_resume($scope24_id, "b")}</button>${_el_resume($scope24_id, "a")}`);
|
|
4013
4027
|
_script($scope24_id, "q32");
|
|
4014
4028
|
_subscribe($for_content4__t_id__closures, _subscribe($for_content4__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope24_id, { Cck: 1 }))));
|
|
@@ -4040,23 +4054,23 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4040
4054
|
_if(() => {
|
|
4041
4055
|
if (setup && setup.mise.installed) {
|
|
4042
4056
|
const $scope16_id = _scope_id();
|
|
4043
|
-
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("
|
|
4057
|
+
_html(`<div><input${_attr_input_value($scope16_id, "a", query)}${_attr_class("_ck")} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope16_id, "a")}`);
|
|
4044
4058
|
_if(() => {
|
|
4045
4059
|
if (hits && hits.length) {
|
|
4046
4060
|
const $scope17_id = _scope_id();
|
|
4047
|
-
_html(`<ul${_attr_class([toolGrid, "
|
|
4061
|
+
_html(`<ul${_attr_class([toolGrid, "_cl"])}>`);
|
|
4048
4062
|
_for_of(hits, (h) => {
|
|
4049
4063
|
const $scope18_id = _scope_id();
|
|
4050
|
-
_html(`<li${_attr_class(["
|
|
4064
|
+
_html(`<li${_attr_class(["_bK", "_cd"])}><div${_attr_class("_bL")}><span${_attr_class(["_cf", "_o"])}>${_escape(h.name)}${_el_resume($scope18_id, "d")}</span>`);
|
|
4051
4065
|
_if(() => {
|
|
4052
4066
|
if (active.has(h.name)) {
|
|
4053
4067
|
const $scope19_id = _scope_id();
|
|
4054
|
-
_html(`<span${_attr_class("
|
|
4068
|
+
_html(`<span${_attr_class("_bX")}><span${_attr_class("_w")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
4055
4069
|
_subscribe($active__closures, writeScope($scope19_id, { Cch: 4 }));
|
|
4056
4070
|
return 0;
|
|
4057
4071
|
} else if (h.description) {
|
|
4058
4072
|
const $scope58_id = _scope_id();
|
|
4059
|
-
_html(`<span${_attr_class("
|
|
4073
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope58_id, "b")}</span>${_el_resume($scope58_id, "a")}`);
|
|
4060
4074
|
writeScope($scope58_id, {});
|
|
4061
4075
|
return 1;
|
|
4062
4076
|
}
|
|
@@ -4068,7 +4082,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4068
4082
|
_if(() => {
|
|
4069
4083
|
if (h.installed) {
|
|
4070
4084
|
const $scope59_id = _scope_id();
|
|
4071
|
-
_html(`<span${_attr_class("
|
|
4085
|
+
_html(`<span${_attr_class("_bP")}>installed</span>`);
|
|
4072
4086
|
writeScope($scope59_id, {});
|
|
4073
4087
|
return 0;
|
|
4074
4088
|
} else {
|
|
@@ -4095,7 +4109,7 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4095
4109
|
return 0;
|
|
4096
4110
|
} else if (hits && !searching) {
|
|
4097
4111
|
const $scope31_id = _scope_id();
|
|
4098
|
-
_html(`<p${_attr_class("
|
|
4112
|
+
_html(`<p${_attr_class("_bT")}>No tools match “<!>${_escape(query)}${_el_resume($scope31_id, "b")}”.</p>`);
|
|
4099
4113
|
_subscribe($query__closures, writeScope($scope31_id, {}));
|
|
4100
4114
|
return 1;
|
|
4101
4115
|
}
|
|
@@ -4194,8 +4208,8 @@ var settings_page_default = _template("q", (input) => {
|
|
|
4194
4208
|
});
|
|
4195
4209
|
//#endregion
|
|
4196
4210
|
//#region src/tags/new-workspace.css.ts
|
|
4197
|
-
var content$1 = "_0
|
|
4198
|
-
var iconBtn$2 = "_3
|
|
4211
|
+
var content$1 = "_0 _F";
|
|
4212
|
+
var iconBtn$2 = "_3 _M";
|
|
4199
4213
|
//#endregion
|
|
4200
4214
|
//#region src/tags/icons/icon-plus.marko
|
|
4201
4215
|
var icon_plus_default = _template("M", (input) => {
|
|
@@ -4293,7 +4307,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4293
4307
|
_if(() => {
|
|
4294
4308
|
if (!branches) {
|
|
4295
4309
|
const $scope9_id = _scope_id();
|
|
4296
|
-
_html(`<p${_attr_class("_cA")}><span${_attr_class("
|
|
4310
|
+
_html(`<p${_attr_class("_cA")}><span${_attr_class("_w")}></span> Loading branches…</p>`);
|
|
4297
4311
|
writeScope($scope9_id, {});
|
|
4298
4312
|
return 0;
|
|
4299
4313
|
} else {
|
|
@@ -4313,7 +4327,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4313
4327
|
_html(`<ul${_attr_class("_cx")}>`);
|
|
4314
4328
|
_for_of(shown, (branch) => {
|
|
4315
4329
|
const $scope7_id = _scope_id();
|
|
4316
|
-
_html(`<li><button${_attr_class(["_ct", "_cD"])}><span${_attr_class(["_cz", "
|
|
4330
|
+
_html(`<li><button${_attr_class(["_ct", "_cD"])}><span${_attr_class(["_cz", "_o"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4317
4331
|
_script($scope7_id, "p7");
|
|
4318
4332
|
writeScope($scope7_id, { e: branch });
|
|
4319
4333
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -4383,6 +4397,7 @@ var repo_picker_default = _template("p", (input) => {
|
|
|
4383
4397
|
//#endregion
|
|
4384
4398
|
//#region src/tags/new-workspace.marko
|
|
4385
4399
|
var api$4;
|
|
4400
|
+
var watchProgress;
|
|
4386
4401
|
var new_workspace_default = _template("m", (input) => {
|
|
4387
4402
|
const $scope0_reason = _scope_reason(), $sg__input_workspaces = _serialize_guard($scope0_reason, 0), $si__input_workspaces = _serialize_if($scope0_reason, 0);
|
|
4388
4403
|
const $scope0_id = _scope_id();
|
|
@@ -4398,28 +4413,16 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4398
4413
|
let error = null;
|
|
4399
4414
|
let steps$1 = [];
|
|
4400
4415
|
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
4416
|
const addRepo = _resume((fullName, baseBranch) => {
|
|
4414
4417
|
if (!fullName || selected.some((r) => r.fullName === fullName)) return;
|
|
4415
4418
|
selected = selected.concat({
|
|
4416
4419
|
fullName,
|
|
4417
4420
|
baseBranch
|
|
4418
4421
|
});
|
|
4419
|
-
}, "
|
|
4422
|
+
}, "m1", $scope0_id);
|
|
4420
4423
|
const removeRepo = _resume((fullName) => {
|
|
4421
4424
|
selected = selected.filter((r) => r.fullName !== fullName);
|
|
4422
|
-
}, "
|
|
4425
|
+
}, "m2", $scope0_id);
|
|
4423
4426
|
const restore = _resume(async (ws) => {
|
|
4424
4427
|
if (busy || restoring) return;
|
|
4425
4428
|
error = null;
|
|
@@ -4439,22 +4442,17 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4439
4442
|
} finally {
|
|
4440
4443
|
restoring = null;
|
|
4441
4444
|
}
|
|
4442
|
-
}, "
|
|
4445
|
+
}, "m3", $scope0_id);
|
|
4443
4446
|
const create = _resume(async () => {
|
|
4444
4447
|
if (restoring) return;
|
|
4445
4448
|
busy = true;
|
|
4446
4449
|
error = null;
|
|
4447
4450
|
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);
|
|
4451
|
+
const opId = Math.random().toString(36).slice(2, 10);
|
|
4452
|
+
const watcher = watchProgress(opId, (line) => {
|
|
4453
|
+
steps$1 = steps$1.concat(line);
|
|
4454
|
+
});
|
|
4455
|
+
await watcher.ready;
|
|
4458
4456
|
try {
|
|
4459
4457
|
const ws = await api$4("/api/workspaces", {
|
|
4460
4458
|
method: "POST",
|
|
@@ -4462,7 +4460,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4462
4460
|
body: JSON.stringify({
|
|
4463
4461
|
name,
|
|
4464
4462
|
repos: selected,
|
|
4465
|
-
opId
|
|
4463
|
+
opId
|
|
4466
4464
|
})
|
|
4467
4465
|
});
|
|
4468
4466
|
busy = false;
|
|
@@ -4471,11 +4469,11 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4471
4469
|
busy = false;
|
|
4472
4470
|
error = String(err.message || err);
|
|
4473
4471
|
} finally {
|
|
4474
|
-
|
|
4472
|
+
watcher.stop();
|
|
4475
4473
|
}
|
|
4476
|
-
}, "
|
|
4474
|
+
}, "m4", $scope0_id);
|
|
4477
4475
|
const titleId = _id();
|
|
4478
|
-
_html(`<div${_attr_class("
|
|
4476
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content$1)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>New workspace</h1><p${_attr_class("_K")}>Name the space and pick repos — or restore an archived one below.</p></div></header>`);
|
|
4479
4477
|
_if(() => {
|
|
4480
4478
|
if (error) {
|
|
4481
4479
|
const $scope4_id = _scope_id();
|
|
@@ -4483,8 +4481,8 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4483
4481
|
placement: "inline",
|
|
4484
4482
|
onDismiss: _resume(function() {
|
|
4485
4483
|
error = null;
|
|
4486
|
-
}, "
|
|
4487
|
-
content: _content_resume("
|
|
4484
|
+
}, "m5", $scope4_id),
|
|
4485
|
+
content: _content_resume("m9", () => {
|
|
4488
4486
|
_scope_reason();
|
|
4489
4487
|
const $scope5_id = _scope_id();
|
|
4490
4488
|
_html(`${_escape(error)}${_el_resume($scope5_id, "a")}`);
|
|
@@ -4503,7 +4501,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4503
4501
|
const $childScope = _peek_scope_id();
|
|
4504
4502
|
icon_refresh_default({
|
|
4505
4503
|
size: 14,
|
|
4506
|
-
class: catalogRefreshing && "
|
|
4504
|
+
class: catalogRefreshing && "_v"
|
|
4507
4505
|
});
|
|
4508
4506
|
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class("_7")}>`);
|
|
4509
4507
|
_for_of(selected, (repo) => {
|
|
@@ -4512,13 +4510,13 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4512
4510
|
_if(() => {
|
|
4513
4511
|
if (repo.baseBranch) {
|
|
4514
4512
|
const $scope8_id = _scope_id();
|
|
4515
|
-
_html(`<span${_attr_class(["__", "
|
|
4513
|
+
_html(`<span${_attr_class(["__", "_o"])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope8_id, "b")}</span>`);
|
|
4516
4514
|
writeScope($scope8_id, {});
|
|
4517
4515
|
return 0;
|
|
4518
4516
|
}
|
|
4519
4517
|
}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
4520
4518
|
_html(`<button${_attr_class("_ba")}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope1_id, "e")}</li>`);
|
|
4521
|
-
_script($scope1_id, "
|
|
4519
|
+
_script($scope1_id, "m10");
|
|
4522
4520
|
writeScope($scope1_id, {
|
|
4523
4521
|
h: repo?.fullName,
|
|
4524
4522
|
i: repo?.baseBranch
|
|
@@ -4539,15 +4537,15 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4539
4537
|
disabled: busy,
|
|
4540
4538
|
onPick: _resume(function(fullName, baseBranch) {
|
|
4541
4539
|
addRepo(fullName, baseBranch);
|
|
4542
|
-
}, "
|
|
4540
|
+
}, "m6", $scope0_id),
|
|
4543
4541
|
onError: _resume(function(message) {
|
|
4544
4542
|
error = message;
|
|
4545
|
-
}, "
|
|
4543
|
+
}, "m7", $scope0_id),
|
|
4546
4544
|
refreshingChange: _resume(function(v) {
|
|
4547
4545
|
catalogRefreshing = v;
|
|
4548
|
-
}, "
|
|
4546
|
+
}, "m8", $scope0_id)
|
|
4549
4547
|
});
|
|
4550
|
-
_var($scope0_id, "u", $childScope2, "
|
|
4548
|
+
_var($scope0_id, "u", $childScope2, "m11");
|
|
4551
4549
|
_html("</section>");
|
|
4552
4550
|
_if(() => {
|
|
4553
4551
|
if (busy && steps$1.length) {
|
|
@@ -4559,7 +4557,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4559
4557
|
_if(() => {
|
|
4560
4558
|
if (i === steps$1.length - 1) {
|
|
4561
4559
|
const $scope10_id = _scope_id();
|
|
4562
|
-
_html(`<span${_attr_class("
|
|
4560
|
+
_html(`<span${_attr_class("_w")}></span>`);
|
|
4563
4561
|
writeScope($scope10_id, {});
|
|
4564
4562
|
return 0;
|
|
4565
4563
|
} else {
|
|
@@ -4576,9 +4574,9 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4576
4574
|
return 0;
|
|
4577
4575
|
}
|
|
4578
4576
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
4579
|
-
_html(`<div${_attr_class("_1")}><button type=button${_attr_class(["
|
|
4580
|
-
"
|
|
4581
|
-
"
|
|
4577
|
+
_html(`<div${_attr_class("_1")}><button type=button${_attr_class(["_f", "_bs"])}${_attr("disabled", busy || !!restoring)}>Cancel</button>${_el_resume($scope0_id, "x")}<button type=button${_attr_class([
|
|
4578
|
+
"_f",
|
|
4579
|
+
"_g",
|
|
4582
4580
|
"_2",
|
|
4583
4581
|
"_bs"
|
|
4584
4582
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "z")}</button>${_el_resume($scope0_id, "y")}</div>`);
|
|
@@ -4588,11 +4586,11 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4588
4586
|
_html(`<section${_attr_class("_bf")}><div${_attr_class("_6")}><h2${_attr_class("_bq")}>Archived</h2><span${_attr_class("_bg")}>${_escape(archived$1.length)}${_el_resume($scope2_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class("_bh")}>Restore a parked space instead of creating a new one.</p><ul${_attr_class("_bi")}>`);
|
|
4589
4587
|
_for_of(archived$1, (ws) => {
|
|
4590
4588
|
const $scope3_id = _scope_id();
|
|
4591
|
-
_html(`<li${_attr_class("_bj")}><div${_attr_class("_bk")}><span${_attr_class("_bl")}>${_escape(ws.name)}${_el_resume($scope3_id, "d", $sg__input_workspaces)}</span><span${_attr_class(["_bm", "
|
|
4589
|
+
_html(`<li${_attr_class("_bj")}><div${_attr_class("_bk")}><span${_attr_class("_bl")}>${_escape(ws.name)}${_el_resume($scope3_id, "d", $sg__input_workspaces)}</span><span${_attr_class(["_bm", "_o"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope3_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope3_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(["_f", "_bn"])}${_attr("disabled", busy || !!restoring)}>`);
|
|
4592
4590
|
_if(() => {
|
|
4593
4591
|
if (restoring === ws.id) {
|
|
4594
4592
|
const $scope12_id = _scope_id();
|
|
4595
|
-
_html(`<span${_attr_class("
|
|
4593
|
+
_html(`<span${_attr_class("_w")}></span> Restoring…`);
|
|
4596
4594
|
writeScope($scope12_id, {});
|
|
4597
4595
|
return 0;
|
|
4598
4596
|
} else {
|
|
@@ -4603,7 +4601,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4603
4601
|
}
|
|
4604
4602
|
}, $scope3_id, "g", 1, 1, 1, "</button>");
|
|
4605
4603
|
_html("</li>");
|
|
4606
|
-
_script($scope3_id, "
|
|
4604
|
+
_script($scope3_id, "m12");
|
|
4607
4605
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope3_id, {
|
|
4608
4606
|
i: ws,
|
|
4609
4607
|
n: ws?.id,
|
|
@@ -4616,8 +4614,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4616
4614
|
}
|
|
4617
4615
|
}, $scope0_id, "a0", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
4618
4616
|
_html("</div></div></div>");
|
|
4619
|
-
_script($scope0_id, "
|
|
4620
|
-
_script($scope0_id, "m15");
|
|
4617
|
+
_script($scope0_id, "m13");
|
|
4621
4618
|
writeScope($scope0_id, {
|
|
4622
4619
|
a4: input.onRestore,
|
|
4623
4620
|
a5: input.onCreate,
|
|
@@ -4628,23 +4625,20 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
4628
4625
|
ac: restoring,
|
|
4629
4626
|
ag: error,
|
|
4630
4627
|
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,
|
|
4628
|
+
aj: steps$1?.length,
|
|
4629
|
+
al: $si__input_workspaces && archived$1,
|
|
4630
|
+
am: $si__input_workspaces && archived$1?.length,
|
|
4631
|
+
an: addRepo,
|
|
4632
|
+
ao: removeRepo,
|
|
4633
|
+
ap: restore,
|
|
4634
|
+
aq: create,
|
|
4635
|
+
as: refreshCatalog,
|
|
4636
|
+
av: $error__closures,
|
|
4643
4637
|
p: _existing_scope($childScope),
|
|
4644
4638
|
t: _existing_scope($childScope2),
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4639
|
+
ax: $steps_length__closures,
|
|
4640
|
+
at: $busy__closures,
|
|
4641
|
+
au: $restoring__closures
|
|
4648
4642
|
});
|
|
4649
4643
|
_resume_branch($scope0_id);
|
|
4650
4644
|
});
|
|
@@ -4731,8 +4725,8 @@ function activeAgent(session) {
|
|
|
4731
4725
|
const command = session.state?.command?.trim();
|
|
4732
4726
|
return command && agentFromCommand(command) || session.agent;
|
|
4733
4727
|
}
|
|
4734
|
-
var iconBtn$1 = "
|
|
4735
|
-
var navToggle = "
|
|
4728
|
+
var iconBtn$1 = "_dv _M";
|
|
4729
|
+
var navToggle = "_dA _M";
|
|
4736
4730
|
_template("C", (input) => {
|
|
4737
4731
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4738
4732
|
const $scope0_id = _scope_id();
|
|
@@ -4765,7 +4759,7 @@ var icon_settings_default = _template("P", (input) => {
|
|
|
4765
4759
|
});
|
|
4766
4760
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4767
4761
|
});
|
|
4768
|
-
var railBtn = "
|
|
4762
|
+
var railBtn = "_fC _M";
|
|
4769
4763
|
//#endregion
|
|
4770
4764
|
//#region src/tags/icons/icon-diff.marko
|
|
4771
4765
|
var icon_diff_default = _template("F", (input) => {
|
|
@@ -4817,8 +4811,8 @@ var icon_edit_default = _template("H", (input) => {
|
|
|
4817
4811
|
});
|
|
4818
4812
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
4819
4813
|
});
|
|
4820
|
-
var prChip = "_ge
|
|
4821
|
-
var portChip = "_gf
|
|
4814
|
+
var prChip = "_ge _j _gd";
|
|
4815
|
+
var portChip = "_gf _j _gd";
|
|
4822
4816
|
var prState = {
|
|
4823
4817
|
open: "_gk",
|
|
4824
4818
|
merged: "_gl",
|
|
@@ -4893,11 +4887,11 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4893
4887
|
const $scope3_id = _scope_id();
|
|
4894
4888
|
const open = isOpen(pr);
|
|
4895
4889
|
_html(`<span${_attr_class([
|
|
4896
|
-
"
|
|
4890
|
+
"_j",
|
|
4897
4891
|
prChip,
|
|
4898
4892
|
{
|
|
4899
|
-
["
|
|
4900
|
-
["
|
|
4893
|
+
["_l"]: open && !pr.isDraft,
|
|
4894
|
+
["_m"]: open && pr.isDraft,
|
|
4901
4895
|
[prState.merged]: pr.state === "MERGED",
|
|
4902
4896
|
[prState.closed]: pr.state === "CLOSED"
|
|
4903
4897
|
}
|
|
@@ -4940,7 +4934,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
4940
4934
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
4941
4935
|
_for_of(ports, (p) => {
|
|
4942
4936
|
const $scope5_id = _scope_id();
|
|
4943
|
-
_html(`<span${_attr_class(["
|
|
4937
|
+
_html(`<span${_attr_class(["_j", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gg", "_gn"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
4944
4938
|
"_gg",
|
|
4945
4939
|
"_gh",
|
|
4946
4940
|
"_gi",
|
|
@@ -5026,10 +5020,10 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5026
5020
|
_if(() => {
|
|
5027
5021
|
if (input.rail) {
|
|
5028
5022
|
const $scope2_id = _scope_id();
|
|
5029
|
-
_html(`<button${_attr_class([railBtn, { ["
|
|
5030
|
-
"
|
|
5023
|
+
_html(`<button${_attr_class([railBtn, { ["_fz"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
|
|
5024
|
+
"_q",
|
|
5031
5025
|
phase[dot],
|
|
5032
|
-
"
|
|
5026
|
+
"_fD"
|
|
5033
5027
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
5034
5028
|
_script($scope2_id, "s3");
|
|
5035
5029
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
@@ -5038,14 +5032,14 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5038
5032
|
const $scope3_id = _scope_id();
|
|
5039
5033
|
const sessions$1 = input.sessions || [];
|
|
5040
5034
|
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("
|
|
5046
|
-
"
|
|
5035
|
+
_html(`<section${_attr_class(["_fF", {
|
|
5036
|
+
["_fz"]: input.current,
|
|
5037
|
+
["_fG"]: input.railPop,
|
|
5038
|
+
["_fE"]: input.page
|
|
5039
|
+
}])}><div${_attr_class("_fH")}><button${_attr_class("_fI")}><span${_attr_class([
|
|
5040
|
+
"_q",
|
|
5047
5041
|
phase[dot],
|
|
5048
|
-
"
|
|
5042
|
+
"_fS"
|
|
5049
5043
|
])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5050
5044
|
_if(() => {
|
|
5051
5045
|
if (sessions$1.length === 1) {
|
|
@@ -5058,7 +5052,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5058
5052
|
icon_agent_default({
|
|
5059
5053
|
agent: activeAgent(sessions$1[0]),
|
|
5060
5054
|
size: 12,
|
|
5061
|
-
class: "
|
|
5055
|
+
class: "_fN"
|
|
5062
5056
|
});
|
|
5063
5057
|
$si__input_sessions && writeScope($scope12_id, {
|
|
5064
5058
|
_: _scope_with_id($scope3_id),
|
|
@@ -5068,11 +5062,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5068
5062
|
}
|
|
5069
5063
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page);
|
|
5070
5064
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5071
|
-
_html(`<span${_attr_class("
|
|
5065
|
+
_html(`<span${_attr_class("_fO")}><span${_attr_class("_fP")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5072
5066
|
_if(() => {
|
|
5073
5067
|
if (input.page && metaText) {
|
|
5074
5068
|
const $scope13_id = _scope_id();
|
|
5075
|
-
_html(`<span${_attr_class("
|
|
5069
|
+
_html(`<span${_attr_class("_fQ")}>${_escape(metaText)}${_el_resume($scope13_id, "b", _serialize_guard($scope0_reason, 5))}</span>`);
|
|
5076
5070
|
$si__input_workspaceId__OR__input_status__OR__input_sessions__OR__input_page && writeScope($scope13_id, { _: _serialize_if($scope0_reason, 5) && _scope_with_id($scope3_id) });
|
|
5077
5071
|
return 0;
|
|
5078
5072
|
}
|
|
@@ -5081,7 +5075,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5081
5075
|
_if(() => {
|
|
5082
5076
|
if (input.page) {
|
|
5083
5077
|
const $scope4_id = _scope_id();
|
|
5084
|
-
_html(`<span${_attr_class("
|
|
5078
|
+
_html(`<span${_attr_class("_fR")}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 16))}</span>`);
|
|
5085
5079
|
$si__input_workspaces__OR__input_workspaceId__OR__input_rail__OR__input_current__OR__input_page && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5086
5080
|
_: _scope_with_id($scope3_id),
|
|
5087
5081
|
Cab: $si__input_current && 2
|
|
@@ -5093,21 +5087,21 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5093
5087
|
_if(() => {
|
|
5094
5088
|
if (!input.page) {
|
|
5095
5089
|
const $scope5_id = _scope_id();
|
|
5096
|
-
_html(`<div${_attr_class("
|
|
5090
|
+
_html(`<div${_attr_class("_fJ")}>`);
|
|
5097
5091
|
_if(() => {
|
|
5098
5092
|
if (input.onNewSession) {
|
|
5099
5093
|
const $scope6_id = _scope_id();
|
|
5100
5094
|
const newPopId = _id();
|
|
5101
5095
|
let pickerReady = false;
|
|
5102
|
-
_html(`<button${_attr_class("
|
|
5096
|
+
_html(`<button${_attr_class("_fL")} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
5103
5097
|
icon_agent_default({
|
|
5104
5098
|
agent: "shell",
|
|
5105
5099
|
size: 12
|
|
5106
5100
|
});
|
|
5107
|
-
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("
|
|
5101
|
+
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class("_e6")}>`);
|
|
5108
5102
|
_for_of([], (agent) => {
|
|
5109
5103
|
const $scope7_id = _scope_id();
|
|
5110
|
-
_html(`<button${_attr_class("
|
|
5104
|
+
_html(`<button${_attr_class("_e7")}>`);
|
|
5111
5105
|
_set_serialize_reason(12);
|
|
5112
5106
|
const $childScope2 = _peek_scope_id();
|
|
5113
5107
|
icon_agent_default({
|
|
@@ -5132,7 +5126,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5132
5126
|
_if(() => {
|
|
5133
5127
|
if (input.onReview) {
|
|
5134
5128
|
const $scope8_id = _scope_id();
|
|
5135
|
-
_html(`<button${_attr_class("
|
|
5129
|
+
_html(`<button${_attr_class("_fL")} title="Review changes">`);
|
|
5136
5130
|
icon_diff_default({ size: 12 });
|
|
5137
5131
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
5138
5132
|
_script($scope8_id, "s6");
|
|
@@ -5140,7 +5134,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5140
5134
|
return 0;
|
|
5141
5135
|
}
|
|
5142
5136
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5143
|
-
_html(`<button${_attr_class(["
|
|
5137
|
+
_html(`<button${_attr_class(["_fL", { ["_fA"]: input.managing }])} title="Manage workspace" aria-pressed=${input.managing ? "true" : "false"}>`);
|
|
5144
5138
|
icon_manage_default({ size: 12 });
|
|
5145
5139
|
_html(`</button>${_el_resume($scope5_id, "d")}</div>`);
|
|
5146
5140
|
_script($scope5_id, "s7");
|
|
@@ -5148,17 +5142,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5148
5142
|
return 0;
|
|
5149
5143
|
}
|
|
5150
5144
|
}, $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("
|
|
5145
|
+
_html(`</div><div${_attr_class("_fX")}>`);
|
|
5152
5146
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5153
5147
|
const $scope9_id = _scope_id();
|
|
5154
|
-
_html(`<div${_attr_class(["
|
|
5148
|
+
_html(`<div${_attr_class(["_fK", { ["_fz"]: s.id === input.currentTab }])}>`);
|
|
5155
5149
|
_if(() => {
|
|
5156
5150
|
if (renamingId === s.id) {
|
|
5157
5151
|
const $scope11_id = _scope_id();
|
|
5158
5152
|
_html(`<span${_attr_class([
|
|
5159
|
-
"
|
|
5153
|
+
"_q",
|
|
5160
5154
|
phase[sessionPhase(s.state)],
|
|
5161
|
-
"
|
|
5155
|
+
"_fV"
|
|
5162
5156
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
5163
5157
|
_set_serialize_reason({
|
|
5164
5158
|
1: $sg__input_sessions,
|
|
@@ -5168,17 +5162,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5168
5162
|
icon_agent_default({
|
|
5169
5163
|
agent: activeAgent(s),
|
|
5170
5164
|
size: 13,
|
|
5171
|
-
class: "
|
|
5165
|
+
class: "_fZ"
|
|
5172
5166
|
});
|
|
5173
5167
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5174
5168
|
renameValue = _new_renameValue;
|
|
5175
|
-
}, "s0", $scope11_id))}${_attr_class("
|
|
5169
|
+
}, "s0", $scope11_id))}${_attr_class("_fW")} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
5176
5170
|
_script($scope11_id, "s8");
|
|
5177
5171
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope3) }));
|
|
5178
5172
|
return 0;
|
|
5179
5173
|
} else {
|
|
5180
5174
|
const $scope10_id = _scope_id();
|
|
5181
|
-
_html(`<button${_attr_class("
|
|
5175
|
+
_html(`<button${_attr_class("_fY")}><span${_attr_class(["_q", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
5182
5176
|
_set_serialize_reason({
|
|
5183
5177
|
1: $sg__input_sessions,
|
|
5184
5178
|
2: $sg__input_sessions
|
|
@@ -5187,11 +5181,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
5187
5181
|
icon_agent_default({
|
|
5188
5182
|
agent: activeAgent(s),
|
|
5189
5183
|
size: 13,
|
|
5190
|
-
class: "
|
|
5184
|
+
class: "_fZ"
|
|
5191
5185
|
});
|
|
5192
|
-
_html(`<span${_attr_class("
|
|
5186
|
+
_html(`<span${_attr_class("_fT")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></button>${_el_resume($scope10_id, "a")}<div${_attr_class("_fU")}><button${_attr_class("_fL")} title="Rename session">`);
|
|
5193
5187
|
icon_edit_default({ size: 12 });
|
|
5194
|
-
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["
|
|
5188
|
+
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class(["_fM", { ["_fB"]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope10_id, "i")}</div>`);
|
|
5195
5189
|
_script($scope10_id, "s9");
|
|
5196
5190
|
_subscribe($armedKill__closures, writeScope($scope10_id, { c: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5197
5191
|
return 1;
|
|
@@ -5372,25 +5366,25 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5372
5366
|
const wsSelected = view !== "settings" && view !== "new";
|
|
5373
5367
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5374
5368
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5375
|
-
_html(`<aside${_attr_class(["
|
|
5376
|
-
["
|
|
5377
|
-
["
|
|
5369
|
+
_html(`<aside${_attr_class(["_dz", {
|
|
5370
|
+
["_dx"]: !navOpen,
|
|
5371
|
+
["_dy"]: isPage
|
|
5378
5372
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5379
5373
|
_if(() => {
|
|
5380
5374
|
if (isPage) {
|
|
5381
5375
|
const $scope1_id = _scope_id();
|
|
5382
|
-
_html(`<header${_attr_class("
|
|
5376
|
+
_html(`<header${_attr_class("_dC")}><h1${_attr_class("_dD")}>Workspaces</h1><div${_attr_class("_dE")}>`);
|
|
5383
5377
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5384
5378
|
_html(`<button${_attr_class([
|
|
5385
5379
|
iconBtn$1,
|
|
5386
|
-
"
|
|
5387
|
-
{ ["
|
|
5380
|
+
"_dF",
|
|
5381
|
+
{ ["_du"]: view === "settings" }
|
|
5388
5382
|
])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5389
5383
|
icon_settings_default({ size: 16 });
|
|
5390
5384
|
_if(() => {
|
|
5391
5385
|
if (input.setupReady === false) {
|
|
5392
5386
|
const $scope10_id = _scope_id();
|
|
5393
|
-
_html(`<span${_attr_class(["
|
|
5387
|
+
_html(`<span${_attr_class(["_q", "_dw"])} title="Machine setup incomplete"></span>`);
|
|
5394
5388
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5395
5389
|
return 0;
|
|
5396
5390
|
}
|
|
@@ -5401,13 +5395,13 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5401
5395
|
return 0;
|
|
5402
5396
|
}
|
|
5403
5397
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5404
|
-
_html(`<div${_attr_class("
|
|
5398
|
+
_html(`<div${_attr_class("_dI")}>`);
|
|
5405
5399
|
_for_of(listIds, (wsId) => {
|
|
5406
5400
|
const $scope2_id = _scope_id();
|
|
5407
5401
|
_if(() => {
|
|
5408
5402
|
if (isPage && wsId === ws.id) {
|
|
5409
5403
|
const $scope11_id = _scope_id();
|
|
5410
|
-
_html(`<h2${_attr_class("
|
|
5404
|
+
_html(`<h2${_attr_class("_dG")}>Current</h2>`);
|
|
5411
5405
|
writeScope($scope11_id, {});
|
|
5412
5406
|
return 0;
|
|
5413
5407
|
}
|
|
@@ -5415,7 +5409,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5415
5409
|
_if(() => {
|
|
5416
5410
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5417
5411
|
const $scope12_id = _scope_id();
|
|
5418
|
-
_html(`<h2${_attr_class("
|
|
5412
|
+
_html(`<h2${_attr_class("_dG")}>Other spaces</h2>`);
|
|
5419
5413
|
writeScope($scope12_id, {});
|
|
5420
5414
|
return 0;
|
|
5421
5415
|
}
|
|
@@ -5513,7 +5507,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5513
5507
|
railHover = null;
|
|
5514
5508
|
}, 150);
|
|
5515
5509
|
}, "t9", $scope3_id);
|
|
5516
|
-
_html(`<div${_attr_class("
|
|
5510
|
+
_html(`<div${_attr_class("_dJ")}>`);
|
|
5517
5511
|
_for_of(itemIds, (wsId, i) => {
|
|
5518
5512
|
const $scope4_id = _scope_id();
|
|
5519
5513
|
_html("<span>");
|
|
@@ -5560,7 +5554,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5560
5554
|
if (railHover) {
|
|
5561
5555
|
const $scope5_id = _scope_id();
|
|
5562
5556
|
const hoverId = railHover.id;
|
|
5563
|
-
_html(`<div${_attr_class("
|
|
5557
|
+
_html(`<div${_attr_class("_dM")}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5564
5558
|
_set_serialize_reason({
|
|
5565
5559
|
0: 1,
|
|
5566
5560
|
1: 1,
|
|
@@ -5663,11 +5657,11 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5663
5657
|
return 0;
|
|
5664
5658
|
}
|
|
5665
5659
|
}, $scope0_id, "d");
|
|
5666
|
-
_html(`<div${_attr_class("
|
|
5660
|
+
_html(`<div${_attr_class("_dK")}>`);
|
|
5667
5661
|
_if(() => {
|
|
5668
5662
|
if (isPage) {
|
|
5669
5663
|
const $scope6_id = _scope_id();
|
|
5670
|
-
_html(`<button${_attr_class(["
|
|
5664
|
+
_html(`<button${_attr_class(["_dH", { ["_du"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5671
5665
|
icon_folder_plus_default({ size: 16 });
|
|
5672
5666
|
_html(` New workspace</button>${_el_resume($scope6_id, "a")}`);
|
|
5673
5667
|
_script($scope6_id, "t21");
|
|
@@ -5689,19 +5683,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
5689
5683
|
return 1;
|
|
5690
5684
|
}
|
|
5691
5685
|
}, $scope7_id, "a", 1, 1, 1, "</button>", 1);
|
|
5692
|
-
_html(`<div${_attr_class(["
|
|
5686
|
+
_html(`<div${_attr_class(["_p", "_dL"])}></div>`);
|
|
5693
5687
|
_if(() => {}, $scope7_id, "c", 1, 1, 1, 0, 1);
|
|
5694
|
-
_html(`<button${_attr_class([iconBtn$1, { ["
|
|
5688
|
+
_html(`<button${_attr_class([iconBtn$1, { ["_du"]: view === "settings" }])} title=Settings aria-pressed=${view === "settings" ? "true" : "false"}>`);
|
|
5695
5689
|
icon_settings_default({ size: 15 });
|
|
5696
5690
|
_if(() => {
|
|
5697
5691
|
if (input.setupReady === false) {
|
|
5698
5692
|
const $scope15_id = _scope_id();
|
|
5699
|
-
_html(`<span${_attr_class(["
|
|
5693
|
+
_html(`<span${_attr_class(["_q", "_dw"])} title="Machine setup incomplete"></span>`);
|
|
5700
5694
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
5701
5695
|
return 0;
|
|
5702
5696
|
}
|
|
5703
5697
|
}, $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, { ["
|
|
5698
|
+
_html(`</button>${_el_resume($scope7_id, "d")}<button${_attr_class([iconBtn$1, { ["_du"]: view === "new" }])} title="New workspace" aria-pressed=${view === "new" ? "true" : "false"}>`);
|
|
5705
5699
|
icon_folder_plus_default({ size: 16 });
|
|
5706
5700
|
_html(`</button>${_el_resume($scope7_id, "g")}`);
|
|
5707
5701
|
_script($scope7_id, "t23");
|
|
@@ -5776,9 +5770,9 @@ function repoWebUrl(fullName) {
|
|
|
5776
5770
|
if (parts.length >= 3 && parts[0].includes(".")) return `https://${parts[0]}/${parts.slice(1).join("/")}`;
|
|
5777
5771
|
return `https://github.com/${fullName}`;
|
|
5778
5772
|
}
|
|
5779
|
-
var iconBtn = "
|
|
5780
|
-
var content = "
|
|
5781
|
-
var pageMeta = "
|
|
5773
|
+
var iconBtn = "_bU _M";
|
|
5774
|
+
var content = "_cE _F";
|
|
5775
|
+
var pageMeta = "_cF _K";
|
|
5782
5776
|
//#endregion
|
|
5783
5777
|
//#region src/tags/manage-workspace.marko
|
|
5784
5778
|
var api$2;
|
|
@@ -5872,16 +5866,16 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5872
5866
|
setTimeout(() => loadProcs(void 0), 500);
|
|
5873
5867
|
}, "k5", $scope0_id);
|
|
5874
5868
|
const titleId = _id();
|
|
5875
|
-
_html(`<div${_attr_class("
|
|
5869
|
+
_html(`<div${_attr_class("_D")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_E")}><div${_attr_class(content)}><header${_attr_class("_H")}><div${_attr_class("_J")}><h1${_attr("id", titleId)}${_attr_class("_I")}>Manage</h1><p${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cG")}>${_escape(ws.name)}${_el_resume($scope0_id, "i")}</span>`);
|
|
5876
5870
|
_if(() => {
|
|
5877
5871
|
if (ws.status !== "active") {
|
|
5878
5872
|
const $scope10_id = _scope_id();
|
|
5879
|
-
_html(`<span${_attr_class(["
|
|
5873
|
+
_html(`<span${_attr_class(["_cJ", "_cK"])}>Archived</span>`);
|
|
5880
5874
|
writeScope($scope10_id, {});
|
|
5881
5875
|
return 0;
|
|
5882
5876
|
}
|
|
5883
5877
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
5884
|
-
_html(`<span${_attr_class("
|
|
5878
|
+
_html(`<span${_attr_class("_cH")} aria-hidden=true>·</span><span${_attr_class(["_cI", "_o"])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope0_id, "m")}</span></p>${_el_resume($scope0_id, "g")}</div></header>`);
|
|
5885
5879
|
_if(() => {
|
|
5886
5880
|
if (error) {
|
|
5887
5881
|
const $scope2_id = _scope_id();
|
|
@@ -5905,26 +5899,26 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5905
5899
|
_if(() => {
|
|
5906
5900
|
if (pendingAction && actionStep) {
|
|
5907
5901
|
const $scope7_id = _scope_id();
|
|
5908
|
-
_html(`<p${_attr_class("
|
|
5902
|
+
_html(`<p${_attr_class("_bE")}><span${_attr_class("_w")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
5909
5903
|
writeScope($scope7_id, {});
|
|
5910
5904
|
return 0;
|
|
5911
5905
|
}
|
|
5912
5906
|
}, $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
5913
|
-
_html(`<section${_attr_class("
|
|
5907
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Repos</h2><span${_attr_class("_bH")}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "t")}</span><div${_attr_class("_p")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5914
5908
|
_set_serialize_reason(1);
|
|
5915
5909
|
const $childScope = _peek_scope_id();
|
|
5916
5910
|
icon_refresh_default({
|
|
5917
5911
|
size: 14,
|
|
5918
|
-
class: catalogRefreshing && "
|
|
5912
|
+
class: catalogRefreshing && "_v"
|
|
5919
5913
|
});
|
|
5920
|
-
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("
|
|
5914
|
+
_html(`</button>${_el_resume($scope0_id, "v")}</div><ul${_attr_class("_bI")}>`);
|
|
5921
5915
|
_for_of(ws.repos, (row) => {
|
|
5922
5916
|
const $scope1_id = _scope_id();
|
|
5923
|
-
_html(`<li${_attr_class("
|
|
5917
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}><span${_attr_class(["_bM", "_o"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bN")}><a${_attr_class(["_bO", "_cM"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(row.full_name)}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
5924
5918
|
_if(() => {
|
|
5925
5919
|
if (row.base_branch !== row.default_branch) {
|
|
5926
5920
|
const $scope11_id = _scope_id();
|
|
5927
|
-
_html(`<span${_attr_class(["
|
|
5921
|
+
_html(`<span${_attr_class(["_bP", "_o"])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope11_id, "b")}</span>`);
|
|
5928
5922
|
writeScope($scope11_id, {});
|
|
5929
5923
|
return 0;
|
|
5930
5924
|
}
|
|
@@ -5933,15 +5927,15 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5933
5927
|
_if(() => {
|
|
5934
5928
|
if (busy.has(row.full_name)) {
|
|
5935
5929
|
const $scope12_id = _scope_id();
|
|
5936
|
-
_html(`<span${_attr_class("
|
|
5930
|
+
_html(`<span${_attr_class("_w")}></span>`);
|
|
5937
5931
|
writeScope($scope12_id, {});
|
|
5938
5932
|
return 0;
|
|
5939
5933
|
} else {
|
|
5940
5934
|
const $scope6_id = _scope_id();
|
|
5941
5935
|
_html(`<button${_attr_class([
|
|
5942
|
-
"
|
|
5943
|
-
"
|
|
5944
|
-
{ ["
|
|
5936
|
+
"_bQ",
|
|
5937
|
+
"_bS",
|
|
5938
|
+
{ ["_bR"]: confirmingRemove === row.full_name }
|
|
5945
5939
|
])}${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
5940
|
_script($scope6_id, "k11");
|
|
5947
5941
|
_subscribe($confirmingRemove__closures, writeScope($scope6_id, {}));
|
|
@@ -5958,19 +5952,19 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5958
5952
|
}, "full_name", $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
5959
5953
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
5960
5954
|
const $scope13_id = _scope_id();
|
|
5961
|
-
_html(`<li${_attr_class(["
|
|
5955
|
+
_html(`<li${_attr_class(["_bK", "_bJ"])}><span${_attr_class("_w")}></span><div${_attr_class("_bL")}><span${_attr_class("_bO")}>Adding <!>${_escape(name)}${_el_resume($scope13_id, "e")}…</span></div></li>`);
|
|
5962
5956
|
writeScope($scope13_id, {});
|
|
5963
5957
|
}, (n) => n, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
5964
5958
|
_html("</ul>");
|
|
5965
5959
|
_if(() => {
|
|
5966
5960
|
if (!ws.repos.length && !busy.size) {
|
|
5967
5961
|
const $scope14_id = _scope_id();
|
|
5968
|
-
_html(`<p${_attr_class("
|
|
5962
|
+
_html(`<p${_attr_class("_bT")}>No repos yet — search below to add one.</p>`);
|
|
5969
5963
|
writeScope($scope14_id, {});
|
|
5970
5964
|
return 0;
|
|
5971
5965
|
}
|
|
5972
5966
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
5973
|
-
_html(`<div${_attr_class("
|
|
5967
|
+
_html(`<div${_attr_class("_cL")}>`);
|
|
5974
5968
|
const $childScope2 = _peek_scope_id();
|
|
5975
5969
|
let refreshCatalog = repo_picker_default({
|
|
5976
5970
|
exclude: inWorkspace,
|
|
@@ -5990,17 +5984,17 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
5990
5984
|
_if(() => {
|
|
5991
5985
|
if (running.length) {
|
|
5992
5986
|
const $scope8_id = _scope_id();
|
|
5993
|
-
_html(`<section${_attr_class("
|
|
5987
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Running</h2><span${_attr_class("_bH")}>${_escape(running.length)}${_el_resume($scope8_id, "e")}</span></div><ul${_attr_class("_bI")}>`);
|
|
5994
5988
|
_for_of(running, (p) => {
|
|
5995
5989
|
const $scope9_id = _scope_id();
|
|
5996
|
-
_html(`<li${_attr_class("
|
|
5990
|
+
_html(`<li${_attr_class("_bK")}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class(["_bM", "_o"])}>${_escape(p.cmd)}${_el_resume($scope9_id, "d")}</span>`);
|
|
5997
5991
|
_if(() => {
|
|
5998
5992
|
if (p.ports.length) {
|
|
5999
5993
|
const $scope15_id = _scope_id();
|
|
6000
|
-
_html(`<span${_attr_class("
|
|
5994
|
+
_html(`<span${_attr_class("_bN")}>`);
|
|
6001
5995
|
_for_of(p.ports, (port) => {
|
|
6002
5996
|
const $scope16_id = _scope_id();
|
|
6003
|
-
_html(`<button${_attr_class(["
|
|
5997
|
+
_html(`<button${_attr_class(["_j", "_cN"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope16_id, "b")}</button>${_el_resume($scope16_id, "a")}`);
|
|
6004
5998
|
_script($scope16_id, "k13");
|
|
6005
5999
|
writeScope($scope16_id, { d: port });
|
|
6006
6000
|
}, (x) => String(x), $scope15_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6008,7 +6002,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6008
6002
|
return 0;
|
|
6009
6003
|
}
|
|
6010
6004
|
}, $scope9_id, "e", 1, 1, 1, 0, 1);
|
|
6011
|
-
_html(`</div>${_el_resume($scope9_id, "b")}<button${_attr_class(["
|
|
6005
|
+
_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
6006
|
_script($scope9_id, "k14");
|
|
6013
6007
|
writeScope($scope9_id, {
|
|
6014
6008
|
k: p?.ports,
|
|
@@ -6020,28 +6014,28 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
6020
6014
|
return 0;
|
|
6021
6015
|
}
|
|
6022
6016
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
6023
|
-
_html(`<section${_attr_class(["
|
|
6017
|
+
_html(`<section${_attr_class(["_bF", "_cO"])}><div${_attr_class("_bG")}><h2${_attr_class("_bV")}>Workspace</h2></div><div${_attr_class("_cP")}>`);
|
|
6024
6018
|
_if(() => {
|
|
6025
6019
|
if (ws.status === "active") {
|
|
6026
6020
|
const $scope4_id = _scope_id();
|
|
6027
|
-
_html(`<button type=button${_attr_class(["
|
|
6021
|
+
_html(`<button type=button${_attr_class(["_f", "_cQ"])}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope4_id, "b")}</button>${_el_resume($scope4_id, "a")}`);
|
|
6028
6022
|
_script($scope4_id, "k15");
|
|
6029
6023
|
writeScope($scope4_id, {});
|
|
6030
6024
|
return 0;
|
|
6031
6025
|
} else {
|
|
6032
6026
|
const $scope5_id = _scope_id();
|
|
6033
|
-
_html(`<button type=button${_attr_class(["
|
|
6027
|
+
_html(`<button type=button${_attr_class(["_f", "_cQ"])}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope5_id, "a")}`);
|
|
6034
6028
|
_script($scope5_id, "k16");
|
|
6035
6029
|
writeScope($scope5_id, {});
|
|
6036
6030
|
return 1;
|
|
6037
6031
|
}
|
|
6038
6032
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
6039
6033
|
_html(`<button type=button${_attr_class([
|
|
6040
|
-
"
|
|
6041
|
-
"
|
|
6042
|
-
"
|
|
6043
|
-
{ ["
|
|
6044
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("
|
|
6034
|
+
"_f",
|
|
6035
|
+
"_i",
|
|
6036
|
+
"_cQ",
|
|
6037
|
+
{ ["_h"]: confirmingDelete }
|
|
6038
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "ab")}</button>${_el_resume($scope0_id, "aa")}</div><p${_attr_class("_cR")}>Archive hides the space from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
6045
6039
|
_script($scope0_id, "k17");
|
|
6046
6040
|
_script($scope0_id, "k18");
|
|
6047
6041
|
writeScope($scope0_id, {
|
|
@@ -6112,15 +6106,15 @@ var term_find_default = _template("u", (input) => {
|
|
|
6112
6106
|
const canStep = hasQuery && open;
|
|
6113
6107
|
const keybar = input.placement === "keybar";
|
|
6114
6108
|
_html(`<div${_attr_class([
|
|
6115
|
-
"
|
|
6116
|
-
keybar ? "
|
|
6117
|
-
!open && "
|
|
6118
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6109
|
+
"_fr",
|
|
6110
|
+
keybar ? "_ft" : "_fs",
|
|
6111
|
+
!open && "_fv"
|
|
6112
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fm", keybar ? "_fu" : "_fo"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6119
6113
|
if (!open) return;
|
|
6120
6114
|
query = v;
|
|
6121
6115
|
live.query = v;
|
|
6122
6116
|
run(0);
|
|
6123
|
-
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6117
|
+
}, "u0", $scope0_id))}${_attr_class([findInput, keybar && "_fw"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_fx"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fx"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fx"])} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6124
6118
|
_script($scope0_id, "u4");
|
|
6125
6119
|
_script($scope0_id, "u5");
|
|
6126
6120
|
_script($scope0_id, "u6");
|
|
@@ -6389,7 +6383,7 @@ var term_default = _template("v", (input) => {
|
|
|
6389
6383
|
trapOpen = true;
|
|
6390
6384
|
}
|
|
6391
6385
|
}, "v14", $scope0_id);
|
|
6392
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
6386
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_cT")}><div${_attr_class("_cU")}></div>${_el_resume($scope0_id, "b")}`);
|
|
6393
6387
|
_if(() => {
|
|
6394
6388
|
if (findOpen) {
|
|
6395
6389
|
const $scope11_id = _scope_id();
|
|
@@ -6416,7 +6410,7 @@ var term_default = _template("v", (input) => {
|
|
|
6416
6410
|
_if(() => {
|
|
6417
6411
|
if (uploading) {
|
|
6418
6412
|
const $scope18_id = _scope_id();
|
|
6419
|
-
_html(`<div${_attr_class("
|
|
6413
|
+
_html(`<div${_attr_class("_cY")}>uploading…</div>`);
|
|
6420
6414
|
writeScope($scope18_id, {});
|
|
6421
6415
|
return 0;
|
|
6422
6416
|
}
|
|
@@ -6424,7 +6418,7 @@ var term_default = _template("v", (input) => {
|
|
|
6424
6418
|
_if(() => {
|
|
6425
6419
|
if (copiedFlash) {
|
|
6426
6420
|
const $scope19_id = _scope_id();
|
|
6427
|
-
_html(`<div${_attr_class("
|
|
6421
|
+
_html(`<div${_attr_class("_cX")}>Copied</div>`);
|
|
6428
6422
|
writeScope($scope19_id, {});
|
|
6429
6423
|
return 0;
|
|
6430
6424
|
}
|
|
@@ -6433,7 +6427,7 @@ var term_default = _template("v", (input) => {
|
|
|
6433
6427
|
_if(() => {
|
|
6434
6428
|
if (trapOpen) {
|
|
6435
6429
|
const $scope10_id = _scope_id();
|
|
6436
|
-
_html(`<div${_attr_class("
|
|
6430
|
+
_html(`<div${_attr_class("_cZ")}><div${_attr_class("_c0")}><p${_attr_class("_dt")}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope10_id, "d")}<button${_attr_class("_f")}>Cancel</button>${_el_resume($scope10_id, "e")}</div>${_el_resume($scope10_id, "b")}</div>${_el_resume($scope10_id, "a")}`);
|
|
6437
6431
|
_script($scope10_id, "v23");
|
|
6438
6432
|
_script($scope10_id, "v24");
|
|
6439
6433
|
writeScope($scope10_id, {});
|
|
@@ -6538,7 +6532,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6538
6532
|
let DiffView = null;
|
|
6539
6533
|
const loadDiffView = _resume(() => {
|
|
6540
6534
|
if (DiffView) return;
|
|
6541
|
-
import("./
|
|
6535
|
+
import("./_ChsFL4HL.js").then((m) => {
|
|
6542
6536
|
DiffView = m.default;
|
|
6543
6537
|
});
|
|
6544
6538
|
}, "y4", $scope0_id);
|
|
@@ -6694,7 +6688,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6694
6688
|
error = String(err.message || err);
|
|
6695
6689
|
}
|
|
6696
6690
|
}, "y19", $scope0_id);
|
|
6697
|
-
_html(`<div${_attr_class(["
|
|
6691
|
+
_html(`<div${_attr_class(["_bu", { ["_bt"]: view === "nav" }])}><div${_attr_class("_bv")}>`);
|
|
6698
6692
|
_set_serialize_reason({
|
|
6699
6693
|
0: _serialize_guard($scope0_reason, 0),
|
|
6700
6694
|
1: _serialize_guard($scope0_reason, 1),
|
|
@@ -6767,7 +6761,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6767
6761
|
openDiff(pr);
|
|
6768
6762
|
}, "y31", $scope0_id)
|
|
6769
6763
|
});
|
|
6770
|
-
_html(`</div><div${_attr_class("
|
|
6764
|
+
_html(`</div><div${_attr_class("_bw")}>`);
|
|
6771
6765
|
_if(() => {
|
|
6772
6766
|
if (error) {
|
|
6773
6767
|
const $scope8_id = _scope_id();
|
|
@@ -6870,13 +6864,13 @@ var work_view_default = _template("y", (input) => {
|
|
|
6870
6864
|
}
|
|
6871
6865
|
}, $scope0_id, "h");
|
|
6872
6866
|
_if(() => {}, $scope0_id, "i");
|
|
6873
|
-
_html(`<div${_attr_class(["
|
|
6867
|
+
_html(`<div${_attr_class(["_by", { ["_bx"]: view !== "term" }])}>`);
|
|
6874
6868
|
_if(() => {
|
|
6875
6869
|
if (shownSessions) {
|
|
6876
6870
|
const $scope5_id = _scope_id();
|
|
6877
6871
|
_for_of(shownSessions, (s) => {
|
|
6878
6872
|
const $scope6_id = _scope_id();
|
|
6879
|
-
_html(`<div${_attr_class(["
|
|
6873
|
+
_html(`<div${_attr_class(["_bz", { ["_bA"]: s.id === curTab }])}>`);
|
|
6880
6874
|
_set_serialize_reason({
|
|
6881
6875
|
0: 1,
|
|
6882
6876
|
1: 1,
|
|
@@ -6943,7 +6937,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6943
6937
|
_if(() => {
|
|
6944
6938
|
if (!shownSessions.length && view === "term") {
|
|
6945
6939
|
const $scope7_id = _scope_id();
|
|
6946
|
-
_html(`<div${_attr_class("
|
|
6940
|
+
_html(`<div${_attr_class("_bC")}><p${_attr_class("_bD")}>No sessions in this workspace.</p><button${_attr_class(["_f", "_g"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope7_id, "d")}</button>${_el_resume($scope7_id, "c")}</div>`);
|
|
6947
6941
|
_script($scope7_id, "y51");
|
|
6948
6942
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
6949
6943
|
return 0;
|
|
@@ -6953,7 +6947,7 @@ var work_view_default = _template("y", (input) => {
|
|
|
6953
6947
|
return 0;
|
|
6954
6948
|
} else {
|
|
6955
6949
|
const $scope10_id = _scope_id();
|
|
6956
|
-
_html(`<p${_attr_class("
|
|
6950
|
+
_html(`<p${_attr_class("_bB")}>Loading sessions…</p>`);
|
|
6957
6951
|
writeScope($scope10_id, {});
|
|
6958
6952
|
return 1;
|
|
6959
6953
|
}
|
|
@@ -7199,7 +7193,7 @@ var page_boot_default = _template("n", (input) => {
|
|
|
7199
7193
|
};
|
|
7200
7194
|
}, "n8", $scope4_id)
|
|
7201
7195
|
});
|
|
7202
|
-
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("
|
|
7196
|
+
_html(`<div${_attr_class("_C")}><button type=button${_attr_class("_f")}>Later — go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
7203
7197
|
_script($scope4_id, "n24");
|
|
7204
7198
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
7205
7199
|
return 0;
|
|
@@ -7351,7 +7345,7 @@ var _page_default = _template("b", (input) => {
|
|
|
7351
7345
|
setup: su
|
|
7352
7346
|
}));
|
|
7353
7347
|
})();
|
|
7354
|
-
_html(`<main${_attr_class("
|
|
7348
|
+
_html(`<main${_attr_class("_z")}>`);
|
|
7355
7349
|
_try($scope0_id, "b", _content_resume("b2", () => {
|
|
7356
7350
|
const $scope1_id = _scope_id();
|
|
7357
7351
|
_scope_reason();
|
|
@@ -7364,12 +7358,12 @@ var _page_default = _template("b", (input) => {
|
|
|
7364
7358
|
placeholder: attrTag({ content: _content_resume("b0", () => {
|
|
7365
7359
|
_scope_reason();
|
|
7366
7360
|
_scope_id();
|
|
7367
|
-
_html(`<div${_attr_class("
|
|
7361
|
+
_html(`<div${_attr_class("_y")}><span${_attr_class("_w")}></span>Loading workspaces…</div>`);
|
|
7368
7362
|
}, $scope0_id) }),
|
|
7369
7363
|
catch: attrTag({ content: _content_resume("b1", (err) => {
|
|
7370
7364
|
const $scope3_reason = _scope_reason();
|
|
7371
7365
|
const $scope3_id = _scope_id();
|
|
7372
|
-
_html(`<div${_attr_class("
|
|
7366
|
+
_html(`<div${_attr_class("_y")}><p>${err instanceof Error ? _escape(err.message) : _escape(String(err))}${_el_resume($scope3_id, "b", _serialize_guard($scope3_reason, 0))}</p></div>`);
|
|
7373
7367
|
_serialize_if($scope3_reason, 0) && writeScope($scope3_id, {});
|
|
7374
7368
|
}, $scope0_id) })
|
|
7375
7369
|
});
|
|
@@ -9382,6 +9376,7 @@ function parseRow(payload, auth, source) {
|
|
|
9382
9376
|
five_h_resets: null,
|
|
9383
9377
|
seven_d: used == null ? null : Math.trunc(used),
|
|
9384
9378
|
seven_d_resets: str(period.end || cfg.billingPeriodEnd) || null,
|
|
9379
|
+
seven_d_label: /MONTH/i.test(str(period.type)) ? "month" : "7d",
|
|
9385
9380
|
fable: null,
|
|
9386
9381
|
fable_resets: null,
|
|
9387
9382
|
source
|
|
@@ -14787,4 +14782,4 @@ server.listen(port, () => {
|
|
|
14787
14782
|
//#endregion
|
|
14788
14783
|
export {};
|
|
14789
14784
|
|
|
14790
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
14785
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-BTS1WPEB.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-BTS1WPEB.css\"",">"],"defer":[2,"/assets/index-g4T1J5qh.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-g4T1J5qh.js\"","></script>"]}};
|