@dylanpiercey/work 0.0.135 → 0.0.136
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/dist/{_Fhn3V9QC.js → _BK02MZ12.js} +24 -24
- package/dist/{_Boofe5nI.js → _Dij_y0Qt.js} +2 -2
- package/dist/index.mjs +415 -386
- package/dist/public/assets/{_68z4FCtL.js → _0YzStON-.js} +1 -1
- package/dist/public/assets/_0YzStON-.js.br +0 -0
- package/dist/public/assets/{_b7W0qIUu.js → _A8QLMyty.js} +1 -1
- package/dist/public/assets/_A8QLMyty.js.br +0 -0
- package/dist/public/assets/{_C001rM4U2.js → _B43InZo-2.js} +1 -1
- package/dist/public/assets/_B43InZo-2.js.br +0 -0
- package/dist/public/assets/{_CCPtn0et.js → _B4ftK7Yz.js} +1 -1
- package/dist/public/assets/_B4ftK7Yz.js.br +0 -0
- package/dist/public/assets/{_9ekMcw4E2.js → _BCxtKOcV2.js} +1 -1
- package/dist/public/assets/_BCxtKOcV2.js.br +0 -0
- package/dist/public/assets/{_CxxWbLuC2.js → _BDJpYszd2.js} +1 -1
- package/dist/public/assets/_BDJpYszd2.js.br +0 -0
- package/dist/public/assets/{_Czvgy_oc2.js → _BDjiDP3B2.js} +1 -1
- package/dist/public/assets/_BDjiDP3B2.js.br +0 -0
- package/dist/public/assets/{_BhXU-Nbg.js → _BHfadGO2.js} +1 -1
- package/dist/public/assets/_BHfadGO2.js.br +0 -0
- package/dist/public/assets/{_C6ws5wwF.js → _BIJyc2mu.js} +1 -1
- package/dist/public/assets/_BIJyc2mu.js.br +0 -0
- package/dist/public/assets/{_D9BL0gZh.js → _BNqcBpdG.js} +1 -1
- package/dist/public/assets/_BNqcBpdG.js.br +0 -0
- package/dist/public/assets/{_jJgk9rI72.js → _BTDB_2bo2.js} +1 -1
- package/dist/public/assets/{_BHioPQAc.js → _BWlSj6_a.js} +1 -1
- package/dist/public/assets/_BWlSj6_a.js.br +0 -0
- package/dist/public/assets/{_7ulm5F25.js → _BYPOMOy2.js} +1 -1
- package/dist/public/assets/_BYPOMOy2.js.br +0 -0
- package/dist/public/assets/{_CEodf7tu.js → _BZyu3o5D.js} +1 -1
- package/dist/public/assets/_BZyu3o5D.js.br +0 -0
- package/dist/public/assets/{_tEOeZ26b2.js → _Bc3DNZHb2.js} +1 -1
- package/dist/public/assets/_Bc3DNZHb2.js.br +0 -0
- package/dist/public/assets/{_q-MpIvSC2.js → _Be3J1iRO2.js} +1 -1
- package/dist/public/assets/_Be3J1iRO2.js.br +0 -0
- package/dist/public/assets/{_WknOXr2p.js → _BfqwMAq-.js} +1 -1
- package/dist/public/assets/_BfqwMAq-.js.br +0 -0
- package/dist/public/assets/{_DwnnREUT.js → _Bj8bMkJV.js} +1 -1
- package/dist/public/assets/_Bj8bMkJV.js.br +0 -0
- package/dist/public/assets/_Bk5mZP5h.js +89 -0
- package/dist/public/assets/_Bk5mZP5h.js.br +0 -0
- package/dist/public/assets/{_C1QAOE9L.js → _BlCeUm2u.js} +1 -1
- package/dist/public/assets/_BlCeUm2u.js.br +0 -0
- package/dist/public/assets/{_BndzfRf5.js → _Bm1F7okr.js} +1 -1
- package/dist/public/assets/_Bm1F7okr.js.br +0 -0
- package/dist/public/assets/{_BrtXr1ji2.js → _Boz7xU3I2.js} +1 -1
- package/dist/public/assets/_Boz7xU3I2.js.br +0 -0
- package/dist/public/assets/{_BiVy2gzm.js → _BpJKkDCj.js} +1 -1
- package/dist/public/assets/_BpJKkDCj.js.br +0 -0
- package/dist/public/assets/{_DXVzDS8p.js → _Brj8aBq6.js} +1 -1
- package/dist/public/assets/_Brj8aBq6.js.br +0 -0
- package/dist/public/assets/{_CzbSiMaL.js → _Buk6CY_J.js} +1 -1
- package/dist/public/assets/_Buk6CY_J.js.br +0 -0
- package/dist/public/assets/{_B1NjOKqM.js → _ByZqbMLP.js} +1 -1
- package/dist/public/assets/_ByZqbMLP.js.br +0 -0
- package/dist/public/assets/{_BxpVjKkc.js → _BzuwUpKk.js} +1 -1
- package/dist/public/assets/_BzuwUpKk.js.br +0 -0
- package/dist/public/assets/{_BLJqnkdL2.js → _C1yp4V7m2.js} +1 -1
- package/dist/public/assets/_C1yp4V7m2.js.br +0 -0
- package/dist/public/assets/{_DK5vdxh32.js → _C59H4YUW2.js} +1 -1
- package/dist/public/assets/_C59H4YUW2.js.br +0 -0
- package/dist/public/assets/{_CAKHEQZH.js → _C7kuy0Hr.js} +1 -1
- package/dist/public/assets/_C7kuy0Hr.js.br +0 -0
- package/dist/public/assets/{_zoKtmmeV.js → _C9u5QhTJ.js} +1 -1
- package/dist/public/assets/_C9u5QhTJ.js.br +0 -0
- package/dist/public/assets/{_BEE7mDcv2.js → _CBRAlnrZ2.js} +1 -1
- package/dist/public/assets/_CBRAlnrZ2.js.br +0 -0
- package/dist/public/assets/{_CHEDeh4O2.js → _CD3YXc6f2.js} +1 -1
- package/dist/public/assets/_CD3YXc6f2.js.br +0 -0
- package/dist/public/assets/{_BRgSM65d.js → _CHnGPLlM.js} +1 -1
- package/dist/public/assets/_CHnGPLlM.js.br +0 -0
- package/dist/public/assets/{_DlikdYjR2.js → _CNA3MQ5x2.js} +1 -1
- package/dist/public/assets/_CNA3MQ5x2.js.br +0 -0
- package/dist/public/assets/{_BTbmN-k-2.js → _COfcrZiP2.js} +1 -1
- package/dist/public/assets/_COfcrZiP2.js.br +0 -0
- package/dist/public/assets/{_CauzJ22b.js → _CQlyENQv.js} +1 -1
- package/dist/public/assets/_CQlyENQv.js.br +0 -0
- package/dist/public/assets/{_BECiMBRI.js → _CR-S-3Of.js} +4 -4
- package/dist/public/assets/_CR-S-3Of.js.br +0 -0
- package/dist/public/assets/{_zUM5lYgT2.js → _CTxKc7Va2.js} +1 -1
- package/dist/public/assets/_CTxKc7Va2.js.br +0 -0
- package/dist/public/assets/{_C0ZA5CMc.js → _CXqVTOO2.js} +1 -1
- package/dist/public/assets/_CXqVTOO2.js.br +0 -0
- package/dist/public/assets/{_DzvR3HtZ.js → _CfrSaTy7.js} +1 -1
- package/dist/public/assets/_CfrSaTy7.js.br +0 -0
- package/dist/public/assets/{_CsQiYtel.js → _ChAgIrR9.js} +1 -1
- package/dist/public/assets/_ChAgIrR9.js.br +0 -0
- package/dist/public/assets/{_Cv7lWjV32.js → _Chdds9cv2.js} +1 -1
- package/dist/public/assets/_Chdds9cv2.js.br +0 -0
- package/dist/public/assets/{_l8ryHBkA.js → _Cmu2QxBE.js} +1 -1
- package/dist/public/assets/_Cmu2QxBE.js.br +0 -0
- package/dist/public/assets/{_BfpaQCZS.js → _CpD6oP7U.js} +1 -1
- package/dist/public/assets/_CpD6oP7U.js.br +0 -0
- package/dist/public/assets/{_B2TmPLZR.js → _Cryi3U1d.js} +1 -1
- package/dist/public/assets/_Cryi3U1d.js.br +0 -0
- package/dist/public/assets/{_DIEL2YtS.js → _CsOBkWtg.js} +1 -1
- package/dist/public/assets/_CsOBkWtg.js.br +0 -0
- package/dist/public/assets/{_CvIyYSuF.js → _CyCu9hIz.js} +1 -1
- package/dist/public/assets/_CyCu9hIz.js.br +0 -0
- package/dist/public/assets/{_COhqAPLE.js → _D-60G6PB.js} +1 -1
- package/dist/public/assets/_D-60G6PB.js.br +0 -0
- package/dist/public/assets/{_hoypU4ON.js → _D-FsNpg4.js} +1 -1
- package/dist/public/assets/_D-FsNpg4.js.br +0 -0
- package/dist/public/assets/{_XBtiwca3.js → _D5cZP2aA.js} +1 -1
- package/dist/public/assets/_D5cZP2aA.js.br +0 -0
- package/dist/public/assets/{_DjkUqeYn.js → _D6pYwJbn.js} +1 -1
- package/dist/public/assets/_D6pYwJbn.js.br +0 -0
- package/dist/public/assets/{_DwLDpDkb.js → _DBPQFygQ.js} +1 -1
- package/dist/public/assets/_DBPQFygQ.js.br +0 -0
- package/dist/public/assets/{_FFoEJg8c.js → _DGx9OQMw.js} +1 -1
- package/dist/public/assets/{_D7CWWH5a.js → _DKR-1kBA.js} +1 -1
- package/dist/public/assets/_DKR-1kBA.js.br +0 -0
- package/dist/public/assets/{_BCBCXuNF.js → _DO-7Gb4y.js} +1 -1
- package/dist/public/assets/_DO-7Gb4y.js.br +0 -0
- package/dist/public/assets/{_D3_3zitd2.js → _DP8d9Rm82.js} +1 -1
- package/dist/public/assets/_DP8d9Rm82.js.br +0 -0
- package/dist/public/assets/{_Dsh7sPtX.js → _DRkgmd-K.js} +1 -1
- package/dist/public/assets/_DRkgmd-K.js.br +0 -0
- package/dist/public/assets/{_BuS3Vglx.js → _DU1Eqa25.js} +1 -1
- package/dist/public/assets/_DU1Eqa25.js.br +0 -0
- package/dist/public/assets/{_Dbh4cPK_2.js → _DVFmex8_2.js} +1 -1
- package/dist/public/assets/_DVFmex8_2.js.br +0 -0
- package/dist/public/assets/{_DtjFcpep.js → _DkJrtVCy.js} +1 -1
- package/dist/public/assets/_DkJrtVCy.js.br +0 -0
- package/dist/public/assets/{_DotQ9eyD.js → _Dnfz85Pu.js} +1 -1
- package/dist/public/assets/_Dnfz85Pu.js.br +0 -0
- package/dist/public/assets/{_DszGB6Nm.js → _DnxV9O0v.js} +1 -1
- package/dist/public/assets/_DnxV9O0v.js.br +0 -0
- package/dist/public/assets/{_CKHv8GUc.js → _Dq6d0wjK.js} +1 -1
- package/dist/public/assets/_Dq6d0wjK.js.br +0 -0
- package/dist/public/assets/{_jzzAY-_W2.js → _Drc85vGG2.js} +1 -1
- package/dist/public/assets/_Drc85vGG2.js.br +0 -0
- package/dist/public/assets/{_KlGqeoIr.js → _Dy7NWhyF.js} +1 -1
- package/dist/public/assets/_Dy7NWhyF.js.br +0 -0
- package/dist/public/assets/{_x71nmEt92.js → _Fi0bLwSJ2.js} +1 -1
- package/dist/public/assets/_Fi0bLwSJ2.js.br +0 -0
- package/dist/public/assets/{_u8bPqpkk2.js → _QGY4WJWh2.js} +1 -1
- package/dist/public/assets/_QGY4WJWh2.js.br +0 -0
- package/dist/public/assets/{_DXsjW21V.js → _WUnsxEQT.js} +1 -1
- package/dist/public/assets/_WUnsxEQT.js.br +0 -0
- package/dist/public/assets/{_CwaR4-O6.js → _ZqBn14C0.js} +1 -1
- package/dist/public/assets/_ZqBn14C0.js.br +0 -0
- package/dist/public/assets/{_B1dh4BjF.js → _gkSQEN3j.js} +1 -1
- package/dist/public/assets/_gkSQEN3j.js.br +0 -0
- package/dist/public/assets/{_B2oJT0Iz.js → _jdivam11.js} +1 -1
- package/dist/public/assets/_jdivam11.js.br +0 -0
- package/dist/public/assets/{_Cm1ANqbQ2.js → _kpDIvGaK2.js} +1 -1
- package/dist/public/assets/_kpDIvGaK2.js.br +0 -0
- package/dist/public/assets/{_0fZEmB9p2.js → _mmCP3JhZ2.js} +1 -1
- package/dist/public/assets/_mmCP3JhZ2.js.br +0 -0
- package/dist/public/assets/{_BrWQpYKG.js → _oBGUMKKB.js} +1 -1
- package/dist/public/assets/_oBGUMKKB.js.br +0 -0
- package/dist/public/assets/{_Boj0LPAV2.js → _s5ClmkTc2.js} +1 -1
- package/dist/public/assets/{app-page-DL7rHeQL.css → app-page-CYT0ZOo5.css} +1 -1
- package/dist/public/assets/app-page-CYT0ZOo5.css.br +0 -0
- package/dist/public/assets/{diff-view-CQTNRT5q.css → diff-view-BcnsI2K2.css} +1 -1
- package/dist/public/assets/diff-view-BcnsI2K2.css.br +0 -0
- package/dist/public/assets/new-Bxdd3c7v.js +1 -0
- package/dist/public/assets/settings-Bxdd3c7v.js +1 -0
- package/dist/public/assets/w-Bxdd3c7v.js +1 -0
- package/dist/public/assets/w._-Bxdd3c7v.js +1 -0
- package/dist/public/assets/w._-DgdO3jnn.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_0fZEmB9p2.js.br +0 -0
- package/dist/public/assets/_68z4FCtL.js.br +0 -0
- package/dist/public/assets/_7ulm5F25.js.br +0 -0
- package/dist/public/assets/_9ekMcw4E2.js.br +0 -0
- package/dist/public/assets/_B1NjOKqM.js.br +0 -0
- package/dist/public/assets/_B1dh4BjF.js.br +0 -0
- package/dist/public/assets/_B2TmPLZR.js.br +0 -0
- package/dist/public/assets/_B2oJT0Iz.js.br +0 -0
- package/dist/public/assets/_BCBCXuNF.js.br +0 -0
- package/dist/public/assets/_BECiMBRI.js.br +0 -0
- package/dist/public/assets/_BEE7mDcv2.js.br +0 -0
- package/dist/public/assets/_BHioPQAc.js.br +0 -0
- package/dist/public/assets/_BLJqnkdL2.js.br +0 -0
- package/dist/public/assets/_BRgSM65d.js.br +0 -0
- package/dist/public/assets/_BTbmN-k-2.js.br +0 -0
- package/dist/public/assets/_BfpaQCZS.js.br +0 -0
- package/dist/public/assets/_BhXU-Nbg.js.br +0 -0
- package/dist/public/assets/_BiVy2gzm.js.br +0 -0
- package/dist/public/assets/_BndzfRf5.js.br +0 -0
- package/dist/public/assets/_BrWQpYKG.js.br +0 -0
- package/dist/public/assets/_BrtXr1ji2.js.br +0 -0
- package/dist/public/assets/_BuS3Vglx.js.br +0 -0
- package/dist/public/assets/_BxpVjKkc.js.br +0 -0
- package/dist/public/assets/_C001rM4U2.js.br +0 -0
- package/dist/public/assets/_C0ZA5CMc.js.br +0 -0
- package/dist/public/assets/_C1QAOE9L.js.br +0 -0
- package/dist/public/assets/_C6MDqF6r.js +0 -89
- package/dist/public/assets/_C6MDqF6r.js.br +0 -0
- package/dist/public/assets/_C6ws5wwF.js.br +0 -0
- package/dist/public/assets/_CAKHEQZH.js.br +0 -0
- package/dist/public/assets/_CCPtn0et.js.br +0 -0
- package/dist/public/assets/_CEodf7tu.js.br +0 -0
- package/dist/public/assets/_CHEDeh4O2.js.br +0 -0
- package/dist/public/assets/_CKHv8GUc.js.br +0 -0
- package/dist/public/assets/_COhqAPLE.js.br +0 -0
- package/dist/public/assets/_CauzJ22b.js.br +0 -0
- package/dist/public/assets/_Cm1ANqbQ2.js.br +0 -0
- package/dist/public/assets/_CsQiYtel.js.br +0 -0
- package/dist/public/assets/_Cv7lWjV32.js.br +0 -0
- package/dist/public/assets/_CvIyYSuF.js.br +0 -0
- package/dist/public/assets/_CwaR4-O6.js.br +0 -0
- package/dist/public/assets/_CxxWbLuC2.js.br +0 -0
- package/dist/public/assets/_CzbSiMaL.js.br +0 -0
- package/dist/public/assets/_Czvgy_oc2.js.br +0 -0
- package/dist/public/assets/_D3_3zitd2.js.br +0 -0
- package/dist/public/assets/_D7CWWH5a.js.br +0 -0
- package/dist/public/assets/_D9BL0gZh.js.br +0 -0
- package/dist/public/assets/_DIEL2YtS.js.br +0 -0
- package/dist/public/assets/_DK5vdxh32.js.br +0 -0
- package/dist/public/assets/_DXVzDS8p.js.br +0 -0
- package/dist/public/assets/_DXsjW21V.js.br +0 -0
- package/dist/public/assets/_Dbh4cPK_2.js.br +0 -0
- package/dist/public/assets/_DjkUqeYn.js.br +0 -0
- package/dist/public/assets/_DlikdYjR2.js.br +0 -0
- package/dist/public/assets/_DotQ9eyD.js.br +0 -0
- package/dist/public/assets/_Dsh7sPtX.js.br +0 -0
- package/dist/public/assets/_DszGB6Nm.js.br +0 -0
- package/dist/public/assets/_DtjFcpep.js.br +0 -0
- package/dist/public/assets/_DwLDpDkb.js.br +0 -0
- package/dist/public/assets/_DwnnREUT.js.br +0 -0
- package/dist/public/assets/_DzvR3HtZ.js.br +0 -0
- package/dist/public/assets/_KlGqeoIr.js.br +0 -0
- package/dist/public/assets/_WknOXr2p.js.br +0 -0
- package/dist/public/assets/_XBtiwca3.js.br +0 -0
- package/dist/public/assets/_b7W0qIUu.js.br +0 -0
- package/dist/public/assets/_hoypU4ON.js.br +0 -0
- package/dist/public/assets/_jzzAY-_W2.js.br +0 -0
- package/dist/public/assets/_l8ryHBkA.js.br +0 -0
- package/dist/public/assets/_q-MpIvSC2.js.br +0 -0
- package/dist/public/assets/_tEOeZ26b2.js.br +0 -0
- package/dist/public/assets/_u8bPqpkk2.js.br +0 -0
- package/dist/public/assets/_x71nmEt92.js.br +0 -0
- package/dist/public/assets/_zUM5lYgT2.js.br +0 -0
- package/dist/public/assets/_zoKtmmeV.js.br +0 -0
- package/dist/public/assets/app-page-DL7rHeQL.css.br +0 -0
- package/dist/public/assets/diff-view-CQTNRT5q.css.br +0 -0
- package/dist/public/assets/new-KOmGuG9T.js +0 -1
- package/dist/public/assets/settings-KOmGuG9T.js +0 -1
- package/dist/public/assets/w-KOmGuG9T.js +0 -1
- package/dist/public/assets/w._-CQegKUC3.js +0 -1
- package/dist/public/assets/w._-KOmGuG9T.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __
|
|
|
2
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, V as publish, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as git, a as ensureTmuxServer, at as which, b as readHookPayload, bt as config, ct as agentById, d as newSessionArgs, dt as all, et as discoverAgents, ft as db, g as sessionStates, h as sendToSession, ht as TMUX_SOCKET, it as setupPath, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentLabel$1, m as renameSession, mt as workspacePath, n as clearTmuxStarted, o as getSession, pt as get, q as disabledAgents, r as createSession, rt as miseVersions, s as killSession, st as TOOLS, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as toolById, v as tmuxWasStarted, w as agentFamily, x as reportsWorking, y as AGENTS, yt as tmux, z as pushPublicKey } from "./_BJg54Xa1.js";
|
|
3
3
|
import { B as withLock, C as revParse, D as ensureAllPushHooks, E as workspaceBranches, F as repoBranches, G as ensureGitCredentials, H as addHost, I as repoCatalog, K as forgetToken, L as repoDefaultBranch, M as headOid, N as remoteHasHeads, O as hookToken, P as pendingSsoOrgs, Q as ownsBranch, S as resumePendingWorkspaces, T as withProgressOp, U as cloneUrl, V as DEFAULT_HOST, W as configuredHosts, X as removeHost, Z as splitRepo, _ as progress$1, b as queueMaterialize, c as setAutoPush, d as createWorkspace, f as deleteWorkspace, g as otherWorkspaceBranches, h as listWorkspaces, i as noteRemoteRef, j as workspaceProcs, k as killWorkspaceProc, l as addRepo$1, m as insertPendingWorkspace, p as getWorkspace, r as noteLocalRefs, s as pushWorkspaceRepo, t as autoPushEnabled, u as barePath, v as progressSince, w as setWorkspaceStatus, x as removeRepo, y as pruneLaneBranch, z as swr } from "./_DwK89Lz-.js";
|
|
4
4
|
import { a as statusForAllFresh, c as refreshPrsBatch, i as statusForAll, l as workspacePrs, n as pokeStatusWatch, o as dismissPr, r as startStatusWatch, s as notePushActivity, t as activeRepoTargets } from "./_BZpXh6Js.js";
|
|
5
|
-
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./
|
|
5
|
+
import { $ as _attr_style, A as parseRepoUrl, At as _subscribe, B as metaTrunc, C as setWorkspaceTab, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, E as workspaceTab, Et as _sep, F as btnSm, Ft as attrTag, G as _attr_class, H as tone, It as forOf, J as _attr_input_value, L as iconBtnRow, Lt as withPageAssets, M as repoWebUrl, Mt as _to_text, N as setPrimaryHost, Nt as _trailers, O as icon_xmark_default, Ot as _serialize_if, P as btnLg, Pt as _var, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, S as setTheme, St as _scope_id, T as theme, Tt as _script, U as $global, V as phase, W as _attr, X as _attr_option_value, Y as _attr_nonce, Z as _attr_or, _t as _id, at as _dynamic_tag, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, et as _attr_textarea_value, f as iconBtn$2, ft as _flush_head, gt as _html, ht as _hoist_read_error, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, m as sectionCount$1, mt as _hoist, n as findIconBtn, nt as _attrs_partial, o as rankRepos, p as row, pt as _for_of, q as _attr_input_checked, r as findInput, rt as _content, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, tt as _attrs, u as icon_back_default, ut as _escape_script, vt as _if, w as sideNavOpen, wt as _scope_with_id, xt as _resume_branch, y as ignoredSsoOrgs, yt as _peek_scope_id, z as inputLg } from "./_Dij_y0Qt.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import path from "node:path";
|
|
@@ -2325,18 +2325,18 @@ function applyInstance(inst) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
//#endregion
|
|
2327
2327
|
//#region src/tags/settings-page.css.ts
|
|
2328
|
-
var content$2 = "_cc
|
|
2329
|
-
var agentGrid = "_ci
|
|
2330
|
-
var toolGrid = "_cs
|
|
2328
|
+
var content$2 = "_cc _bp _bq";
|
|
2329
|
+
var agentGrid = "_ci _bA";
|
|
2330
|
+
var toolGrid = "_cs _bA";
|
|
2331
2331
|
var themeSeg = "_cH _6";
|
|
2332
2332
|
var swatches = "_cP _6";
|
|
2333
|
-
var checkList = "_de
|
|
2333
|
+
var checkList = "_de _bA";
|
|
2334
2334
|
//#endregion
|
|
2335
2335
|
//#region src/tags/page-head.marko
|
|
2336
2336
|
var page_head_default = _template("t", (input) => {
|
|
2337
2337
|
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);
|
|
2338
2338
|
const $scope0_id = _scope_id();
|
|
2339
|
-
_html(`<header${_attr_class("
|
|
2339
|
+
_html(`<header${_attr_class("_br")}>`);
|
|
2340
2340
|
_if(() => {
|
|
2341
2341
|
if (input.backHref) {
|
|
2342
2342
|
const $scope1_id = _scope_id();
|
|
@@ -2355,11 +2355,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
2355
2355
|
return 1;
|
|
2356
2356
|
}
|
|
2357
2357
|
}, $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);
|
|
2358
|
-
_html(`<div${_attr_class("
|
|
2358
|
+
_html(`<div${_attr_class("_bt")}><h1${_attr("id", input.titleId)}${_attr_class("_bs")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
2359
2359
|
_if(() => {
|
|
2360
2360
|
if (input.meta) {
|
|
2361
2361
|
const $scope3_id = _scope_id();
|
|
2362
|
-
_html(`<p${_attr_class("
|
|
2362
|
+
_html(`<p${_attr_class("_bu")}>`);
|
|
2363
2363
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
2364
2364
|
_html("</p>");
|
|
2365
2365
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2370,7 +2370,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
2370
2370
|
_if(() => {
|
|
2371
2371
|
if (input.actions) {
|
|
2372
2372
|
const $scope4_id = _scope_id();
|
|
2373
|
-
_html(`<div${_attr_class("
|
|
2373
|
+
_html(`<div${_attr_class("_bv")}>`);
|
|
2374
2374
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
2375
2375
|
_html("</div>");
|
|
2376
2376
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2438,7 +2438,7 @@ var icon_agent_default = _template("I", (input) => {
|
|
|
2438
2438
|
n: $badge__closures
|
|
2439
2439
|
});
|
|
2440
2440
|
});
|
|
2441
|
-
var usageNote = "
|
|
2441
|
+
var usageNote = "_fE _R";
|
|
2442
2442
|
//#endregion
|
|
2443
2443
|
//#region src/tags/icons/icon-warning.marko
|
|
2444
2444
|
var icon_warning_default = _template("mb", (input) => {
|
|
@@ -2468,11 +2468,11 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2468
2468
|
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);
|
|
2469
2469
|
const $scope0_id = _scope_id();
|
|
2470
2470
|
const agent = input.agent;
|
|
2471
|
-
_html(`<div${_attr_class(["
|
|
2471
|
+
_html(`<div${_attr_class(["_fy", { ["_fz"]: input.hideName }])}><div${_attr_class("_fA")}>`);
|
|
2472
2472
|
_if(() => {
|
|
2473
2473
|
if (!input.hideName) {
|
|
2474
2474
|
const $scope1_id = _scope_id();
|
|
2475
|
-
_html(`<strong${_attr_class("
|
|
2475
|
+
_html(`<strong${_attr_class("_fT")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
2476
2476
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
2477
2477
|
return 0;
|
|
2478
2478
|
}
|
|
@@ -2480,7 +2480,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2480
2480
|
_if(() => {
|
|
2481
2481
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
2482
2482
|
const $scope2_id = _scope_id();
|
|
2483
|
-
_html(`<span${_attr_class("
|
|
2483
|
+
_html(`<span${_attr_class("_fB")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
2484
2484
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2485
2485
|
return 0;
|
|
2486
2486
|
}
|
|
@@ -2488,21 +2488,21 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2488
2488
|
_if(() => {
|
|
2489
2489
|
if (agent.stale_seconds != null) {
|
|
2490
2490
|
const $scope3_id = _scope_id();
|
|
2491
|
-
_html(`<span${_attr_class("
|
|
2491
|
+
_html(`<span${_attr_class("_fC")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
2492
2492
|
icon_warning_default({ size: 12 });
|
|
2493
2493
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
2494
2494
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
2495
2495
|
return 0;
|
|
2496
2496
|
}
|
|
2497
2497
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
2498
|
-
_html(`</div><div${_attr_class(["
|
|
2498
|
+
_html(`</div><div${_attr_class(["_fD", { ["_fU"]: agent.stale_seconds != null }])}>`);
|
|
2499
2499
|
_for_of(agent.windows || [], (win) => {
|
|
2500
2500
|
const $scope4_id = _scope_id();
|
|
2501
2501
|
const pct = pctText(win.used_percent);
|
|
2502
2502
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
2503
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
2504
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
2505
|
-
_html(`<div${_attr_class("
|
|
2503
|
+
const fillClass = win.used_percent >= 90 ? "_fM" : win.used_percent >= 70 ? "_fL" : win.used_percent >= 40 ? "_fK" : "_fJ";
|
|
2504
|
+
const pctClass = win.used_percent >= 90 ? "_fR" : win.used_percent >= 70 ? "_fQ" : win.used_percent >= 40 ? "_fP" : "_fO";
|
|
2505
|
+
_html(`<div${_attr_class("_fF")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_fG")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_fH")}><span${_attr_class(["_fI", 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(["_fN", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fS")}>`);
|
|
2506
2506
|
_if(() => {
|
|
2507
2507
|
if (label) {
|
|
2508
2508
|
const $scope6_id = _scope_id();
|
|
@@ -2534,7 +2534,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
2534
2534
|
q: $si__input_agent && agent?.note
|
|
2535
2535
|
});
|
|
2536
2536
|
});
|
|
2537
|
-
var orgSkip = "
|
|
2537
|
+
var orgSkip = "_fp _1 _j";
|
|
2538
2538
|
//#endregion
|
|
2539
2539
|
//#region src/tags/sso-auth.marko
|
|
2540
2540
|
var api$7;
|
|
@@ -2581,14 +2581,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2581
2581
|
localCode = null;
|
|
2582
2582
|
}
|
|
2583
2583
|
}, "B0", $scope0_id);
|
|
2584
|
-
_html(`<div${_attr_class("
|
|
2584
|
+
_html(`<div${_attr_class("_fm")}>`);
|
|
2585
2585
|
_if(() => {
|
|
2586
2586
|
if (input.items.length) {
|
|
2587
2587
|
const $scope1_id = _scope_id();
|
|
2588
|
-
_html(`<p${_attr_class("
|
|
2588
|
+
_html(`<p${_attr_class("_fx")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_fn")}>`);
|
|
2589
2589
|
_for_of(input.items, (s) => {
|
|
2590
2590
|
const $scope2_id = _scope_id();
|
|
2591
|
-
_html(`<li${_attr_class("
|
|
2591
|
+
_html(`<li${_attr_class("_fo")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class(orgSkip)}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
2592
2592
|
icon_xmark_default({ size: 11 });
|
|
2593
2593
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
2594
2594
|
_script($scope2_id, "B1");
|
|
@@ -2597,17 +2597,17 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2597
2597
|
_: _scope_with_id($scope1_id)
|
|
2598
2598
|
}));
|
|
2599
2599
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
2600
|
-
_html(`<div${_attr_class("
|
|
2600
|
+
_html(`<div${_attr_class("_fq")}>`);
|
|
2601
2601
|
_if(() => {
|
|
2602
2602
|
if (localBusy && localCode) {
|
|
2603
2603
|
const $scope5_id = _scope_id();
|
|
2604
|
-
_html(`<span${_attr_class("
|
|
2604
|
+
_html(`<span${_attr_class("_fr")}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_fs")}>${_escape(localCode)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_ft")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
2605
2605
|
_script($scope5_id, "B2");
|
|
2606
2606
|
_subscribe($localCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
2607
2607
|
return 0;
|
|
2608
2608
|
} else if (localBusy) {
|
|
2609
2609
|
const $scope8_id = _scope_id();
|
|
2610
|
-
_html(`<span${_attr_class("
|
|
2610
|
+
_html(`<span${_attr_class("_fr")}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</span>`);
|
|
2611
2611
|
writeScope($scope8_id, {});
|
|
2612
2612
|
return 1;
|
|
2613
2613
|
} else if (!busy) {
|
|
@@ -2621,7 +2621,7 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2621
2621
|
_if(() => {
|
|
2622
2622
|
if (localError) {
|
|
2623
2623
|
const $scope6_id = _scope_id();
|
|
2624
|
-
_html(`<p${_attr_class("
|
|
2624
|
+
_html(`<p${_attr_class("_fx")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
2625
2625
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
2626
2626
|
return 0;
|
|
2627
2627
|
}
|
|
@@ -2633,10 +2633,10 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
2633
2633
|
_if(() => {
|
|
2634
2634
|
if (skipped$1.length) {
|
|
2635
2635
|
const $scope3_id = _scope_id();
|
|
2636
|
-
_html(`<p${_attr_class("
|
|
2636
|
+
_html(`<p${_attr_class("_fu")}>Skipped SSO for `);
|
|
2637
2637
|
_for_of(skipped$1, (s) => {
|
|
2638
2638
|
const $scope4_id = _scope_id();
|
|
2639
|
-
_html(`<span${_attr_class("
|
|
2639
|
+
_html(`<span${_attr_class("_fv")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_fw")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
2640
2640
|
_script($scope4_id, "B4");
|
|
2641
2641
|
writeScope($scope4_id, {
|
|
2642
2642
|
f: s?.org,
|
|
@@ -2709,7 +2709,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2709
2709
|
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;
|
|
2710
2710
|
const dismissable = input.dismissable !== false;
|
|
2711
2711
|
let open = input.open;
|
|
2712
|
-
_html(`<dialog${_attr_class(["
|
|
2712
|
+
_html(`<dialog${_attr_class(["_fV", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
2713
2713
|
...htmlInput,
|
|
2714
2714
|
open: null
|
|
2715
2715
|
}, {
|
|
@@ -2719,20 +2719,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
2719
2719
|
closedby: 1,
|
|
2720
2720
|
"on-cancel": 1,
|
|
2721
2721
|
"on-close": 1
|
|
2722
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
2722
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fW")}>`);
|
|
2723
2723
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
2724
2724
|
_html("</div>");
|
|
2725
2725
|
_if(() => {
|
|
2726
2726
|
if (footer) {
|
|
2727
2727
|
const $scope1_id = _scope_id();
|
|
2728
|
-
_html(`<form method=dialog${_attr_class("
|
|
2728
|
+
_html(`<form method=dialog${_attr_class("_fX")}>`);
|
|
2729
2729
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
2730
2730
|
_html("</form>");
|
|
2731
2731
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
2732
2732
|
return 0;
|
|
2733
2733
|
} else if (input.openChange) {
|
|
2734
2734
|
const $scope2_id = _scope_id();
|
|
2735
|
-
_html(`<form method=dialog${_attr_class("
|
|
2735
|
+
_html(`<form method=dialog${_attr_class("_fX")}>`);
|
|
2736
2736
|
dialog_close_default({
|
|
2737
2737
|
class: ["_o", "_p"],
|
|
2738
2738
|
content: _content("r0", () => {
|
|
@@ -2791,7 +2791,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2791
2791
|
const $childScope = _peek_scope_id();
|
|
2792
2792
|
modal_view_default({
|
|
2793
2793
|
label: input.label,
|
|
2794
|
-
class: "
|
|
2794
|
+
class: "_fY",
|
|
2795
2795
|
open: input.open,
|
|
2796
2796
|
openChange: input.openChange,
|
|
2797
2797
|
"aria-labelledby": titleId,
|
|
@@ -2814,7 +2814,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
2814
2814
|
content: _content("u6", () => {
|
|
2815
2815
|
_scope_reason();
|
|
2816
2816
|
const $scope2_id = _scope_id();
|
|
2817
|
-
_html(`<h2${_attr_class("
|
|
2817
|
+
_html(`<h2${_attr_class("_fZ")}${_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) => {
|
|
2818
2818
|
value = _new_value;
|
|
2819
2819
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
2820
2820
|
_script($scope2_id, "u4");
|
|
@@ -3023,13 +3023,20 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3023
3023
|
setActive(id, null);
|
|
3024
3024
|
}
|
|
3025
3025
|
}, "x17", $scope0_id);
|
|
3026
|
-
const
|
|
3026
|
+
const skillSeq = {
|
|
3027
|
+
issued: 0,
|
|
3028
|
+
applied: 0
|
|
3029
|
+
};
|
|
3030
|
+
const applySkills = _resume((snap, seq) => {
|
|
3031
|
+
if (seq <= skillSeq.applied) return;
|
|
3032
|
+
skillSeq.applied = seq;
|
|
3027
3033
|
skills = snap;
|
|
3028
3034
|
lastSkills = snap;
|
|
3029
3035
|
}, "x18", $scope0_id);
|
|
3030
3036
|
const loadSkills = _resume(async () => {
|
|
3037
|
+
const seq = ++skillSeq.issued;
|
|
3031
3038
|
try {
|
|
3032
|
-
applySkills(await api$6("/api/skills"));
|
|
3039
|
+
applySkills(await api$6("/api/skills"), seq);
|
|
3033
3040
|
} catch {}
|
|
3034
3041
|
}, "x19", $scope0_id);
|
|
3035
3042
|
const runSkill = _resume(async (key, body) => {
|
|
@@ -3038,12 +3045,13 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3038
3045
|
setActive(key, "");
|
|
3039
3046
|
const watcher = watchProgress$2(`skills:${key}`, (line) => setActive(key, line));
|
|
3040
3047
|
await watcher.ready;
|
|
3048
|
+
const seq = ++skillSeq.issued;
|
|
3041
3049
|
try {
|
|
3042
3050
|
applySkills(await api$6("/api/skills", {
|
|
3043
3051
|
method: "POST",
|
|
3044
3052
|
headers: { "content-type": "application/json" },
|
|
3045
3053
|
body: JSON.stringify(body)
|
|
3046
|
-
}));
|
|
3054
|
+
}), seq);
|
|
3047
3055
|
if (skillHits) skillHits = skillHits.map((h) => h.skillId === key ? {
|
|
3048
3056
|
...h,
|
|
3049
3057
|
installed: body.action !== "remove"
|
|
@@ -3348,7 +3356,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3348
3356
|
const backupId = _id();
|
|
3349
3357
|
const machineId = _id();
|
|
3350
3358
|
const skillsId = _id();
|
|
3351
|
-
_html(`<div${_attr_class("
|
|
3359
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$2)}>`);
|
|
3352
3360
|
_set_serialize_reason({
|
|
3353
3361
|
0: _serialize_guard($scope0_reason, 4),
|
|
3354
3362
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -3432,7 +3440,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3432
3440
|
const $scope48_id = _scope_id();
|
|
3433
3441
|
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope48_id, "a")}`);
|
|
3434
3442
|
_script($scope48_id, "x48");
|
|
3435
|
-
_subscribe($self_latest__closures, writeScope($scope48_id, {
|
|
3443
|
+
_subscribe($self_latest__closures, writeScope($scope48_id, { Cgz: 1 }));
|
|
3436
3444
|
return 0;
|
|
3437
3445
|
}
|
|
3438
3446
|
}, $scope46_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -3441,7 +3449,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3441
3449
|
return 0;
|
|
3442
3450
|
}
|
|
3443
3451
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
3444
|
-
_html(`<section${_attr_class("
|
|
3452
|
+
_html(`<section${_attr_class("_bx")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_by")}><h2${_attr("id", agentsId)}${_attr_class("_bL")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_ck")}><span${_attr_class("_R")}>Default</span><span${_attr_class("_m")}>`);
|
|
3445
3453
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
3446
3454
|
setPreferred(v);
|
|
3447
3455
|
}, "x2", $scope0_id), () => {
|
|
@@ -3466,14 +3474,14 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3466
3474
|
const rows = lone ? [] : a.instances;
|
|
3467
3475
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
3468
3476
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
3469
|
-
_html(`<li${_attr_class(["
|
|
3477
|
+
_html(`<li${_attr_class(["_bC", "_cj"])}><div${_attr_class(["_cm", { ["_cp"]: lone && !lone.enabled }])}>`);
|
|
3470
3478
|
_set_serialize_reason(12);
|
|
3471
3479
|
const $childScope4 = _peek_scope_id();
|
|
3472
3480
|
icon_agent_default({
|
|
3473
3481
|
agent: a.id,
|
|
3474
3482
|
size: 18
|
|
3475
3483
|
});
|
|
3476
|
-
_html(`<div${_attr_class("
|
|
3484
|
+
_html(`<div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class("_bE")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
3477
3485
|
_if(() => {
|
|
3478
3486
|
if (lone && input.preferred === lone.id) {
|
|
3479
3487
|
const $scope84_id = _scope_id();
|
|
@@ -3491,7 +3499,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3491
3499
|
return 0;
|
|
3492
3500
|
} else if (!a.installed) {
|
|
3493
3501
|
const $scope85_id = _scope_id();
|
|
3494
|
-
_html(`<span${_attr_class("
|
|
3502
|
+
_html(`<span${_attr_class("_bG")}>Not installed</span>`);
|
|
3495
3503
|
writeScope($scope85_id, {});
|
|
3496
3504
|
return 1;
|
|
3497
3505
|
}
|
|
@@ -3609,7 +3617,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3609
3617
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
3610
3618
|
_for_of(otherUsage, (u) => {
|
|
3611
3619
|
const $scope90_id = _scope_id();
|
|
3612
|
-
_html(`<li${_attr_class(["
|
|
3620
|
+
_html(`<li${_attr_class(["_bC", "_cj"])}>`);
|
|
3613
3621
|
_set_serialize_reason(6);
|
|
3614
3622
|
const $childScope9 = _peek_scope_id();
|
|
3615
3623
|
usage_meters_default({ agent: u });
|
|
@@ -3620,17 +3628,17 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3620
3628
|
_if(() => {
|
|
3621
3629
|
if (!usage && families.length) {
|
|
3622
3630
|
const $scope91_id = _scope_id();
|
|
3623
|
-
_html(`<p${_attr_class("
|
|
3631
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
3624
3632
|
writeScope($scope91_id, {});
|
|
3625
3633
|
return 0;
|
|
3626
3634
|
} else if (usage?.error) {
|
|
3627
3635
|
const $scope7_id = _scope_id();
|
|
3628
|
-
_html(`<p${_attr_class("
|
|
3636
|
+
_html(`<p${_attr_class("_bI")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
3629
3637
|
writeScope($scope7_id, {});
|
|
3630
3638
|
return 1;
|
|
3631
3639
|
}
|
|
3632
3640
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
3633
|
-
_html(`</section><section${_attr_class("
|
|
3641
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_by")}><h2${_attr("id", githubId)}${_attr_class("_bL")}>GitHub</h2></div><ul${_attr_class("_bA")}>`);
|
|
3634
3642
|
_for_of(setup?.github || [], (h) => {
|
|
3635
3643
|
const $scope12_id = _scope_id();
|
|
3636
3644
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -3644,7 +3652,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3644
3652
|
const skippedSso = (() => {
|
|
3645
3653
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
3646
3654
|
})();
|
|
3647
|
-
_html(`<li${_attr_class(["
|
|
3655
|
+
_html(`<li${_attr_class(["_bC", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class(["_bE", "_w"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
3648
3656
|
_if(() => {
|
|
3649
3657
|
if (h.isEnterprise) {
|
|
3650
3658
|
const $scope94_id = _scope_id();
|
|
@@ -3663,16 +3671,16 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3663
3671
|
} else if (active.has(h.host)) {
|
|
3664
3672
|
const $scope13_id = _scope_id();
|
|
3665
3673
|
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
3666
|
-
_subscribe($active__closures, writeScope($scope13_id, {
|
|
3674
|
+
_subscribe($active__closures, writeScope($scope13_id, { Cgm: 1 }));
|
|
3667
3675
|
return 1;
|
|
3668
3676
|
} else if (h.authed) {
|
|
3669
3677
|
const $scope92_id = _scope_id();
|
|
3670
|
-
_html(`<span${_attr_class("
|
|
3678
|
+
_html(`<span${_attr_class("_bG")}>Signed in <!>${h.user ? `${_escape(`${_to_text(" ")}`)}as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope92_id, "b")}</span>`);
|
|
3671
3679
|
writeScope($scope92_id, {});
|
|
3672
3680
|
return 2;
|
|
3673
3681
|
} else {
|
|
3674
3682
|
const $scope93_id = _scope_id();
|
|
3675
|
-
_html(`<span${_attr_class("
|
|
3683
|
+
_html(`<span${_attr_class("_bG")}>${_escape(h.error || "Not signed in")}${_el_resume($scope93_id, "b")}</span>`);
|
|
3676
3684
|
writeScope($scope93_id, {});
|
|
3677
3685
|
return 3;
|
|
3678
3686
|
}
|
|
@@ -3703,7 +3711,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3703
3711
|
if (h.isEnterprise) {
|
|
3704
3712
|
const $scope36_id = _scope_id();
|
|
3705
3713
|
_html(`<button${_attr_class([
|
|
3706
|
-
"
|
|
3714
|
+
"_bH",
|
|
3707
3715
|
"_2",
|
|
3708
3716
|
"_3",
|
|
3709
3717
|
{ ["_q"]: confirmingRemove === h.host }
|
|
@@ -3723,7 +3731,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3723
3731
|
}, $scope36_id, "a", 1, 1, 1, "</button>");
|
|
3724
3732
|
_script($scope36_id, "x54");
|
|
3725
3733
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, {
|
|
3726
|
-
|
|
3734
|
+
Cgp: 1,
|
|
3727
3735
|
Ca2: 1
|
|
3728
3736
|
})));
|
|
3729
3737
|
return 0;
|
|
@@ -3755,7 +3763,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3755
3763
|
});
|
|
3756
3764
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
3757
3765
|
a: _existing_scope($childScope10),
|
|
3758
|
-
|
|
3766
|
+
Cgm: 2
|
|
3759
3767
|
}))));
|
|
3760
3768
|
return 0;
|
|
3761
3769
|
}
|
|
@@ -3778,7 +3786,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3778
3786
|
_if(() => {
|
|
3779
3787
|
if (setup && !setup.github.length) {
|
|
3780
3788
|
const $scope97_id = _scope_id();
|
|
3781
|
-
_html(`<p${_attr_class("
|
|
3789
|
+
_html(`<p${_attr_class("_bI")}>Install the GitHub CLI below to sign in.</p>`);
|
|
3782
3790
|
writeScope($scope97_id, {});
|
|
3783
3791
|
return 0;
|
|
3784
3792
|
}
|
|
@@ -3786,7 +3794,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3786
3794
|
_if(() => {
|
|
3787
3795
|
if (autoPush !== null) {
|
|
3788
3796
|
const $scope65_id = _scope_id();
|
|
3789
|
-
_html(`<div${_attr_class(row)}><div${_attr_class("
|
|
3797
|
+
_html(`<div${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class("_cu")}>Auto-push</span><span${_attr_class("_bG")}>Every commit on a workspace branch goes to origin. A push that fails shows on the workspace.</span></div><button${_attr_class([
|
|
3790
3798
|
"_H",
|
|
3791
3799
|
"_J",
|
|
3792
3800
|
{ [tone.ok]: autoPush }
|
|
@@ -3812,7 +3820,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3812
3820
|
return 0;
|
|
3813
3821
|
}
|
|
3814
3822
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
3815
|
-
_html(`</section><section${_attr_class("
|
|
3823
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_by")}><h2${_attr("id", machineId)}${_attr_class("_bL")}><button${_attr_class("_cf")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
3816
3824
|
_set_serialize_reason(1);
|
|
3817
3825
|
const $childScope11 = _peek_scope_id();
|
|
3818
3826
|
icon_chevron_right_default({
|
|
@@ -3862,9 +3870,9 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3862
3870
|
_if(() => {
|
|
3863
3871
|
if (setup && !setup.mise.installed) {
|
|
3864
3872
|
const $scope17_id = _scope_id();
|
|
3865
|
-
_html(`<p${_attr_class("
|
|
3873
|
+
_html(`<p${_attr_class("_bI")}>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>`);
|
|
3866
3874
|
_script($scope17_id, "x59");
|
|
3867
|
-
_subscribe($active__closures, writeScope($scope17_id, {
|
|
3875
|
+
_subscribe($active__closures, writeScope($scope17_id, { Cgm: 3 }));
|
|
3868
3876
|
return 0;
|
|
3869
3877
|
}
|
|
3870
3878
|
}, $scope6_id, "a", 1, 1, 1, 0, 1);
|
|
@@ -3894,7 +3902,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3894
3902
|
icon_arrow_up_default({ size: 12 });
|
|
3895
3903
|
_html(` <!>${_escape(self.latest)}${_el_resume($scope51_id, "c")}</button>${_el_resume($scope51_id, "a")}`);
|
|
3896
3904
|
_script($scope51_id, "x60");
|
|
3897
|
-
_subscribe($self_latest__closures, writeScope($scope51_id, {
|
|
3905
|
+
_subscribe($self_latest__closures, writeScope($scope51_id, { Cgz: 3 }));
|
|
3898
3906
|
return 1;
|
|
3899
3907
|
} else if (self.latest) {
|
|
3900
3908
|
const $scope100_id = _scope_id();
|
|
@@ -3904,8 +3912,8 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3904
3912
|
}
|
|
3905
3913
|
}, $scope50_id, "c", 1, 1, 1, 0, 1);
|
|
3906
3914
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope50_id, {
|
|
3907
|
-
|
|
3908
|
-
|
|
3915
|
+
Cgz: 2,
|
|
3916
|
+
Ch0: 1
|
|
3909
3917
|
}))));
|
|
3910
3918
|
return 1;
|
|
3911
3919
|
}
|
|
@@ -3936,7 +3944,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
3936
3944
|
if (active.has(t.id)) {
|
|
3937
3945
|
const $scope19_id = _scope_id();
|
|
3938
3946
|
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
3939
|
-
_subscribe($active__closures, writeScope($scope19_id, {
|
|
3947
|
+
_subscribe($active__closures, writeScope($scope19_id, { Cgm: 5 }));
|
|
3940
3948
|
return 0;
|
|
3941
3949
|
} else if (t.installed) {
|
|
3942
3950
|
const $scope40_id = _scope_id();
|
|
@@ -4020,7 +4028,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4020
4028
|
}
|
|
4021
4029
|
}, $scope38_id, "a", 1, 1, 1, "</button>");
|
|
4022
4030
|
_script($scope38_id, "x64");
|
|
4023
|
-
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope38_id, {
|
|
4031
|
+
_subscribe($for_content5__t_id__closures, _subscribe($for_content5__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope38_id, { Cgp: 2 }))));
|
|
4024
4032
|
return 1;
|
|
4025
4033
|
}
|
|
4026
4034
|
}, $scope37_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -4044,7 +4052,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4044
4052
|
x: $for_content5__t_path__closures,
|
|
4045
4053
|
y: $for_content5__t_latest__closures,
|
|
4046
4054
|
v: $for_content5__t_id__closures,
|
|
4047
|
-
|
|
4055
|
+
Cgm: 4
|
|
4048
4056
|
}));
|
|
4049
4057
|
}, "id", $scope6_id, "d", 1, 1, 1, 0, 1);
|
|
4050
4058
|
_html("</ul>");
|
|
@@ -4063,16 +4071,16 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4063
4071
|
_html(`<ul${_attr_class([toolGrid, "_cx"])}>`);
|
|
4064
4072
|
_for_of(hits, (h) => {
|
|
4065
4073
|
const $scope22_id = _scope_id();
|
|
4066
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
4074
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bD")}><span${_attr_class(["_cu", "_w"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
4067
4075
|
_if(() => {
|
|
4068
4076
|
if (active.has(h.name)) {
|
|
4069
4077
|
const $scope23_id = _scope_id();
|
|
4070
4078
|
_html(`<span${_attr_class("_cd")}><span${_attr_class("_E")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
4071
|
-
_subscribe($active__closures, writeScope($scope23_id, {
|
|
4079
|
+
_subscribe($active__closures, writeScope($scope23_id, { Cgm: 7 }));
|
|
4072
4080
|
return 0;
|
|
4073
4081
|
} else if (h.description) {
|
|
4074
4082
|
const $scope108_id = _scope_id();
|
|
4075
|
-
_html(`<span${_attr_class("
|
|
4083
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope108_id, "b")}</span>${_el_resume($scope108_id, "a")}`);
|
|
4076
4084
|
writeScope($scope108_id, {});
|
|
4077
4085
|
return 1;
|
|
4078
4086
|
}
|
|
@@ -4104,15 +4112,15 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4104
4112
|
i: h?.name,
|
|
4105
4113
|
k: h?.description,
|
|
4106
4114
|
m: h?.installed,
|
|
4107
|
-
|
|
4115
|
+
Cgm: 6
|
|
4108
4116
|
}));
|
|
4109
4117
|
}, "name", $scope21_id, "a", 1, 1, 1, "</ul>", 1);
|
|
4110
|
-
_subscribe($hits__closures, writeScope($scope21_id, {
|
|
4118
|
+
_subscribe($hits__closures, writeScope($scope21_id, { Cgw: 1 }));
|
|
4111
4119
|
return 0;
|
|
4112
4120
|
} else if (hits && !searching) {
|
|
4113
4121
|
const $scope45_id = _scope_id();
|
|
4114
|
-
_html(`<p${_attr_class("
|
|
4115
|
-
_subscribe($query__closures, writeScope($scope45_id, {
|
|
4122
|
+
_html(`<p${_attr_class("_bI")}>No tools match "<!>${_escape(query)}${_el_resume($scope45_id, "b")}".</p>`);
|
|
4123
|
+
_subscribe($query__closures, writeScope($scope45_id, { Cgv: 1 }));
|
|
4116
4124
|
return 1;
|
|
4117
4125
|
}
|
|
4118
4126
|
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -4126,7 +4134,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4126
4134
|
return 0;
|
|
4127
4135
|
}
|
|
4128
4136
|
}, $scope0_id, "ab");
|
|
4129
|
-
_html(`</section><section${_attr_class("
|
|
4137
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", skillsId)}><div${_attr_class("_by")}><h2${_attr("id", skillsId)}${_attr_class("_bL")}><button${_attr_class("_cf")} aria-expanded=false>`);
|
|
4130
4138
|
_set_serialize_reason(1);
|
|
4131
4139
|
const $childScope12 = _peek_scope_id();
|
|
4132
4140
|
icon_chevron_right_default({
|
|
@@ -4158,7 +4166,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4158
4166
|
label: "Dark"
|
|
4159
4167
|
}
|
|
4160
4168
|
];
|
|
4161
|
-
_html(`</section><section${_attr_class("
|
|
4169
|
+
_html(`</section><section${_attr_class("_bx")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_by")}><h2${_attr("id", appearanceId)}${_attr_class("_bL")}>Appearance</h2></div><div${_attr_class(["_bC", "_cD"])}><label${_attr_class("_cE")}><span${_attr_class("_cF")}>Name</span><input${_attr_input_value($scope0_id, "ap", input.instance.name, _resume(function(v) {
|
|
4162
4170
|
setInstance({ name: v });
|
|
4163
4171
|
}, "x4", $scope0_id))}${_attr_class(["_T", "_cG"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "ap")}</label><div${_attr_class("_cE")}><span${_attr_class("_cF")}>Theme</span><span${_attr_class("_cI")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
4164
4172
|
_for_of(themeOpts, (opt) => {
|
|
@@ -4202,7 +4210,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4202
4210
|
{ ["_cR"]: customOn }
|
|
4203
4211
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b2", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
4204
4212
|
setInstance({ accent: v });
|
|
4205
|
-
}, "x6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b2")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b1", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
4213
|
+
}, "x6", $scope0_id))}${_attr_class("_cU")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b2")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b1", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bx")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_by")}><h2${_attr("id", backupId)}${_attr_class("_bL")}>Backup</h2></div><ul${_attr_class("_bA")}><li${_attr_class(["_bC", "_c2"])}><div${_attr_class("_c3")}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>Export</span>`);
|
|
4206
4214
|
_if(() => {
|
|
4207
4215
|
if (backupBusy === "preflight" || backupBusy === "push") {
|
|
4208
4216
|
const $scope66_id = _scope_id();
|
|
@@ -4211,7 +4219,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4211
4219
|
return 0;
|
|
4212
4220
|
} else {
|
|
4213
4221
|
const $scope124_id = _scope_id();
|
|
4214
|
-
_html(`<span${_attr_class("
|
|
4222
|
+
_html(`<span${_attr_class("_bG")}>Workspaces and their branches, settings, skills and tool pins in one file. Code stays on GitHub.</span>`);
|
|
4215
4223
|
writeScope($scope124_id, {});
|
|
4216
4224
|
return 1;
|
|
4217
4225
|
}
|
|
@@ -4251,7 +4259,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4251
4259
|
_for_of(preflight.workspaces, (w) => {
|
|
4252
4260
|
const $scope126_id = _scope_id();
|
|
4253
4261
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
4254
|
-
_html(`<li${_attr_class("_c8")}><span${_attr_class("
|
|
4262
|
+
_html(`<li${_attr_class("_c8")}><span${_attr_class("_bE")}>${_escape(w.name)}${_el_resume($scope126_id, "c")}</span><ul${_attr_class("_c7")}>`);
|
|
4255
4263
|
_for_of(w.repos, (r) => {
|
|
4256
4264
|
const $scope127_id = _scope_id();
|
|
4257
4265
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
@@ -4338,7 +4346,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4338
4346
|
return 0;
|
|
4339
4347
|
}
|
|
4340
4348
|
}, $scope0_id, "bd", 1, 1, 1, 0, 1);
|
|
4341
|
-
_html(`</li><li${_attr_class(["
|
|
4349
|
+
_html(`</li><li${_attr_class(["_bC", "_c2"])}><div${_attr_class("_c3")}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>Restore</span>`);
|
|
4342
4350
|
_if(() => {
|
|
4343
4351
|
if (backupBusy === "restore") {
|
|
4344
4352
|
const $scope67_id = _scope_id();
|
|
@@ -4347,12 +4355,12 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4347
4355
|
return 0;
|
|
4348
4356
|
} else if (restoreDone) {
|
|
4349
4357
|
const $scope75_id = _scope_id();
|
|
4350
|
-
_html(`<span${_attr_class("
|
|
4358
|
+
_html(`<span${_attr_class("_bG")}>${_escape(restoreDone)}${_el_resume($scope75_id, "b")}</span>`);
|
|
4351
4359
|
writeScope($scope75_id, {});
|
|
4352
4360
|
return 1;
|
|
4353
4361
|
} else {
|
|
4354
4362
|
const $scope135_id = _scope_id();
|
|
4355
|
-
_html(`<span${_attr_class("
|
|
4363
|
+
_html(`<span${_attr_class("_bG")}>From a file exported here or on another machine. Workspaces come back as they were; their repos clone in the background.</span>`);
|
|
4356
4364
|
writeScope($scope135_id, {});
|
|
4357
4365
|
return 2;
|
|
4358
4366
|
}
|
|
@@ -4379,7 +4387,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4379
4387
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
4380
4388
|
_for_of(preview.workspaces, (w) => {
|
|
4381
4389
|
const $scope72_id = _scope_id();
|
|
4382
|
-
_html(`<li><label${_attr_class(["_df", { ["_dh"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dg")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("
|
|
4390
|
+
_html(`<li><label${_attr_class(["_df", { ["_dh"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dg")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_bD")}><span${_attr_class("_bF")}><span${_attr_class("_bE")}>${_escape(w.name)}${_el_resume($scope72_id, "f")}</span>`);
|
|
4383
4391
|
_if(() => {
|
|
4384
4392
|
if (w.status === "archived") {
|
|
4385
4393
|
const $scope139_id = _scope_id();
|
|
@@ -4401,7 +4409,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4401
4409
|
return 1;
|
|
4402
4410
|
}
|
|
4403
4411
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
4404
|
-
_html(`</span><span${_attr_class("
|
|
4412
|
+
_html(`</span><span${_attr_class("_bG")}>${_escape(w.repos.join(", ") || "no repos")}${_el_resume($scope72_id, "j")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
4405
4413
|
_script($scope72_id, "x80");
|
|
4406
4414
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
4407
4415
|
n: w?.unknownHost,
|
|
@@ -4412,7 +4420,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4412
4420
|
return 0;
|
|
4413
4421
|
} else {
|
|
4414
4422
|
const $scope137_id = _scope_id();
|
|
4415
|
-
_html(`<p${_attr_class("
|
|
4423
|
+
_html(`<p${_attr_class("_bI")}>No workspaces in this file.</p>`);
|
|
4416
4424
|
writeScope($scope137_id, {});
|
|
4417
4425
|
return 1;
|
|
4418
4426
|
}
|
|
@@ -4452,7 +4460,7 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4452
4460
|
_if(() => {
|
|
4453
4461
|
if (p.total) {
|
|
4454
4462
|
const $scope74_id = _scope_id();
|
|
4455
|
-
_html(`<li><label${_attr_class(["_df", { ["_dh"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dg")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("
|
|
4463
|
+
_html(`<li><label${_attr_class(["_df", { ["_dh"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dg")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_bD")}><span${_attr_class("_bE")}>${_escape(p.label)}${_el_resume($scope74_id, "e")}</span><span${_attr_class("_bG")}>`);
|
|
4456
4464
|
_if(() => {
|
|
4457
4465
|
if (p.key === "settings") {
|
|
4458
4466
|
const $scope136_id = _scope_id();
|
|
@@ -4591,110 +4599,112 @@ var settings_page_default = _template("x", (input) => {
|
|
|
4591
4599
|
dr: refreshUsage,
|
|
4592
4600
|
ds: setActive,
|
|
4593
4601
|
du: run,
|
|
4594
|
-
|
|
4595
|
-
dx:
|
|
4596
|
-
dy:
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
e5:
|
|
4602
|
-
e6: preflight
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
el:
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
f0:
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
f6:
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
fj:
|
|
4639
|
-
fl:
|
|
4640
|
-
fn:
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4602
|
+
dw: skillSeq.applied,
|
|
4603
|
+
dx: skillSeq.issued,
|
|
4604
|
+
dy: applySkills,
|
|
4605
|
+
e1: loadSkills,
|
|
4606
|
+
e2: runSkill,
|
|
4607
|
+
e3: autoPush,
|
|
4608
|
+
e4: backupBusy,
|
|
4609
|
+
e5: backupLine,
|
|
4610
|
+
e6: preflight,
|
|
4611
|
+
e9: preflight?.contents?.workspaces,
|
|
4612
|
+
ea: preflight?.contents?.archived,
|
|
4613
|
+
eb: preflight?.contents?.tools,
|
|
4614
|
+
ec: preflight?.contents?.skills,
|
|
4615
|
+
ed: preflight?.contents?.agents,
|
|
4616
|
+
ee: preflight?.unpushed,
|
|
4617
|
+
ef: preflight?.files,
|
|
4618
|
+
eg: preflight?.workspaces,
|
|
4619
|
+
eh: restorePreview,
|
|
4620
|
+
ej: restoreWs,
|
|
4621
|
+
ek: restoreWs?.size,
|
|
4622
|
+
el: restoreParts,
|
|
4623
|
+
en: restoreDone,
|
|
4624
|
+
ep: loadAutoPush,
|
|
4625
|
+
eq: setAutoPush,
|
|
4626
|
+
er: downloadManifest,
|
|
4627
|
+
et: startExport,
|
|
4628
|
+
eu: pushAndExport,
|
|
4629
|
+
ev: pickRestoreFile,
|
|
4630
|
+
ew: toggleRestoreWs,
|
|
4631
|
+
ex: runRestore,
|
|
4632
|
+
ey: searchSkills,
|
|
4633
|
+
ez: changeHost,
|
|
4634
|
+
f0: runEach,
|
|
4635
|
+
f1: setPreferred,
|
|
4636
|
+
f4: saveTimer.id,
|
|
4637
|
+
f6: setInstance,
|
|
4638
|
+
f9: setEnabled,
|
|
4639
|
+
fa: search,
|
|
4640
|
+
fb: outdated,
|
|
4641
|
+
fc: tools,
|
|
4642
|
+
fe: missingInstallable,
|
|
4643
|
+
ff: missingInstallable?.length,
|
|
4644
|
+
fh: missingCount,
|
|
4645
|
+
fi: outdatedIds,
|
|
4646
|
+
fj: outdatedIds?.length,
|
|
4647
|
+
fl: families,
|
|
4648
|
+
fn: families.length,
|
|
4649
|
+
fp: instanceIds,
|
|
4650
|
+
fr: accountsFor,
|
|
4651
|
+
fs: strayAccountsFor,
|
|
4652
|
+
g5: restorePreview?.preview?.from?.host,
|
|
4653
|
+
g6: restorePreview?.preview?.from?.exportedAt,
|
|
4654
|
+
g7: restorePreview?.preview?.from?.version,
|
|
4655
|
+
g8: restorePreview?.preview?.workspaces,
|
|
4656
|
+
g9: restorePreview?.preview?.workspaces?.length,
|
|
4657
|
+
ga: restorePreview?.preview?.tools,
|
|
4658
|
+
gb: restorePreview?.preview?.skills,
|
|
4659
|
+
gc: restorePreview?.preview?.agents,
|
|
4660
|
+
gd: restorePreview?.preview?.hosts,
|
|
4661
|
+
ge: restorePreview?.preview?.settings,
|
|
4662
|
+
gi: $setup_missing__closures,
|
|
4663
|
+
gl: $refreshing__closures,
|
|
4654
4664
|
d: _existing_scope($childScope2),
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4665
|
+
gk: $error__closures,
|
|
4666
|
+
gz: $self_latest__closures,
|
|
4667
|
+
h0: $self_version__closures,
|
|
4658
4668
|
p: _existing_scope($childScope3),
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4669
|
+
gm: $active__closures,
|
|
4670
|
+
gf: $si__input_preferred && $input_preferred__closures,
|
|
4671
|
+
i0: $accountsFor2__closures,
|
|
4672
|
+
go: $authCodes__closures,
|
|
4673
|
+
gp: $confirmingRemove__closures,
|
|
4674
|
+
hd: $si__input_setupChange && $refresh2__closures,
|
|
4675
|
+
he: $run2__closures,
|
|
4666
4676
|
a5: _existing_scope($childScope11),
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4677
|
+
gy: $self_install__closures,
|
|
4678
|
+
h1: $selfUpdating__closures,
|
|
4679
|
+
gw: $hits__closures,
|
|
4680
|
+
gv: $query__closures,
|
|
4681
|
+
h3: $searching__closures,
|
|
4682
|
+
hv: $search2__closures,
|
|
4673
4683
|
ag: _existing_scope($childScope12),
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4684
|
+
hc: $confirmingSkill__closures,
|
|
4685
|
+
h4: $skills__closures,
|
|
4686
|
+
h8: $skills_available__closures,
|
|
4687
|
+
h9: $skillQuery__closures,
|
|
4688
|
+
ha: $skillHits__closures,
|
|
4689
|
+
hb: $skillSearching__closures,
|
|
4690
|
+
hu: $searchSkills2__closures,
|
|
4691
|
+
hn: $preflight_unpushed__closures,
|
|
4692
|
+
ho: $preflight_files__closures,
|
|
4693
|
+
hq: $restoreWs__closures,
|
|
4694
|
+
i5: $preview_workspaces__closures,
|
|
4695
|
+
ib: $preview_settings__closures,
|
|
4696
|
+
hs: $restoreParts__closures
|
|
4687
4697
|
});
|
|
4688
4698
|
_resume_branch($scope0_id);
|
|
4689
4699
|
});
|
|
4690
4700
|
//#endregion
|
|
4691
4701
|
//#region src/tags/new-workspace.css.ts
|
|
4692
|
-
var content$1 = "_bM
|
|
4693
|
-
var section$1 = "_bQ
|
|
4702
|
+
var content$1 = "_bM _bp";
|
|
4703
|
+
var section$1 = "_bQ _bx";
|
|
4694
4704
|
var curBase = "_bV _S _R";
|
|
4695
|
-
var archived = "_b0
|
|
4705
|
+
var archived = "_b0 _bx";
|
|
4696
4706
|
var archivedHint = "_b1 _R";
|
|
4697
|
-
var archivedCard = "_b2
|
|
4707
|
+
var archivedCard = "_b2 _bC";
|
|
4698
4708
|
//#endregion
|
|
4699
4709
|
//#region src/tags/icons/icon-group.marko
|
|
4700
4710
|
var icon_group_default = _template("cb", (input) => {
|
|
@@ -4763,7 +4773,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
4763
4773
|
_if(() => {
|
|
4764
4774
|
{
|
|
4765
4775
|
const $scope4_id = _scope_id();
|
|
4766
|
-
_html(`<p${_attr_class("
|
|
4776
|
+
_html(`<p${_attr_class("_bI")}><span${_attr_class("_E")}></span> Loading branches…</p>`);
|
|
4767
4777
|
writeScope($scope4_id, {});
|
|
4768
4778
|
return 0;
|
|
4769
4779
|
}
|
|
@@ -4931,7 +4941,7 @@ var repo_picker_default = _template("v", (input) => {
|
|
|
4931
4941
|
return 0;
|
|
4932
4942
|
} else if (filter && !catalog) {
|
|
4933
4943
|
const $scope9_id = _scope_id();
|
|
4934
|
-
_html(`<p${_attr_class("
|
|
4944
|
+
_html(`<p${_attr_class("_bI")}>Loading repos…</p>`);
|
|
4935
4945
|
writeScope($scope9_id, {});
|
|
4936
4946
|
return 1;
|
|
4937
4947
|
}
|
|
@@ -4982,7 +4992,7 @@ var repo_picker_default = _template("v", (input) => {
|
|
|
4982
4992
|
return 0;
|
|
4983
4993
|
} else if (filter && catalog && !pasted) {
|
|
4984
4994
|
const $scope6_id = _scope_id();
|
|
4985
|
-
_html(`<p${_attr_class("
|
|
4995
|
+
_html(`<p${_attr_class("_bI")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
4986
4996
|
writeScope($scope6_id, {});
|
|
4987
4997
|
return 1;
|
|
4988
4998
|
}
|
|
@@ -5134,7 +5144,7 @@ function parseInvite(text) {
|
|
|
5134
5144
|
repos
|
|
5135
5145
|
};
|
|
5136
5146
|
}
|
|
5137
|
-
var hint = "
|
|
5147
|
+
var hint = "_dL _R";
|
|
5138
5148
|
//#endregion
|
|
5139
5149
|
//#region src/tags/join-dialog.marko
|
|
5140
5150
|
var api$4;
|
|
@@ -5244,7 +5254,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5244
5254
|
const $childScope = _peek_scope_id();
|
|
5245
5255
|
modal_view_default({
|
|
5246
5256
|
label: "Join a workspace",
|
|
5247
|
-
class: "
|
|
5257
|
+
class: "_dJ",
|
|
5248
5258
|
open: input.open,
|
|
5249
5259
|
openChange: _resume(function(next) {
|
|
5250
5260
|
if (!next) reset();
|
|
@@ -5267,26 +5277,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5267
5277
|
content: _content("o12", () => {
|
|
5268
5278
|
_scope_reason();
|
|
5269
5279
|
const $scope1_id = _scope_id();
|
|
5270
|
-
_html(`<h2${_attr_class("
|
|
5280
|
+
_html(`<h2${_attr_class("_dK")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
5271
5281
|
"_T",
|
|
5272
5282
|
"_w",
|
|
5273
|
-
"
|
|
5283
|
+
"_dN"
|
|
5274
5284
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
5275
5285
|
_if(() => {
|
|
5276
5286
|
if (parsed.error) {
|
|
5277
5287
|
const $scope8_id = _scope_id();
|
|
5278
|
-
_html(`<p${_attr_class([hint, "
|
|
5288
|
+
_html(`<p${_attr_class([hint, "_dM"])}>${_escape(parsed.error)}${_el_resume($scope8_id, "b")}</p>`);
|
|
5279
5289
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cae: 1 }));
|
|
5280
5290
|
return 0;
|
|
5281
5291
|
} else if (parsed.ok) {
|
|
5282
5292
|
const $scope3_id = _scope_id();
|
|
5283
|
-
_html(`<ul${_attr_class("
|
|
5293
|
+
_html(`<ul${_attr_class("_dO")}>`);
|
|
5284
5294
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
5285
5295
|
const $scope9_id = _scope_id();
|
|
5286
|
-
_html(`<li${_attr_class("
|
|
5296
|
+
_html(`<li${_attr_class("_dP")}><span${_attr_class("_dQ")}>${_escape(repoLabel(fullName))}${_el_resume($scope9_id, "c")}</span></li>`);
|
|
5287
5297
|
writeScope($scope9_id, {});
|
|
5288
5298
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
5289
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
5299
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_escape(parsed.ok.branch)}${_el_resume($scope3_id, "d")}</span> in each; PRs target theirs.</p><label${_attr_class("_dR")}><span${_attr_class("_bL")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
5290
5300
|
name = _new_name;
|
|
5291
5301
|
}, "o1", $scope3_id))}${_attr_class("_T")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
5292
5302
|
_script($scope3_id, "o8");
|
|
@@ -5323,10 +5333,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5323
5333
|
_if(() => {
|
|
5324
5334
|
if (busy && steps$2.length) {
|
|
5325
5335
|
const $scope6_id = _scope_id();
|
|
5326
|
-
_html(`<ul${_attr_class("
|
|
5336
|
+
_html(`<ul${_attr_class("_dS")}>`);
|
|
5327
5337
|
_for_of(steps$2, (step$2, i) => {
|
|
5328
5338
|
const $scope7_id = _scope_id();
|
|
5329
|
-
_html(`<li${_attr_class(["
|
|
5339
|
+
_html(`<li${_attr_class(["_dU", { ["_dT"]: i === steps$2.length - 1 }])}>`);
|
|
5330
5340
|
_if(() => {
|
|
5331
5341
|
if (i === steps$2.length - 1) {
|
|
5332
5342
|
const $scope10_id = _scope_id();
|
|
@@ -5335,7 +5345,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
5335
5345
|
return 0;
|
|
5336
5346
|
} else {
|
|
5337
5347
|
const $scope11_id = _scope_id();
|
|
5338
|
-
_html(`<span${_attr_class("
|
|
5348
|
+
_html(`<span${_attr_class("_dV")}>`);
|
|
5339
5349
|
icon_check_default({ size: 14 });
|
|
5340
5350
|
_html("</span>");
|
|
5341
5351
|
writeScope($scope11_id, {});
|
|
@@ -5490,7 +5500,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5490
5500
|
}
|
|
5491
5501
|
}, "s6", $scope0_id);
|
|
5492
5502
|
const titleId = _id();
|
|
5493
|
-
_html(`<div${_attr_class("
|
|
5503
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content$1)}>`);
|
|
5494
5504
|
_set_serialize_reason({
|
|
5495
5505
|
0: _serialize_guard($scope0_reason, 2),
|
|
5496
5506
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5539,9 +5549,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5539
5549
|
return 0;
|
|
5540
5550
|
}
|
|
5541
5551
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5542
|
-
_html(`<label${_attr_class("_bP")}><span${_attr_class("
|
|
5552
|
+
_html(`<label${_attr_class("_bP")}><span${_attr_class("_bL")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5543
5553
|
name = _new_name;
|
|
5544
|
-
}, "s0", $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("_bR")}><h2${_attr_class("
|
|
5554
|
+
}, "s0", $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("_bR")}><h2${_attr_class("_bL")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5545
5555
|
_set_serialize_reason(1);
|
|
5546
5556
|
const $childScope2 = _peek_scope_id();
|
|
5547
5557
|
icon_refresh_default({
|
|
@@ -5614,7 +5624,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5614
5624
|
_if(() => {
|
|
5615
5625
|
if (!selected.length) {
|
|
5616
5626
|
const $scope16_id = _scope_id();
|
|
5617
|
-
_html(`<li${_attr_class("
|
|
5627
|
+
_html(`<li${_attr_class("_bI")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5618
5628
|
writeScope($scope16_id, {});
|
|
5619
5629
|
return 0;
|
|
5620
5630
|
}
|
|
@@ -5683,10 +5693,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
5683
5693
|
_if(() => {
|
|
5684
5694
|
if (archived$1.length) {
|
|
5685
5695
|
const $scope6_id = _scope_id();
|
|
5686
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("
|
|
5696
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bR")}><h2${_attr_class("_bL")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope6_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("_bA")}>`);
|
|
5687
5697
|
_for_of(archived$1, (ws) => {
|
|
5688
5698
|
const $scope7_id = _scope_id();
|
|
5689
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
5699
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bD")}><span${_attr_class("_bE")}>${_escape(ws.name)}${_el_resume($scope7_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope7_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
5690
5700
|
_if(() => {
|
|
5691
5701
|
if (restoring === ws.id) {
|
|
5692
5702
|
const $scope19_id = _scope_id();
|
|
@@ -5810,8 +5820,8 @@ function vapidKey(base64) {
|
|
|
5810
5820
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
5811
5821
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
5812
5822
|
}
|
|
5813
|
-
var iconBtn$1 = "
|
|
5814
|
-
var navToggle = "
|
|
5823
|
+
var iconBtn$1 = "_d7 _j";
|
|
5824
|
+
var navToggle = "_eb _j";
|
|
5815
5825
|
_template("P", (input) => {
|
|
5816
5826
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5817
5827
|
const $scope0_id = _scope_id();
|
|
@@ -5854,12 +5864,12 @@ var ARM_MS = 3500;
|
|
|
5854
5864
|
function disarmLater(fn) {
|
|
5855
5865
|
return setTimeout(fn, ARM_MS);
|
|
5856
5866
|
}
|
|
5857
|
-
var railBtn = "
|
|
5858
|
-
var rowIcon = "
|
|
5859
|
-
var close = "
|
|
5867
|
+
var railBtn = "_g0 _j";
|
|
5868
|
+
var rowIcon = "_g9 _Y _j";
|
|
5869
|
+
var close = "_g_ _1 _j _2";
|
|
5860
5870
|
//#endregion
|
|
5861
5871
|
//#region src/styles/session-pop.css.ts
|
|
5862
|
-
var sessionPop = "
|
|
5872
|
+
var sessionPop = "_gW _4";
|
|
5863
5873
|
//#endregion
|
|
5864
5874
|
//#region src/client/status.ts
|
|
5865
5875
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -5941,7 +5951,7 @@ var usage_pcts_default = _template("G", (input) => {
|
|
|
5941
5951
|
return 0;
|
|
5942
5952
|
}
|
|
5943
5953
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5944
|
-
_html(`<span${_attr_class("_f3")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f4", win$1.used_percent >= 90 ? "
|
|
5954
|
+
_html(`<span${_attr_class("_f3")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_f4", win$1.used_percent >= 90 ? "_fR" : win$1.used_percent >= 70 ? "_fQ" : win$1.used_percent >= 40 ? "_fP" : "_fO"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5945
5955
|
$si__input_agent && writeScope($scope2_id, {});
|
|
5946
5956
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
5947
5957
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6214,40 +6224,40 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6214
6224
|
_if(() => {
|
|
6215
6225
|
if (input.rail) {
|
|
6216
6226
|
const $scope2_id = _scope_id();
|
|
6217
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6227
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gY"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${input.index === void 0 ? "·" : _escape(input.index + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 26))}<span${_attr_class([
|
|
6218
6228
|
"_y",
|
|
6219
6229
|
phase[dot],
|
|
6220
|
-
"
|
|
6230
|
+
"_g1"
|
|
6221
6231
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6222
6232
|
_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_workspaces__OR__input_workspaceId && $ws_pending__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))))));
|
|
6223
6233
|
return 0;
|
|
6224
6234
|
} else if (ws$1.pending) {
|
|
6225
6235
|
const $scope3_id = _scope_id();
|
|
6226
6236
|
_html(`<section${_attr_class([
|
|
6227
|
-
"
|
|
6228
|
-
"
|
|
6237
|
+
"_g3",
|
|
6238
|
+
"_hp",
|
|
6229
6239
|
{
|
|
6230
|
-
["
|
|
6231
|
-
["
|
|
6240
|
+
["_g4"]: input.railPop,
|
|
6241
|
+
["_g2"]: input.page
|
|
6232
6242
|
}
|
|
6233
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
6243
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_g5")}><div${_attr_class("_g6")}>`);
|
|
6234
6244
|
_if(() => {
|
|
6235
6245
|
if (ws$1.pending_error) {
|
|
6236
6246
|
const $scope15_id = _scope_id();
|
|
6237
6247
|
icon_warning_default({
|
|
6238
6248
|
size: 12,
|
|
6239
|
-
class: "
|
|
6249
|
+
class: "_hr"
|
|
6240
6250
|
});
|
|
6241
6251
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
6242
6252
|
return 0;
|
|
6243
6253
|
} else {
|
|
6244
6254
|
const $scope16_id = _scope_id();
|
|
6245
|
-
_html(`<span${_attr_class(["_E", "
|
|
6255
|
+
_html(`<span${_attr_class(["_E", "_hq"])}></span>`);
|
|
6246
6256
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
6247
6257
|
return 1;
|
|
6248
6258
|
}
|
|
6249
6259
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
6250
|
-
_html(`<span${_attr_class("
|
|
6260
|
+
_html(`<span${_attr_class("_hb")}><span${_attr_class("_hc")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "g", $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_hs")}${_attr("title", ws$1.pending_error || restoreLine)}>${ws$1.pending_error ? `Restore failed: ${_escape(`${ws$1.pending_error}`)}` : _escape("Restoring…")}${_el_resume($scope3_id, "i")}</span>${_el_resume($scope3_id, "h")}</span></div></div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 10))}`);
|
|
6251
6261
|
_subscribe($restoreLine__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_pending_error__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
6252
6262
|
_: _scope_with_id($scope1_id),
|
|
6253
6263
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -6257,15 +6267,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6257
6267
|
const $scope4_id = _scope_id();
|
|
6258
6268
|
const sessions$1 = input.sessions || [];
|
|
6259
6269
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6260
|
-
_html(`<section${_attr_class(["
|
|
6261
|
-
["
|
|
6270
|
+
_html(`<section${_attr_class(["_g3", {
|
|
6271
|
+
["_gY"]: input.current,
|
|
6262
6272
|
["_5"]: input.current,
|
|
6263
|
-
["
|
|
6264
|
-
["
|
|
6265
|
-
}])}><div${_attr_class("
|
|
6273
|
+
["_g4"]: input.railPop,
|
|
6274
|
+
["_g2"]: input.page
|
|
6275
|
+
}])}><div${_attr_class("_g5")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_g6")}><span${_attr_class([
|
|
6266
6276
|
"_y",
|
|
6267
6277
|
phase[dot],
|
|
6268
|
-
"
|
|
6278
|
+
"_hh"
|
|
6269
6279
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6270
6280
|
_if(() => {
|
|
6271
6281
|
if (sessions$1.length === 1) {
|
|
@@ -6278,7 +6288,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6278
6288
|
icon_agent_default({
|
|
6279
6289
|
agent: activeAgent(sessions$1[0]),
|
|
6280
6290
|
size: 12,
|
|
6281
|
-
class: "
|
|
6291
|
+
class: "_ha"
|
|
6282
6292
|
});
|
|
6283
6293
|
$si__input_sessions && writeScope($scope17_id, {
|
|
6284
6294
|
_: _scope_with_id($scope4_id),
|
|
@@ -6288,11 +6298,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6288
6298
|
}
|
|
6289
6299
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6290
6300
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
6291
|
-
_html(`<span${_attr_class("
|
|
6301
|
+
_html(`<span${_attr_class("_hb")}><span${_attr_class("_hc")}>${_escape(ws$1.name)}${_el_resume($scope4_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6292
6302
|
_if(() => {
|
|
6293
6303
|
if (input.page && metaText) {
|
|
6294
6304
|
const $scope18_id = _scope_id();
|
|
6295
|
-
_html(`<span${_attr_class("
|
|
6305
|
+
_html(`<span${_attr_class("_hf")}>${_escape(metaText)}${_el_resume($scope18_id, "b", _serialize_guard($scope0_reason, 6))}</span>`);
|
|
6296
6306
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 6) && _scope_with_id($scope4_id) });
|
|
6297
6307
|
return 0;
|
|
6298
6308
|
}
|
|
@@ -6305,7 +6315,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6305
6315
|
"_H",
|
|
6306
6316
|
"_Q",
|
|
6307
6317
|
"_J",
|
|
6308
|
-
"
|
|
6318
|
+
"_hg"
|
|
6309
6319
|
])}>${input.current ? "Open" : ""}${_el_resume($scope5_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6310
6320
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
6311
6321
|
_: _scope_with_id($scope4_id),
|
|
@@ -6318,7 +6328,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6318
6328
|
_if(() => {
|
|
6319
6329
|
if (!input.page) {
|
|
6320
6330
|
const $scope6_id = _scope_id();
|
|
6321
|
-
_html(`<div${_attr_class("
|
|
6331
|
+
_html(`<div${_attr_class("_g7")}>`);
|
|
6322
6332
|
_if(() => {
|
|
6323
6333
|
if (input.onNewSession) {
|
|
6324
6334
|
const $scope7_id = _scope_id();
|
|
@@ -6332,7 +6342,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6332
6342
|
_html(`</button>${_el_resume($scope7_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6333
6343
|
_for_of([], (agent) => {
|
|
6334
6344
|
const $scope8_id = _scope_id();
|
|
6335
|
-
_html(`<button${_attr_class("
|
|
6345
|
+
_html(`<button${_attr_class("_gX")}>`);
|
|
6336
6346
|
_set_serialize_reason(12);
|
|
6337
6347
|
const $childScope2 = _peek_scope_id();
|
|
6338
6348
|
icon_agent_default({
|
|
@@ -6367,7 +6377,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6367
6377
|
return 0;
|
|
6368
6378
|
}
|
|
6369
6379
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6370
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6380
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gZ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6371
6381
|
icon_manage_default({ size: 12 });
|
|
6372
6382
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
6373
6383
|
_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($scope6_id, {
|
|
@@ -6377,7 +6387,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6377
6387
|
return 0;
|
|
6378
6388
|
}
|
|
6379
6389
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6380
|
-
_html(`</div><div${_attr_class("
|
|
6390
|
+
_html(`</div><div${_attr_class("_hm")}>`);
|
|
6381
6391
|
_if(() => {
|
|
6382
6392
|
if (sessions$1.length === 1 && openPlan) {
|
|
6383
6393
|
const $scope12_id = _scope_id();
|
|
@@ -6385,7 +6395,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6385
6395
|
const $childScope3 = _peek_scope_id();
|
|
6386
6396
|
usage_pcts_default({
|
|
6387
6397
|
agent: openPlan,
|
|
6388
|
-
class: "
|
|
6398
|
+
class: "_hd"
|
|
6389
6399
|
});
|
|
6390
6400
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6391
6401
|
a: _existing_scope($childScope3),
|
|
@@ -6396,14 +6406,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6396
6406
|
}, $scope4_id, "m");
|
|
6397
6407
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6398
6408
|
const $scope9_id = _scope_id();
|
|
6399
|
-
_html(`<div${_attr_class(["
|
|
6409
|
+
_html(`<div${_attr_class(["_g8", { ["_gY"]: s.id === input.currentTab }])}>`);
|
|
6400
6410
|
_if(() => {
|
|
6401
6411
|
if (renamingId === s.id) {
|
|
6402
6412
|
const $scope11_id = _scope_id();
|
|
6403
6413
|
_html(`<span${_attr_class([
|
|
6404
6414
|
"_y",
|
|
6405
6415
|
phase[sessionPhase(s.state)],
|
|
6406
|
-
"
|
|
6416
|
+
"_hk"
|
|
6407
6417
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
6408
6418
|
_set_serialize_reason({
|
|
6409
6419
|
1: $sg__input_sessions,
|
|
@@ -6413,17 +6423,17 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6413
6423
|
icon_agent_default({
|
|
6414
6424
|
agent: activeAgent(s),
|
|
6415
6425
|
size: 13,
|
|
6416
|
-
class: "
|
|
6426
|
+
class: "_ho"
|
|
6417
6427
|
});
|
|
6418
6428
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6419
6429
|
renameValue = _new_renameValue;
|
|
6420
|
-
}, "z0", $scope11_id))}${_attr_class(["_T", "
|
|
6430
|
+
}, "z0", $scope11_id))}${_attr_class(["_T", "_hl"])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
|
|
6421
6431
|
_script($scope11_id, "z5");
|
|
6422
6432
|
_subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6423
6433
|
return 0;
|
|
6424
6434
|
} else {
|
|
6425
6435
|
const $scope10_id = _scope_id();
|
|
6426
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6436
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_hn")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
|
|
6427
6437
|
_set_serialize_reason({
|
|
6428
6438
|
1: $sg__input_sessions,
|
|
6429
6439
|
2: $sg__input_sessions
|
|
@@ -6432,9 +6442,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6432
6442
|
icon_agent_default({
|
|
6433
6443
|
agent: activeAgent(s),
|
|
6434
6444
|
size: 13,
|
|
6435
|
-
class: "
|
|
6445
|
+
class: "_ho"
|
|
6436
6446
|
});
|
|
6437
|
-
_html(`<span${_attr_class("
|
|
6447
|
+
_html(`<span${_attr_class("_hi")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope10_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_hj")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6438
6448
|
icon_edit_default({ size: 12 });
|
|
6439
6449
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6440
6450
|
icon_xmark_default({ size: 12 });
|
|
@@ -6446,7 +6456,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
6446
6456
|
const $childScope6 = _peek_scope_id();
|
|
6447
6457
|
usage_pcts_default({
|
|
6448
6458
|
agent: openPlan,
|
|
6449
|
-
class: "
|
|
6459
|
+
class: "_he"
|
|
6450
6460
|
});
|
|
6451
6461
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
6452
6462
|
a: _existing_scope($childScope6),
|
|
@@ -6662,34 +6672,34 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6662
6672
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6663
6673
|
_html(`<script${_attr_nonce()}>${_escape_script(`
|
|
6664
6674
|
${_to_text(`if (matchMedia("(max-width: 899px)").matches) document.documentElement.classList.add("work-no-rail");`)};
|
|
6665
|
-
`)}<\/script><aside${_attr_class(["
|
|
6666
|
-
["
|
|
6667
|
-
["
|
|
6675
|
+
`)}<\/script><aside${_attr_class(["_ea", {
|
|
6676
|
+
["_d9"]: !navOpen,
|
|
6677
|
+
["_d_"]: isPage
|
|
6668
6678
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6669
6679
|
_if(() => {
|
|
6670
6680
|
if (isPage) {
|
|
6671
6681
|
const $scope1_id = _scope_id();
|
|
6672
|
-
_html(`<header${_attr_class("
|
|
6682
|
+
_html(`<header${_attr_class("_ed")}><div${_attr_class("_em")}>`);
|
|
6673
6683
|
_if(() => {
|
|
6674
6684
|
if (input.instanceName) {
|
|
6675
6685
|
const $scope2_id = _scope_id();
|
|
6676
|
-
_html(`<div${_attr_class("
|
|
6686
|
+
_html(`<div${_attr_class("_ej")} title="This work server (Settings → Appearance)"><img${_attr_class("_ek")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_el")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6677
6687
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6678
6688
|
return 0;
|
|
6679
6689
|
}
|
|
6680
6690
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6681
|
-
_html(`<h1${_attr_class("
|
|
6691
|
+
_html(`<h1${_attr_class("_ee")}>Workspaces</h1></div><div${_attr_class("_ef")}>`);
|
|
6682
6692
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6683
6693
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6684
6694
|
iconBtn$1,
|
|
6685
|
-
"
|
|
6686
|
-
{ ["
|
|
6695
|
+
"_eg",
|
|
6696
|
+
{ ["_d6"]: view === "settings" }
|
|
6687
6697
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6688
6698
|
icon_settings_default({ size: 16 });
|
|
6689
6699
|
_if(() => {
|
|
6690
6700
|
if (input.setupReady === false) {
|
|
6691
6701
|
const $scope12_id = _scope_id();
|
|
6692
|
-
_html(`<span${_attr_class(["_y", "
|
|
6702
|
+
_html(`<span${_attr_class(["_y", "_d8"])} title="Machine setup incomplete"></span>`);
|
|
6693
6703
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6694
6704
|
return 0;
|
|
6695
6705
|
}
|
|
@@ -6702,18 +6712,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6702
6712
|
_if(() => {
|
|
6703
6713
|
if (!isPage && input.instanceName) {
|
|
6704
6714
|
const $scope3_id = _scope_id();
|
|
6705
|
-
_html(`<div${_attr_class("
|
|
6715
|
+
_html(`<div${_attr_class("_ej")} title="This work server (Settings → Appearance)"><img${_attr_class("_ek")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_el")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6706
6716
|
writeScope($scope3_id, {});
|
|
6707
6717
|
return 0;
|
|
6708
6718
|
}
|
|
6709
6719
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
6710
|
-
_html(`<div${_attr_class("
|
|
6720
|
+
_html(`<div${_attr_class("_en")}>`);
|
|
6711
6721
|
_for_of(listIds, (wsId) => {
|
|
6712
6722
|
const $scope4_id = _scope_id();
|
|
6713
6723
|
_if(() => {
|
|
6714
6724
|
if (isPage && wsId === ws.id) {
|
|
6715
6725
|
const $scope13_id = _scope_id();
|
|
6716
|
-
_html(`<h2${_attr_class(["
|
|
6726
|
+
_html(`<h2${_attr_class(["_bL", "_eh"])}>Current</h2>`);
|
|
6717
6727
|
writeScope($scope13_id, {});
|
|
6718
6728
|
return 0;
|
|
6719
6729
|
}
|
|
@@ -6721,7 +6731,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6721
6731
|
_if(() => {
|
|
6722
6732
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
6723
6733
|
const $scope14_id = _scope_id();
|
|
6724
|
-
_html(`<h2${_attr_class(["
|
|
6734
|
+
_html(`<h2${_attr_class(["_bL", "_eh"])}>Other workspaces</h2>`);
|
|
6725
6735
|
writeScope($scope14_id, {});
|
|
6726
6736
|
return 0;
|
|
6727
6737
|
}
|
|
@@ -6805,7 +6815,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6805
6815
|
railHover = null;
|
|
6806
6816
|
}, 150);
|
|
6807
6817
|
}, "A6", $scope5_id);
|
|
6808
|
-
_html(`<div${_attr_class("
|
|
6818
|
+
_html(`<div${_attr_class("_eo")} data-rail>`);
|
|
6809
6819
|
_for_of(itemIds, (wsId, i) => {
|
|
6810
6820
|
const $scope6_id = _scope_id();
|
|
6811
6821
|
_html("<span>");
|
|
@@ -6859,7 +6869,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6859
6869
|
if (railHover) {
|
|
6860
6870
|
const $scope7_id = _scope_id();
|
|
6861
6871
|
const hoverId = railHover.id;
|
|
6862
|
-
_html(`<div${_attr_class(["_4", "
|
|
6872
|
+
_html(`<div${_attr_class(["_4", "_er"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
6863
6873
|
_set_serialize_reason({
|
|
6864
6874
|
0: 1,
|
|
6865
6875
|
1: 1,
|
|
@@ -6944,7 +6954,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6944
6954
|
return 0;
|
|
6945
6955
|
}
|
|
6946
6956
|
}, $scope0_id, "f");
|
|
6947
|
-
_html(`<div${_attr_class("
|
|
6957
|
+
_html(`<div${_attr_class("_ep")}>`);
|
|
6948
6958
|
_if(() => {
|
|
6949
6959
|
if (isPage) {
|
|
6950
6960
|
const $scope9_id = _scope_id();
|
|
@@ -6952,7 +6962,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6952
6962
|
"_o",
|
|
6953
6963
|
"_p",
|
|
6954
6964
|
btnLg,
|
|
6955
|
-
"
|
|
6965
|
+
"_ei"
|
|
6956
6966
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6957
6967
|
icon_folder_plus_default({ size: 16 });
|
|
6958
6968
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -6974,19 +6984,19 @@ var side_nav_default = _template("A", (input) => {
|
|
|
6974
6984
|
return 1;
|
|
6975
6985
|
}
|
|
6976
6986
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
6977
|
-
_html(`<div${_attr_class(["_x", "
|
|
6987
|
+
_html(`<div${_attr_class(["_x", "_eq"])}></div>`);
|
|
6978
6988
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
6979
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
6989
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_d6"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6980
6990
|
icon_settings_default({ size: 15 });
|
|
6981
6991
|
_if(() => {
|
|
6982
6992
|
if (input.setupReady === false) {
|
|
6983
6993
|
const $scope17_id = _scope_id();
|
|
6984
|
-
_html(`<span${_attr_class(["_y", "
|
|
6994
|
+
_html(`<span${_attr_class(["_y", "_d8"])} title="Machine setup incomplete"></span>`);
|
|
6985
6995
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
6986
6996
|
return 0;
|
|
6987
6997
|
}
|
|
6988
6998
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6989
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
6999
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_d6"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
6990
7000
|
icon_folder_plus_default({ size: 16 });
|
|
6991
7001
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
6992
7002
|
_script($scope8_id, "A15");
|
|
@@ -7055,11 +7065,11 @@ var side_nav_default = _template("A", (input) => {
|
|
|
7055
7065
|
_resume_branch($scope0_id);
|
|
7056
7066
|
});
|
|
7057
7067
|
var iconBtn = "_Z _j";
|
|
7058
|
-
var sectionCount = "
|
|
7059
|
-
var content = "
|
|
7060
|
-
var pageMeta = "
|
|
7061
|
-
var pathMeta = "
|
|
7062
|
-
var dangerHint = "
|
|
7068
|
+
var sectionCount = "_bz _H _I";
|
|
7069
|
+
var content = "_dW _bp";
|
|
7070
|
+
var pageMeta = "_dX _bu";
|
|
7071
|
+
var pathMeta = "_d0 _w";
|
|
7072
|
+
var dangerHint = "_d5 _R";
|
|
7063
7073
|
//#endregion
|
|
7064
7074
|
//#region src/tags/icons/icon-clipboard.marko
|
|
7065
7075
|
var icon_clipboard_default = _template("U", (input) => {
|
|
@@ -7125,45 +7135,53 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7125
7135
|
copied = false;
|
|
7126
7136
|
}, 1500);
|
|
7127
7137
|
}, "q0", $scope0_id);
|
|
7138
|
+
const skillSeq = {
|
|
7139
|
+
issued: 0,
|
|
7140
|
+
applied: 0
|
|
7141
|
+
};
|
|
7142
|
+
const applySkills = _resume((data, seq) => {
|
|
7143
|
+
if (seq <= skillSeq.applied) return;
|
|
7144
|
+
skillSeq.applied = seq;
|
|
7145
|
+
skills = data;
|
|
7146
|
+
lastData.set(`skills:${ws.id}`, data);
|
|
7147
|
+
}, "q1", $scope0_id);
|
|
7128
7148
|
const loadSkills = _resume(async (signal) => {
|
|
7149
|
+
const seq = ++skillSeq.issued;
|
|
7129
7150
|
try {
|
|
7130
|
-
|
|
7131
|
-
skills = data;
|
|
7132
|
-
lastData.set(`skills:${ws.id}`, data);
|
|
7151
|
+
applySkills(await api$2(`/api/workspaces/${ws.id}/skills`, { signal }), seq);
|
|
7133
7152
|
} catch {}
|
|
7134
|
-
}, "
|
|
7153
|
+
}, "q2", $scope0_id);
|
|
7135
7154
|
const loadProcs = _resume(async (signal) => {
|
|
7136
7155
|
try {
|
|
7137
7156
|
const data = await api$2(`/api/workspaces/${ws.id}/procs`, { signal });
|
|
7138
7157
|
procs = data;
|
|
7139
7158
|
lastData.set(`procs:${ws.id}`, data);
|
|
7140
7159
|
} catch {}
|
|
7141
|
-
}, "
|
|
7160
|
+
}, "q3", $scope0_id);
|
|
7142
7161
|
const inWorkspace = new Set(ws.repos.map((r) => r.full_name));
|
|
7143
7162
|
const setBusy = _resume((name, on) => {
|
|
7144
7163
|
const next = new Set(busy);
|
|
7145
7164
|
if (on) next.add(name);
|
|
7146
7165
|
else next.delete(name);
|
|
7147
7166
|
busy = next;
|
|
7148
|
-
}, "
|
|
7167
|
+
}, "q4", $scope0_id);
|
|
7149
7168
|
const runSkill = _resume(async (key, body) => {
|
|
7150
7169
|
if (busy.has(key)) return;
|
|
7151
7170
|
error = null;
|
|
7152
7171
|
setBusy(key, true);
|
|
7172
|
+
const seq = ++skillSeq.issued;
|
|
7153
7173
|
try {
|
|
7154
|
-
|
|
7174
|
+
applySkills(await api$2(`/api/workspaces/${ws.id}/skills`, {
|
|
7155
7175
|
method: "POST",
|
|
7156
7176
|
headers: { "content-type": "application/json" },
|
|
7157
7177
|
body: JSON.stringify(body)
|
|
7158
|
-
});
|
|
7159
|
-
skills = data;
|
|
7160
|
-
lastData.set(`skills:${ws.id}`, data);
|
|
7178
|
+
}), seq);
|
|
7161
7179
|
} catch (err) {
|
|
7162
7180
|
error = String(err.message || err);
|
|
7163
7181
|
} finally {
|
|
7164
7182
|
setBusy(key, false);
|
|
7165
7183
|
}
|
|
7166
|
-
}, "
|
|
7184
|
+
}, "q5", $scope0_id);
|
|
7167
7185
|
const addRepo = _resume(async (name, baseBranch, fork) => {
|
|
7168
7186
|
if (!name || busy.has(name)) return;
|
|
7169
7187
|
error = null;
|
|
@@ -7182,7 +7200,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7182
7200
|
error = String(err.message || err);
|
|
7183
7201
|
}
|
|
7184
7202
|
setBusy(name, false);
|
|
7185
|
-
}, "
|
|
7203
|
+
}, "q6", $scope0_id);
|
|
7186
7204
|
const removeRepo = _resume(async (row) => {
|
|
7187
7205
|
if (busy.has(row.full_name)) return;
|
|
7188
7206
|
error = null;
|
|
@@ -7197,7 +7215,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7197
7215
|
error = String(err.message || err);
|
|
7198
7216
|
}
|
|
7199
7217
|
setBusy(row.full_name, false);
|
|
7200
|
-
}, "
|
|
7218
|
+
}, "q7", $scope0_id);
|
|
7201
7219
|
const runAction = _resume(async (action) => {
|
|
7202
7220
|
error = null;
|
|
7203
7221
|
pendingAction = action;
|
|
@@ -7219,16 +7237,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7219
7237
|
pendingAction = null;
|
|
7220
7238
|
actionStep = null;
|
|
7221
7239
|
}
|
|
7222
|
-
}, "
|
|
7240
|
+
}, "q8", $scope0_id);
|
|
7223
7241
|
const killProc = _resume(async (pid) => {
|
|
7224
7242
|
await fetch(`/api/procs/${pid}`, { method: "DELETE" });
|
|
7225
7243
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7226
|
-
}, "
|
|
7244
|
+
}, "q9", $scope0_id);
|
|
7227
7245
|
const titleId = _id();
|
|
7228
|
-
_html(`<div${_attr_class("
|
|
7246
|
+
_html(`<div${_attr_class("_bn")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bo")}><div${_attr_class(content)}>`);
|
|
7229
7247
|
_set_serialize_reason(286);
|
|
7230
7248
|
let $actions;
|
|
7231
|
-
if (ws.repos.length) $actions = attrTag({ content: _content_resume("
|
|
7249
|
+
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
7232
7250
|
_scope_reason();
|
|
7233
7251
|
const $scope13_id = _scope_id();
|
|
7234
7252
|
_html(`<button type=button${_attr_class(iconBtnRow)}${copied ? " title=\"Invite copied\"" : _attr("title", `Copy invite — anyone with it can join from New: the same repos on their own lane of ${ws.origin_branch || ws.branch}`)} aria-label="Copy invite">`);
|
|
@@ -7245,7 +7263,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7245
7263
|
return 1;
|
|
7246
7264
|
}
|
|
7247
7265
|
}, $scope13_id, "a", 1, 1, 1, "</button>", 1);
|
|
7248
|
-
_script($scope13_id, "
|
|
7266
|
+
_script($scope13_id, "q15");
|
|
7249
7267
|
_subscribe($ws_branch__closures, _subscribe($ws_origin_branch__closures, _subscribe($copied__closures, writeScope($scope13_id, { _: _scope_with_id($scope0_id) }))));
|
|
7250
7268
|
_resume_branch($scope13_id);
|
|
7251
7269
|
}, $scope0_id) });
|
|
@@ -7256,12 +7274,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7256
7274
|
backHref: `/w/${ws.id}`,
|
|
7257
7275
|
onBack: _resume(function() {
|
|
7258
7276
|
input.onExit?.();
|
|
7259
|
-
}, "
|
|
7277
|
+
}, "q10", $scope0_id),
|
|
7260
7278
|
actions: $actions,
|
|
7261
|
-
meta: attrTag({ content: _content_resume("
|
|
7279
|
+
meta: attrTag({ content: _content_resume("q16", () => {
|
|
7262
7280
|
_scope_reason();
|
|
7263
7281
|
const $scope14_id = _scope_id();
|
|
7264
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7282
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_dY")}>${_escape(ws.name)}${_el_resume($scope14_id, "c")}</span>`);
|
|
7265
7283
|
_if(() => {
|
|
7266
7284
|
if (ws.status !== "active") {
|
|
7267
7285
|
const $scope18_id = _scope_id();
|
|
@@ -7270,7 +7288,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7270
7288
|
return 0;
|
|
7271
7289
|
}
|
|
7272
7290
|
}, $scope14_id, "d", 1, 1, 1, 0, 1);
|
|
7273
|
-
_html(`<span${_attr_class("
|
|
7291
|
+
_html(`<span${_attr_class("_dZ")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope14_id, "g")}</span></span>${_el_resume($scope14_id, "a")}`);
|
|
7274
7292
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope14_id, { _: _scope_with_id($scope0_id) })))));
|
|
7275
7293
|
_resume_branch($scope14_id);
|
|
7276
7294
|
}, $scope0_id) })
|
|
@@ -7282,8 +7300,8 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7282
7300
|
placement: "inline",
|
|
7283
7301
|
onDismiss: _resume(function() {
|
|
7284
7302
|
error = null;
|
|
7285
|
-
}, "
|
|
7286
|
-
content: _content_resume("
|
|
7303
|
+
}, "q11", $scope6_id),
|
|
7304
|
+
content: _content_resume("q18", () => {
|
|
7287
7305
|
_scope_reason();
|
|
7288
7306
|
const $scope7_id = _scope_id();
|
|
7289
7307
|
_html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
|
|
@@ -7298,23 +7316,23 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7298
7316
|
_if(() => {
|
|
7299
7317
|
if (pendingAction && actionStep) {
|
|
7300
7318
|
const $scope11_id = _scope_id();
|
|
7301
|
-
_html(`<p${_attr_class("
|
|
7319
|
+
_html(`<p${_attr_class("_bw")}><span${_attr_class("_E")}></span><!>${_escape(actionStep)}${_el_resume($scope11_id, "c")}</p>`);
|
|
7302
7320
|
writeScope($scope11_id, {});
|
|
7303
7321
|
return 0;
|
|
7304
7322
|
}
|
|
7305
7323
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7306
|
-
_html(`<section${_attr_class("
|
|
7324
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Workspace</h2></div><div${_attr_class("_d4")}>`);
|
|
7307
7325
|
_if(() => {
|
|
7308
7326
|
if (ws.status === "active") {
|
|
7309
7327
|
const $scope8_id = _scope_id();
|
|
7310
7328
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope8_id, "b")}</button>${_el_resume($scope8_id, "a")}`);
|
|
7311
|
-
_script($scope8_id, "
|
|
7329
|
+
_script($scope8_id, "q19");
|
|
7312
7330
|
writeScope($scope8_id, {});
|
|
7313
7331
|
return 0;
|
|
7314
7332
|
} else {
|
|
7315
7333
|
const $scope9_id = _scope_id();
|
|
7316
7334
|
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope9_id, "a")}`);
|
|
7317
|
-
_script($scope9_id, "
|
|
7335
|
+
_script($scope9_id, "q20");
|
|
7318
7336
|
writeScope($scope9_id, {});
|
|
7319
7337
|
return 1;
|
|
7320
7338
|
}
|
|
@@ -7323,17 +7341,17 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7323
7341
|
btnLg,
|
|
7324
7342
|
"_r",
|
|
7325
7343
|
{ ["_q"]: confirmingDelete }
|
|
7326
|
-
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("
|
|
7344
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "m")}</button>${_el_resume($scope0_id, "l")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section><section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "s")}</span><div${_attr_class("_x")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7327
7345
|
_set_serialize_reason(1);
|
|
7328
7346
|
const $childScope2 = _peek_scope_id();
|
|
7329
7347
|
icon_refresh_default({
|
|
7330
7348
|
size: 14,
|
|
7331
7349
|
class: catalogRefreshing && "_D"
|
|
7332
7350
|
});
|
|
7333
|
-
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("
|
|
7351
|
+
_html(`</button>${_el_resume($scope0_id, "u")}</div><ul${_attr_class("_bA")}>`);
|
|
7334
7352
|
_for_of(ws.repos, (row) => {
|
|
7335
7353
|
const $scope1_id = _scope_id();
|
|
7336
|
-
_html(`<li${_attr_class("
|
|
7354
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bF")}><a${_attr_class(["_bG", "_d2"])}${_attr("href", repoWebUrl(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")}`);
|
|
7337
7355
|
_if(() => {
|
|
7338
7356
|
if (row.base_branch !== row.default_branch) {
|
|
7339
7357
|
const $scope21_id = _scope_id();
|
|
@@ -7354,7 +7372,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7354
7372
|
} else {
|
|
7355
7373
|
const $scope10_id = _scope_id();
|
|
7356
7374
|
_html(`<button${_attr_class([
|
|
7357
|
-
"
|
|
7375
|
+
"_bH",
|
|
7358
7376
|
"_2",
|
|
7359
7377
|
"_3",
|
|
7360
7378
|
{ ["_q"]: confirmingRemove === row.full_name }
|
|
@@ -7372,7 +7390,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7372
7390
|
return 1;
|
|
7373
7391
|
}
|
|
7374
7392
|
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
7375
|
-
_script($scope10_id, "
|
|
7393
|
+
_script($scope10_id, "q21");
|
|
7376
7394
|
_subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
|
|
7377
7395
|
return 1;
|
|
7378
7396
|
}
|
|
@@ -7387,40 +7405,40 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7387
7405
|
}, "full_name", $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
7388
7406
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7389
7407
|
const $scope25_id = _scope_id();
|
|
7390
|
-
_html(`<li${_attr_class(["
|
|
7408
|
+
_html(`<li${_attr_class(["_bC", "_bB"])}><span${_attr_class("_E")}></span><div${_attr_class("_bD")}><span${_attr_class("_bG")}>Adding <!>${_escape(name)}${_el_resume($scope25_id, "e")}…</span></div></li>`);
|
|
7391
7409
|
writeScope($scope25_id, {});
|
|
7392
7410
|
}, (n) => n, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
7393
7411
|
_html("</ul>");
|
|
7394
7412
|
_if(() => {
|
|
7395
7413
|
if (!ws.repos.length && !busy.size) {
|
|
7396
7414
|
const $scope26_id = _scope_id();
|
|
7397
|
-
_html(`<p${_attr_class("
|
|
7415
|
+
_html(`<p${_attr_class("_bI")}>No repos yet. Search below to add one.</p>`);
|
|
7398
7416
|
writeScope($scope26_id, {});
|
|
7399
7417
|
return 0;
|
|
7400
7418
|
}
|
|
7401
7419
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
7402
|
-
_html(`<div${_attr_class("
|
|
7420
|
+
_html(`<div${_attr_class("_d1")}>`);
|
|
7403
7421
|
const $childScope3 = _peek_scope_id();
|
|
7404
7422
|
let refreshCatalog = repo_picker_default({
|
|
7405
7423
|
exclude: inWorkspace,
|
|
7406
7424
|
onPick: _resume(function(name, baseBranch, fork) {
|
|
7407
7425
|
addRepo(name, baseBranch, fork);
|
|
7408
|
-
}, "
|
|
7426
|
+
}, "q12", $scope0_id),
|
|
7409
7427
|
onError: _resume(function(message) {
|
|
7410
7428
|
error = message;
|
|
7411
|
-
}, "
|
|
7429
|
+
}, "q13", $scope0_id),
|
|
7412
7430
|
refreshingChange: _resume(function(busy) {
|
|
7413
7431
|
catalogRefreshing = busy;
|
|
7414
|
-
}, "
|
|
7432
|
+
}, "q14", $scope0_id)
|
|
7415
7433
|
});
|
|
7416
|
-
_var($scope0_id, "a2", $childScope3, "
|
|
7434
|
+
_var($scope0_id, "a2", $childScope3, "q22");
|
|
7417
7435
|
const wsSkills = skills?.workspace || [];
|
|
7418
7436
|
const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
|
|
7419
7437
|
_html("</div></section>");
|
|
7420
7438
|
_if(() => {
|
|
7421
7439
|
if (wsSkills.length || repoSkills.length) {
|
|
7422
7440
|
const $scope2_id = _scope_id();
|
|
7423
|
-
_html(`<section${_attr_class("
|
|
7441
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Skills</h2>`);
|
|
7424
7442
|
_if(() => {
|
|
7425
7443
|
if (wsSkills.length) {
|
|
7426
7444
|
const $scope27_id = _scope_id();
|
|
@@ -7429,10 +7447,10 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7429
7447
|
return 0;
|
|
7430
7448
|
}
|
|
7431
7449
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
7432
|
-
_html(`</div><ul${_attr_class("
|
|
7450
|
+
_html(`</div><ul${_attr_class("_bA")}>`);
|
|
7433
7451
|
_for_of(wsSkills, (s) => {
|
|
7434
7452
|
const $scope3_id = _scope_id();
|
|
7435
|
-
_html(`<li${_attr_class("
|
|
7453
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope3_id, "d")}</span><span${_attr_class("_bF")}>`);
|
|
7436
7454
|
_if(() => {
|
|
7437
7455
|
if (s.broken) {
|
|
7438
7456
|
const $scope28_id = _scope_id();
|
|
@@ -7470,7 +7488,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7470
7488
|
_if(() => {
|
|
7471
7489
|
if (s.description) {
|
|
7472
7490
|
const $scope31_id = _scope_id();
|
|
7473
|
-
_html(`<span${_attr_class("
|
|
7491
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope31_id, "b")}</span>${_el_resume($scope31_id, "a")}`);
|
|
7474
7492
|
writeScope($scope31_id, {});
|
|
7475
7493
|
return 0;
|
|
7476
7494
|
}
|
|
@@ -7478,7 +7496,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7478
7496
|
_if(() => {
|
|
7479
7497
|
if (s.sourceUrl) {
|
|
7480
7498
|
const $scope32_id = _scope_id();
|
|
7481
|
-
_html(`<a${_attr_class(["
|
|
7499
|
+
_html(`<a${_attr_class(["_bG", "_d2"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${s.source} on GitHub`)}>${_escape(s.source)}${_el_resume($scope32_id, "b")}</a>${_el_resume($scope32_id, "a")}`);
|
|
7482
7500
|
writeScope($scope32_id, {});
|
|
7483
7501
|
return 0;
|
|
7484
7502
|
}
|
|
@@ -7493,7 +7511,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7493
7511
|
} else {
|
|
7494
7512
|
const $scope12_id = _scope_id();
|
|
7495
7513
|
_html(`<button${_attr_class([
|
|
7496
|
-
"
|
|
7514
|
+
"_bH",
|
|
7497
7515
|
"_2",
|
|
7498
7516
|
"_3",
|
|
7499
7517
|
{ ["_q"]: confirmingSkill === s.id }
|
|
@@ -7511,7 +7529,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7511
7529
|
return 1;
|
|
7512
7530
|
}
|
|
7513
7531
|
}, $scope12_id, "a", 1, 1, 1, "</button>");
|
|
7514
|
-
_script($scope12_id, "
|
|
7532
|
+
_script($scope12_id, "q23");
|
|
7515
7533
|
_subscribe($confirmingSkill__closures, writeScope($scope12_id, {}));
|
|
7516
7534
|
return 1;
|
|
7517
7535
|
}
|
|
@@ -7531,10 +7549,10 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7531
7549
|
_if(() => {
|
|
7532
7550
|
if (repoSkills.length) {
|
|
7533
7551
|
const $scope4_id = _scope_id();
|
|
7534
|
-
_html(`<ul${_attr_class("
|
|
7552
|
+
_html(`<ul${_attr_class("_bA")}>`);
|
|
7535
7553
|
_for_of(repoSkills, (s) => {
|
|
7536
7554
|
const $scope5_id = _scope_id();
|
|
7537
|
-
_html(`<li${_attr_class("
|
|
7555
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}><span${_attr_class(["_bE", "_w"])}>${_escape(s.name)}${_el_resume($scope5_id, "d")}</span><span${_attr_class("_bF")}><span${_attr_class(["_bG", "_w"])}>${_escape(s.worktree)}${_el_resume($scope5_id, "g")}/</span>`);
|
|
7538
7556
|
_if(() => {
|
|
7539
7557
|
if (s.shadows) {
|
|
7540
7558
|
const $scope37_id = _scope_id();
|
|
@@ -7547,7 +7565,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7547
7565
|
_if(() => {
|
|
7548
7566
|
if (s.description) {
|
|
7549
7567
|
const $scope38_id = _scope_id();
|
|
7550
|
-
_html(`<span${_attr_class("
|
|
7568
|
+
_html(`<span${_attr_class("_bG")}${_attr("title", s.description)}>${_escape(s.description)}${_el_resume($scope38_id, "b")}</span>${_el_resume($scope38_id, "a")}`);
|
|
7551
7569
|
writeScope($scope38_id, {});
|
|
7552
7570
|
return 0;
|
|
7553
7571
|
}
|
|
@@ -7562,7 +7580,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7562
7580
|
} else if (!s.shadows) {
|
|
7563
7581
|
const $scope15_id = _scope_id();
|
|
7564
7582
|
_html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace`)}>Use here</button>${_el_resume($scope15_id, "a")}`);
|
|
7565
|
-
_script($scope15_id, "
|
|
7583
|
+
_script($scope15_id, "q24");
|
|
7566
7584
|
writeScope($scope15_id, {});
|
|
7567
7585
|
return 1;
|
|
7568
7586
|
}
|
|
@@ -7574,7 +7592,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7574
7592
|
o: s?.shadows,
|
|
7575
7593
|
p: s?.description,
|
|
7576
7594
|
q: s?.id,
|
|
7577
|
-
|
|
7595
|
+
Cc3: 1
|
|
7578
7596
|
}));
|
|
7579
7597
|
}, (s) => `${s.worktree}/${s.id}`, $scope4_id, "a", 1, 1, 1, "</ul>", 1);
|
|
7580
7598
|
_subscribe($repoSkills__closures, writeScope($scope4_id, {}));
|
|
@@ -7590,28 +7608,28 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7590
7608
|
_if(() => {
|
|
7591
7609
|
if (running.length) {
|
|
7592
7610
|
const $scope16_id = _scope_id();
|
|
7593
|
-
_html(`<section${_attr_class("
|
|
7611
|
+
_html(`<section${_attr_class("_bx")}><div${_attr_class("_by")}><h2${_attr_class("_bL")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope16_id, "e")}</span></div><ul${_attr_class("_bA")}>`);
|
|
7594
7612
|
_for_of(running, (p) => {
|
|
7595
7613
|
const $scope17_id = _scope_id();
|
|
7596
|
-
_html(`<li${_attr_class("
|
|
7614
|
+
_html(`<li${_attr_class("_bC")}><div${_attr_class("_bD")}${_attr("title", p.args)}><span${_attr_class(["_bE", "_w"])}>${_escape(p.cmd)}${_el_resume($scope17_id, "d")}</span>`);
|
|
7597
7615
|
_if(() => {
|
|
7598
7616
|
if (p.ports.length) {
|
|
7599
7617
|
const $scope40_id = _scope_id();
|
|
7600
|
-
_html(`<span${_attr_class("
|
|
7618
|
+
_html(`<span${_attr_class("_bF")}>`);
|
|
7601
7619
|
_for_of(p.ports, (port) => {
|
|
7602
7620
|
const $scope41_id = _scope_id();
|
|
7603
|
-
_html(`<button${_attr_class(["_s", "
|
|
7604
|
-
_script($scope41_id, "
|
|
7621
|
+
_html(`<button${_attr_class(["_s", "_d3"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope41_id, "b")}</button>${_el_resume($scope41_id, "a")}`);
|
|
7622
|
+
_script($scope41_id, "q25");
|
|
7605
7623
|
writeScope($scope41_id, { d: port });
|
|
7606
7624
|
}, (x) => String(x), $scope40_id, "a", 1, 1, 1, "</span>", 1);
|
|
7607
7625
|
writeScope($scope40_id, {});
|
|
7608
7626
|
return 0;
|
|
7609
7627
|
}
|
|
7610
7628
|
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
7611
|
-
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["
|
|
7629
|
+
_html(`</div>${_el_resume($scope17_id, "b")}<button${_attr_class(["_bH", "_2"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7612
7630
|
icon_xmark_default({ size: 14 });
|
|
7613
7631
|
_html(`</button>${_el_resume($scope17_id, "f")}</li>`);
|
|
7614
|
-
_script($scope17_id, "
|
|
7632
|
+
_script($scope17_id, "q26");
|
|
7615
7633
|
writeScope($scope17_id, {
|
|
7616
7634
|
l: p?.ports,
|
|
7617
7635
|
n: p?.pid
|
|
@@ -7623,8 +7641,8 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7623
7641
|
}
|
|
7624
7642
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
7625
7643
|
_html("</div></div></div>");
|
|
7626
|
-
_script($scope0_id, "q26");
|
|
7627
7644
|
_script($scope0_id, "q27");
|
|
7645
|
+
_script($scope0_id, "q28");
|
|
7628
7646
|
writeScope($scope0_id, {
|
|
7629
7647
|
a7: _serialize_if($scope0_reason, 0) && input.workspace,
|
|
7630
7648
|
a9: input.workspaceChange,
|
|
@@ -7652,47 +7670,50 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
7652
7670
|
b5: workspace?.repos?.length,
|
|
7653
7671
|
b6: invite,
|
|
7654
7672
|
b7: copyInvite,
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
bi:
|
|
7665
|
-
bj:
|
|
7666
|
-
bk:
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7673
|
+
b9: skillSeq.applied,
|
|
7674
|
+
ba: skillSeq.issued,
|
|
7675
|
+
bb: applySkills,
|
|
7676
|
+
bc: loadSkills,
|
|
7677
|
+
bd: loadProcs,
|
|
7678
|
+
be: inWorkspace,
|
|
7679
|
+
bf: setBusy,
|
|
7680
|
+
bg: runSkill,
|
|
7681
|
+
bh: addRepo,
|
|
7682
|
+
bi: removeRepo,
|
|
7683
|
+
bj: runAction,
|
|
7684
|
+
bk: killProc,
|
|
7685
|
+
bm: refreshCatalog,
|
|
7686
|
+
bn: wsSkills,
|
|
7687
|
+
bo: wsSkills.length,
|
|
7688
|
+
bp: repoSkills,
|
|
7689
|
+
bq: repoSkills?.length,
|
|
7690
|
+
br: running,
|
|
7691
|
+
bs: running.length,
|
|
7671
7692
|
aw: input.workspaceChange || void 0,
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7693
|
+
cb: $ws_name__closures,
|
|
7694
|
+
ce: $ws_display_path__closures,
|
|
7695
|
+
cf: $ws_path__closures,
|
|
7696
|
+
cg: $ws_status__closures,
|
|
7697
|
+
ca: $copied__closures,
|
|
7698
|
+
cc: $ws_origin_branch__closures,
|
|
7699
|
+
cd: $ws_branch__closures,
|
|
7679
7700
|
d: _existing_scope($childScope),
|
|
7680
|
-
|
|
7701
|
+
c4: $error__closures,
|
|
7681
7702
|
v: _existing_scope($childScope2),
|
|
7682
|
-
|
|
7703
|
+
c6: $confirmingRemove__closures,
|
|
7683
7704
|
a1: _existing_scope($childScope3),
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7705
|
+
ci: $wsSkills_length__closures,
|
|
7706
|
+
c9: $confirmingSkill__closures,
|
|
7707
|
+
c3: $busy__closures,
|
|
7708
|
+
c8: $skills__closures,
|
|
7709
|
+
cj: $repoSkills__closures
|
|
7689
7710
|
});
|
|
7690
7711
|
_resume_branch($scope0_id);
|
|
7691
7712
|
});
|
|
7692
|
-
var kbtn = "
|
|
7693
|
-
var dpadPaste = "
|
|
7694
|
-
var repeat = "
|
|
7695
|
-
var dpadEsc = "
|
|
7713
|
+
var kbtn = "_dI _0 _j";
|
|
7714
|
+
var dpadPaste = "_eS _eR";
|
|
7715
|
+
var repeat = "_eT _eR";
|
|
7716
|
+
var dpadEsc = "_eV _eR";
|
|
7696
7717
|
//#endregion
|
|
7697
7718
|
//#region src/tags/term-find.marko
|
|
7698
7719
|
var term_find_default = _template("C", (input) => {
|
|
@@ -8154,7 +8175,7 @@ var term_default = _template("D", (input) => {
|
|
|
8154
8175
|
trapOpen = true;
|
|
8155
8176
|
}
|
|
8156
8177
|
}, "D14", $scope0_id);
|
|
8157
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8178
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_es")}><div${_attr_class("_et")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8158
8179
|
_if(() => {
|
|
8159
8180
|
if (findOpen) {
|
|
8160
8181
|
const $scope12_id = _scope_id();
|
|
@@ -8181,7 +8202,7 @@ var term_default = _template("D", (input) => {
|
|
|
8181
8202
|
_if(() => {
|
|
8182
8203
|
if (uploading) {
|
|
8183
8204
|
const $scope21_id = _scope_id();
|
|
8184
|
-
_html(`<div${_attr_class("
|
|
8205
|
+
_html(`<div${_attr_class("_ez")}>uploading…</div>`);
|
|
8185
8206
|
writeScope($scope21_id, {});
|
|
8186
8207
|
return 0;
|
|
8187
8208
|
}
|
|
@@ -8189,7 +8210,7 @@ var term_default = _template("D", (input) => {
|
|
|
8189
8210
|
_if(() => {
|
|
8190
8211
|
if (copiedFlash) {
|
|
8191
8212
|
const $scope22_id = _scope_id();
|
|
8192
|
-
_html(`<div${_attr_class("
|
|
8213
|
+
_html(`<div${_attr_class("_ey")}>Copied</div>`);
|
|
8193
8214
|
writeScope($scope22_id, {});
|
|
8194
8215
|
return 0;
|
|
8195
8216
|
}
|
|
@@ -8198,7 +8219,7 @@ var term_default = _template("D", (input) => {
|
|
|
8198
8219
|
_if(() => {
|
|
8199
8220
|
if (trapOpen) {
|
|
8200
8221
|
const $scope11_id = _scope_id();
|
|
8201
|
-
_html(`<div${_attr_class("
|
|
8222
|
+
_html(`<div${_attr_class("_eA")}><div${_attr_class("_eB")}><p${_attr_class("_eW")}>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")}`);
|
|
8202
8223
|
_script($scope11_id, "D26");
|
|
8203
8224
|
_script($scope11_id, "D27");
|
|
8204
8225
|
writeScope($scope11_id, {});
|
|
@@ -8272,7 +8293,7 @@ var term_default = _template("D", (input) => {
|
|
|
8272
8293
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
8273
8294
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
8274
8295
|
}, "D20", $scope4_id);
|
|
8275
|
-
_html(`<button${_attr_class([kbtn, "
|
|
8296
|
+
_html(`<button${_attr_class([kbtn, "_eC"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
8276
8297
|
_set_serialize_reason({
|
|
8277
8298
|
1: $sg__input_agent__OR__input_sessionState,
|
|
8278
8299
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -8284,9 +8305,9 @@ var term_default = _template("D", (input) => {
|
|
|
8284
8305
|
});
|
|
8285
8306
|
_html(`<span${_attr_class([
|
|
8286
8307
|
"_y",
|
|
8287
|
-
"
|
|
8308
|
+
"_eD",
|
|
8288
8309
|
phase[sessionPhase(input.sessionState)]
|
|
8289
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_4", "
|
|
8310
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_4", "_eE"])}>`);
|
|
8290
8311
|
_if(() => {
|
|
8291
8312
|
if ((input.sessions || []).length > 0) {
|
|
8292
8313
|
const $scope5_id = _scope_id();
|
|
@@ -8302,7 +8323,7 @@ var term_default = _template("D", (input) => {
|
|
|
8302
8323
|
const $scope6_id = _scope_id();
|
|
8303
8324
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
8304
8325
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
8305
|
-
_html(`<div${_attr_class(["
|
|
8326
|
+
_html(`<div${_attr_class(["_eG", { ["_eF"]: s.id === input.sessionId }])}>`);
|
|
8306
8327
|
_if(() => {
|
|
8307
8328
|
if (renamingId === s.id) {
|
|
8308
8329
|
const $scope24_id = _scope_id();
|
|
@@ -8318,13 +8339,13 @@ var term_default = _template("D", (input) => {
|
|
|
8318
8339
|
});
|
|
8319
8340
|
_html(`<input${_attr_input_value($scope24_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
8320
8341
|
renameValue = _new_renameValue;
|
|
8321
|
-
}, "D0", $scope24_id))}${_attr_class(["_T", "
|
|
8342
|
+
}, "D0", $scope24_id))}${_attr_class(["_T", "_eL"])} aria-label="Session name">${_el_resume($scope24_id, "c")}`);
|
|
8322
8343
|
_script($scope24_id, "D28");
|
|
8323
8344
|
_subscribe($if_content4__renameValue__closures, writeScope($scope24_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
8324
8345
|
return 0;
|
|
8325
8346
|
} else {
|
|
8326
8347
|
const $scope7_id = _scope_id();
|
|
8327
|
-
_html(`<button${_attr_class("
|
|
8348
|
+
_html(`<button${_attr_class("_eH")}><span${_attr_class(["_y", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope7_id, "b", $sg__input_sessions)}`);
|
|
8328
8349
|
_set_serialize_reason({
|
|
8329
8350
|
1: $sg__input_sessions,
|
|
8330
8351
|
2: $sg__input_sessions
|
|
@@ -8334,7 +8355,7 @@ var term_default = _template("D", (input) => {
|
|
|
8334
8355
|
agent: activeAgent(s),
|
|
8335
8356
|
size: 14
|
|
8336
8357
|
});
|
|
8337
|
-
_html(`<span${_attr_class("
|
|
8358
|
+
_html(`<span${_attr_class("_eI")}><span${_attr_class("_eK")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope7_id, "f", $sg__input_sessions)}</span>`);
|
|
8338
8359
|
_if(() => {
|
|
8339
8360
|
if (s.id === input.sessionId) {
|
|
8340
8361
|
const $scope23_id = _scope_id();
|
|
@@ -8346,7 +8367,7 @@ var term_default = _template("D", (input) => {
|
|
|
8346
8367
|
const $childScope6 = _peek_scope_id();
|
|
8347
8368
|
usage_pcts_default({
|
|
8348
8369
|
agent: plan,
|
|
8349
|
-
class: "
|
|
8370
|
+
class: "_eJ"
|
|
8350
8371
|
});
|
|
8351
8372
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
8352
8373
|
return 0;
|
|
@@ -8363,7 +8384,7 @@ var term_default = _template("D", (input) => {
|
|
|
8363
8384
|
_if(() => {
|
|
8364
8385
|
if (input.onRenameSession) {
|
|
8365
8386
|
const $scope25_id = _scope_id();
|
|
8366
|
-
_html(`<button${_attr_class(["
|
|
8387
|
+
_html(`<button${_attr_class(["_eM", "_eN"])} title="Rename session">`);
|
|
8367
8388
|
icon_edit_default({ size: 12 });
|
|
8368
8389
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
8369
8390
|
_script($scope25_id, "D29");
|
|
@@ -8375,7 +8396,7 @@ var term_default = _template("D", (input) => {
|
|
|
8375
8396
|
if (input.onCloseSession) {
|
|
8376
8397
|
const $scope8_id = _scope_id();
|
|
8377
8398
|
_html(`<button${_attr_class([
|
|
8378
|
-
"
|
|
8399
|
+
"_eM",
|
|
8379
8400
|
"_2",
|
|
8380
8401
|
{ ["_q"]: armedClose === s.id }
|
|
8381
8402
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -8417,7 +8438,7 @@ var term_default = _template("D", (input) => {
|
|
|
8417
8438
|
return 0;
|
|
8418
8439
|
}
|
|
8419
8440
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
8420
|
-
_html(`<div${_attr_class("
|
|
8441
|
+
_html(`<div${_attr_class("_eO")}><span${_attr_class("_eP")}>New session</span>`);
|
|
8421
8442
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
8422
8443
|
const $scope9_id = _scope_id();
|
|
8423
8444
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -8464,9 +8485,9 @@ var term_default = _template("D", (input) => {
|
|
|
8464
8485
|
const dpadOpenBox = { open: false };
|
|
8465
8486
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
8466
8487
|
icon_dpad_default({ size: 16 });
|
|
8467
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
8488
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_dH"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
8468
8489
|
icon_search_default({ size: 16 });
|
|
8469
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
8490
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_dH"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
8470
8491
|
icon_keyboard_default({ size: 16 });
|
|
8471
8492
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
8472
8493
|
_script($scope10_id, "D35");
|
|
@@ -8482,7 +8503,7 @@ var term_default = _template("D", (input) => {
|
|
|
8482
8503
|
overlay: attrTag({ content: _content_resume("D46", () => {
|
|
8483
8504
|
_scope_reason();
|
|
8484
8505
|
const $scope15_id = _scope_id();
|
|
8485
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
8506
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_eQ")}>`);
|
|
8486
8507
|
forOf(DPAD, (row) => {
|
|
8487
8508
|
const $scope16_id = _scope_id();
|
|
8488
8509
|
forOf(row, (cell) => {
|
|
@@ -8502,7 +8523,7 @@ var term_default = _template("D", (input) => {
|
|
|
8502
8523
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
8503
8524
|
} else {
|
|
8504
8525
|
const $scope19_id = _scope_id();
|
|
8505
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
8526
|
+
_html(`<button${_attr_class([repeat, { ["_eU"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
8506
8527
|
if (cell.icon === "arrow-up") {
|
|
8507
8528
|
_scope_id();
|
|
8508
8529
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -8642,7 +8663,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
8642
8663
|
let DiffView = null;
|
|
8643
8664
|
const loadDiffView = _resume(() => {
|
|
8644
8665
|
if (DiffView) return;
|
|
8645
|
-
import("./
|
|
8666
|
+
import("./_BK02MZ12.js").then((m) => {
|
|
8646
8667
|
DiffView = m.default;
|
|
8647
8668
|
});
|
|
8648
8669
|
}, "H6", $scope0_id);
|
|
@@ -9121,7 +9142,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
9121
9142
|
_if(() => {
|
|
9122
9143
|
if (!shownSessions.length && view === "term") {
|
|
9123
9144
|
const $scope7_id = _scope_id();
|
|
9124
|
-
_html(`<div${_attr_class("
|
|
9145
|
+
_html(`<div${_attr_class("_bJ")}><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>`);
|
|
9125
9146
|
_script($scope7_id, "H51");
|
|
9126
9147
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
9127
9148
|
return 0;
|
|
@@ -9131,7 +9152,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
9131
9152
|
return 0;
|
|
9132
9153
|
} else {
|
|
9133
9154
|
const $scope11_id = _scope_id();
|
|
9134
|
-
_html(`<p${_attr_class("
|
|
9155
|
+
_html(`<p${_attr_class("_bJ")}>Loading sessions…</p>`);
|
|
9135
9156
|
writeScope($scope11_id, {});
|
|
9136
9157
|
return 1;
|
|
9137
9158
|
}
|
|
@@ -10938,22 +10959,24 @@ function skillsSnapshot(wsPath, worktrees = [], refresh = false) {
|
|
|
10938
10959
|
worktrees
|
|
10939
10960
|
}), refresh);
|
|
10940
10961
|
}
|
|
10941
|
-
|
|
10962
|
+
/** `-a` narrows the call to the agents work installs for. `scopeToAgents`
|
|
10963
|
+
* is false only for removal, which wants the CLI's unscoped behaviour —
|
|
10964
|
+
* see `removeSkill`. */
|
|
10965
|
+
function cliArgs(args, opts, scopeToAgents) {
|
|
10942
10966
|
const agents = skillAgents();
|
|
10943
10967
|
if (!agents.length) throw httpError(400, "No agent CLIs are installed, so there is nowhere to put a skill.");
|
|
10944
10968
|
return [
|
|
10945
10969
|
...args,
|
|
10946
10970
|
...opts.scope === "global" ? ["-g"] : [],
|
|
10947
|
-
"-a",
|
|
10948
|
-
...agents.map((a) => a.cli),
|
|
10971
|
+
...scopeToAgents ? ["-a", ...agents.map((a) => a.cli)] : [],
|
|
10949
10972
|
"-y"
|
|
10950
10973
|
];
|
|
10951
10974
|
}
|
|
10952
|
-
function runCli(args, opts) {
|
|
10975
|
+
function runCli(args, opts, scopeToAgents = true) {
|
|
10953
10976
|
if (!skillsCliAvailable()) throw httpError(400, "The skills CLI is not installed — add it from the Machine section.");
|
|
10954
10977
|
const cwd = opts.scope === "workspace" ? opts.wsPath : void 0;
|
|
10955
10978
|
const key = opts.scope === "global" ? "global" : opts.wsPath ?? "workspace";
|
|
10956
|
-
return withLock(key, () => runStreaming("skills", cliArgs(args, opts), {
|
|
10979
|
+
return withLock(key, () => runStreaming("skills", cliArgs(args, opts, scopeToAgents), {
|
|
10957
10980
|
log: opts.log,
|
|
10958
10981
|
cwd,
|
|
10959
10982
|
timeout: 18e4
|
|
@@ -10962,12 +10985,18 @@ function runCli(args, opts) {
|
|
|
10962
10985
|
async function addSkill(source, opts) {
|
|
10963
10986
|
await runCli(["add", source], opts);
|
|
10964
10987
|
}
|
|
10988
|
+
/** Removal deliberately omits `-a`. The chip stands for the skill on this
|
|
10989
|
+
* machine, not for one agent's copy, and `-a` makes the CLI unlink only the
|
|
10990
|
+
* agents named: a family that is installed but switched off in Settings
|
|
10991
|
+
* keeps its copy, and the skill reappears the moment it is switched back
|
|
10992
|
+
* on. Omitting the flag is the CLI's documented "clean all agent links",
|
|
10993
|
+
* which also drops the lockfile entry. */
|
|
10965
10994
|
async function removeSkill(id, opts) {
|
|
10966
10995
|
await runCli([
|
|
10967
10996
|
"remove",
|
|
10968
10997
|
"-s",
|
|
10969
10998
|
id
|
|
10970
|
-
], opts);
|
|
10999
|
+
], opts, false);
|
|
10971
11000
|
}
|
|
10972
11001
|
async function updateSkill(id, opts) {
|
|
10973
11002
|
await runCli(["update", id], opts);
|
|
@@ -18597,4 +18626,4 @@ server.listen(port, () => {
|
|
|
18597
18626
|
//#endregion
|
|
18598
18627
|
export {};
|
|
18599
18628
|
|
|
18600
|
-
;var __MARKO_MANIFEST__={"
|
|
18629
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-CYT0ZOo5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYT0ZOo5.css\"",">"],"defer":[2,"/assets/new-Bxdd3c7v.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Bxdd3c7v.js\"","></script>",2,"modulepreload#/assets/_Bk5mZP5h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bk5mZP5h.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-CYT0ZOo5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYT0ZOo5.css\"",">"],"defer":[2,"/assets/settings-Bxdd3c7v.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Bxdd3c7v.js\"","></script>",2,"modulepreload#/assets/_Bk5mZP5h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bk5mZP5h.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-CYT0ZOo5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYT0ZOo5.css\"",">"],"defer":[2,"/assets/w-Bxdd3c7v.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Bxdd3c7v.js\"","></script>",2,"modulepreload#/assets/_Bk5mZP5h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bk5mZP5h.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-CYT0ZOo5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYT0ZOo5.css\"",">"],"defer":[2,"/assets/w._-Bxdd3c7v.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Bxdd3c7v.js\"","></script>",2,"modulepreload#/assets/_Bk5mZP5h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bk5mZP5h.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-CYT0ZOo5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CYT0ZOo5.css\"",">"],"defer":[2,"/assets/w._-DgdO3jnn.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DgdO3jnn.js\"","></script>",2,"modulepreload#/assets/_Bk5mZP5h.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Bk5mZP5h.js\"",">"]}};
|