@dylanpiercey/work 0.0.91 → 0.0.92
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 +4 -12
- package/dist/{_DWAnBXsO.js → _8RPVAk_Y.js} +67 -67
- package/dist/{_BdPU13C_.js → _BYk3MBDh.js} +22 -11
- package/dist/{_C_ZBgO7_.js → _CPHDAjDZ.js} +4 -4
- package/dist/_DVaOR8TC.js +2 -0
- package/dist/index.mjs +157 -157
- package/dist/public/assets/{_BCRUYzYR2.js → _23UIdfoQ2.js} +1 -1
- package/dist/public/assets/_23UIdfoQ2.js.br +0 -0
- package/dist/public/assets/{_mkz0gZxI.js → _31nacN_D.js} +1 -1
- package/dist/public/assets/_31nacN_D.js.br +0 -0
- package/dist/public/assets/{_By0uOG1b.js → _3JsxY5jW.js} +1 -1
- package/dist/public/assets/_3JsxY5jW.js.br +0 -0
- package/dist/public/assets/{_DgTwJOzV.js → _3h4e0tEZ.js} +1 -1
- package/dist/public/assets/_3h4e0tEZ.js.br +0 -0
- package/dist/public/assets/{_BKVXSOII.js → _3q4Nl5jL.js} +1 -1
- package/dist/public/assets/_3q4Nl5jL.js.br +0 -0
- package/dist/public/assets/{_ChytUZvv2.js → _4ufvnJf72.js} +1 -1
- package/dist/public/assets/_4ufvnJf72.js.br +0 -0
- package/dist/public/assets/{_H2EMk3sR.js → _6_4OUvYf.js} +1 -1
- package/dist/public/assets/_6_4OUvYf.js.br +0 -0
- package/dist/public/assets/{_D-wSazJF.js → _B1dDpV96.js} +1 -1
- package/dist/public/assets/_B1dDpV96.js.br +0 -0
- package/dist/public/assets/{_B1PdYMXj.js → _B1z9k1lq.js} +1 -1
- package/dist/public/assets/_B1z9k1lq.js.br +0 -0
- package/dist/public/assets/{_B1l2to3W2.js → _BETMA-Hb2.js} +1 -1
- package/dist/public/assets/_BETMA-Hb2.js.br +0 -0
- package/dist/public/assets/{_Dw686Grs.js → _BFF66BtJ.js} +1 -1
- package/dist/public/assets/_BFF66BtJ.js.br +0 -0
- package/dist/public/assets/{_Btib1Grb.js → _BGLmCXNY.js} +6 -6
- package/dist/public/assets/_BGLmCXNY.js.br +0 -0
- package/dist/public/assets/{_D8Nb0E5n.js → _BM5HMz6F.js} +1 -1
- package/dist/public/assets/_BM5HMz6F.js.br +0 -0
- package/dist/public/assets/{_D4bPDD54.js → _BPNziY9z.js} +1 -1
- package/dist/public/assets/_BPNziY9z.js.br +0 -0
- package/dist/public/assets/{_C_aTh2522.js → _BQ0Y_y9u2.js} +1 -1
- package/dist/public/assets/_BQ0Y_y9u2.js.br +0 -0
- package/dist/public/assets/{_D7rMA7Ee.js → _BVC6e_Yp.js} +1 -1
- package/dist/public/assets/_BVC6e_Yp.js.br +0 -0
- package/dist/public/assets/{_DVRuxWUw.js → _BWbF3P8Z.js} +1 -1
- package/dist/public/assets/_BWbF3P8Z.js.br +0 -0
- package/dist/public/assets/{_DLS-FteL.js → _BcIUAm9X.js} +1 -1
- package/dist/public/assets/_BcIUAm9X.js.br +0 -0
- package/dist/public/assets/{_DKrfX_Lr.js → _Bd0H4f51.js} +1 -1
- package/dist/public/assets/_Bd0H4f51.js.br +0 -0
- package/dist/public/assets/{_CjVD9WF4.js → _BgYWEeM6.js} +1 -1
- package/dist/public/assets/_BgYWEeM6.js.br +0 -0
- package/dist/public/assets/{_9th6P7LB.js → _Bje3KtwL.js} +1 -1
- package/dist/public/assets/_Bje3KtwL.js.br +0 -0
- package/dist/public/assets/{_CUvcmgdP.js → _BloQpEjp.js} +1 -1
- package/dist/public/assets/_BloQpEjp.js.br +0 -0
- package/dist/public/assets/{_BDdxYfg22.js → _BlyGQAQX2.js} +1 -1
- package/dist/public/assets/{_DtVjXhGi.js → _Bq92Q0nR.js} +1 -1
- package/dist/public/assets/_Bq92Q0nR.js.br +0 -0
- package/dist/public/assets/{_BhH6Vf1I2.js → _C28V0U8l2.js} +1 -1
- package/dist/public/assets/_C28V0U8l2.js.br +0 -0
- package/dist/public/assets/{_jl7SJGL42.js → _C2HzNbvz2.js} +1 -1
- package/dist/public/assets/_C2HzNbvz2.js.br +0 -0
- package/dist/public/assets/{_CxZjewAb.js → _C2z9cX6l.js} +1 -1
- package/dist/public/assets/_C2z9cX6l.js.br +0 -0
- package/dist/public/assets/{_DnTnF7qV2.js → _C4J76yzG2.js} +1 -1
- package/dist/public/assets/_C4J76yzG2.js.br +0 -0
- package/dist/public/assets/{_Bxk7ict1.js → _CCBCnuWw.js} +1 -1
- package/dist/public/assets/_CCBCnuWw.js.br +0 -0
- package/dist/public/assets/{_BO9TT4HF.js → _CL6s0ICh.js} +1 -1
- package/dist/public/assets/_CL6s0ICh.js.br +0 -0
- package/dist/public/assets/{_Cj7Uk97l2.js → _CN3BQYA72.js} +1 -1
- package/dist/public/assets/_CN3BQYA72.js.br +0 -0
- package/dist/public/assets/{_B__m0-au2.js → _CQUq-mT72.js} +1 -1
- package/dist/public/assets/_CQUq-mT72.js.br +0 -0
- package/dist/public/assets/{_C0R7gKGB.js → _CTgfRkBE.js} +1 -1
- package/dist/public/assets/_CTgfRkBE.js.br +0 -0
- package/dist/public/assets/{_kFsV7DDO2.js → _CWk2sy8k2.js} +1 -1
- package/dist/public/assets/_CWk2sy8k2.js.br +0 -0
- package/dist/public/assets/{_C81Givkg2.js → _CXFZVHoG2.js} +1 -1
- package/dist/public/assets/_CXFZVHoG2.js.br +0 -0
- package/dist/public/assets/{_oTAPJGK3.js → _CYNf9fgV.js} +1 -1
- package/dist/public/assets/_CYNf9fgV.js.br +0 -0
- package/dist/public/assets/{_DezSJD4X.js → _CaSmGp4w.js} +1 -1
- package/dist/public/assets/_CaSmGp4w.js.br +0 -0
- package/dist/public/assets/{_C4EHNcOe2.js → _Cag67kCX2.js} +1 -1
- package/dist/public/assets/_Cag67kCX2.js.br +0 -0
- package/dist/public/assets/{_BpvLawI8.js → _Ce3Yjzth.js} +1 -1
- package/dist/public/assets/_Ce3Yjzth.js.br +0 -0
- package/dist/public/assets/{_gpwHwzTz.js → _CeqZakIs.js} +1 -1
- package/dist/public/assets/_CeqZakIs.js.br +0 -0
- package/dist/public/assets/{_rKTMTs__.js → _Cf-YNYwd.js} +1 -1
- package/dist/public/assets/_Cf-YNYwd.js.br +0 -0
- package/dist/public/assets/{_DC2u87q6.js → _CfBFNuDP.js} +1 -1
- package/dist/public/assets/_CfBFNuDP.js.br +0 -0
- package/dist/public/assets/{_jNzrKWN72.js → _Cfb5JM5h2.js} +1 -1
- package/dist/public/assets/_Cfb5JM5h2.js.br +0 -0
- package/dist/public/assets/{_DfanBg_-.js → _Cftb_32G.js} +1 -1
- package/dist/public/assets/_Cftb_32G.js.br +0 -0
- package/dist/public/assets/{_CFmM_OT1.js → _CkW6jGdd.js} +1 -1
- package/dist/public/assets/_CkW6jGdd.js.br +0 -0
- package/dist/public/assets/{_Bv4Bd6iM.js → _Cn1nxA6B.js} +1 -1
- package/dist/public/assets/_Cn1nxA6B.js.br +0 -0
- package/dist/public/assets/{_BZkYY3K6.js → _CpVLHpUR.js} +1 -1
- package/dist/public/assets/_CpVLHpUR.js.br +0 -0
- package/dist/public/assets/{_DfyhPBNC.js → _CuMJuPze.js} +1 -1
- package/dist/public/assets/_CuMJuPze.js.br +0 -0
- package/dist/public/assets/{_BymS2Asd2.js → _CyN7N3kv2.js} +1 -1
- package/dist/public/assets/_CyN7N3kv2.js.br +0 -0
- package/dist/public/assets/{_CS052Ucq.js → _D-tRMW7L.js} +3 -3
- package/dist/public/assets/_D-tRMW7L.js.br +0 -0
- package/dist/public/assets/{_iOsRP2432.js → _D0cVwAKB2.js} +1 -1
- package/dist/public/assets/_D0cVwAKB2.js.br +0 -0
- package/dist/public/assets/{_4MFVuOce.js → _D4GRNDdk.js} +1 -1
- package/dist/public/assets/_D4GRNDdk.js.br +0 -0
- package/dist/public/assets/{_CuMN4b-0.js → _D4Ruk2t1.js} +1 -1
- package/dist/public/assets/_D4Ruk2t1.js.br +0 -0
- package/dist/public/assets/{_BcI1MQaj.js → _DIY6SG-c.js} +1 -1
- package/dist/public/assets/_DIY6SG-c.js.br +0 -0
- package/dist/public/assets/{_0U59zJUz.js → _DIzZtNeA.js} +1 -1
- package/dist/public/assets/_DIzZtNeA.js.br +0 -0
- package/dist/public/assets/{_BpH_GNWO.js → _DPWWL8iG.js} +1 -1
- package/dist/public/assets/_DPWWL8iG.js.br +0 -0
- package/dist/public/assets/{_CjVBlSfy2.js → _DUa466Zc2.js} +1 -1
- package/dist/public/assets/_DUa466Zc2.js.br +0 -0
- package/dist/public/assets/{_CKgWIiOt2.js → _DXtPR5OD2.js} +1 -1
- package/dist/public/assets/_DXtPR5OD2.js.br +0 -0
- package/dist/public/assets/{_B47M2_E2.js → _DYQZlcx5.js} +1 -1
- package/dist/public/assets/_DYQZlcx5.js.br +0 -0
- package/dist/public/assets/{_BHXSbGv5.js → _DYn7meV9.js} +1 -1
- package/dist/public/assets/{_rGCA2okb2.js → _DduCbyPD2.js} +1 -1
- package/dist/public/assets/{_BTvtbYr4.js → _DeC3yDfa.js} +1 -1
- package/dist/public/assets/_DeC3yDfa.js.br +0 -0
- package/dist/public/assets/{_axfy2ci4.js → _DiP47yCd.js} +1 -1
- package/dist/public/assets/_DiP47yCd.js.br +0 -0
- package/dist/public/assets/{_CMzV9b8B.js → _DjIlWG3G.js} +1 -1
- package/dist/public/assets/_DjIlWG3G.js.br +0 -0
- package/dist/public/assets/{__ji2OfDR2.js → _DpT3TmNe2.js} +1 -1
- package/dist/public/assets/_DpT3TmNe2.js.br +0 -0
- package/dist/public/assets/{_B5nVsEO7.js → _DxiFK03b.js} +1 -1
- package/dist/public/assets/_DxiFK03b.js.br +0 -0
- package/dist/public/assets/{_EKxr0Pk6.js → _K_vToD7J.js} +1 -1
- package/dist/public/assets/_K_vToD7J.js.br +0 -0
- package/dist/public/assets/{_BJ6xcj15.js → _RSqmIBPI.js} +1 -1
- package/dist/public/assets/_RSqmIBPI.js.br +0 -0
- package/dist/public/assets/{_BxNkF6Fm2.js → _S7EDCioe2.js} +1 -1
- package/dist/public/assets/_S7EDCioe2.js.br +0 -0
- package/dist/public/assets/{_CPiqUDDy.js → _Yg5QIDKH.js} +1 -1
- package/dist/public/assets/_Yg5QIDKH.js.br +0 -0
- package/dist/public/assets/{_DFwSVkTH2.js → __0ZQaoRv2.js} +1 -1
- package/dist/public/assets/__0ZQaoRv2.js.br +0 -0
- package/dist/public/assets/{_CSpkcUjh2.js → _a36kmn5a2.js} +1 -1
- package/dist/public/assets/_a36kmn5a2.js.br +0 -0
- package/dist/public/assets/{_Ccn42CEK.js → _c72G-AhS.js} +1 -1
- package/dist/public/assets/_c72G-AhS.js.br +0 -0
- package/dist/public/assets/{_DjyLCiwz.js → _hSi-MRAR.js} +1 -1
- package/dist/public/assets/_hSi-MRAR.js.br +0 -0
- package/dist/public/assets/{_5hwLq2GH.js → _oz8w0szM.js} +1 -1
- package/dist/public/assets/_oz8w0szM.js.br +0 -0
- package/dist/public/assets/{_Dvwf0Qjr2.js → _szY7Fg742.js} +1 -1
- package/dist/public/assets/_szY7Fg742.js.br +0 -0
- package/dist/public/assets/{app-page-C3FxPnzd.css → app-page-DLj_2NkQ.css} +1 -1
- package/dist/public/assets/app-page-DLj_2NkQ.css.br +0 -0
- package/dist/public/assets/diff-view-CHWYgViP.css +1 -0
- package/dist/public/assets/diff-view-CHWYgViP.css.br +0 -0
- package/dist/public/assets/new-C5KOEVYV.js +1 -0
- package/dist/public/assets/settings-C5KOEVYV.js +1 -0
- package/dist/public/assets/w-C5KOEVYV.js +1 -0
- package/dist/public/assets/w._-BQduMkt9.js +1 -0
- package/dist/public/assets/w._-C5KOEVYV.js +1 -0
- package/lib/setup/agents.json +8 -2
- package/lib/setup/doctor.mjs +14 -0
- package/package.json +1 -1
- package/dist/_Dj0ybKwE.js +0 -2
- package/dist/public/assets/_0U59zJUz.js.br +0 -0
- package/dist/public/assets/_4MFVuOce.js.br +0 -0
- package/dist/public/assets/_5hwLq2GH.js.br +0 -0
- package/dist/public/assets/_9th6P7LB.js.br +0 -0
- package/dist/public/assets/_B1PdYMXj.js.br +0 -0
- package/dist/public/assets/_B1l2to3W2.js.br +0 -0
- package/dist/public/assets/_B47M2_E2.js.br +0 -0
- package/dist/public/assets/_B5nVsEO7.js.br +0 -0
- package/dist/public/assets/_BCRUYzYR2.js.br +0 -0
- package/dist/public/assets/_BJ6xcj15.js.br +0 -0
- package/dist/public/assets/_BKVXSOII.js.br +0 -0
- package/dist/public/assets/_BO9TT4HF.js.br +0 -0
- package/dist/public/assets/_BTvtbYr4.js.br +0 -0
- package/dist/public/assets/_BZkYY3K6.js.br +0 -0
- package/dist/public/assets/_B__m0-au2.js.br +0 -0
- package/dist/public/assets/_BcI1MQaj.js.br +0 -0
- package/dist/public/assets/_BhH6Vf1I2.js.br +0 -0
- package/dist/public/assets/_BpH_GNWO.js.br +0 -0
- package/dist/public/assets/_BpvLawI8.js.br +0 -0
- package/dist/public/assets/_Btib1Grb.js.br +0 -0
- package/dist/public/assets/_Bv4Bd6iM.js.br +0 -0
- package/dist/public/assets/_BxNkF6Fm2.js.br +0 -0
- package/dist/public/assets/_Bxk7ict1.js.br +0 -0
- package/dist/public/assets/_By0uOG1b.js.br +0 -0
- package/dist/public/assets/_BymS2Asd2.js.br +0 -0
- package/dist/public/assets/_C0R7gKGB.js.br +0 -0
- package/dist/public/assets/_C4EHNcOe2.js.br +0 -0
- package/dist/public/assets/_C81Givkg2.js.br +0 -0
- package/dist/public/assets/_CFmM_OT1.js.br +0 -0
- package/dist/public/assets/_CKgWIiOt2.js.br +0 -0
- package/dist/public/assets/_CMzV9b8B.js.br +0 -0
- package/dist/public/assets/_CPiqUDDy.js.br +0 -0
- package/dist/public/assets/_CS052Ucq.js.br +0 -0
- package/dist/public/assets/_CSpkcUjh2.js.br +0 -0
- package/dist/public/assets/_CUvcmgdP.js.br +0 -0
- package/dist/public/assets/_C_aTh2522.js.br +0 -0
- package/dist/public/assets/_Ccn42CEK.js.br +0 -0
- package/dist/public/assets/_ChytUZvv2.js.br +0 -0
- package/dist/public/assets/_Cj7Uk97l2.js.br +0 -0
- package/dist/public/assets/_CjVBlSfy2.js.br +0 -0
- package/dist/public/assets/_CjVD9WF4.js.br +0 -0
- package/dist/public/assets/_CuMN4b-0.js.br +0 -0
- package/dist/public/assets/_CxZjewAb.js.br +0 -0
- package/dist/public/assets/_D-wSazJF.js.br +0 -0
- package/dist/public/assets/_D4bPDD54.js.br +0 -0
- package/dist/public/assets/_D7rMA7Ee.js.br +0 -0
- package/dist/public/assets/_D8Nb0E5n.js.br +0 -0
- package/dist/public/assets/_DC2u87q6.js.br +0 -0
- package/dist/public/assets/_DFwSVkTH2.js.br +0 -0
- package/dist/public/assets/_DKrfX_Lr.js.br +0 -0
- package/dist/public/assets/_DLS-FteL.js.br +0 -0
- package/dist/public/assets/_DVRuxWUw.js.br +0 -0
- package/dist/public/assets/_DezSJD4X.js.br +0 -0
- package/dist/public/assets/_DfanBg_-.js.br +0 -0
- package/dist/public/assets/_DfyhPBNC.js.br +0 -7
- package/dist/public/assets/_DgTwJOzV.js.br +0 -0
- package/dist/public/assets/_DjyLCiwz.js.br +0 -0
- package/dist/public/assets/_DnTnF7qV2.js.br +0 -0
- package/dist/public/assets/_DtVjXhGi.js.br +0 -0
- package/dist/public/assets/_Dvwf0Qjr2.js.br +0 -0
- package/dist/public/assets/_Dw686Grs.js.br +0 -0
- package/dist/public/assets/_EKxr0Pk6.js.br +0 -0
- package/dist/public/assets/_H2EMk3sR.js.br +0 -0
- package/dist/public/assets/__ji2OfDR2.js.br +0 -0
- package/dist/public/assets/_axfy2ci4.js.br +0 -0
- package/dist/public/assets/_gpwHwzTz.js.br +0 -0
- package/dist/public/assets/_iOsRP2432.js.br +0 -0
- package/dist/public/assets/_jNzrKWN72.js.br +0 -0
- package/dist/public/assets/_jl7SJGL42.js.br +0 -0
- package/dist/public/assets/_kFsV7DDO2.js.br +0 -0
- package/dist/public/assets/_mkz0gZxI.js.br +0 -0
- package/dist/public/assets/_oTAPJGK3.js.br +0 -0
- package/dist/public/assets/_rKTMTs__.js.br +0 -0
- package/dist/public/assets/app-page-C3FxPnzd.css.br +0 -0
- package/dist/public/assets/diff-view-D7ApUcje.css +0 -1
- package/dist/public/assets/diff-view-D7ApUcje.css.br +0 -0
- package/dist/public/assets/new-BFBAvSDQ.js +0 -1
- package/dist/public/assets/settings-BFBAvSDQ.js +0 -1
- package/dist/public/assets/w-BFBAvSDQ.js +0 -1
- package/dist/public/assets/w._-BFBAvSDQ.js +0 -1
- package/dist/public/assets/w._-BW-aNPpR.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./
|
|
3
|
-
import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
+
import { $ as _content_resume, A as setPrimaryHost, At as attrTag, B as $global, C as workspaceTab, Ct as _set_serialize_reason, D as parseRepoUrl, Dt as _trailers, E as icon_base_default, Et as _to_text, F as iconBtnXs, G as _attr_option_value, H as _attr_class, I as inputLg, J as _attr_style, K as _attr_or, L as metaTrunc, M as btnSm, Mt as writeScope, O as repoLabel, Ot as _try, P as iconBtnRow, Q as _content, R as phase, S as theme, St as _serialize_if, T as icon_xmark_default, Tt as _template, V as _attr, W as _attr_input_value, X as _attrs_partial, Y as _attrs, Z as _await, _t as _scope_reason, a as rankRepos, at as _existing_scope, b as setWorkspaceTab, bt as _sep, c as icon_refresh_default, ct as _hoist, d as sectionCount$1, dt as _id, et as _dynamic_tag, ft as _if, g as ignoredSsoOrgs, gt as _scope_id, ht as _resume_branch, it as _escape, j as btnLg, jt as withPageAssets, k as repoWebUrl$1, kt as _var, l as iconBtn$2, lt as _hoist_read_error, mt as _resume, n as findInput, nt as _el_read_error, o as icon_search_default, ot as _flush_head, pt as _peek_scope_id, q as _attr_select_value, r as icon_sidebar_default, rt as _el_resume, s as icon_back_default, st as _for_of, t as findIconBtn, u as row, ut as _html, vt as _scope_with_id, w as toast_default, wt as _subscribe, x as sideNavOpen, xt as _serialize_guard, y as setTheme, yt as _script, z as tone } from "./_CPHDAjDZ.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3694,15 +3694,15 @@ function applyInstance(inst) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
//#endregion
|
|
3696
3696
|
//#region src/tags/settings-page.css.ts
|
|
3697
|
-
var content$2 = "_ca
|
|
3698
|
-
var agentGrid = "_ce
|
|
3699
|
-
var toolGrid = "_co
|
|
3697
|
+
var content$2 = "_ca _bB _bC";
|
|
3698
|
+
var agentGrid = "_ce _bm";
|
|
3699
|
+
var toolGrid = "_co _bm";
|
|
3700
3700
|
//#endregion
|
|
3701
3701
|
//#region src/tags/page-head.marko
|
|
3702
3702
|
var page_head_default = _template("q", (input) => {
|
|
3703
3703
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
3704
3704
|
const $scope0_id = _scope_id();
|
|
3705
|
-
_html(`<header${_attr_class("
|
|
3705
|
+
_html(`<header${_attr_class("_bD")}>`);
|
|
3706
3706
|
_if(() => {
|
|
3707
3707
|
if (input.backHref) {
|
|
3708
3708
|
const $scope1_id = _scope_id();
|
|
@@ -3721,11 +3721,11 @@ var page_head_default = _template("q", (input) => {
|
|
|
3721
3721
|
return 1;
|
|
3722
3722
|
}
|
|
3723
3723
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
3724
|
-
_html(`<div${_attr_class("
|
|
3724
|
+
_html(`<div${_attr_class("_bF")}><h1${_attr("id", input.titleId)}${_attr_class("_bE")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3725
3725
|
_if(() => {
|
|
3726
3726
|
if (input.meta) {
|
|
3727
3727
|
const $scope3_id = _scope_id();
|
|
3728
|
-
_html(`<p${_attr_class("
|
|
3728
|
+
_html(`<p${_attr_class("_bG")}>`);
|
|
3729
3729
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3730
3730
|
_html("</p>");
|
|
3731
3731
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3736,7 +3736,7 @@ var page_head_default = _template("q", (input) => {
|
|
|
3736
3736
|
_if(() => {
|
|
3737
3737
|
if (input.actions) {
|
|
3738
3738
|
const $scope4_id = _scope_id();
|
|
3739
|
-
_html(`<div${_attr_class("
|
|
3739
|
+
_html(`<div${_attr_class("_bH")}>`);
|
|
3740
3740
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3741
3741
|
_html("</div>");
|
|
3742
3742
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3804,7 +3804,7 @@ var icon_agent_default = _template("F", (input) => {
|
|
|
3804
3804
|
n: $badge__closures
|
|
3805
3805
|
});
|
|
3806
3806
|
});
|
|
3807
|
-
var usageNote = "
|
|
3807
|
+
var usageNote = "_dY _S";
|
|
3808
3808
|
//#endregion
|
|
3809
3809
|
//#region src/tags/usage-meters.marko
|
|
3810
3810
|
function duration(ms) {
|
|
@@ -3828,11 +3828,11 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3828
3828
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
3829
3829
|
const $scope0_id = _scope_id();
|
|
3830
3830
|
const agent = input.agent;
|
|
3831
|
-
_html(`<div${_attr_class(["
|
|
3831
|
+
_html(`<div${_attr_class(["_dS", { ["_dT"]: input.hideName }])}><div${_attr_class("_dU")}>`);
|
|
3832
3832
|
_if(() => {
|
|
3833
3833
|
if (!input.hideName) {
|
|
3834
3834
|
const $scope1_id = _scope_id();
|
|
3835
|
-
_html(`<strong${_attr_class("
|
|
3835
|
+
_html(`<strong${_attr_class("_ec")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3836
3836
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3837
3837
|
return 0;
|
|
3838
3838
|
}
|
|
@@ -3840,7 +3840,7 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3840
3840
|
_if(() => {
|
|
3841
3841
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3842
3842
|
const $scope2_id = _scope_id();
|
|
3843
|
-
_html(`<span${_attr_class("
|
|
3843
|
+
_html(`<span${_attr_class("_dV")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3844
3844
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3845
3845
|
return 0;
|
|
3846
3846
|
}
|
|
@@ -3848,19 +3848,19 @@ var usage_meters_default = _template("C", (input) => {
|
|
|
3848
3848
|
_if(() => {
|
|
3849
3849
|
if (agent.stale_seconds != null) {
|
|
3850
3850
|
const $scope3_id = _scope_id();
|
|
3851
|
-
_html(`<span${_attr_class("
|
|
3851
|
+
_html(`<span${_attr_class("_dW")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>⚠ ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "b", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3852
3852
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3853
3853
|
return 0;
|
|
3854
3854
|
}
|
|
3855
3855
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3856
|
-
_html(`</div><div${_attr_class(["
|
|
3856
|
+
_html(`</div><div${_attr_class(["_dX", { ["_ed"]: agent.stale_seconds != null }])}>`);
|
|
3857
3857
|
_for_of(agent.windows || [], (win) => {
|
|
3858
3858
|
const $scope4_id = _scope_id();
|
|
3859
3859
|
const pct = pctText$1(win.used_percent);
|
|
3860
3860
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3861
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3862
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3863
|
-
_html(`<div${_attr_class("
|
|
3861
|
+
const fillClass = win.used_percent >= 90 ? "_d6" : win.used_percent >= 70 ? "_d5" : win.used_percent >= 40 ? "_d4" : "_d3";
|
|
3862
|
+
const pctClass = win.used_percent >= 90 ? "_ea" : win.used_percent >= 70 ? "_d_" : win.used_percent >= 40 ? "_d9" : "_d8";
|
|
3863
|
+
_html(`<div${_attr_class("_dZ")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_d0")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_d1")}><span${_attr_class(["_d2", 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(["_d7", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_eb")}>${label ? `↻ ${_escape(`${_to_text(label)}`)}` : ""}${_el_resume($scope4_id, "i", $sg__input_agent)}</span></div>${_el_resume($scope4_id, "a", $sg__input_agent)}`);
|
|
3864
3864
|
$si__input_agent && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
3865
3865
|
}, "window", $scope0_id, "g", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
3866
3866
|
_if(() => {
|
|
@@ -3922,10 +3922,10 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3922
3922
|
localCode = null;
|
|
3923
3923
|
}
|
|
3924
3924
|
}, "y0", $scope0_id);
|
|
3925
|
-
_html(`<div${_attr_class("
|
|
3925
|
+
_html(`<div${_attr_class("_dw")}><p${_attr_class("_dG")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope0_id, "c", $sg__input_items)}.</p><ul${_attr_class("_dx")}>`);
|
|
3926
3926
|
_for_of(input.items, (s) => {
|
|
3927
3927
|
const $scope1_id = _scope_id();
|
|
3928
|
-
_html(`<li${_attr_class("
|
|
3928
|
+
_html(`<li${_attr_class("_dy")}>${_escape(s.org)}${_el_resume($scope1_id, "b", $sg__input_items)}<button type=button${_attr_class("_dz")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3929
3929
|
icon_xmark_default({ size: 11 });
|
|
3930
3930
|
_html(`</button>${_el_resume($scope1_id, "c")}</li>`);
|
|
3931
3931
|
_script($scope1_id, "y1");
|
|
@@ -3934,17 +3934,17 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3934
3934
|
_: _scope_with_id($scope0_id)
|
|
3935
3935
|
});
|
|
3936
3936
|
}, "org", $scope0_id, "d", 1, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3937
|
-
_html(`<div${_attr_class("
|
|
3937
|
+
_html(`<div${_attr_class("_dA")}>`);
|
|
3938
3938
|
_if(() => {
|
|
3939
3939
|
if (busy && authCode$2) {
|
|
3940
3940
|
const $scope4_id = _scope_id();
|
|
3941
|
-
_html(`<span${_attr_class("
|
|
3941
|
+
_html(`<span${_attr_class("_dB")}><span${_attr_class("_F")}></span> Enter code <strong${_attr_class("_dC")}>${_escape(authCode$2)}${_el_resume($scope4_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_dD")}>${_escape(host)}${_el_resume($scope4_id, "f", _serialize_guard($scope0_reason, 2))}/login/device</a>${_el_resume($scope4_id, "e")}</span>`);
|
|
3942
3942
|
_script($scope4_id, "y2");
|
|
3943
3943
|
writeScope($scope4_id, {});
|
|
3944
3944
|
return 0;
|
|
3945
3945
|
} else if (busy) {
|
|
3946
3946
|
const $scope7_id = _scope_id();
|
|
3947
|
-
_html(`<span${_attr_class("
|
|
3947
|
+
_html(`<span${_attr_class("_dB")}><span${_attr_class("_F")}></span>Starting GitHub re-authorization…</span>`);
|
|
3948
3948
|
writeScope($scope7_id, {});
|
|
3949
3949
|
return 1;
|
|
3950
3950
|
} else {
|
|
@@ -3958,7 +3958,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3958
3958
|
_if(() => {
|
|
3959
3959
|
if (localError) {
|
|
3960
3960
|
const $scope5_id = _scope_id();
|
|
3961
|
-
_html(`<p${_attr_class("
|
|
3961
|
+
_html(`<p${_attr_class("_dG")}>${_escape(localError)}${_el_resume($scope5_id, "b")}</p>`);
|
|
3962
3962
|
writeScope($scope5_id, {});
|
|
3963
3963
|
return 0;
|
|
3964
3964
|
}
|
|
@@ -3966,7 +3966,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3966
3966
|
_if(() => {
|
|
3967
3967
|
if (skipped$1.length) {
|
|
3968
3968
|
const $scope2_id = _scope_id();
|
|
3969
|
-
_html(`<p${_attr_class("
|
|
3969
|
+
_html(`<p${_attr_class("_dE")}>Skipped `);
|
|
3970
3970
|
_for_of(skipped$1, (s, i) => {
|
|
3971
3971
|
const $scope3_id = _scope_id();
|
|
3972
3972
|
_if(() => {
|
|
@@ -3977,7 +3977,7 @@ var sso_auth_default = _template("y", (input) => {
|
|
|
3977
3977
|
return 0;
|
|
3978
3978
|
}
|
|
3979
3979
|
}, $scope3_id, "a", $sg__input_skipped, $sg__input_skipped, $sg__input_skipped);
|
|
3980
|
-
_html(`${_sep($sg__input_skipped)}${_escape(s.org)}${_el_resume($scope3_id, "b", $sg__input_skipped)}<button type=button${_attr_class("
|
|
3980
|
+
_html(`${_sep($sg__input_skipped)}${_escape(s.org)}${_el_resume($scope3_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_dF")}${_attr("title", `Show ${s.org} again`)}> undo</button>${_el_resume($scope3_id, "c")}`);
|
|
3981
3981
|
_script($scope3_id, "y4");
|
|
3982
3982
|
writeScope($scope3_id, {
|
|
3983
3983
|
f: s?.org,
|
|
@@ -4129,7 +4129,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4129
4129
|
const $childScope = _peek_scope_id();
|
|
4130
4130
|
modal_view_default({
|
|
4131
4131
|
label: input.label,
|
|
4132
|
-
class: "
|
|
4132
|
+
class: "_c8",
|
|
4133
4133
|
open: input.open,
|
|
4134
4134
|
openChange: input.openChange,
|
|
4135
4135
|
"aria-labelledby": titleId,
|
|
@@ -4152,7 +4152,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
4152
4152
|
content: _content("r6", () => {
|
|
4153
4153
|
_scope_reason();
|
|
4154
4154
|
const $scope2_id = _scope_id();
|
|
4155
|
-
_html(`<h2${_attr_class("
|
|
4155
|
+
_html(`<h2${_attr_class("_c9")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
4156
4156
|
value = _new_value;
|
|
4157
4157
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4158
4158
|
_script($scope2_id, "r4");
|
|
@@ -4462,7 +4462,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4462
4462
|
const appearanceId = _id();
|
|
4463
4463
|
const githubId = _id();
|
|
4464
4464
|
const machineId = _id();
|
|
4465
|
-
_html(`<div${_attr_class("
|
|
4465
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$2)}>`);
|
|
4466
4466
|
_set_serialize_reason({
|
|
4467
4467
|
0: _serialize_guard($scope0_reason, 4),
|
|
4468
4468
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4569,7 +4569,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4569
4569
|
return 0;
|
|
4570
4570
|
}
|
|
4571
4571
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4572
|
-
_html(`<section${_attr_class("
|
|
4572
|
+
_html(`<section${_attr_class("_bj")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bk")}><h2${_attr("id", agentsId)}${_attr_class("_by")}>Agents</h2><div${_attr_class("_y")}></div><label${_attr_class("_cg")}><span${_attr_class("_S")}>Default</span><span${_attr_class("_m")}>`);
|
|
4573
4573
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4574
4574
|
setPreferred(v);
|
|
4575
4575
|
}, "u1", $scope0_id), () => {
|
|
@@ -4594,14 +4594,14 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4594
4594
|
const rows = lone ? [] : a.instances;
|
|
4595
4595
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4596
4596
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4597
|
-
_html(`<li${_attr_class(["
|
|
4597
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}><div${_attr_class(["_ci", { ["_cl"]: lone && !lone.enabled }])}>`);
|
|
4598
4598
|
_set_serialize_reason(12);
|
|
4599
4599
|
const $childScope4 = _peek_scope_id();
|
|
4600
4600
|
icon_agent_default({
|
|
4601
4601
|
agent: a.id,
|
|
4602
4602
|
size: 18
|
|
4603
4603
|
});
|
|
4604
|
-
_html(`<div${_attr_class("
|
|
4604
|
+
_html(`<div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class("_bq")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4605
4605
|
_if(() => {
|
|
4606
4606
|
if (lone && input.preferred === lone.id) {
|
|
4607
4607
|
const $scope55_id = _scope_id();
|
|
@@ -4619,7 +4619,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4619
4619
|
return 0;
|
|
4620
4620
|
} else if (!a.installed) {
|
|
4621
4621
|
const $scope56_id = _scope_id();
|
|
4622
|
-
_html(`<span${_attr_class("
|
|
4622
|
+
_html(`<span${_attr_class("_bs")}>Not installed</span>`);
|
|
4623
4623
|
writeScope($scope56_id, {});
|
|
4624
4624
|
return 1;
|
|
4625
4625
|
}
|
|
@@ -4737,7 +4737,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4737
4737
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4738
4738
|
_for_of(otherUsage, (u) => {
|
|
4739
4739
|
const $scope61_id = _scope_id();
|
|
4740
|
-
_html(`<li${_attr_class(["
|
|
4740
|
+
_html(`<li${_attr_class(["_bo", "_cf"])}>`);
|
|
4741
4741
|
_set_serialize_reason(6);
|
|
4742
4742
|
const $childScope9 = _peek_scope_id();
|
|
4743
4743
|
usage_meters_default({ agent: u });
|
|
@@ -4748,17 +4748,17 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4748
4748
|
_if(() => {
|
|
4749
4749
|
if (!usage && families.length) {
|
|
4750
4750
|
const $scope62_id = _scope_id();
|
|
4751
|
-
_html(`<p${_attr_class("
|
|
4751
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading usage…</p>`);
|
|
4752
4752
|
writeScope($scope62_id, {});
|
|
4753
4753
|
return 0;
|
|
4754
4754
|
} else if (usage?.error) {
|
|
4755
4755
|
const $scope7_id = _scope_id();
|
|
4756
|
-
_html(`<p${_attr_class("
|
|
4756
|
+
_html(`<p${_attr_class("_bu")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4757
4757
|
writeScope($scope7_id, {});
|
|
4758
4758
|
return 1;
|
|
4759
4759
|
}
|
|
4760
4760
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4761
|
-
_html(`</section><section${_attr_class("
|
|
4761
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bk")}><h2${_attr("id", githubId)}${_attr_class("_by")}>GitHub</h2></div><ul${_attr_class("_bm")}>`);
|
|
4762
4762
|
_for_of(setup?.github || [], (h) => {
|
|
4763
4763
|
const $scope12_id = _scope_id();
|
|
4764
4764
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4772,7 +4772,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4772
4772
|
const skippedSso = (() => {
|
|
4773
4773
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4774
4774
|
})();
|
|
4775
|
-
_html(`<li${_attr_class(["
|
|
4775
|
+
_html(`<li${_attr_class(["_bo", "_cx"])}><div${_attr_class("_cy")}><div${_attr_class("_bp")}><span${_attr_class("_br")}><span${_attr_class(["_bq", "_x"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4776
4776
|
_if(() => {
|
|
4777
4777
|
if (h.isEnterprise) {
|
|
4778
4778
|
const $scope65_id = _scope_id();
|
|
@@ -4795,12 +4795,12 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4795
4795
|
return 1;
|
|
4796
4796
|
} else if (h.authed) {
|
|
4797
4797
|
const $scope63_id = _scope_id();
|
|
4798
|
-
_html(`<span${_attr_class("
|
|
4798
|
+
_html(`<span${_attr_class("_bs")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4799
4799
|
writeScope($scope63_id, {});
|
|
4800
4800
|
return 2;
|
|
4801
4801
|
} else {
|
|
4802
4802
|
const $scope64_id = _scope_id();
|
|
4803
|
-
_html(`<span${_attr_class("
|
|
4803
|
+
_html(`<span${_attr_class("_bs")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4804
4804
|
writeScope($scope64_id, {});
|
|
4805
4805
|
return 3;
|
|
4806
4806
|
}
|
|
@@ -4831,7 +4831,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4831
4831
|
if (h.isEnterprise) {
|
|
4832
4832
|
const $scope27_id = _scope_id();
|
|
4833
4833
|
_html(`<button${_attr_class([
|
|
4834
|
-
"
|
|
4834
|
+
"_bt",
|
|
4835
4835
|
"_2",
|
|
4836
4836
|
"_3",
|
|
4837
4837
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -4907,7 +4907,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4907
4907
|
_if(() => {
|
|
4908
4908
|
if (setup && !setup.github.length) {
|
|
4909
4909
|
const $scope68_id = _scope_id();
|
|
4910
|
-
_html(`<p${_attr_class("
|
|
4910
|
+
_html(`<p${_attr_class("_bu")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4911
4911
|
writeScope($scope68_id, {});
|
|
4912
4912
|
return 0;
|
|
4913
4913
|
}
|
|
@@ -4928,7 +4928,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4928
4928
|
return 0;
|
|
4929
4929
|
}
|
|
4930
4930
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4931
|
-
_html(`</section><section${_attr_class("
|
|
4931
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bk")}><h2${_attr("id", machineId)}${_attr_class("_by")}>Machine</h2>`);
|
|
4932
4932
|
_if(() => {
|
|
4933
4933
|
if (missingCount) {
|
|
4934
4934
|
const $scope49_id = _scope_id();
|
|
@@ -4968,7 +4968,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
4968
4968
|
_if(() => {
|
|
4969
4969
|
if (setup && !setup.mise.installed) {
|
|
4970
4970
|
const $scope17_id = _scope_id();
|
|
4971
|
-
_html(`<p${_attr_class("
|
|
4971
|
+
_html(`<p${_attr_class("_bu")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
4972
4972
|
_script($scope17_id, "u45");
|
|
4973
4973
|
writeScope($scope17_id, {});
|
|
4974
4974
|
return 0;
|
|
@@ -5164,7 +5164,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5164
5164
|
_html(`<ul${_attr_class([toolGrid, "_ct"])}>`);
|
|
5165
5165
|
_for_of(hits, (h) => {
|
|
5166
5166
|
const $scope22_id = _scope_id();
|
|
5167
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5167
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bp")}><span${_attr_class(["_cq", "_x"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5168
5168
|
_if(() => {
|
|
5169
5169
|
if (active.has(h.name)) {
|
|
5170
5170
|
const $scope23_id = _scope_id();
|
|
@@ -5173,7 +5173,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5173
5173
|
return 0;
|
|
5174
5174
|
} else if (h.description) {
|
|
5175
5175
|
const $scope79_id = _scope_id();
|
|
5176
|
-
_html(`<span${_attr_class("
|
|
5176
|
+
_html(`<span${_attr_class("_bs")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5177
5177
|
writeScope($scope79_id, {});
|
|
5178
5178
|
return 1;
|
|
5179
5179
|
}
|
|
@@ -5212,7 +5212,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5212
5212
|
return 0;
|
|
5213
5213
|
} else if (hits && !searching) {
|
|
5214
5214
|
const $scope36_id = _scope_id();
|
|
5215
|
-
_html(`<p${_attr_class("
|
|
5215
|
+
_html(`<p${_attr_class("_bu")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5216
5216
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5217
5217
|
return 1;
|
|
5218
5218
|
}
|
|
@@ -5223,7 +5223,7 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5223
5223
|
return 0;
|
|
5224
5224
|
}
|
|
5225
5225
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5226
|
-
_html(`</section><section${_attr_class("
|
|
5226
|
+
_html(`</section><section${_attr_class("_bj")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bk")}><h2${_attr("id", appearanceId)}${_attr_class("_by")}>Appearance</h2></div><div${_attr_class(["_bo", "_cz"])}><label${_attr_class("_cA")}><span${_attr_class("_cB")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5227
5227
|
setInstance({ name: v });
|
|
5228
5228
|
}, "u3", $scope0_id))}${_attr_class(["_U", "_cC"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_S", "_cD"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cA")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cB")}>Theme</span><span${_attr_class("_cE")}>`);
|
|
5229
5229
|
_for_of([
|
|
@@ -5383,13 +5383,13 @@ var settings_page_default = _template("u", (input) => {
|
|
|
5383
5383
|
});
|
|
5384
5384
|
//#endregion
|
|
5385
5385
|
//#region src/tags/new-workspace.css.ts
|
|
5386
|
-
var content$1 = "_bI
|
|
5387
|
-
var section$1 = "_bM
|
|
5386
|
+
var content$1 = "_bI _bB";
|
|
5387
|
+
var section$1 = "_bM _bj";
|
|
5388
5388
|
var curBase = "_bR _T _S";
|
|
5389
|
-
var archived = "_bW
|
|
5389
|
+
var archived = "_bW _bj";
|
|
5390
5390
|
var archivedHint = "_bX _S";
|
|
5391
|
-
var archivedCard = "_bY
|
|
5392
|
-
var resultBranch = "
|
|
5391
|
+
var archivedCard = "_bY _bo";
|
|
5392
|
+
var resultBranch = "_cZ _Z _j";
|
|
5393
5393
|
//#endregion
|
|
5394
5394
|
//#region src/tags/branch-pick.marko
|
|
5395
5395
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5400,11 +5400,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5400
5400
|
let branches = null;
|
|
5401
5401
|
let defaultBranch = null;
|
|
5402
5402
|
let branchFilter = "";
|
|
5403
|
-
_html(`<div${_attr_class("
|
|
5403
|
+
_html(`<div${_attr_class("_c1")}>`);
|
|
5404
5404
|
_if(() => {
|
|
5405
5405
|
{
|
|
5406
5406
|
const $scope4_id = _scope_id();
|
|
5407
|
-
_html(`<p${_attr_class("
|
|
5407
|
+
_html(`<p${_attr_class("_bu")}><span${_attr_class("_F")}></span> Loading branches…</p>`);
|
|
5408
5408
|
writeScope($scope4_id, {});
|
|
5409
5409
|
return 0;
|
|
5410
5410
|
}
|
|
@@ -5480,11 +5480,11 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5480
5480
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5481
5481
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5482
5482
|
})();
|
|
5483
|
-
_html(`<div${_attr_class("
|
|
5483
|
+
_html(`<div${_attr_class("_cS")}>`);
|
|
5484
5484
|
_if(() => {
|
|
5485
5485
|
if (ssoPending.length) {
|
|
5486
5486
|
const $scope7_id = _scope_id();
|
|
5487
|
-
_html(`<div${_attr_class("
|
|
5487
|
+
_html(`<div${_attr_class("_cT")}>`);
|
|
5488
5488
|
_set_serialize_reason(12);
|
|
5489
5489
|
const $childScope = _peek_scope_id();
|
|
5490
5490
|
sso_auth_default({
|
|
@@ -5514,22 +5514,22 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5514
5514
|
_if(() => {
|
|
5515
5515
|
if (pasted) {
|
|
5516
5516
|
const $scope1_id = _scope_id();
|
|
5517
|
-
_html(`<ul${_attr_class("
|
|
5517
|
+
_html(`<ul${_attr_class("_cU")}><li><div${_attr_class(["_cW", "_cV"])}><button${_attr_class("_cX")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5518
5518
|
icon_plus_default({
|
|
5519
5519
|
size: 12,
|
|
5520
|
-
class: "
|
|
5520
|
+
class: "_c3"
|
|
5521
5521
|
});
|
|
5522
|
-
_html(`<span${_attr_class("
|
|
5522
|
+
_html(`<span${_attr_class("_c4")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5523
5523
|
_if(() => {
|
|
5524
5524
|
if (pastedForkable) {
|
|
5525
5525
|
const $scope8_id = _scope_id();
|
|
5526
|
-
_html(`<button${_attr_class(["
|
|
5526
|
+
_html(`<button${_attr_class(["_c0", { ["_cY"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>${pasteWillFork ? "✓ fork" : "Fork"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
5527
5527
|
_script($scope8_id, "s13");
|
|
5528
5528
|
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope8_id, { Cao: 1 })));
|
|
5529
5529
|
return 0;
|
|
5530
5530
|
}
|
|
5531
5531
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5532
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5532
|
+
_html(`<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>⎇</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5533
5533
|
_if(() => {
|
|
5534
5534
|
if (branchesFor === pasted) {
|
|
5535
5535
|
const $scope2_id = _scope_id();
|
|
@@ -5554,7 +5554,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5554
5554
|
return 0;
|
|
5555
5555
|
} else if (filter && !catalog) {
|
|
5556
5556
|
const $scope9_id = _scope_id();
|
|
5557
|
-
_html(`<p${_attr_class("
|
|
5557
|
+
_html(`<p${_attr_class("_bu")}>Loading repos…</p>`);
|
|
5558
5558
|
writeScope($scope9_id, {});
|
|
5559
5559
|
return 1;
|
|
5560
5560
|
}
|
|
@@ -5562,15 +5562,15 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5562
5562
|
_if(() => {
|
|
5563
5563
|
if (results.length) {
|
|
5564
5564
|
const $scope3_id = _scope_id();
|
|
5565
|
-
_html(`<ul${_attr_class("
|
|
5565
|
+
_html(`<ul${_attr_class("_cU")}>`);
|
|
5566
5566
|
_for_of(results, (repo, i) => {
|
|
5567
5567
|
const $scope4_id = _scope_id();
|
|
5568
|
-
_html(`<li><div${_attr_class(["
|
|
5568
|
+
_html(`<li><div${_attr_class(["_cW", { ["_cV"]: i === highlight }])}><button${_attr_class("_cX")}>`);
|
|
5569
5569
|
icon_plus_default({
|
|
5570
5570
|
size: 12,
|
|
5571
|
-
class: "
|
|
5571
|
+
class: "_c3"
|
|
5572
5572
|
});
|
|
5573
|
-
_html(`<span${_attr_class("
|
|
5573
|
+
_html(`<span${_attr_class("_c4")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cY"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5574
5574
|
_if(() => {
|
|
5575
5575
|
if (branchesFor === repo.nameWithOwner) {
|
|
5576
5576
|
const $scope5_id = _scope_id();
|
|
@@ -5603,7 +5603,7 @@ var repo_picker_default = _template("s", (input) => {
|
|
|
5603
5603
|
return 0;
|
|
5604
5604
|
} else if (filter && catalog && !pasted) {
|
|
5605
5605
|
const $scope6_id = _scope_id();
|
|
5606
|
-
_html(`<p${_attr_class("
|
|
5606
|
+
_html(`<p${_attr_class("_bu")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5607
5607
|
writeScope($scope6_id, {});
|
|
5608
5608
|
return 1;
|
|
5609
5609
|
}
|
|
@@ -5744,7 +5744,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
}, "p6", $scope0_id);
|
|
5746
5746
|
const titleId = _id();
|
|
5747
|
-
_html(`<div${_attr_class("
|
|
5747
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content$1)}>`);
|
|
5748
5748
|
_set_serialize_reason({
|
|
5749
5749
|
0: _serialize_guard($scope0_reason, 2),
|
|
5750
5750
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5783,9 +5783,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5783
5783
|
return 0;
|
|
5784
5784
|
}
|
|
5785
5785
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5786
|
-
_html(`<label${_attr_class("_bL")}><span${_attr_class("
|
|
5786
|
+
_html(`<label${_attr_class("_bL")}><span${_attr_class("_by")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5787
5787
|
name = _new_name;
|
|
5788
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5788
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5789
5789
|
_set_serialize_reason(1);
|
|
5790
5790
|
const $childScope2 = _peek_scope_id();
|
|
5791
5791
|
icon_refresh_default({
|
|
@@ -5842,7 +5842,7 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5842
5842
|
_if(() => {
|
|
5843
5843
|
if (!selected.length) {
|
|
5844
5844
|
const $scope12_id = _scope_id();
|
|
5845
|
-
_html(`<li${_attr_class("
|
|
5845
|
+
_html(`<li${_attr_class("_bu")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5846
5846
|
writeScope($scope12_id, {});
|
|
5847
5847
|
return 0;
|
|
5848
5848
|
}
|
|
@@ -5909,10 +5909,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
5909
5909
|
_if(() => {
|
|
5910
5910
|
if (archived$1.length) {
|
|
5911
5911
|
const $scope4_id = _scope_id();
|
|
5912
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("
|
|
5912
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bN")}><h2${_attr_class("_by")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bm")}>`);
|
|
5913
5913
|
_for_of(archived$1, (ws) => {
|
|
5914
5914
|
const $scope5_id = _scope_id();
|
|
5915
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5915
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bp")}><span${_attr_class("_bq")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_x"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5916
5916
|
_if(() => {
|
|
5917
5917
|
if (restoring === ws.id) {
|
|
5918
5918
|
const $scope15_id = _scope_id();
|
|
@@ -6069,8 +6069,8 @@ function activeAgent(session) {
|
|
|
6069
6069
|
const command = session.state?.command?.trim();
|
|
6070
6070
|
return command && agentFromCommand(command) || session.agent;
|
|
6071
6071
|
}
|
|
6072
|
-
var iconBtn$1 = "
|
|
6073
|
-
var navToggle = "
|
|
6072
|
+
var iconBtn$1 = "_da _j";
|
|
6073
|
+
var navToggle = "_df _j";
|
|
6074
6074
|
_template("I", (input) => {
|
|
6075
6075
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6076
6076
|
const $scope0_id = _scope_id();
|
|
@@ -6113,12 +6113,12 @@ var ARM_MS = 3500;
|
|
|
6113
6113
|
function disarmLater(fn) {
|
|
6114
6114
|
return setTimeout(fn, ARM_MS);
|
|
6115
6115
|
}
|
|
6116
|
-
var railBtn = "
|
|
6117
|
-
var rowIcon = "
|
|
6118
|
-
var close = "
|
|
6116
|
+
var railBtn = "_gS _j";
|
|
6117
|
+
var rowIcon = "_g1 _Z _j";
|
|
6118
|
+
var close = "_g2 _Z _j _2";
|
|
6119
6119
|
//#endregion
|
|
6120
6120
|
//#region src/styles/session-pop.css.ts
|
|
6121
|
-
var sessionPop = "
|
|
6121
|
+
var sessionPop = "_gj _4";
|
|
6122
6122
|
//#endregion
|
|
6123
6123
|
//#region src/client/usage.ts
|
|
6124
6124
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6194,7 +6194,7 @@ var usage_pcts_default = _template("D", (input) => {
|
|
|
6194
6194
|
return 0;
|
|
6195
6195
|
}
|
|
6196
6196
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6197
|
-
_html(`<span${_attr_class("_fr")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fs", win$1.used_percent >= 90 ? "
|
|
6197
|
+
_html(`<span${_attr_class("_fr")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_fs", win$1.used_percent >= 90 ? "_ea" : win$1.used_percent >= 70 ? "_d_" : win$1.used_percent >= 40 ? "_d9" : "_d8"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6198
6198
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6199
6199
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6200
6200
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6428,10 +6428,10 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6428
6428
|
_if(() => {
|
|
6429
6429
|
if (input.rail) {
|
|
6430
6430
|
const $scope2_id = _scope_id();
|
|
6431
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6431
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gQ"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
6432
6432
|
"_z",
|
|
6433
6433
|
phase[dot],
|
|
6434
|
-
"
|
|
6434
|
+
"_gT"
|
|
6435
6435
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6436
6436
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
6437
6437
|
return 0;
|
|
@@ -6439,15 +6439,15 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6439
6439
|
const $scope3_id = _scope_id();
|
|
6440
6440
|
const sessions$1 = input.sessions || [];
|
|
6441
6441
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6442
|
-
_html(`<section${_attr_class(["
|
|
6443
|
-
["
|
|
6442
|
+
_html(`<section${_attr_class(["_gV", {
|
|
6443
|
+
["_gQ"]: input.current,
|
|
6444
6444
|
["_5"]: input.current,
|
|
6445
|
-
["
|
|
6446
|
-
["
|
|
6447
|
-
}])}><div${_attr_class("
|
|
6445
|
+
["_gW"]: input.railPop,
|
|
6446
|
+
["_gU"]: input.page
|
|
6447
|
+
}])}><div${_attr_class("_gX")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gY")}><span${_attr_class([
|
|
6448
6448
|
"_z",
|
|
6449
6449
|
phase[dot],
|
|
6450
|
-
"
|
|
6450
|
+
"_ha"
|
|
6451
6451
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6452
6452
|
_if(() => {
|
|
6453
6453
|
if (sessions$1.length === 1) {
|
|
@@ -6460,7 +6460,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6460
6460
|
icon_agent_default({
|
|
6461
6461
|
agent: activeAgent(sessions$1[0]),
|
|
6462
6462
|
size: 12,
|
|
6463
|
-
class: "
|
|
6463
|
+
class: "_g3"
|
|
6464
6464
|
});
|
|
6465
6465
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6466
6466
|
_: _scope_with_id($scope3_id),
|
|
@@ -6470,16 +6470,16 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6470
6470
|
}
|
|
6471
6471
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6472
6472
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6473
|
-
_html(`<span${_attr_class("
|
|
6473
|
+
_html(`<span${_attr_class("_g4")}><span${_attr_class("_g5")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6474
6474
|
_if(() => {
|
|
6475
6475
|
if (input.page && metaText) {
|
|
6476
6476
|
const $scope16_id = _scope_id();
|
|
6477
|
-
_html(`<span${_attr_class("
|
|
6477
|
+
_html(`<span${_attr_class("_g9")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6478
6478
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
6479
6479
|
return 0;
|
|
6480
6480
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6481
6481
|
const $scope15_id = _scope_id();
|
|
6482
|
-
_html(`<span${_attr_class("
|
|
6482
|
+
_html(`<span${_attr_class("_g6")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6483
6483
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6484
6484
|
return 1;
|
|
6485
6485
|
}
|
|
@@ -6492,7 +6492,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6492
6492
|
"_I",
|
|
6493
6493
|
"_R",
|
|
6494
6494
|
"_K",
|
|
6495
|
-
"
|
|
6495
|
+
"_g_"
|
|
6496
6496
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6497
6497
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
6498
6498
|
_: _scope_with_id($scope3_id),
|
|
@@ -6505,7 +6505,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6505
6505
|
_if(() => {
|
|
6506
6506
|
if (!input.page) {
|
|
6507
6507
|
const $scope5_id = _scope_id();
|
|
6508
|
-
_html(`<div${_attr_class("
|
|
6508
|
+
_html(`<div${_attr_class("_gZ")}>`);
|
|
6509
6509
|
_if(() => {
|
|
6510
6510
|
if (input.onNewSession) {
|
|
6511
6511
|
const $scope6_id = _scope_id();
|
|
@@ -6519,7 +6519,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6519
6519
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6520
6520
|
_for_of([], (agent) => {
|
|
6521
6521
|
const $scope7_id = _scope_id();
|
|
6522
|
-
_html(`<button${_attr_class("
|
|
6522
|
+
_html(`<button${_attr_class("_gk")}>`);
|
|
6523
6523
|
_set_serialize_reason(12);
|
|
6524
6524
|
const $childScope2 = _peek_scope_id();
|
|
6525
6525
|
icon_agent_default({
|
|
@@ -6554,7 +6554,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6554
6554
|
return 0;
|
|
6555
6555
|
}
|
|
6556
6556
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6557
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6557
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gR"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6558
6558
|
icon_manage_default({ size: 12 });
|
|
6559
6559
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6560
6560
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -6564,7 +6564,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6564
6564
|
return 0;
|
|
6565
6565
|
}
|
|
6566
6566
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6567
|
-
_html(`</div><div${_attr_class("
|
|
6567
|
+
_html(`</div><div${_attr_class("_hf")}>`);
|
|
6568
6568
|
_if(() => {
|
|
6569
6569
|
if (sessions$1.length === 1 && openPlan) {
|
|
6570
6570
|
const $scope11_id = _scope_id();
|
|
@@ -6572,7 +6572,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6572
6572
|
const $childScope3 = _peek_scope_id();
|
|
6573
6573
|
usage_pcts_default({
|
|
6574
6574
|
agent: openPlan,
|
|
6575
|
-
class: "
|
|
6575
|
+
class: "_g7"
|
|
6576
6576
|
});
|
|
6577
6577
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6578
6578
|
a: _existing_scope($childScope3),
|
|
@@ -6583,14 +6583,14 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6583
6583
|
}, $scope3_id, "m");
|
|
6584
6584
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6585
6585
|
const $scope8_id = _scope_id();
|
|
6586
|
-
_html(`<div${_attr_class(["
|
|
6586
|
+
_html(`<div${_attr_class(["_g0", { ["_gQ"]: s.id === input.currentTab }])}>`);
|
|
6587
6587
|
_if(() => {
|
|
6588
6588
|
if (renamingId === s.id) {
|
|
6589
6589
|
const $scope10_id = _scope_id();
|
|
6590
6590
|
_html(`<span${_attr_class([
|
|
6591
6591
|
"_z",
|
|
6592
6592
|
phase[sessionPhase(s.state)],
|
|
6593
|
-
"
|
|
6593
|
+
"_hd"
|
|
6594
6594
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6595
6595
|
_set_serialize_reason({
|
|
6596
6596
|
1: $sg__input_sessions,
|
|
@@ -6600,17 +6600,17 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6600
6600
|
icon_agent_default({
|
|
6601
6601
|
agent: activeAgent(s),
|
|
6602
6602
|
size: 13,
|
|
6603
|
-
class: "
|
|
6603
|
+
class: "_hh"
|
|
6604
6604
|
});
|
|
6605
6605
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6606
6606
|
renameValue = _new_renameValue;
|
|
6607
|
-
}, "w0", $scope10_id))}${_attr_class(["_U", "
|
|
6607
|
+
}, "w0", $scope10_id))}${_attr_class(["_U", "_he"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6608
6608
|
_script($scope10_id, "w5");
|
|
6609
6609
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6610
6610
|
return 0;
|
|
6611
6611
|
} else {
|
|
6612
6612
|
const $scope9_id = _scope_id();
|
|
6613
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6613
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_hg")}><span${_attr_class(["_z", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6614
6614
|
_set_serialize_reason({
|
|
6615
6615
|
1: $sg__input_sessions,
|
|
6616
6616
|
2: $sg__input_sessions
|
|
@@ -6619,9 +6619,9 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6619
6619
|
icon_agent_default({
|
|
6620
6620
|
agent: activeAgent(s),
|
|
6621
6621
|
size: 13,
|
|
6622
|
-
class: "
|
|
6622
|
+
class: "_hh"
|
|
6623
6623
|
});
|
|
6624
|
-
_html(`<span${_attr_class("
|
|
6624
|
+
_html(`<span${_attr_class("_hb")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_hc")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6625
6625
|
icon_edit_default({ size: 12 });
|
|
6626
6626
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6627
6627
|
icon_xmark_default({ size: 12 });
|
|
@@ -6633,7 +6633,7 @@ var side_nav_item_default = _template("w", (input) => {
|
|
|
6633
6633
|
const $childScope6 = _peek_scope_id();
|
|
6634
6634
|
usage_pcts_default({
|
|
6635
6635
|
agent: openPlan,
|
|
6636
|
-
class: "
|
|
6636
|
+
class: "_g8"
|
|
6637
6637
|
});
|
|
6638
6638
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6639
6639
|
a: _existing_scope($childScope6),
|
|
@@ -6836,34 +6836,34 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6836
6836
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6837
6837
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6838
6838
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6839
|
-
_html(`<aside${_attr_class(["
|
|
6840
|
-
["
|
|
6841
|
-
["
|
|
6839
|
+
_html(`<aside${_attr_class(["_de", {
|
|
6840
|
+
["_dc"]: !navOpen,
|
|
6841
|
+
["_dd"]: isPage
|
|
6842
6842
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6843
6843
|
_if(() => {
|
|
6844
6844
|
if (isPage) {
|
|
6845
6845
|
const $scope1_id = _scope_id();
|
|
6846
|
-
_html(`<header${_attr_class("
|
|
6846
|
+
_html(`<header${_attr_class("_dh")}><div${_attr_class("_dq")}>`);
|
|
6847
6847
|
_if(() => {
|
|
6848
6848
|
if (input.instanceName) {
|
|
6849
6849
|
const $scope2_id = _scope_id();
|
|
6850
|
-
_html(`<div${_attr_class("
|
|
6850
|
+
_html(`<div${_attr_class("_dn")} title="This work server (Settings → Appearance)"><img${_attr_class("_do")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dp")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6851
6851
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6852
6852
|
return 0;
|
|
6853
6853
|
}
|
|
6854
6854
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6855
|
-
_html(`<h1${_attr_class("
|
|
6855
|
+
_html(`<h1${_attr_class("_di")}>Workspaces</h1></div><div${_attr_class("_dj")}>`);
|
|
6856
6856
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6857
6857
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6858
6858
|
iconBtn$1,
|
|
6859
|
-
"
|
|
6860
|
-
{ ["
|
|
6859
|
+
"_dk",
|
|
6860
|
+
{ ["_c_"]: view === "settings" }
|
|
6861
6861
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6862
6862
|
icon_settings_default({ size: 16 });
|
|
6863
6863
|
_if(() => {
|
|
6864
6864
|
if (input.setupReady === false) {
|
|
6865
6865
|
const $scope12_id = _scope_id();
|
|
6866
|
-
_html(`<span${_attr_class(["_z", "
|
|
6866
|
+
_html(`<span${_attr_class(["_z", "_db"])} title="Machine setup incomplete"></span>`);
|
|
6867
6867
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6868
6868
|
return 0;
|
|
6869
6869
|
}
|
|
@@ -6876,18 +6876,18 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6876
6876
|
_if(() => {
|
|
6877
6877
|
if (!isPage && input.instanceName) {
|
|
6878
6878
|
const $scope3_id = _scope_id();
|
|
6879
|
-
_html(`<div${_attr_class("
|
|
6879
|
+
_html(`<div${_attr_class("_dn")} title="This work server (Settings → Appearance)"><img${_attr_class("_do")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dp")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6880
6880
|
writeScope($scope3_id, {});
|
|
6881
6881
|
return 0;
|
|
6882
6882
|
}
|
|
6883
6883
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
6884
|
-
_html(`<div${_attr_class("
|
|
6884
|
+
_html(`<div${_attr_class("_dr")}>`);
|
|
6885
6885
|
_for_of(listIds, (wsId) => {
|
|
6886
6886
|
const $scope4_id = _scope_id();
|
|
6887
6887
|
_if(() => {
|
|
6888
6888
|
if (isPage && wsId === ws.id) {
|
|
6889
6889
|
const $scope13_id = _scope_id();
|
|
6890
|
-
_html(`<h2${_attr_class(["
|
|
6890
|
+
_html(`<h2${_attr_class(["_by", "_dl"])}>Current</h2>`);
|
|
6891
6891
|
writeScope($scope13_id, {});
|
|
6892
6892
|
return 0;
|
|
6893
6893
|
}
|
|
@@ -6895,7 +6895,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6895
6895
|
_if(() => {
|
|
6896
6896
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6897
6897
|
const $scope14_id = _scope_id();
|
|
6898
|
-
_html(`<h2${_attr_class(["
|
|
6898
|
+
_html(`<h2${_attr_class(["_by", "_dl"])}>Other workspaces</h2>`);
|
|
6899
6899
|
writeScope($scope14_id, {});
|
|
6900
6900
|
return 0;
|
|
6901
6901
|
}
|
|
@@ -6982,7 +6982,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
6982
6982
|
railHover = null;
|
|
6983
6983
|
}, 150);
|
|
6984
6984
|
}, "x6", $scope5_id);
|
|
6985
|
-
_html(`<div${_attr_class("
|
|
6985
|
+
_html(`<div${_attr_class("_ds")}>`);
|
|
6986
6986
|
_for_of(itemIds, (wsId, i) => {
|
|
6987
6987
|
const $scope6_id = _scope_id();
|
|
6988
6988
|
_html("<span>");
|
|
@@ -7036,7 +7036,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7036
7036
|
if (railHover) {
|
|
7037
7037
|
const $scope7_id = _scope_id();
|
|
7038
7038
|
const hoverId = railHover.id;
|
|
7039
|
-
_html(`<div${_attr_class(["_4", "
|
|
7039
|
+
_html(`<div${_attr_class(["_4", "_dv"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7040
7040
|
_set_serialize_reason({
|
|
7041
7041
|
0: 1,
|
|
7042
7042
|
1: 1,
|
|
@@ -7124,7 +7124,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7124
7124
|
return 0;
|
|
7125
7125
|
}
|
|
7126
7126
|
}, $scope0_id, "e");
|
|
7127
|
-
_html(`<div${_attr_class("
|
|
7127
|
+
_html(`<div${_attr_class("_dt")}>`);
|
|
7128
7128
|
_if(() => {
|
|
7129
7129
|
if (isPage) {
|
|
7130
7130
|
const $scope9_id = _scope_id();
|
|
@@ -7132,7 +7132,7 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7132
7132
|
"_o",
|
|
7133
7133
|
"_p",
|
|
7134
7134
|
btnLg,
|
|
7135
|
-
"
|
|
7135
|
+
"_dm"
|
|
7136
7136
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7137
7137
|
icon_folder_plus_default({ size: 16 });
|
|
7138
7138
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7154,19 +7154,19 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7154
7154
|
return 1;
|
|
7155
7155
|
}
|
|
7156
7156
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7157
|
-
_html(`<div${_attr_class(["_y", "
|
|
7157
|
+
_html(`<div${_attr_class(["_y", "_du"])}></div>`);
|
|
7158
7158
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7159
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7159
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c_"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7160
7160
|
icon_settings_default({ size: 15 });
|
|
7161
7161
|
_if(() => {
|
|
7162
7162
|
if (input.setupReady === false) {
|
|
7163
7163
|
const $scope17_id = _scope_id();
|
|
7164
|
-
_html(`<span${_attr_class(["_z", "
|
|
7164
|
+
_html(`<span${_attr_class(["_z", "_db"])} title="Machine setup incomplete"></span>`);
|
|
7165
7165
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7166
7166
|
return 0;
|
|
7167
7167
|
}
|
|
7168
7168
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7169
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7169
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c_"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7170
7170
|
icon_folder_plus_default({ size: 16 });
|
|
7171
7171
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7172
7172
|
_script($scope8_id, "x15");
|
|
@@ -7231,9 +7231,9 @@ var side_nav_default = _template("x", (input) => {
|
|
|
7231
7231
|
_resume_branch($scope0_id);
|
|
7232
7232
|
});
|
|
7233
7233
|
var iconBtn = "_0 _j";
|
|
7234
|
-
var sectionCount = "
|
|
7235
|
-
var content = "_dH
|
|
7236
|
-
var pageMeta = "_dI
|
|
7234
|
+
var sectionCount = "_bl _I _J";
|
|
7235
|
+
var content = "_dH _bB";
|
|
7236
|
+
var pageMeta = "_dI _bG";
|
|
7237
7237
|
var pathMeta = "_dL _x";
|
|
7238
7238
|
var dangerHint = "_dR _S";
|
|
7239
7239
|
//#endregion
|
|
@@ -7334,7 +7334,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7334
7334
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7335
7335
|
}, "n5", $scope0_id);
|
|
7336
7336
|
const titleId = _id();
|
|
7337
|
-
_html(`<div${_attr_class("
|
|
7337
|
+
_html(`<div${_attr_class("_bz")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bA")}><div${_attr_class(content)}>`);
|
|
7338
7338
|
_set_serialize_reason(30);
|
|
7339
7339
|
const $childScope = _peek_scope_id();
|
|
7340
7340
|
page_head_default({
|
|
@@ -7384,22 +7384,22 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7384
7384
|
_if(() => {
|
|
7385
7385
|
if (pendingAction && actionStep) {
|
|
7386
7386
|
const $scope7_id = _scope_id();
|
|
7387
|
-
_html(`<p${_attr_class("
|
|
7387
|
+
_html(`<p${_attr_class("_bi")}><span${_attr_class("_F")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7388
7388
|
writeScope($scope7_id, {});
|
|
7389
7389
|
return 0;
|
|
7390
7390
|
}
|
|
7391
7391
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7392
|
-
_html(`<section${_attr_class("
|
|
7392
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_y")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7393
7393
|
_set_serialize_reason(1);
|
|
7394
7394
|
const $childScope2 = _peek_scope_id();
|
|
7395
7395
|
icon_refresh_default({
|
|
7396
7396
|
size: 14,
|
|
7397
7397
|
class: catalogRefreshing && "_E"
|
|
7398
7398
|
});
|
|
7399
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7399
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bm")}>`);
|
|
7400
7400
|
_for_of(ws.repos, (row) => {
|
|
7401
7401
|
const $scope1_id = _scope_id();
|
|
7402
|
-
_html(`<li${_attr_class("
|
|
7402
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}><span${_attr_class(["_bq", "_x"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_br")}><a${_attr_class(["_bs", "_dN"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
7403
7403
|
_if(() => {
|
|
7404
7404
|
if (row.base_branch !== row.default_branch) {
|
|
7405
7405
|
const $scope12_id = _scope_id();
|
|
@@ -7418,7 +7418,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7418
7418
|
} else {
|
|
7419
7419
|
const $scope6_id = _scope_id();
|
|
7420
7420
|
_html(`<button${_attr_class([
|
|
7421
|
-
"
|
|
7421
|
+
"_bt",
|
|
7422
7422
|
"_2",
|
|
7423
7423
|
"_3",
|
|
7424
7424
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7451,14 +7451,14 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7451
7451
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7452
7452
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7453
7453
|
const $scope16_id = _scope_id();
|
|
7454
|
-
_html(`<li${_attr_class(["
|
|
7454
|
+
_html(`<li${_attr_class(["_bo", "_bn"])}><span${_attr_class("_F")}></span><div${_attr_class("_bp")}><span${_attr_class("_bs")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7455
7455
|
writeScope($scope16_id, {});
|
|
7456
7456
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7457
7457
|
_html("</ul>");
|
|
7458
7458
|
_if(() => {
|
|
7459
7459
|
if (!ws.repos.length && !busy.size) {
|
|
7460
7460
|
const $scope17_id = _scope_id();
|
|
7461
|
-
_html(`<p${_attr_class("
|
|
7461
|
+
_html(`<p${_attr_class("_bu")}>No repos yet. Search below to add one.</p>`);
|
|
7462
7462
|
writeScope($scope17_id, {});
|
|
7463
7463
|
return 0;
|
|
7464
7464
|
}
|
|
@@ -7483,14 +7483,14 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7483
7483
|
_if(() => {
|
|
7484
7484
|
if (running.length) {
|
|
7485
7485
|
const $scope9_id = _scope_id();
|
|
7486
|
-
_html(`<section${_attr_class("
|
|
7486
|
+
_html(`<section${_attr_class("_bj")}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bm")}>`);
|
|
7487
7487
|
_for_of(running, (p) => {
|
|
7488
7488
|
const $scope10_id = _scope_id();
|
|
7489
|
-
_html(`<li${_attr_class("
|
|
7489
|
+
_html(`<li${_attr_class("_bo")}><div${_attr_class("_bp")}${_attr("title", p.args)}><span${_attr_class(["_bq", "_x"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7490
7490
|
_if(() => {
|
|
7491
7491
|
if (p.ports.length) {
|
|
7492
7492
|
const $scope18_id = _scope_id();
|
|
7493
|
-
_html(`<span${_attr_class("
|
|
7493
|
+
_html(`<span${_attr_class("_br")}>`);
|
|
7494
7494
|
_for_of(p.ports, (port) => {
|
|
7495
7495
|
const $scope19_id = _scope_id();
|
|
7496
7496
|
_html(`<button${_attr_class(["_s", "_dO"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
@@ -7501,7 +7501,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7501
7501
|
return 0;
|
|
7502
7502
|
}
|
|
7503
7503
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7504
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7504
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bt", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7505
7505
|
icon_xmark_default({ size: 14 });
|
|
7506
7506
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7507
7507
|
_script($scope10_id, "n16");
|
|
@@ -7515,7 +7515,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
7515
7515
|
return 0;
|
|
7516
7516
|
}
|
|
7517
7517
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7518
|
-
_html(`<section${_attr_class(["
|
|
7518
|
+
_html(`<section${_attr_class(["_bj", "_dP"])}><div${_attr_class("_bk")}><h2${_attr_class("_by")}>Workspace</h2></div><div${_attr_class("_dQ")}>`);
|
|
7519
7519
|
_if(() => {
|
|
7520
7520
|
if (ws.status === "active") {
|
|
7521
7521
|
const $scope4_id = _scope_id();
|
|
@@ -7616,15 +7616,15 @@ var term_find_default = _template("z", (input) => {
|
|
|
7616
7616
|
const canStep = hasQuery && open;
|
|
7617
7617
|
const keybar = input.placement === "keybar";
|
|
7618
7618
|
_html(`<div${_attr_class([
|
|
7619
|
-
"
|
|
7620
|
-
keybar ? "
|
|
7621
|
-
!open && "
|
|
7622
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7619
|
+
"_fA",
|
|
7620
|
+
keybar ? "_fC" : "_fB",
|
|
7621
|
+
!open && "_fE"
|
|
7622
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fv", keybar ? "_fD" : "_fx"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7623
7623
|
if (!open) return;
|
|
7624
7624
|
query = v;
|
|
7625
7625
|
live.query = v;
|
|
7626
7626
|
run(0);
|
|
7627
|
-
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7627
|
+
}, "z0", $scope0_id))}${_attr_class([findInput, keybar && "_fF"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_fG"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fG"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_fG"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7628
7628
|
icon_xmark_default({ size: 14 });
|
|
7629
7629
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7630
7630
|
_script($scope0_id, "z4");
|
|
@@ -7898,7 +7898,7 @@ var term_default = _template("A", (input) => {
|
|
|
7898
7898
|
trapOpen = true;
|
|
7899
7899
|
}
|
|
7900
7900
|
}, "A14", $scope0_id);
|
|
7901
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
7901
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eH")}><div${_attr_class("_eI")}></div>${_el_resume($scope0_id, "b")}`);
|
|
7902
7902
|
_if(() => {
|
|
7903
7903
|
if (findOpen) {
|
|
7904
7904
|
const $scope12_id = _scope_id();
|
|
@@ -7925,7 +7925,7 @@ var term_default = _template("A", (input) => {
|
|
|
7925
7925
|
_if(() => {
|
|
7926
7926
|
if (uploading) {
|
|
7927
7927
|
const $scope19_id = _scope_id();
|
|
7928
|
-
_html(`<div${_attr_class("
|
|
7928
|
+
_html(`<div${_attr_class("_eO")}>uploading…</div>`);
|
|
7929
7929
|
writeScope($scope19_id, {});
|
|
7930
7930
|
return 0;
|
|
7931
7931
|
}
|
|
@@ -7933,7 +7933,7 @@ var term_default = _template("A", (input) => {
|
|
|
7933
7933
|
_if(() => {
|
|
7934
7934
|
if (copiedFlash) {
|
|
7935
7935
|
const $scope20_id = _scope_id();
|
|
7936
|
-
_html(`<div${_attr_class("
|
|
7936
|
+
_html(`<div${_attr_class("_eN")}>Copied</div>`);
|
|
7937
7937
|
writeScope($scope20_id, {});
|
|
7938
7938
|
return 0;
|
|
7939
7939
|
}
|
|
@@ -7942,7 +7942,7 @@ var term_default = _template("A", (input) => {
|
|
|
7942
7942
|
_if(() => {
|
|
7943
7943
|
if (trapOpen) {
|
|
7944
7944
|
const $scope11_id = _scope_id();
|
|
7945
|
-
_html(`<div${_attr_class("
|
|
7945
|
+
_html(`<div${_attr_class("_eP")}><div${_attr_class("_eQ")}><p${_attr_class("_fk")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
7946
7946
|
_script($scope11_id, "A25");
|
|
7947
7947
|
_script($scope11_id, "A26");
|
|
7948
7948
|
writeScope($scope11_id, {});
|
|
@@ -8045,7 +8045,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8045
8045
|
let DiffView = null;
|
|
8046
8046
|
const loadDiffView = _resume(() => {
|
|
8047
8047
|
if (DiffView) return;
|
|
8048
|
-
import("./
|
|
8048
|
+
import("./_8RPVAk_Y.js").then((m) => {
|
|
8049
8049
|
DiffView = m.default;
|
|
8050
8050
|
});
|
|
8051
8051
|
}, "E6", $scope0_id);
|
|
@@ -8515,7 +8515,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8515
8515
|
_if(() => {
|
|
8516
8516
|
if (!shownSessions.length && view === "term") {
|
|
8517
8517
|
const $scope7_id = _scope_id();
|
|
8518
|
-
_html(`<div${_attr_class("
|
|
8518
|
+
_html(`<div${_attr_class("_bv")}><span>No sessions in this workspace.</span><button${_attr_class(["_o", "_p"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
8519
8519
|
_script($scope7_id, "E49");
|
|
8520
8520
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8521
8521
|
return 0;
|
|
@@ -8525,7 +8525,7 @@ var work_view_default = _template("E", (input) => {
|
|
|
8525
8525
|
return 0;
|
|
8526
8526
|
} else {
|
|
8527
8527
|
const $scope10_id = _scope_id();
|
|
8528
|
-
_html(`<p${_attr_class("
|
|
8528
|
+
_html(`<p${_attr_class("_bv")}>Loading sessions…</p>`);
|
|
8529
8529
|
writeScope($scope10_id, {});
|
|
8530
8530
|
return 1;
|
|
8531
8531
|
}
|
|
@@ -16518,4 +16518,4 @@ server.listen(port, () => {
|
|
|
16518
16518
|
//#endregion
|
|
16519
16519
|
export {};
|
|
16520
16520
|
|
|
16521
|
-
;var __MARKO_MANIFEST__={"
|
|
16521
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-DLj_2NkQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DLj_2NkQ.css\"",">"],"defer":[2,"/assets/new-C5KOEVYV.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C5KOEVYV.js\"","></script>",2,"modulepreload#/assets/_D-tRMW7L.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D-tRMW7L.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-DLj_2NkQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DLj_2NkQ.css\"",">"],"defer":[2,"/assets/settings-C5KOEVYV.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C5KOEVYV.js\"","></script>",2,"modulepreload#/assets/_D-tRMW7L.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D-tRMW7L.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-DLj_2NkQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DLj_2NkQ.css\"",">"],"defer":[2,"/assets/w-C5KOEVYV.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C5KOEVYV.js\"","></script>",2,"modulepreload#/assets/_D-tRMW7L.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D-tRMW7L.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-DLj_2NkQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DLj_2NkQ.css\"",">"],"defer":[2,"/assets/w._-C5KOEVYV.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C5KOEVYV.js\"","></script>",2,"modulepreload#/assets/_D-tRMW7L.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D-tRMW7L.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-DLj_2NkQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DLj_2NkQ.css\"",">"],"defer":[2,"/assets/w._-BQduMkt9.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BQduMkt9.js\"","></script>",2,"modulepreload#/assets/_D-tRMW7L.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D-tRMW7L.js\"",">"]}};
|