@dylanpiercey/work 0.0.176 → 0.0.178
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/_BjQ0kG_Y.js +2 -0
- package/dist/{_BRBF-t9p.js → _DSLqyqdU.js} +6 -1
- package/dist/index.mjs +408 -359
- package/dist/public/assets/_B6o8FkwV.js +1 -0
- package/dist/public/assets/_BDGElzVm.js +1 -0
- package/dist/public/assets/_BDeylpEs.js +1 -0
- package/dist/public/assets/_BEEyk_EB.js +1 -0
- package/dist/public/assets/_BWDbM5E_.js +1 -0
- package/dist/public/assets/_C8jIJ1Pj.js +1 -0
- package/dist/public/assets/_CFdGarWX.js +1 -0
- package/dist/public/assets/_CFfZ3sMn.js +1 -0
- package/dist/public/assets/_CIfRmO5F.js +1 -0
- package/dist/public/assets/_CV1Q2C2m.js +1 -0
- package/dist/public/assets/_CZgExeYN.js +1 -0
- package/dist/public/assets/{_BZpsc9I_.js → _D8fFV5Ym.js} +1 -1
- package/dist/public/assets/_D8fFV5Ym.js.br +0 -0
- package/dist/public/assets/_D8vUoiS4.js +1 -0
- package/dist/public/assets/_DFta0PoX.js +1 -0
- package/dist/public/assets/_DHMJGzjE.js +1 -0
- package/dist/public/assets/{_BNhAUM8r.js → _DLuGH9wP.js} +94 -94
- package/dist/public/assets/_DLuGH9wP.js.br +0 -0
- package/dist/public/assets/_DVNDyccF.js +1 -0
- package/dist/public/assets/_DxjeG8P_.js +1 -0
- package/dist/public/assets/_E4p2FxoI.js +1 -0
- package/dist/public/assets/_GnbYDeRV.js +1 -0
- package/dist/public/assets/_OGDCaCq3.js +1 -0
- package/dist/public/assets/_RIV-3qh5.js +1 -0
- package/dist/public/assets/_ibANXg_A.js +1 -0
- package/dist/public/assets/{_BoN0MUA6.js → _s72b-JB_.js} +24 -20
- package/dist/public/assets/_s72b-JB_.js.br +0 -0
- package/dist/public/assets/{app-page-BYLkOROF.css → app-page-mpLi5gUf.css} +1 -1
- package/dist/public/assets/app-page-mpLi5gUf.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-B9_qBRD4.css → icon-arrow-down-DSmBsYc0.css} +1 -1
- package/dist/public/assets/icon-arrow-down-DSmBsYc0.css.br +0 -0
- package/dist/public/assets/new-CkY2AXTw.js +1 -0
- package/dist/public/assets/{review-view-C25qv8iD.css → review-view-BrfjQmXA.css} +1 -1
- package/dist/public/assets/review-view-BrfjQmXA.css.br +0 -0
- package/dist/public/assets/review-view-DtiHctEJ.js +2 -0
- package/dist/public/assets/settings-CkY2AXTw.js +1 -0
- package/dist/public/assets/w-CkY2AXTw.js +1 -0
- package/dist/public/assets/w._-CkY2AXTw.js +1 -0
- package/dist/public/assets/w._-Csr1ikwd.js +1 -0
- package/package.json +2 -1
- package/dist/_Cr-5sjB_.js +0 -2
- package/dist/public/assets/_8TkbwrDF.js +0 -1
- package/dist/public/assets/_BBj6AGD8.js +0 -1
- package/dist/public/assets/_BC69rqyR.js +0 -1
- package/dist/public/assets/_BGTdJr0N.js +0 -1
- package/dist/public/assets/_BJt_-ynT.js +0 -1
- package/dist/public/assets/_BNhAUM8r.js.br +0 -0
- package/dist/public/assets/_BZpsc9I_.js.br +0 -0
- package/dist/public/assets/_Bai1O7O7.js +0 -1
- package/dist/public/assets/_BdBZBPSy.js +0 -1
- package/dist/public/assets/_BibI-31k.js +0 -1
- package/dist/public/assets/_BiiRLSFc.js +0 -1
- package/dist/public/assets/_Bj-p0MtZ.js +0 -1
- package/dist/public/assets/_BoN0MUA6.js.br +0 -0
- package/dist/public/assets/_C-sKNGw7.js +0 -1
- package/dist/public/assets/_COgTXiUb.js +0 -1
- package/dist/public/assets/_ChG9Z0HY.js +0 -1
- package/dist/public/assets/_DjYjEtWU.js +0 -1
- package/dist/public/assets/_DpQ_0dwK.js +0 -1
- package/dist/public/assets/_DxdzDFcR.js +0 -1
- package/dist/public/assets/_GMYEjb5d.js +0 -1
- package/dist/public/assets/_Ho-YoFdR.js +0 -1
- package/dist/public/assets/_TJ13aErs.js +0 -1
- package/dist/public/assets/_g_pAeaEU.js +0 -1
- package/dist/public/assets/_iNx4ee_y.js +0 -1
- package/dist/public/assets/app-page-BYLkOROF.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-B9_qBRD4.css.br +0 -0
- package/dist/public/assets/new-l1nwmujI.js +0 -1
- package/dist/public/assets/review-view-BwsOWNsd.js +0 -2
- package/dist/public/assets/review-view-C25qv8iD.css.br +0 -0
- package/dist/public/assets/settings-l1nwmujI.js +0 -1
- package/dist/public/assets/w-l1nwmujI.js +0 -1
- package/dist/public/assets/w._-BpQmbwMk.js +0 -1
- package/dist/public/assets/w._-l1nwmujI.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./
|
|
2
|
+
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./_DSLqyqdU.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import http, { createServer } from "node:http";
|
|
5
5
|
import path from "node:path";
|
|
@@ -6999,14 +6999,14 @@ var openable = (ws) => ws.status === "active" && !ws.pending;
|
|
|
6999
6999
|
*/
|
|
7000
7000
|
var numbered = (all) => all.filter(openable).sort((a, b) => a.name.localeCompare(b.name));
|
|
7001
7001
|
var toastKind = {
|
|
7002
|
-
error: "
|
|
7003
|
-
warn: "
|
|
7004
|
-
info: "
|
|
7002
|
+
error: "_bj",
|
|
7003
|
+
warn: "_bk",
|
|
7004
|
+
info: "_bl"
|
|
7005
7005
|
};
|
|
7006
7006
|
var toastTitle = {
|
|
7007
|
-
error: "
|
|
7008
|
-
warn: "
|
|
7009
|
-
info: "
|
|
7007
|
+
error: "_bm",
|
|
7008
|
+
warn: "_bn",
|
|
7009
|
+
info: "_bo"
|
|
7010
7010
|
};
|
|
7011
7011
|
//#endregion
|
|
7012
7012
|
//#region src/styles/tokens.css.ts
|
|
@@ -7052,18 +7052,18 @@ var toast_default = _template("J", (input) => {
|
|
|
7052
7052
|
const kind = inputKind || "error";
|
|
7053
7053
|
const placement = inputPlacement || "float";
|
|
7054
7054
|
const placementClass = {
|
|
7055
|
-
float: "
|
|
7056
|
-
inline: "
|
|
7055
|
+
float: "_bh",
|
|
7056
|
+
inline: "_bi"
|
|
7057
7057
|
}[placement];
|
|
7058
7058
|
_html(`<div${_attr_class([
|
|
7059
|
-
"
|
|
7059
|
+
"_bg",
|
|
7060
7060
|
toastKind[kind],
|
|
7061
7061
|
placementClass,
|
|
7062
7062
|
inputClass
|
|
7063
7063
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
7064
7064
|
class: 1,
|
|
7065
7065
|
role: 1
|
|
7066
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
7066
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bp")}>`);
|
|
7067
7067
|
_if(() => {
|
|
7068
7068
|
if (title) {
|
|
7069
7069
|
const $scope1_id = _scope_id();
|
|
@@ -7075,7 +7075,7 @@ var toast_default = _template("J", (input) => {
|
|
|
7075
7075
|
_if(() => {
|
|
7076
7076
|
if (content) {
|
|
7077
7077
|
const $scope2_id = _scope_id();
|
|
7078
|
-
_html(`<div${_attr_class("
|
|
7078
|
+
_html(`<div${_attr_class("_bq")}>`);
|
|
7079
7079
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7080
7080
|
_html("</div>");
|
|
7081
7081
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7086,7 +7086,7 @@ var toast_default = _template("J", (input) => {
|
|
|
7086
7086
|
_if(() => {
|
|
7087
7087
|
if (action || onDismiss) {
|
|
7088
7088
|
const $scope3_id = _scope_id();
|
|
7089
|
-
_html(`<div${_attr_class(["
|
|
7089
|
+
_html(`<div${_attr_class(["_br", action && "_bs"])}>`);
|
|
7090
7090
|
_if(() => {
|
|
7091
7091
|
if (action) {
|
|
7092
7092
|
const $scope4_id = _scope_id();
|
|
@@ -7098,7 +7098,7 @@ var toast_default = _template("J", (input) => {
|
|
|
7098
7098
|
_if(() => {
|
|
7099
7099
|
if (onDismiss) {
|
|
7100
7100
|
const $scope5_id = _scope_id();
|
|
7101
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7101
|
+
_html(`<button${_attr_class([iconBtnRow, "_bt"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7102
7102
|
icon_xmark_default({ size: 14 });
|
|
7103
7103
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7104
7104
|
_script($scope5_id, "J0");
|
|
@@ -7318,19 +7318,19 @@ function applyInstance(inst) {
|
|
|
7318
7318
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7319
7319
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7320
7320
|
}
|
|
7321
|
-
var agentRow = "
|
|
7322
|
-
var toolGrid = "
|
|
7323
|
-
var toolRow = "
|
|
7324
|
-
var themeSeg = "
|
|
7325
|
-
var checkList = "
|
|
7326
|
-
var list$2 = "_cX
|
|
7321
|
+
var agentRow = "_c_ _cL";
|
|
7322
|
+
var toolGrid = "_dh _cV";
|
|
7323
|
+
var toolRow = "_di _cW";
|
|
7324
|
+
var themeSeg = "_dF _bd";
|
|
7325
|
+
var checkList = "_ea _cg";
|
|
7326
|
+
var list$2 = "_cX _ci _cK _cV";
|
|
7327
7327
|
var flatCardRow = "_cY _cW";
|
|
7328
7328
|
var chip$1 = "_c7 _X _W";
|
|
7329
7329
|
var pop$1 = "_cG _9";
|
|
7330
7330
|
var spinner = "_cJ _1 _G";
|
|
7331
7331
|
var busy = "_cv _cu";
|
|
7332
7332
|
var pop = "_cx _9";
|
|
7333
|
-
var sectionCount$1 = "
|
|
7333
|
+
var sectionCount$1 = "_cf _N _O";
|
|
7334
7334
|
//#endregion
|
|
7335
7335
|
//#region src/tags/icons/icon-refresh.marko
|
|
7336
7336
|
var icon_refresh_default = _template("pb", (input) => {
|
|
@@ -7370,18 +7370,18 @@ var icon_back_default = _template("V", (input) => {
|
|
|
7370
7370
|
var page_head_default = _template("t", (input) => {
|
|
7371
7371
|
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);
|
|
7372
7372
|
const $scope0_id = _scope_id();
|
|
7373
|
-
_html(`<header${_attr_class("
|
|
7373
|
+
_html(`<header${_attr_class("_ei")}>`);
|
|
7374
7374
|
_if(() => {
|
|
7375
7375
|
if (input.backHref) {
|
|
7376
7376
|
const $scope1_id = _scope_id();
|
|
7377
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7377
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eZ"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7378
7378
|
icon_back_default({ size: 14 });
|
|
7379
7379
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7380
7380
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7381
7381
|
return 0;
|
|
7382
7382
|
} else if (input.onBack) {
|
|
7383
7383
|
const $scope2_id = _scope_id();
|
|
7384
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7384
|
+
_html(`<button${_attr_class([iconBtnRow, "_eZ"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7385
7385
|
icon_back_default({ size: 14 });
|
|
7386
7386
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7387
7387
|
_script($scope2_id, "t0");
|
|
@@ -7389,11 +7389,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7389
7389
|
return 1;
|
|
7390
7390
|
}
|
|
7391
7391
|
}, $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);
|
|
7392
|
-
_html(`<div${_attr_class("
|
|
7392
|
+
_html(`<div${_attr_class("_ek")}><h1${_attr("id", input.titleId)}${_attr_class("_ej")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7393
7393
|
_if(() => {
|
|
7394
7394
|
if (input.meta) {
|
|
7395
7395
|
const $scope3_id = _scope_id();
|
|
7396
|
-
_html(`<p${_attr_class("
|
|
7396
|
+
_html(`<p${_attr_class("_el")}>`);
|
|
7397
7397
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7398
7398
|
_html("</p>");
|
|
7399
7399
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7404,7 +7404,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7404
7404
|
_if(() => {
|
|
7405
7405
|
if (input.actions) {
|
|
7406
7406
|
const $scope4_id = _scope_id();
|
|
7407
|
-
_html(`<div${_attr_class("
|
|
7407
|
+
_html(`<div${_attr_class("_em")}>`);
|
|
7408
7408
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7409
7409
|
_html("</div>");
|
|
7410
7410
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7472,7 +7472,7 @@ var icon_agent_default = _template("P", (input) => {
|
|
|
7472
7472
|
n: $badge__closures
|
|
7473
7473
|
});
|
|
7474
7474
|
});
|
|
7475
|
-
var usageNote = "
|
|
7475
|
+
var usageNote = "_g6 _W";
|
|
7476
7476
|
//#endregion
|
|
7477
7477
|
//#region src/tags/icons/icon-warning.marko
|
|
7478
7478
|
var icon_warning_default = _template("xb", (input) => {
|
|
@@ -7502,11 +7502,11 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7502
7502
|
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);
|
|
7503
7503
|
const $scope0_id = _scope_id();
|
|
7504
7504
|
const agent = input.agent;
|
|
7505
|
-
_html(`<div${_attr_class(["
|
|
7505
|
+
_html(`<div${_attr_class(["_g0", { ["_g1"]: input.hideName }])}><div${_attr_class("_g2")}>`);
|
|
7506
7506
|
_if(() => {
|
|
7507
7507
|
if (!input.hideName) {
|
|
7508
7508
|
const $scope1_id = _scope_id();
|
|
7509
|
-
_html(`<strong${_attr_class("
|
|
7509
|
+
_html(`<strong${_attr_class("_hk")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7510
7510
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7511
7511
|
return 0;
|
|
7512
7512
|
}
|
|
@@ -7514,7 +7514,7 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7514
7514
|
_if(() => {
|
|
7515
7515
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7516
7516
|
const $scope2_id = _scope_id();
|
|
7517
|
-
_html(`<span${_attr_class("
|
|
7517
|
+
_html(`<span${_attr_class("_g3")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7518
7518
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7519
7519
|
return 0;
|
|
7520
7520
|
}
|
|
@@ -7522,21 +7522,21 @@ var usage_meters_default = _template("L", (input) => {
|
|
|
7522
7522
|
_if(() => {
|
|
7523
7523
|
if (agent.stale_seconds != null) {
|
|
7524
7524
|
const $scope3_id = _scope_id();
|
|
7525
|
-
_html(`<span${_attr_class("
|
|
7525
|
+
_html(`<span${_attr_class("_g4")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7526
7526
|
icon_warning_default({ size: 12 });
|
|
7527
7527
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7528
7528
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7529
7529
|
return 0;
|
|
7530
7530
|
}
|
|
7531
7531
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7532
|
-
_html(`</div><div${_attr_class(["
|
|
7532
|
+
_html(`</div><div${_attr_class(["_g5", { ["_hl"]: agent.stale_seconds != null }])}>`);
|
|
7533
7533
|
_for_of(agent.windows || [], (win) => {
|
|
7534
7534
|
const $scope4_id = _scope_id();
|
|
7535
7535
|
const pct = pctText(win.used_percent);
|
|
7536
7536
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7537
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7538
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7539
|
-
_html(`<div${_attr_class("
|
|
7537
|
+
const fillClass = win.used_percent >= 90 ? "_hd" : win.used_percent >= 70 ? "_hc" : win.used_percent >= 40 ? "_hb" : "_ha";
|
|
7538
|
+
const pctClass = win.used_percent >= 90 ? "_hi" : win.used_percent >= 70 ? "_hh" : win.used_percent >= 40 ? "_hg" : "_hf";
|
|
7539
|
+
_html(`<div${_attr_class("_g7")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_g8")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_g9")}><span${_attr_class(["_g_", 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(["_he", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hj")}>`);
|
|
7540
7540
|
_if(() => {
|
|
7541
7541
|
if (label) {
|
|
7542
7542
|
const $scope6_id = _scope_id();
|
|
@@ -7812,14 +7812,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7812
7812
|
localCode = null;
|
|
7813
7813
|
}
|
|
7814
7814
|
}, "G0", $scope0_id);
|
|
7815
|
-
_html(`<div${_attr_class(["
|
|
7815
|
+
_html(`<div${_attr_class(["_hs", input.class])}>`);
|
|
7816
7816
|
_for_of(input.items, (s) => {
|
|
7817
7817
|
const $scope1_id = _scope_id();
|
|
7818
|
-
_html(`<div${_attr_class("
|
|
7818
|
+
_html(`<div${_attr_class("_ht")}><span${_attr_class("_hv")}><span${_attr_class("_hw")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hx", "_hy"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7819
7819
|
_if(() => {
|
|
7820
7820
|
if (!busy) {
|
|
7821
7821
|
const $scope2_id = _scope_id();
|
|
7822
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7822
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_hz"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7823
7823
|
_script($scope2_id, "G1");
|
|
7824
7824
|
writeScope($scope2_id, {});
|
|
7825
7825
|
return 0;
|
|
@@ -7834,13 +7834,13 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7834
7834
|
_if(() => {
|
|
7835
7835
|
if (localBusy && localCode) {
|
|
7836
7836
|
const $scope4_id = _scope_id();
|
|
7837
|
-
_html(`<div${_attr_class(["
|
|
7837
|
+
_html(`<div${_attr_class(["_ht", "_hA"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hB")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hC")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7838
7838
|
_script($scope4_id, "G2");
|
|
7839
7839
|
writeScope($scope4_id, {});
|
|
7840
7840
|
return 0;
|
|
7841
7841
|
} else if (localBusy) {
|
|
7842
7842
|
const $scope6_id = _scope_id();
|
|
7843
|
-
_html(`<div${_attr_class(["
|
|
7843
|
+
_html(`<div${_attr_class(["_ht", "_hA"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7844
7844
|
writeScope($scope6_id, {});
|
|
7845
7845
|
return 1;
|
|
7846
7846
|
}
|
|
@@ -7848,14 +7848,14 @@ var sso_auth_default = _template("G", (input) => {
|
|
|
7848
7848
|
_if(() => {
|
|
7849
7849
|
if (localError) {
|
|
7850
7850
|
const $scope5_id = _scope_id();
|
|
7851
|
-
_html(`<p${_attr_class(["
|
|
7851
|
+
_html(`<p${_attr_class(["_ht", "_hD"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7852
7852
|
writeScope($scope5_id, {});
|
|
7853
7853
|
return 0;
|
|
7854
7854
|
}
|
|
7855
7855
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7856
7856
|
_for_of(skipped, (s) => {
|
|
7857
7857
|
const $scope3_id = _scope_id();
|
|
7858
|
-
_html(`<div${_attr_class(["
|
|
7858
|
+
_html(`<div${_attr_class(["_ht", "_hu"])}><span${_attr_class("_hv")}><span${_attr_class("_hw")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hx")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hz"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7859
7859
|
_script($scope3_id, "G3");
|
|
7860
7860
|
writeScope($scope3_id, {
|
|
7861
7861
|
i: s?.org,
|
|
@@ -7925,11 +7925,11 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7925
7925
|
return 0;
|
|
7926
7926
|
}
|
|
7927
7927
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7928
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7928
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_ck", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7929
7929
|
_if(() => {
|
|
7930
7930
|
if (input.description) {
|
|
7931
7931
|
const $scope4_id = _scope_id();
|
|
7932
|
-
_html(`<span${_attr_class("
|
|
7932
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7933
7933
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7934
7934
|
return 0;
|
|
7935
7935
|
}
|
|
@@ -7937,12 +7937,12 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7937
7937
|
_if(() => {
|
|
7938
7938
|
if (input.sourceUrl) {
|
|
7939
7939
|
const $scope5_id = _scope_id();
|
|
7940
|
-
_html(`<a${_attr_class(["
|
|
7940
|
+
_html(`<a${_attr_class(["_cm", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7941
7941
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7942
7942
|
return 0;
|
|
7943
7943
|
} else if (input.source) {
|
|
7944
7944
|
const $scope6_id = _scope_id();
|
|
7945
|
-
_html(`<span${_attr_class("
|
|
7945
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7946
7946
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7947
7947
|
_: _scope_with_id($scope2_id),
|
|
7948
7948
|
Cs: $si__input_source && 1
|
|
@@ -7950,7 +7950,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7950
7950
|
return 1;
|
|
7951
7951
|
} else if (input.noteLocal) {
|
|
7952
7952
|
const $scope10_id = _scope_id();
|
|
7953
|
-
_html(`<span${_attr_class(["
|
|
7953
|
+
_html(`<span${_attr_class(["_cm", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7954
7954
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7955
7955
|
return 2;
|
|
7956
7956
|
}
|
|
@@ -7958,7 +7958,7 @@ var skill_chip_default = _template("F", (input) => {
|
|
|
7958
7958
|
_if(() => {
|
|
7959
7959
|
if (input.tags) {
|
|
7960
7960
|
const $scope7_id = _scope_id();
|
|
7961
|
-
_html(`<span${_attr_class("
|
|
7961
|
+
_html(`<span${_attr_class("_cl")}>`);
|
|
7962
7962
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7963
7963
|
_html("</span>");
|
|
7964
7964
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8079,7 +8079,7 @@ var icon_moon_default = _template("nb", (input) => {
|
|
|
8079
8079
|
});
|
|
8080
8080
|
//#endregion
|
|
8081
8081
|
//#region src/tags/prompt-dialog.css.ts
|
|
8082
|
-
var promptDlg = "
|
|
8082
|
+
var promptDlg = "_hr _hn";
|
|
8083
8083
|
//#endregion
|
|
8084
8084
|
//#region src/tags/dialog-close.marko
|
|
8085
8085
|
var dialog_close_default = _template("h", (input) => {
|
|
@@ -8103,7 +8103,7 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8103
8103
|
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;
|
|
8104
8104
|
const dismissable = input.dismissable !== false;
|
|
8105
8105
|
let open = input.open;
|
|
8106
|
-
_html(`<dialog${_attr_class(["
|
|
8106
|
+
_html(`<dialog${_attr_class(["_hm", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
8107
8107
|
...htmlInput,
|
|
8108
8108
|
open: null
|
|
8109
8109
|
}, {
|
|
@@ -8113,20 +8113,20 @@ var modal_view_default = _template("q", (input) => {
|
|
|
8113
8113
|
closedby: 1,
|
|
8114
8114
|
"on-cancel": 1,
|
|
8115
8115
|
"on-close": 1
|
|
8116
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
8116
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hp")}>`);
|
|
8117
8117
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
8118
8118
|
_html("</div>");
|
|
8119
8119
|
_if(() => {
|
|
8120
8120
|
if (footer) {
|
|
8121
8121
|
const $scope1_id = _scope_id();
|
|
8122
|
-
_html(`<form method=dialog${_attr_class("
|
|
8122
|
+
_html(`<form method=dialog${_attr_class("_hq")}>`);
|
|
8123
8123
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
8124
8124
|
_html("</form>");
|
|
8125
8125
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
8126
8126
|
return 0;
|
|
8127
8127
|
} else if (input.openChange) {
|
|
8128
8128
|
const $scope2_id = _scope_id();
|
|
8129
|
-
_html(`<form method=dialog${_attr_class("
|
|
8129
|
+
_html(`<form method=dialog${_attr_class("_hq")}>`);
|
|
8130
8130
|
dialog_close_default({
|
|
8131
8131
|
class: ["_q", "_r"],
|
|
8132
8132
|
content: _content("q0", () => {
|
|
@@ -8210,7 +8210,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
8210
8210
|
content: _content("u7", () => {
|
|
8211
8211
|
_scope_reason();
|
|
8212
8212
|
const $scope2_id = _scope_id();
|
|
8213
|
-
_html(`<h2${_attr_class("
|
|
8213
|
+
_html(`<h2${_attr_class("_ho")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8214
8214
|
value = _new_value;
|
|
8215
8215
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8216
8216
|
_script($scope2_id, "u5");
|
|
@@ -8754,7 +8754,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8754
8754
|
const githubId = _id();
|
|
8755
8755
|
const backupId = _id();
|
|
8756
8756
|
const machineId = _id();
|
|
8757
|
-
_html(`<div${_attr_class("
|
|
8757
|
+
_html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
|
|
8758
8758
|
_set_serialize_reason({
|
|
8759
8759
|
0: _serialize_guard($scope0_reason, 4),
|
|
8760
8760
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8786,7 +8786,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8786
8786
|
_resume_branch($scope12_id);
|
|
8787
8787
|
}, $scope0_id) })
|
|
8788
8788
|
});
|
|
8789
|
-
_html(`<div${_attr_class("
|
|
8789
|
+
_html(`<div${_attr_class("_eh")}>`);
|
|
8790
8790
|
_if(() => {
|
|
8791
8791
|
if (setup && !setup.ready) {
|
|
8792
8792
|
const $scope4_id = _scope_id();
|
|
@@ -8829,16 +8829,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8829
8829
|
_if(() => {
|
|
8830
8830
|
if (selfUpdatePending || selfUpdating) {
|
|
8831
8831
|
const $scope43_id = _scope_id();
|
|
8832
|
-
_html(`<div${_attr_class("
|
|
8832
|
+
_html(`<div${_attr_class("_dJ")} role=status><div${_attr_class("_dK")}>`);
|
|
8833
8833
|
_if(() => {
|
|
8834
8834
|
if (selfUpdating) {
|
|
8835
8835
|
const $scope81_id = _scope_id();
|
|
8836
|
-
_html(`<span${_attr_class("
|
|
8836
|
+
_html(`<span${_attr_class("_dL")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dM")}>The app restarts and reloads when it is done.</span>`);
|
|
8837
8837
|
writeScope($scope81_id, {});
|
|
8838
8838
|
return 0;
|
|
8839
8839
|
} else {
|
|
8840
8840
|
const $scope44_id = _scope_id();
|
|
8841
|
-
_html(`<span${_attr_class("
|
|
8841
|
+
_html(`<span${_attr_class("_dL")}>Update available</span><span${_attr_class("_dM")}>v${_text_resume($scope44_id, "c", self.version, 2)} → v${_text_resume($scope44_id, "d", self.latest, 2)}</span>`);
|
|
8842
8842
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8843
8843
|
return 1;
|
|
8844
8844
|
}
|
|
@@ -8868,11 +8868,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8868
8868
|
_: _scope_with_id($scope0_id)
|
|
8869
8869
|
});
|
|
8870
8870
|
}, $scope0_id) };
|
|
8871
|
-
_html(`<section${_attr_class("
|
|
8871
|
+
_html(`<section${_attr_class("_cd")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ce")}><h2${_attr("id", agentsId)}${_attr_class("_cr")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_da")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8872
8872
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8873
8873
|
setPreferred(v);
|
|
8874
8874
|
}, "B0", $scope0_id), () => {
|
|
8875
|
-
_html(`<select${_attr_class(["_p", "
|
|
8875
|
+
_html(`<select${_attr_class(["_p", "_db"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8876
8876
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8877
8877
|
const $scope83_id = _scope_id();
|
|
8878
8878
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope83_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope83_id, "a", $sg__input_agents)}`);
|
|
@@ -8887,14 +8887,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8887
8887
|
const rows = lone ? [] : a.instances;
|
|
8888
8888
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8889
8889
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8890
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8890
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_dc", { ["_de"]: lone && !lone.enabled }])}>`);
|
|
8891
8891
|
_set_serialize_reason(12);
|
|
8892
8892
|
const $childScope3 = _peek_scope_id();
|
|
8893
8893
|
icon_agent_default({
|
|
8894
8894
|
agent: a.id,
|
|
8895
8895
|
size: 18
|
|
8896
8896
|
});
|
|
8897
|
-
_html(`<div${_attr_class("
|
|
8897
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8898
8898
|
_if(() => {
|
|
8899
8899
|
if (lone && input.preferred === lone.id) {
|
|
8900
8900
|
const $scope85_id = _scope_id();
|
|
@@ -8907,12 +8907,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8907
8907
|
_if(() => {
|
|
8908
8908
|
if (active.has(a.id)) {
|
|
8909
8909
|
const $scope13_id = _scope_id();
|
|
8910
|
-
_html(`<span${_attr_class("
|
|
8910
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8911
8911
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8912
8912
|
return 0;
|
|
8913
8913
|
} else if (!a.installed) {
|
|
8914
8914
|
const $scope86_id = _scope_id();
|
|
8915
|
-
_html(`<span${_attr_class("
|
|
8915
|
+
_html(`<span${_attr_class("_cm")}>Not installed</span>`);
|
|
8916
8916
|
writeScope($scope86_id, {});
|
|
8917
8917
|
return 1;
|
|
8918
8918
|
}
|
|
@@ -8943,15 +8943,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
8943
8943
|
_if(() => {
|
|
8944
8944
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8945
8945
|
const $scope2_id = _scope_id();
|
|
8946
|
-
_html(`<ul${_attr_class(["
|
|
8946
|
+
_html(`<ul${_attr_class(["_dg", { ["_de"]: lone && !lone.enabled }])}>`);
|
|
8947
8947
|
_for_of(rows, (inst) => {
|
|
8948
8948
|
const $scope3_id = _scope_id();
|
|
8949
8949
|
const accounts = accountsFor(inst.id);
|
|
8950
|
-
_html(`<li${_attr_class(["
|
|
8950
|
+
_html(`<li${_attr_class(["_dd", { ["_de"]: !inst.enabled }])}><div${_attr_class("_dc")}>`);
|
|
8951
8951
|
_set_serialize_reason(12);
|
|
8952
8952
|
const $childScope5 = _peek_scope_id();
|
|
8953
8953
|
icon_agent_default({ agent: inst.id });
|
|
8954
|
-
_html(`<span${_attr_class(["
|
|
8954
|
+
_html(`<span${_attr_class(["_df", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8955
8955
|
_if(() => {
|
|
8956
8956
|
if (input.preferred === inst.id) {
|
|
8957
8957
|
const $scope87_id = _scope_id();
|
|
@@ -9030,24 +9030,24 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9030
9030
|
_if(() => {
|
|
9031
9031
|
if (!usage && families.length) {
|
|
9032
9032
|
const $scope90_id = _scope_id();
|
|
9033
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9034
9034
|
writeScope($scope90_id, {});
|
|
9035
9035
|
return 0;
|
|
9036
9036
|
} else if (usage?.error) {
|
|
9037
9037
|
const $scope9_id = _scope_id();
|
|
9038
|
-
_html(`<p${_attr_class("
|
|
9038
|
+
_html(`<p${_attr_class("_co")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9039
9039
|
writeScope($scope9_id, {});
|
|
9040
9040
|
return 1;
|
|
9041
9041
|
}
|
|
9042
9042
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9043
|
-
_html(`</section></div><div${_attr_class("
|
|
9043
|
+
_html(`</section></div><div${_attr_class("_eh")}><section${_attr_class("_cd")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ce")}><h2${_attr("id", githubId)}${_attr_class("_cr")}>GitHub</h2>`);
|
|
9044
9044
|
_if(() => {
|
|
9045
9045
|
if (setup) {
|
|
9046
9046
|
const $scope41_id = _scope_id();
|
|
9047
9047
|
_set_serialize_reason(44);
|
|
9048
9048
|
const $childScope10 = _peek_scope_id();
|
|
9049
9049
|
add_field_default({
|
|
9050
|
-
class: "
|
|
9050
|
+
class: "_do",
|
|
9051
9051
|
open: addingHost,
|
|
9052
9052
|
openChange: _resume((_new_addingHost) => {
|
|
9053
9053
|
addingHost = _new_addingHost;
|
|
@@ -9077,19 +9077,19 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9077
9077
|
return 0;
|
|
9078
9078
|
}
|
|
9079
9079
|
}, $scope0_id, "y");
|
|
9080
|
-
_html(`</div><div${_attr_class(["
|
|
9080
|
+
_html(`</div><div${_attr_class(["_ci", "_cK"])}>`);
|
|
9081
9081
|
_for_of(setup?.github || [], (h) => {
|
|
9082
9082
|
const $scope7_id = _scope_id();
|
|
9083
9083
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9084
9084
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9085
9085
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9086
9086
|
const busy = active.has(h.host);
|
|
9087
|
-
_html(`<div${_attr_class(["_cL", "
|
|
9087
|
+
_html(`<div${_attr_class(["_cL", "_dp"])}><div${_attr_class("_dq")}>`);
|
|
9088
9088
|
icon_github_default({
|
|
9089
9089
|
size: 18,
|
|
9090
|
-
class: "
|
|
9090
|
+
class: "_dr"
|
|
9091
9091
|
});
|
|
9092
|
-
_html(`<div${_attr_class("
|
|
9092
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9093
9093
|
_if(() => {
|
|
9094
9094
|
if (h.isEnterprise) {
|
|
9095
9095
|
const $scope94_id = _scope_id();
|
|
@@ -9102,25 +9102,25 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9102
9102
|
_if(() => {
|
|
9103
9103
|
if (busy) {
|
|
9104
9104
|
const $scope14_id = _scope_id();
|
|
9105
|
-
_html(`<span${_attr_class(["
|
|
9105
|
+
_html(`<span${_attr_class(["_cm", "_ds"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9106
9106
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9107
9107
|
return 0;
|
|
9108
9108
|
} else if (h.authed) {
|
|
9109
9109
|
const $scope92_id = _scope_id();
|
|
9110
|
-
_html(`<span${_attr_class(["
|
|
9110
|
+
_html(`<span${_attr_class(["_cm", "_ds"])}>`);
|
|
9111
9111
|
icon_check_default({
|
|
9112
9112
|
size: 12,
|
|
9113
|
-
class: "
|
|
9113
|
+
class: "_dt"
|
|
9114
9114
|
});
|
|
9115
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9115
|
+
_html(` Signed in as <strong${_attr_class("_dv")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9116
9116
|
writeScope($scope92_id, {});
|
|
9117
9117
|
return 1;
|
|
9118
9118
|
} else if (h.error) {
|
|
9119
9119
|
const $scope93_id = _scope_id();
|
|
9120
9120
|
_html(`<span${_attr_class([
|
|
9121
|
-
"
|
|
9122
|
-
"
|
|
9123
|
-
"
|
|
9121
|
+
"_cm",
|
|
9122
|
+
"_ds",
|
|
9123
|
+
"_du"
|
|
9124
9124
|
])}>`);
|
|
9125
9125
|
icon_warning_default({ size: 12 });
|
|
9126
9126
|
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
@@ -9128,7 +9128,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9128
9128
|
return 2;
|
|
9129
9129
|
} else {
|
|
9130
9130
|
const $scope95_id = _scope_id();
|
|
9131
|
-
_html(`<span${_attr_class(["
|
|
9131
|
+
_html(`<span${_attr_class(["_cm", "_ds"])}>Not signed in</span>`);
|
|
9132
9132
|
writeScope($scope95_id, {});
|
|
9133
9133
|
return 3;
|
|
9134
9134
|
}
|
|
@@ -9171,7 +9171,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9171
9171
|
const $childScope12 = _peek_scope_id();
|
|
9172
9172
|
arm_button_default({
|
|
9173
9173
|
class: [
|
|
9174
|
-
"
|
|
9174
|
+
"_cn",
|
|
9175
9175
|
"_7",
|
|
9176
9176
|
"_8"
|
|
9177
9177
|
],
|
|
@@ -9202,7 +9202,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9202
9202
|
_if(() => {
|
|
9203
9203
|
if (busy && authCodes.has(h.host)) {
|
|
9204
9204
|
const $scope35_id = _scope_id();
|
|
9205
|
-
_html(`<div${_attr_class("
|
|
9205
|
+
_html(`<div${_attr_class("_dw")}><span${_attr_class("_dx")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dz")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dy")}>${_text_resume($scope35_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
9206
9206
|
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9207
9207
|
return 0;
|
|
9208
9208
|
}
|
|
@@ -9214,7 +9214,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9214
9214
|
_set_serialize_reason(30);
|
|
9215
9215
|
const $childScope13 = _peek_scope_id();
|
|
9216
9216
|
sso_auth_default({
|
|
9217
|
-
class: ["_cL", "
|
|
9217
|
+
class: ["_cL", "_dA"],
|
|
9218
9218
|
items: hostSso$1,
|
|
9219
9219
|
skipped: skippedSso,
|
|
9220
9220
|
busy,
|
|
@@ -9248,12 +9248,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9248
9248
|
_if(() => {
|
|
9249
9249
|
if (setup && !setup.github.length) {
|
|
9250
9250
|
const $scope98_id = _scope_id();
|
|
9251
|
-
_html(`<p${_attr_class("
|
|
9251
|
+
_html(`<p${_attr_class("_co")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9252
9252
|
writeScope($scope98_id, {});
|
|
9253
9253
|
return 0;
|
|
9254
9254
|
}
|
|
9255
9255
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9256
|
-
_html(`</section><section${_attr_class("
|
|
9256
|
+
_html(`</section><section${_attr_class("_cd")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ce")}><h2${_attr("id", machineId)}${_attr_class("_cr")}>Machine</h2></div><div${_attr_class(["_ci", "_cK"])}><div${_attr_class(["_cL", "_cM"])}><div${_attr_class(["_cN", { ["_cO"]: skillsOpen }])}><button${_attr_class("_cP")} aria-expanded=true>`);
|
|
9257
9257
|
_set_serialize_reason(1);
|
|
9258
9258
|
const $childScope14 = _peek_scope_id();
|
|
9259
9259
|
icon_chevron_right_default({
|
|
@@ -9300,11 +9300,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9300
9300
|
_if(() => {
|
|
9301
9301
|
if (looksLikeSource(skillQuery)) {
|
|
9302
9302
|
const $scope17_id = _scope_id();
|
|
9303
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9303
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9304
9304
|
_if(() => {
|
|
9305
9305
|
if (active.has(skillQuery.trim())) {
|
|
9306
9306
|
const $scope18_id = _scope_id();
|
|
9307
|
-
_html(`<span${_attr_class("
|
|
9307
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9308
9308
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9309
9309
|
Ch1: 3,
|
|
9310
9310
|
Chs: 2
|
|
@@ -9312,7 +9312,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9312
9312
|
return 0;
|
|
9313
9313
|
} else {
|
|
9314
9314
|
const $scope100_id = _scope_id();
|
|
9315
|
-
_html(`<span${_attr_class("
|
|
9315
|
+
_html(`<span${_attr_class("_cm")}>Add straight from this source</span>`);
|
|
9316
9316
|
writeScope($scope100_id, {});
|
|
9317
9317
|
return 1;
|
|
9318
9318
|
}
|
|
@@ -9338,16 +9338,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9338
9338
|
_for_of(skillHits || [], (h) => {
|
|
9339
9339
|
const $scope19_id = _scope_id();
|
|
9340
9340
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9341
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9341
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9342
9342
|
_if(() => {
|
|
9343
9343
|
if (active.has(h.skillId)) {
|
|
9344
9344
|
const $scope20_id = _scope_id();
|
|
9345
|
-
_html(`<span${_attr_class("
|
|
9345
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9346
9346
|
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9347
9347
|
return 0;
|
|
9348
9348
|
} else {
|
|
9349
9349
|
const $scope101_id = _scope_id();
|
|
9350
|
-
_html(`<span${_attr_class("
|
|
9350
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9351
9351
|
writeScope($scope101_id, {});
|
|
9352
9352
|
return 1;
|
|
9353
9353
|
}
|
|
@@ -9416,12 +9416,12 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9416
9416
|
_if(() => {
|
|
9417
9417
|
if (skills && !skills.agents.length) {
|
|
9418
9418
|
const $scope104_id = _scope_id();
|
|
9419
|
-
_html(`<p${_attr_class("
|
|
9419
|
+
_html(`<p${_attr_class("_co")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9420
9420
|
writeScope($scope104_id, {});
|
|
9421
9421
|
return 0;
|
|
9422
9422
|
} else if (skills && !skills.available) {
|
|
9423
9423
|
const $scope22_id = _scope_id();
|
|
9424
|
-
_html(`<p${_attr_class("
|
|
9424
|
+
_html(`<p${_attr_class("_co")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
|
|
9425
9425
|
_script($scope22_id, "B66");
|
|
9426
9426
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9427
9427
|
return 1;
|
|
@@ -9505,7 +9505,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9505
9505
|
_if(() => {
|
|
9506
9506
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9507
9507
|
const $scope108_id = _scope_id();
|
|
9508
|
-
_html(`<p${_attr_class("
|
|
9508
|
+
_html(`<p${_attr_class("_co")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9509
9509
|
writeScope($scope108_id, {});
|
|
9510
9510
|
return 0;
|
|
9511
9511
|
}
|
|
@@ -9526,7 +9526,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9526
9526
|
_if(() => {
|
|
9527
9527
|
if (bulk) {
|
|
9528
9528
|
const $scope34_id = _scope_id();
|
|
9529
|
-
_html(`<span${_attr_class("
|
|
9529
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope34_id, "c", bulk.action === "update" ? "Updating" : "Installing")} ${_text_resume($scope34_id, "d", Math.min(bulk.done + 1, bulk.total), 2)}/${_text_resume($scope34_id, "e", bulk.total, 2)}${_text_resume($scope34_id, "f", activeLine && ` — ${activeLine}`, 2)}</span>`);
|
|
9530
9530
|
writeScope($scope34_id, {});
|
|
9531
9531
|
return 0;
|
|
9532
9532
|
} else {
|
|
@@ -9590,16 +9590,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9590
9590
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9591
9591
|
_for_of(hits || [], (h) => {
|
|
9592
9592
|
const $scope29_id = _scope_id();
|
|
9593
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9593
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9594
9594
|
_if(() => {
|
|
9595
9595
|
if (active.has(h.name)) {
|
|
9596
9596
|
const $scope30_id = _scope_id();
|
|
9597
|
-
_html(`<span${_attr_class("
|
|
9597
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9598
9598
|
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9599
9599
|
return 0;
|
|
9600
9600
|
} else if (h.description) {
|
|
9601
9601
|
const $scope110_id = _scope_id();
|
|
9602
|
-
_html(`<span${_attr_class("
|
|
9602
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9603
9603
|
writeScope($scope110_id, {});
|
|
9604
9604
|
return 1;
|
|
9605
9605
|
}
|
|
@@ -9650,7 +9650,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9650
9650
|
_if(() => {
|
|
9651
9651
|
if (setup && !setup.mise.installed) {
|
|
9652
9652
|
const $scope31_id = _scope_id();
|
|
9653
|
-
_html(`<p${_attr_class("
|
|
9653
|
+
_html(`<p${_attr_class("_co")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
|
|
9654
9654
|
_script($scope31_id, "B76");
|
|
9655
9655
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9656
9656
|
return 0;
|
|
@@ -9660,11 +9660,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9660
9660
|
_if(() => {
|
|
9661
9661
|
if (self) {
|
|
9662
9662
|
const $scope46_id = _scope_id();
|
|
9663
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9663
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dk", "_y"])}>work</span>`);
|
|
9664
9664
|
_if(() => {
|
|
9665
9665
|
if (selfUpdating) {
|
|
9666
9666
|
const $scope112_id = _scope_id();
|
|
9667
|
-
_html(`<span${_attr_class("
|
|
9667
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9668
9668
|
writeScope($scope112_id, {});
|
|
9669
9669
|
return 0;
|
|
9670
9670
|
} else {
|
|
@@ -9678,7 +9678,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9678
9678
|
return 0;
|
|
9679
9679
|
} else if (self.latest && self.latest !== self.version) {
|
|
9680
9680
|
const $scope48_id = _scope_id();
|
|
9681
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9681
|
+
_html(`<button${_attr_class([btnSm, "_dn"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9682
9682
|
icon_arrow_up_default({ size: 12 });
|
|
9683
9683
|
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9684
9684
|
_script($scope48_id, "B77");
|
|
@@ -9721,11 +9721,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9721
9721
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9722
9722
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9723
9723
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9724
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9724
|
+
_html(`<li${_attr_class([toolRow, { ["_dj"]: !t.installed }])}><span${_attr_class(["_dk", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9725
9725
|
_if(() => {
|
|
9726
9726
|
if (active.has(t.id)) {
|
|
9727
9727
|
const $scope33_id = _scope_id();
|
|
9728
|
-
_html(`<span${_attr_class("
|
|
9728
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9729
9729
|
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9730
9730
|
return 0;
|
|
9731
9731
|
} else if (t.installed) {
|
|
@@ -9733,11 +9733,11 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9733
9733
|
_if(() => {
|
|
9734
9734
|
if (t.version) {
|
|
9735
9735
|
const $scope40_id = _scope_id();
|
|
9736
|
-
_html(`<button${_attr_class(["
|
|
9736
|
+
_html(`<button${_attr_class(["_dm", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9737
9737
|
_if(() => {
|
|
9738
9738
|
if (aliasPin(t)) {
|
|
9739
9739
|
const $scope116_id = _scope_id();
|
|
9740
|
-
_html(`<span${_attr_class("
|
|
9740
|
+
_html(`<span${_attr_class("_dl")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9741
9741
|
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9742
9742
|
return 0;
|
|
9743
9743
|
}
|
|
@@ -9756,7 +9756,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9756
9756
|
_if(() => {
|
|
9757
9757
|
if (outdated(t)) {
|
|
9758
9758
|
const $scope57_id = _scope_id();
|
|
9759
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9759
|
+
_html(`<button${_attr_class([btnSm, "_dn"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9760
9760
|
icon_arrow_up_default({ size: 12 });
|
|
9761
9761
|
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9762
9762
|
_script($scope57_id, "B79");
|
|
@@ -9764,7 +9764,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9764
9764
|
return 0;
|
|
9765
9765
|
} else if (t.newest) {
|
|
9766
9766
|
const $scope58_id = _scope_id();
|
|
9767
|
-
_html(`<button${_attr_class(["
|
|
9767
|
+
_html(`<button${_attr_class(["_dm", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope58_id, "b", t.newest)} available</button>${_el_resume($scope58_id, "a")}`);
|
|
9768
9768
|
_script($scope58_id, "B80");
|
|
9769
9769
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope58_id, { Cy: 1 })))));
|
|
9770
9770
|
return 1;
|
|
@@ -9877,14 +9877,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9877
9877
|
label: "Dark"
|
|
9878
9878
|
}
|
|
9879
9879
|
];
|
|
9880
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9880
|
+
_html(`</div></div></section><section${_attr_class("_cd")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ce")}><h2${_attr("id", appearanceId)}${_attr_class("_cr")}>Appearance</h2></div><div${_attr_class(["_ci", "_dB"])}><div${_attr_class("_dN")}><img${_attr_class("_dO")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}<span${_attr_class("_dP")}><span${_attr_class("_dQ")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dR")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dC")}><span${_attr_class("_dD")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9881
9881
|
setInstance({ name: v });
|
|
9882
|
-
}, "B1", $scope0_id))}${_attr_class(["_Y", "
|
|
9882
|
+
}, "B1", $scope0_id))}${_attr_class(["_Y", "_dE"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dC")}><span${_attr_class("_dD")}>Theme</span><span${_attr_class("_dG")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9883
9883
|
_for_of(themeOpts, (opt) => {
|
|
9884
9884
|
const $scope49_id = _scope_id();
|
|
9885
9885
|
_html(`<button type=button${_attr_class([
|
|
9886
9886
|
"_bf",
|
|
9887
|
-
"
|
|
9887
|
+
"_dS",
|
|
9888
9888
|
{ ["_be"]: themeMode === opt.id }
|
|
9889
9889
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9890
9890
|
if (opt.id === "system") {
|
|
@@ -9904,28 +9904,28 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9904
9904
|
_: _scope_with_id($scope0_id)
|
|
9905
9905
|
});
|
|
9906
9906
|
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9907
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9907
|
+
_html(`</span><span${_attr_class(["_o", "_dH"])}>`);
|
|
9908
9908
|
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9909
9909
|
setThemeMode(v);
|
|
9910
9910
|
}, "B2", $scope0_id), () => {
|
|
9911
|
-
_html(`<select${_attr_class(["_p", "
|
|
9911
|
+
_html(`<select${_attr_class(["_p", "_dI"])} aria-label="Color theme">`);
|
|
9912
9912
|
forOf(themeOpts, (opt) => {
|
|
9913
9913
|
_scope_id();
|
|
9914
9914
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9915
9915
|
});
|
|
9916
9916
|
_html("</select>");
|
|
9917
9917
|
});
|
|
9918
|
-
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("
|
|
9919
|
-
"
|
|
9920
|
-
"
|
|
9921
|
-
{ ["
|
|
9918
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dC")}><span${_attr_class("_dD")}>Accent</span><span${_attr_class("_dT")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9919
|
+
"_dU",
|
|
9920
|
+
"_dX",
|
|
9921
|
+
{ ["_dV"]: !accent }
|
|
9922
9922
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9923
9923
|
_if(() => {
|
|
9924
9924
|
if (!accent) {
|
|
9925
9925
|
const $scope126_id = _scope_id();
|
|
9926
9926
|
icon_check_default({
|
|
9927
9927
|
size: 12,
|
|
9928
|
-
class: "
|
|
9928
|
+
class: "_dW"
|
|
9929
9929
|
});
|
|
9930
9930
|
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9931
9931
|
return 0;
|
|
@@ -9933,13 +9933,13 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9933
9933
|
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9934
9934
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9935
9935
|
const $scope79_id = _scope_id();
|
|
9936
|
-
_html(`<button type=button${_attr_class(["
|
|
9936
|
+
_html(`<button type=button${_attr_class(["_dU", { ["_dV"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9937
9937
|
_if(() => {
|
|
9938
9938
|
if (accent === p.value) {
|
|
9939
9939
|
const $scope127_id = _scope_id();
|
|
9940
9940
|
icon_check_default({
|
|
9941
9941
|
size: 12,
|
|
9942
|
-
class: "
|
|
9942
|
+
class: "_dW"
|
|
9943
9943
|
});
|
|
9944
9944
|
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9945
9945
|
return 0;
|
|
@@ -9953,18 +9953,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9953
9953
|
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9954
9954
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9955
9955
|
_html(`<label${_attr_class([
|
|
9956
|
-
"
|
|
9957
|
-
"
|
|
9958
|
-
{ ["
|
|
9956
|
+
"_dU",
|
|
9957
|
+
"_dY",
|
|
9958
|
+
{ ["_dV"]: customOn }
|
|
9959
9959
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "be", accent || "#3556d8", _resume(function(v) {
|
|
9960
9960
|
setInstance({ accent: v });
|
|
9961
|
-
}, "B3", $scope0_id))}${_attr_class("
|
|
9961
|
+
}, "B3", $scope0_id))}${_attr_class("_dZ")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9962
9962
|
_if(() => {
|
|
9963
9963
|
if (customOn) {
|
|
9964
9964
|
const $scope128_id = _scope_id();
|
|
9965
9965
|
icon_check_default({
|
|
9966
9966
|
size: 12,
|
|
9967
|
-
class: "
|
|
9967
|
+
class: "_dW"
|
|
9968
9968
|
});
|
|
9969
9969
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9970
9970
|
return 0;
|
|
@@ -9975,16 +9975,16 @@ var settings_page_default = _template("B", (input) => {
|
|
|
9975
9975
|
return 1;
|
|
9976
9976
|
}
|
|
9977
9977
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9978
|
-
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9978
|
+
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_cd")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ce")}><h2${_attr("id", backupId)}${_attr_class("_cr")}>Backup</h2></div><div${_attr_class(["_ci", "_cK"])}><div${_attr_class("_cL")}><div${_attr_class("_d0")}><div${_attr_class("_cj")}>`);
|
|
9979
9979
|
_if(() => {
|
|
9980
9980
|
if (backupBusy === "preflight") {
|
|
9981
9981
|
const $scope66_id = _scope_id();
|
|
9982
|
-
_html(`<span${_attr_class("
|
|
9982
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9983
9983
|
writeScope($scope66_id, {});
|
|
9984
9984
|
return 0;
|
|
9985
9985
|
} else {
|
|
9986
9986
|
const $scope130_id = _scope_id();
|
|
9987
|
-
_html(`<span${_attr_class("
|
|
9987
|
+
_html(`<span${_attr_class("_cm")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9988
9988
|
writeScope($scope130_id, {});
|
|
9989
9989
|
return 1;
|
|
9990
9990
|
}
|
|
@@ -10002,7 +10002,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10002
10002
|
_if(() => {
|
|
10003
10003
|
if (preflight && !backupBusy) {
|
|
10004
10004
|
const $scope68_id = _scope_id();
|
|
10005
|
-
_html(`<div${_attr_class("
|
|
10005
|
+
_html(`<div${_attr_class("_d2")}><p${_attr_class("_d3")}>In the file: ${_text_resume($scope68_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope68_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope68_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope68_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope68_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope68_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope68_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_d3")}>Not in the file: `);
|
|
10006
10006
|
_if(() => {
|
|
10007
10007
|
if (preflight.unpushed) {
|
|
10008
10008
|
const $scope69_id = _scope_id();
|
|
@@ -10019,15 +10019,15 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10019
10019
|
return 0;
|
|
10020
10020
|
}
|
|
10021
10021
|
}, $scope68_id, "m");
|
|
10022
|
-
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
10022
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_d4")}>`);
|
|
10023
10023
|
_for_of(preflight.workspaces, (w) => {
|
|
10024
10024
|
const $scope132_id = _scope_id();
|
|
10025
10025
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
10026
|
-
_html(`<li${_attr_class("
|
|
10026
|
+
_html(`<li${_attr_class("_d5")}><span${_attr_class("_ck")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_d4")}>`);
|
|
10027
10027
|
_for_of(w.repos, (r) => {
|
|
10028
10028
|
const $scope133_id = _scope_id();
|
|
10029
10029
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
10030
|
-
_html(`<li${_attr_class("
|
|
10030
|
+
_html(`<li${_attr_class("_d6")}><span${_attr_class("_d7")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
10031
10031
|
_for_of(r.unpushed, (b) => {
|
|
10032
10032
|
const $scope134_id = _scope_id();
|
|
10033
10033
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope134_id, "b", b.count)} unpushed `);
|
|
@@ -10046,10 +10046,10 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10046
10046
|
_if(() => {
|
|
10047
10047
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
10048
10048
|
const $scope135_id = _scope_id();
|
|
10049
|
-
_html(`<ul${_attr_class("
|
|
10049
|
+
_html(`<ul${_attr_class("_d8")}>`);
|
|
10050
10050
|
_for_of(r.modified, (f) => {
|
|
10051
10051
|
const $scope138_id = _scope_id();
|
|
10052
|
-
_html(`<li${_attr_class("
|
|
10052
|
+
_html(`<li${_attr_class("_d9")}><span${_attr_class([
|
|
10053
10053
|
"_N",
|
|
10054
10054
|
"_P",
|
|
10055
10055
|
tone.warn
|
|
@@ -10058,18 +10058,18 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10058
10058
|
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
10059
10059
|
_for_of(r.untracked, (f) => {
|
|
10060
10060
|
const $scope139_id = _scope_id();
|
|
10061
|
-
_html(`<li${_attr_class("
|
|
10061
|
+
_html(`<li${_attr_class("_d9")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10062
10062
|
writeScope($scope139_id, {});
|
|
10063
10063
|
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10064
10064
|
_for_of(r.ignored, (f) => {
|
|
10065
10065
|
const $scope140_id = _scope_id();
|
|
10066
|
-
_html(`<li${_attr_class("
|
|
10066
|
+
_html(`<li${_attr_class("_d9")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope140_id, "d", f)}</span></li>`);
|
|
10067
10067
|
writeScope($scope140_id, {});
|
|
10068
10068
|
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10069
10069
|
_if(() => {
|
|
10070
10070
|
if (r.more) {
|
|
10071
10071
|
const $scope136_id = _scope_id();
|
|
10072
|
-
_html(`<li${_attr_class(["
|
|
10072
|
+
_html(`<li${_attr_class(["_d9", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10073
10073
|
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10074
10074
|
return 0;
|
|
10075
10075
|
}
|
|
@@ -10094,27 +10094,27 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10094
10094
|
i: $for_content17__w_name__closures
|
|
10095
10095
|
});
|
|
10096
10096
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10097
|
-
_html(`<div${_attr_class("
|
|
10097
|
+
_html(`<div${_attr_class("_d_")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
10098
10098
|
_script($scope68_id, "B86");
|
|
10099
10099
|
writeScope($scope68_id, {});
|
|
10100
10100
|
return 0;
|
|
10101
10101
|
}
|
|
10102
10102
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10103
|
-
_html(`</div><div${_attr_class("_cL")}><div${_attr_class("
|
|
10103
|
+
_html(`</div><div${_attr_class("_cL")}><div${_attr_class("_d0")}><div${_attr_class("_cj")}>`);
|
|
10104
10104
|
_if(() => {
|
|
10105
10105
|
if (backupBusy === "restore") {
|
|
10106
10106
|
const $scope67_id = _scope_id();
|
|
10107
|
-
_html(`<span${_attr_class("
|
|
10107
|
+
_html(`<span${_attr_class("_c9")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10108
10108
|
writeScope($scope67_id, {});
|
|
10109
10109
|
return 0;
|
|
10110
10110
|
} else if (restoreDone) {
|
|
10111
10111
|
const $scope75_id = _scope_id();
|
|
10112
|
-
_html(`<span${_attr_class("
|
|
10112
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10113
10113
|
writeScope($scope75_id, {});
|
|
10114
10114
|
return 1;
|
|
10115
10115
|
} else {
|
|
10116
10116
|
const $scope141_id = _scope_id();
|
|
10117
|
-
_html(`<span${_attr_class("
|
|
10117
|
+
_html(`<span${_attr_class("_cm")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10118
10118
|
writeScope($scope141_id, {});
|
|
10119
10119
|
return 2;
|
|
10120
10120
|
}
|
|
@@ -10122,7 +10122,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10122
10122
|
_if(() => {
|
|
10123
10123
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10124
10124
|
const $scope77_id = _scope_id();
|
|
10125
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10125
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_d1")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10126
10126
|
_script($scope77_id, "B87");
|
|
10127
10127
|
writeScope($scope77_id, {});
|
|
10128
10128
|
return 0;
|
|
@@ -10133,14 +10133,14 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10133
10133
|
if (restorePreview && backupBusy !== "restore") {
|
|
10134
10134
|
const $scope70_id = _scope_id();
|
|
10135
10135
|
const { preview } = restorePreview;
|
|
10136
|
-
_html(`<div${_attr_class("
|
|
10136
|
+
_html(`<div${_attr_class("_d2")}><p${_attr_class("_d3")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
10137
10137
|
_if(() => {
|
|
10138
10138
|
if (preview.workspaces.length) {
|
|
10139
10139
|
const $scope71_id = _scope_id();
|
|
10140
10140
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10141
10141
|
_for_of(preview.workspaces, (w) => {
|
|
10142
10142
|
const $scope72_id = _scope_id();
|
|
10143
|
-
_html(`<li><label${_attr_class(["
|
|
10143
|
+
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_ec")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
10144
10144
|
_if(() => {
|
|
10145
10145
|
if (w.status === "archived") {
|
|
10146
10146
|
const $scope145_id = _scope_id();
|
|
@@ -10162,7 +10162,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10162
10162
|
return 1;
|
|
10163
10163
|
}
|
|
10164
10164
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10165
|
-
_html(`</span><span${_attr_class("
|
|
10165
|
+
_html(`</span><span${_attr_class("_cm")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10166
10166
|
_script($scope72_id, "B88");
|
|
10167
10167
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10168
10168
|
n: w?.unknownHost,
|
|
@@ -10173,7 +10173,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10173
10173
|
return 0;
|
|
10174
10174
|
} else {
|
|
10175
10175
|
const $scope143_id = _scope_id();
|
|
10176
|
-
_html(`<p${_attr_class("
|
|
10176
|
+
_html(`<p${_attr_class("_co")}>No workspaces in this file.</p>`);
|
|
10177
10177
|
writeScope($scope143_id, {});
|
|
10178
10178
|
return 1;
|
|
10179
10179
|
}
|
|
@@ -10213,7 +10213,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10213
10213
|
_if(() => {
|
|
10214
10214
|
if (p.total) {
|
|
10215
10215
|
const $scope74_id = _scope_id();
|
|
10216
|
-
_html(`<li><label${_attr_class(["
|
|
10216
|
+
_html(`<li><label${_attr_class(["_eb", { ["_ed"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_ec")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_cj")}><span${_attr_class("_ck")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_cm")}>`);
|
|
10217
10217
|
_if(() => {
|
|
10218
10218
|
if (p.key === "settings") {
|
|
10219
10219
|
const $scope142_id = _scope_id();
|
|
@@ -10260,7 +10260,7 @@ var settings_page_default = _template("B", (input) => {
|
|
|
10260
10260
|
i: $for_content10__p_total__closures
|
|
10261
10261
|
});
|
|
10262
10262
|
}, "key", $scope70_id, "h");
|
|
10263
|
-
_html(`</ul><div${_attr_class("
|
|
10263
|
+
_html(`</ul><div${_attr_class("_d_")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
10264
10264
|
_script($scope70_id, "B90");
|
|
10265
10265
|
writeScope($scope70_id, {});
|
|
10266
10266
|
return 0;
|
|
@@ -10497,13 +10497,13 @@ function vapidKey(base64) {
|
|
|
10497
10497
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10498
10498
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10499
10499
|
}
|
|
10500
|
-
var iconBtn = "
|
|
10501
|
-
var settingsDot = "
|
|
10502
|
-
var navToggle = "
|
|
10500
|
+
var iconBtn = "_bO _l";
|
|
10501
|
+
var settingsDot = "_bP _bb";
|
|
10502
|
+
var navToggle = "_bT _l";
|
|
10503
10503
|
//#endregion
|
|
10504
10504
|
//#region src/styles/session-pop.css.ts
|
|
10505
|
-
var sessionPop = "
|
|
10506
|
-
var sessionPopBtn = "
|
|
10505
|
+
var sessionPop = "_b5 _9";
|
|
10506
|
+
var sessionPopBtn = "_b6 _I";
|
|
10507
10507
|
_template("X", (input) => {
|
|
10508
10508
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10509
10509
|
const $scope0_id = _scope_id();
|
|
@@ -10559,12 +10559,12 @@ function activeAgent(session) {
|
|
|
10559
10559
|
}
|
|
10560
10560
|
var heroTag = "_fe _N _Q";
|
|
10561
10561
|
var rowState = "_fq _N";
|
|
10562
|
-
var prChip$1 = "
|
|
10563
|
-
var portChip = "
|
|
10562
|
+
var prChip$1 = "_ia _u _h_";
|
|
10563
|
+
var portChip = "_ib _u _h_";
|
|
10564
10564
|
var prState = {
|
|
10565
|
-
open: "
|
|
10566
|
-
merged: "
|
|
10567
|
-
closed: "
|
|
10565
|
+
open: "_if",
|
|
10566
|
+
merged: "_ig",
|
|
10567
|
+
closed: "_ih"
|
|
10568
10568
|
};
|
|
10569
10569
|
//#endregion
|
|
10570
10570
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10645,7 +10645,7 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10645
10645
|
const name = repo.full_name.split("/").at(-1);
|
|
10646
10646
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10647
10647
|
}, "C3", $scope1_id);
|
|
10648
|
-
_html(`<div${_attr_class("
|
|
10648
|
+
_html(`<div${_attr_class("_h9")}>`);
|
|
10649
10649
|
_for_of(repos, (repo) => {
|
|
10650
10650
|
const $scope2_id = _scope_id();
|
|
10651
10651
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10661,11 +10661,11 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10661
10661
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10662
10662
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10663
10663
|
}
|
|
10664
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10664
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_ic", { ["_ik"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10665
10665
|
_if(() => {
|
|
10666
10666
|
if (open) {
|
|
10667
10667
|
const $scope4_id = _scope_id();
|
|
10668
|
-
_html(`<a${_attr_class(["
|
|
10668
|
+
_html(`<a${_attr_class(["_ic", "_id"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10669
10669
|
icon_diff_default({ size: 12 });
|
|
10670
10670
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10671
10671
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10673,9 +10673,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10673
10673
|
} else {
|
|
10674
10674
|
const $scope5_id = _scope_id();
|
|
10675
10675
|
_html(`<button type=button${_attr_class([
|
|
10676
|
-
"
|
|
10677
|
-
"
|
|
10678
|
-
"
|
|
10676
|
+
"_ic",
|
|
10677
|
+
"_id",
|
|
10678
|
+
"_ie"
|
|
10679
10679
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10680
10680
|
icon_xmark_default({ size: 12 });
|
|
10681
10681
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10703,12 +10703,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10703
10703
|
_if(() => {
|
|
10704
10704
|
if (dead.has(p.port)) {
|
|
10705
10705
|
const $scope7_id = _scope_id();
|
|
10706
|
-
_html(`<span${_attr_class(["
|
|
10706
|
+
_html(`<span${_attr_class(["_ic", "_ii"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10707
10707
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10708
10708
|
return 0;
|
|
10709
10709
|
} else {
|
|
10710
10710
|
const $scope8_id = _scope_id();
|
|
10711
|
-
_html(`<button type=button${_attr_class(["
|
|
10711
|
+
_html(`<button type=button${_attr_class(["_ic", "_ij"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10712
10712
|
_script($scope8_id, "C6");
|
|
10713
10713
|
writeScope($scope8_id, {});
|
|
10714
10714
|
return 1;
|
|
@@ -10717,9 +10717,9 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10717
10717
|
const $childScope = _peek_scope_id();
|
|
10718
10718
|
arm_button_default({
|
|
10719
10719
|
class: [
|
|
10720
|
-
"
|
|
10721
|
-
"
|
|
10722
|
-
"
|
|
10720
|
+
"_ic",
|
|
10721
|
+
"_id",
|
|
10722
|
+
"_ie"
|
|
10723
10723
|
],
|
|
10724
10724
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10725
10725
|
armedTitle: "Kill?",
|
|
@@ -10766,12 +10766,12 @@ var side_nav_chips_default = _template("C", (input) => {
|
|
|
10766
10766
|
});
|
|
10767
10767
|
_resume_branch($scope0_id);
|
|
10768
10768
|
});
|
|
10769
|
-
var railBtn = "
|
|
10770
|
-
var wsBtn = "
|
|
10771
|
-
var rowIcon = "
|
|
10772
|
-
var close = "
|
|
10773
|
-
var sessRename$1 = "
|
|
10774
|
-
var sessBtn$1 = "
|
|
10769
|
+
var railBtn = "_fL _l";
|
|
10770
|
+
var wsBtn = "_fP _I";
|
|
10771
|
+
var rowIcon = "_fS _3 _l";
|
|
10772
|
+
var close = "_fT _6 _l _7";
|
|
10773
|
+
var sessRename$1 = "_fZ _J";
|
|
10774
|
+
var sessBtn$1 = "_f1 _I";
|
|
10775
10775
|
//#endregion
|
|
10776
10776
|
//#region src/tags/icons/icon-manage.marko
|
|
10777
10777
|
var icon_manage_default = _template("lb", (input) => {
|
|
@@ -10886,7 +10886,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10886
10886
|
_if(() => {
|
|
10887
10887
|
if (input.rail) {
|
|
10888
10888
|
const $scope2_id = _scope_id();
|
|
10889
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10889
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fI"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 18))}<span${_attr_class([
|
|
10890
10890
|
"_A",
|
|
10891
10891
|
phase[dot$1],
|
|
10892
10892
|
"_bb"
|
|
@@ -10896,31 +10896,31 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10896
10896
|
} else if (ws$1.pending) {
|
|
10897
10897
|
const $scope3_id = _scope_id();
|
|
10898
10898
|
_html(`<section${_attr_class([
|
|
10899
|
-
"_fx",
|
|
10900
10899
|
"_fN",
|
|
10901
|
-
|
|
10902
|
-
|
|
10900
|
+
"_f3",
|
|
10901
|
+
{ ["_fM"]: input.page }
|
|
10902
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fO")}><div${_attr_class(wsBtn)}>`);
|
|
10903
10903
|
_if(() => {
|
|
10904
10904
|
if (ws$1.pending_error) {
|
|
10905
10905
|
const $scope11_id = _scope_id();
|
|
10906
10906
|
icon_warning_default({
|
|
10907
10907
|
size: 12,
|
|
10908
|
-
class: "
|
|
10908
|
+
class: "_f5"
|
|
10909
10909
|
});
|
|
10910
10910
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10911
10911
|
return 0;
|
|
10912
10912
|
} else {
|
|
10913
10913
|
const $scope12_id = _scope_id();
|
|
10914
|
-
_html(`<span${_attr_class(["_G", "
|
|
10914
|
+
_html(`<span${_attr_class(["_G", "_f4"])}></span>`);
|
|
10915
10915
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10916
10916
|
return 1;
|
|
10917
10917
|
}
|
|
10918
10918
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10919
|
-
_html(`<span${_attr_class("
|
|
10919
|
+
_html(`<span${_attr_class("_fV")}><span${_attr_class("_fW")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f7")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10920
10920
|
_if(() => {
|
|
10921
10921
|
if (ws$1.pending_error && !retrying) {
|
|
10922
10922
|
const $scope10_id = _scope_id();
|
|
10923
|
-
_html(`<div${_attr_class("
|
|
10923
|
+
_html(`<div${_attr_class("_f6")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10924
10924
|
arm_button_default({
|
|
10925
10925
|
class: ["_q", btnSm],
|
|
10926
10926
|
title: "Delete workspace",
|
|
@@ -10951,11 +10951,11 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10951
10951
|
const $scope4_id = _scope_id();
|
|
10952
10952
|
const sessions$1 = input.sessions || [];
|
|
10953
10953
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10954
|
-
_html(`<section${_attr_class(["
|
|
10955
|
-
["
|
|
10954
|
+
_html(`<section${_attr_class(["_fN", {
|
|
10955
|
+
["_fI"]: input.current,
|
|
10956
10956
|
["_bc"]: input.current,
|
|
10957
|
-
["
|
|
10958
|
-
}])}><div${_attr_class("
|
|
10957
|
+
["_fK"]: input.menuOpen
|
|
10958
|
+
}])}><div${_attr_class("_fO")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10959
10959
|
_if(() => {
|
|
10960
10960
|
if (sessions$1.length === 1) {
|
|
10961
10961
|
const $scope14_id = _scope_id();
|
|
@@ -10967,7 +10967,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10967
10967
|
icon_agent_default({
|
|
10968
10968
|
agent: activeAgent(sessions$1[0]),
|
|
10969
10969
|
size: 12,
|
|
10970
|
-
class: "
|
|
10970
|
+
class: "_fU"
|
|
10971
10971
|
});
|
|
10972
10972
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10973
10973
|
_: _scope_with_id($scope4_id),
|
|
@@ -10976,7 +10976,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
10976
10976
|
return 0;
|
|
10977
10977
|
}
|
|
10978
10978
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10979
|
-
_html(`<span${_attr_class("
|
|
10979
|
+
_html(`<span${_attr_class("_fV")}><span${_attr_class("_fW")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fQ")}>`);
|
|
10980
10980
|
_if(() => {
|
|
10981
10981
|
if (input.onNewSession) {
|
|
10982
10982
|
const $scope5_id = _scope_id();
|
|
@@ -11004,19 +11004,19 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11004
11004
|
return 0;
|
|
11005
11005
|
}
|
|
11006
11006
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
11007
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
11007
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fJ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
11008
11008
|
icon_manage_default({ size: 12 });
|
|
11009
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
11009
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_f0")}>`);
|
|
11010
11010
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
11011
11011
|
const $scope6_id = _scope_id();
|
|
11012
|
-
_html(`<div${_attr_class(["
|
|
11012
|
+
_html(`<div${_attr_class(["_fR", { ["_fI"]: s.id === input.currentTab }])}>`);
|
|
11013
11013
|
_if(() => {
|
|
11014
11014
|
if (renamingId === s.id) {
|
|
11015
11015
|
const $scope7_id = _scope_id();
|
|
11016
11016
|
_html(`<span${_attr_class([
|
|
11017
11017
|
"_A",
|
|
11018
11018
|
phase[sessionPhase(s.state)],
|
|
11019
|
-
"
|
|
11019
|
+
"_fY"
|
|
11020
11020
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
11021
11021
|
_set_serialize_reason({
|
|
11022
11022
|
1: $sg__input_sessions,
|
|
@@ -11026,7 +11026,7 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11026
11026
|
icon_agent_default({
|
|
11027
11027
|
agent: activeAgent(s),
|
|
11028
11028
|
size: 12,
|
|
11029
|
-
class: "
|
|
11029
|
+
class: "_f2"
|
|
11030
11030
|
});
|
|
11031
11031
|
const $childScope3 = _peek_scope_id();
|
|
11032
11032
|
rename_input_default({
|
|
@@ -11057,9 +11057,9 @@ var side_nav_item_default = _template("D", (input) => {
|
|
|
11057
11057
|
icon_agent_default({
|
|
11058
11058
|
agent: activeAgent(s),
|
|
11059
11059
|
size: 12,
|
|
11060
|
-
class: "
|
|
11060
|
+
class: "_f2"
|
|
11061
11061
|
});
|
|
11062
|
-
_html(`<span${_attr_class("
|
|
11062
|
+
_html(`<span${_attr_class("_fX")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
|
|
11063
11063
|
icon_edit_default({ size: 12 });
|
|
11064
11064
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
11065
11065
|
arm_button_default({
|
|
@@ -11449,13 +11449,13 @@ var usage_bars_default = _template("K", (input) => {
|
|
|
11449
11449
|
if (windows.length) {
|
|
11450
11450
|
const $scope1_id = _scope_id();
|
|
11451
11451
|
_html(`<span${_attr_class([
|
|
11452
|
-
"
|
|
11452
|
+
"_hE",
|
|
11453
11453
|
input.class,
|
|
11454
|
-
{ ["
|
|
11454
|
+
{ ["_hF"]: agent.stale_seconds != null }
|
|
11455
11455
|
])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
|
|
11456
11456
|
_for_of(windows, (win) => {
|
|
11457
11457
|
const $scope2_id = _scope_id();
|
|
11458
|
-
_html(`<span${_attr_class(["
|
|
11458
|
+
_html(`<span${_attr_class(["_hG", win.used_percent >= 90 ? "_hK" : win.used_percent >= 70 ? "_hJ" : win.used_percent >= 40 ? "_hI" : "_hH"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11459
11459
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11460
11460
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11461
11461
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11487,7 +11487,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11487
11487
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11488
11488
|
const all = usage?.agents || [];
|
|
11489
11489
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11490
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11490
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eK" : pct >= 70 ? "_eJ" : pct >= 40 ? "_eI" : "_eH", "r0");
|
|
11491
11491
|
let card$2 = null;
|
|
11492
11492
|
const showCard = _resume((el) => {
|
|
11493
11493
|
const r = el.getBoundingClientRect();
|
|
@@ -11499,18 +11499,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11499
11499
|
_if(() => {
|
|
11500
11500
|
if (plan) {
|
|
11501
11501
|
const $scope1_id = _scope_id();
|
|
11502
|
-
_html(`<span${_attr_class("
|
|
11502
|
+
_html(`<span${_attr_class("_eB")} tabindex=0>`);
|
|
11503
11503
|
_set_serialize_reason(1);
|
|
11504
11504
|
const $childScope = _peek_scope_id();
|
|
11505
11505
|
usage_bars_default({
|
|
11506
|
-
class: "
|
|
11506
|
+
class: "_eD",
|
|
11507
11507
|
agent: plan
|
|
11508
11508
|
});
|
|
11509
|
-
_html(`<svg${_attr_class(["
|
|
11509
|
+
_html(`<svg${_attr_class(["_eE", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eF")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eG")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
|
|
11510
11510
|
_if(() => {
|
|
11511
11511
|
if (card$2) {
|
|
11512
11512
|
const $scope2_id = _scope_id();
|
|
11513
|
-
_html(`<div${_attr_class(["_9", "
|
|
11513
|
+
_html(`<div${_attr_class(["_9", "_eC"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11514
11514
|
_for_of(all, (a) => {
|
|
11515
11515
|
const $scope3_id = _scope_id();
|
|
11516
11516
|
_set_serialize_reason(6);
|
|
@@ -11607,14 +11607,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11607
11607
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11608
11608
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11609
11609
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11610
|
-
_html(`<aside${_attr_class(["
|
|
11611
|
-
["
|
|
11612
|
-
["
|
|
11610
|
+
_html(`<aside${_attr_class(["_bS", {
|
|
11611
|
+
["_bQ"]: !navOpen,
|
|
11612
|
+
["_bR"]: isPage
|
|
11613
11613
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11614
11614
|
_if(() => {
|
|
11615
11615
|
if (isPage) {
|
|
11616
11616
|
const $scope1_id = _scope_id();
|
|
11617
|
-
_html(`<div${_attr_class("
|
|
11617
|
+
_html(`<div${_attr_class("_bV")}>`);
|
|
11618
11618
|
_set_serialize_reason({
|
|
11619
11619
|
3: $sg__input_instanceName,
|
|
11620
11620
|
6: $sg__input_instanceName
|
|
@@ -11623,7 +11623,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11623
11623
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("E8", () => {
|
|
11624
11624
|
_scope_reason();
|
|
11625
11625
|
const $scope2_id = _scope_id();
|
|
11626
|
-
_html(`<span${_attr_class("
|
|
11626
|
+
_html(`<span${_attr_class("_bW")} title="This work server (Settings → Appearance)"><img${_attr_class("_bZ")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}${_text_resume($scope2_id, "c", input.instanceName, $sg__input_instanceName)}</span>`);
|
|
11627
11627
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11628
11628
|
_resume_branch($scope2_id);
|
|
11629
11629
|
}, $scope1_id) });
|
|
@@ -11638,7 +11638,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11638
11638
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11639
11639
|
iconBtnRow,
|
|
11640
11640
|
iconBtn,
|
|
11641
|
-
{ ["
|
|
11641
|
+
{ ["_bN"]: view === "settings" }
|
|
11642
11642
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11643
11643
|
icon_settings_default({ size: 16 });
|
|
11644
11644
|
_if(() => {
|
|
@@ -11662,7 +11662,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11662
11662
|
_if(() => {
|
|
11663
11663
|
if (!isPage && input.instanceName) {
|
|
11664
11664
|
const $scope4_id = _scope_id();
|
|
11665
|
-
_html(`<div${_attr_class("
|
|
11665
|
+
_html(`<div${_attr_class("_bY")} title="This work server (Settings → Appearance)"><img${_attr_class("_bZ")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope4_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b0")}>${_text_resume($scope4_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11666
11666
|
writeScope($scope4_id, {});
|
|
11667
11667
|
return 0;
|
|
11668
11668
|
}
|
|
@@ -11730,7 +11730,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11730
11730
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11731
11731
|
});
|
|
11732
11732
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11733
|
-
_html(`<div${_attr_class("
|
|
11733
|
+
_html(`<div${_attr_class("_b1")}>`);
|
|
11734
11734
|
_for_of(orderedIds, (wsId) => {
|
|
11735
11735
|
const $scope8_id = _scope_id();
|
|
11736
11736
|
_set_serialize_reason({
|
|
@@ -11807,7 +11807,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11807
11807
|
_if(() => {
|
|
11808
11808
|
if (!navOpen) {
|
|
11809
11809
|
const $scope9_id = _scope_id();
|
|
11810
|
-
_html(`<div${_attr_class("
|
|
11810
|
+
_html(`<div${_attr_class("_b2")}>`);
|
|
11811
11811
|
_for_of(orderedIds, (wsId, i) => {
|
|
11812
11812
|
const $scope10_id = _scope_id();
|
|
11813
11813
|
_set_serialize_reason({
|
|
@@ -11855,14 +11855,14 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11855
11855
|
return 0;
|
|
11856
11856
|
}
|
|
11857
11857
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11858
|
-
_html(`<div${_attr_class("
|
|
11858
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
11859
11859
|
_if(() => {
|
|
11860
11860
|
if (isPage) {
|
|
11861
11861
|
const $scope12_id = _scope_id();
|
|
11862
11862
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11863
11863
|
"_q",
|
|
11864
11864
|
btnLg,
|
|
11865
|
-
"
|
|
11865
|
+
"_bX"
|
|
11866
11866
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11867
11867
|
icon_folder_plus_default({ size: 16 });
|
|
11868
11868
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11894,9 +11894,9 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11894
11894
|
sessions: input.sessions,
|
|
11895
11895
|
tab: view === "term" ? tab : null
|
|
11896
11896
|
});
|
|
11897
|
-
_html(`<div${_attr_class(["_z", "
|
|
11897
|
+
_html(`<div${_attr_class(["_z", "_b4"])}></div>`);
|
|
11898
11898
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11899
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11899
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bN"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11900
11900
|
icon_settings_default({});
|
|
11901
11901
|
_if(() => {
|
|
11902
11902
|
if (input.setupReady === false) {
|
|
@@ -11906,7 +11906,7 @@ var side_nav_default = _template("E", (input) => {
|
|
|
11906
11906
|
return 0;
|
|
11907
11907
|
}
|
|
11908
11908
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11909
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11909
|
+
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bN"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11910
11910
|
icon_folder_plus_default({ size: 16 });
|
|
11911
11911
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11912
11912
|
_script($scope11_id, "E13");
|
|
@@ -12726,13 +12726,24 @@ function fileDiffFor(file, key) {
|
|
|
12726
12726
|
if (parsed.has(file)) return parsed.get(file);
|
|
12727
12727
|
let meta = null;
|
|
12728
12728
|
if (file.patch) try {
|
|
12729
|
-
meta = parsePatchFiles(file.patch, key)[0]?.files[0] ?? null;
|
|
12729
|
+
meta = parsePatchFiles(file.patch, `${key}#${fingerprint(file.patch)}`)[0]?.files[0] ?? null;
|
|
12730
12730
|
} catch {
|
|
12731
12731
|
meta = null;
|
|
12732
12732
|
}
|
|
12733
12733
|
parsed.set(file, meta);
|
|
12734
12734
|
return meta;
|
|
12735
12735
|
}
|
|
12736
|
+
/** FNV-1a over the patch text, plus its length: cheap enough to run on
|
|
12737
|
+
* every refetch for every file, and distinct enough to tell two versions
|
|
12738
|
+
* of one file apart. */
|
|
12739
|
+
function fingerprint(text) {
|
|
12740
|
+
let h = 2166136261;
|
|
12741
|
+
for (let i = 0; i < text.length; i++) {
|
|
12742
|
+
h ^= text.charCodeAt(i);
|
|
12743
|
+
h = Math.imul(h, 16777619);
|
|
12744
|
+
}
|
|
12745
|
+
return `${(h >>> 0).toString(36)}${text.length.toString(36)}`;
|
|
12746
|
+
}
|
|
12736
12747
|
/** Line number → text for one side, from the hunks alone: what a partial
|
|
12737
12748
|
* diff can say about the file. A full (hydrated) diff has every line. */
|
|
12738
12749
|
var sides = /* @__PURE__ */ new WeakMap();
|
|
@@ -12989,7 +13000,7 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
12989
13000
|
return shortHeadFallback(head);
|
|
12990
13001
|
}
|
|
12991
13002
|
var treeToggle = "_go _4 _l";
|
|
12992
|
-
var pageTitle = "_gu
|
|
13003
|
+
var pageTitle = "_gu _ej";
|
|
12993
13004
|
//#endregion
|
|
12994
13005
|
//#region src/tags/icons/icon-comment.marko
|
|
12995
13006
|
var icon_comment_default = _template("bb", (input) => {
|
|
@@ -13050,12 +13061,12 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13050
13061
|
}
|
|
13051
13062
|
})();
|
|
13052
13063
|
}, "k1", $scope0_id);
|
|
13053
|
-
_html(`<div${_attr_class("
|
|
13064
|
+
_html(`<div${_attr_class("_il")} role=group${_attr("aria-label", label)}><span${_attr_class("_im")}${_attr("title", label)}>`);
|
|
13054
13065
|
icon_comment_default({
|
|
13055
13066
|
size: 18,
|
|
13056
|
-
class: "
|
|
13067
|
+
class: "_in"
|
|
13057
13068
|
});
|
|
13058
|
-
_html(`<span${_attr_class("
|
|
13069
|
+
_html(`<span${_attr_class("_io")} aria-hidden=true>${_text_resume($scope0_id, "e", input.count > 99 ? "99+" : input.count, $sg__input_count)}</span></span>${_el_resume($scope0_id, "b", $sg__input_count)}<button type=button${_attr_class("_ip")} title="Copy comments as markdown" aria-label="Copy comments as markdown">`);
|
|
13059
13070
|
_if(() => {
|
|
13060
13071
|
{
|
|
13061
13072
|
const $scope6_id = _scope_id();
|
|
@@ -13067,11 +13078,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13067
13078
|
_if(() => {
|
|
13068
13079
|
if (target) {
|
|
13069
13080
|
const $scope1_id = _scope_id();
|
|
13070
|
-
_html(`<button type=button${_attr_class(["
|
|
13081
|
+
_html(`<button type=button${_attr_class(["_ip", "_iq"])}${_attr("disabled", sending)}${_attr("title", `Send comments to ${target.title || target.agent}`)}>`);
|
|
13071
13082
|
_if(() => {
|
|
13072
13083
|
if (sessions.length > 1) {
|
|
13073
13084
|
const $scope2_id = _scope_id();
|
|
13074
|
-
_html(`<span${_attr_class(["
|
|
13085
|
+
_html(`<span${_attr_class(["_it", "_is"])}>${_text_resume($scope2_id, "b", sending ? "Sending…" : `Send to ${target.title || target.agent}`)}</span><span${_attr_class("_ir")}>${_text_resume($scope2_id, "d", sending ? "Sending…" : "Send")}</span>`);
|
|
13075
13086
|
_subscribe($target_agent__closures, _subscribe($target_title__closures, _subscribe($sending__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
13076
13087
|
return 0;
|
|
13077
13088
|
} else {
|
|
@@ -13087,15 +13098,15 @@ var diff_send_default = _template("k", (input) => {
|
|
|
13087
13098
|
_if(() => {
|
|
13088
13099
|
if (sessions.length > 1) {
|
|
13089
13100
|
const $scope4_id = _scope_id();
|
|
13090
|
-
_html(`<span${_attr_class("
|
|
13091
|
-
"
|
|
13092
|
-
"
|
|
13093
|
-
"
|
|
13101
|
+
_html(`<span${_attr_class("_iu")}><button type=button${_attr_class([
|
|
13102
|
+
"_ip",
|
|
13103
|
+
"_iq",
|
|
13104
|
+
"_iv"
|
|
13094
13105
|
])} aria-label="Choose session to send to"${_attr("disabled", sending)}></button>${_el_resume($scope4_id, "b")}`);
|
|
13095
13106
|
_attr_select_value($scope4_id, "c", target.id, _resume(function(v) {
|
|
13096
13107
|
sendTarget = v;
|
|
13097
13108
|
}, "k0", $scope4_id), () => {
|
|
13098
|
-
_html(`<select${_attr_class("
|
|
13109
|
+
_html(`<select${_attr_class("_iw")} aria-label="Send comments to session" tabindex=-1${_attr("disabled", sending)}>`);
|
|
13099
13110
|
_for_of(sessions, (s) => {
|
|
13100
13111
|
const $scope7_id = _scope_id();
|
|
13101
13112
|
_html(`<option${_attr_option_value(s.id)}>${_text_resume($scope7_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
@@ -13315,7 +13326,7 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13315
13326
|
_resume_branch($scope0_id);
|
|
13316
13327
|
return $return;
|
|
13317
13328
|
});
|
|
13318
|
-
var worktree = "
|
|
13329
|
+
var worktree = "_jz _y";
|
|
13319
13330
|
var repoTitle = "_jK _x";
|
|
13320
13331
|
//#endregion
|
|
13321
13332
|
//#region src/tags/review-head.marko
|
|
@@ -13510,30 +13521,30 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13510
13521
|
_if(() => {
|
|
13511
13522
|
if (input.tabs.length) {
|
|
13512
13523
|
const $scope1_id = _scope_id();
|
|
13513
|
-
_html(`<div${_attr_class(["
|
|
13524
|
+
_html(`<div${_attr_class(["_jo", { ["_jn"]: many }])}>`);
|
|
13514
13525
|
_if(() => {
|
|
13515
13526
|
if (many) {
|
|
13516
13527
|
const $scope2_id = _scope_id();
|
|
13517
|
-
_html(`<div${_attr_class(["
|
|
13518
|
-
["
|
|
13519
|
-
["
|
|
13528
|
+
_html(`<div${_attr_class(["_jr", {
|
|
13529
|
+
["_jq"]: edges.end,
|
|
13530
|
+
["_jp"]: edges.start
|
|
13520
13531
|
}])} role=tablist>`);
|
|
13521
13532
|
_for_of(input.tabs, (tab$1) => {
|
|
13522
13533
|
const $scope3_id = _scope_id();
|
|
13523
13534
|
const repo = tab$1.repo;
|
|
13524
13535
|
const isOn = current?.repo.id === repo.id;
|
|
13525
13536
|
const isFolded = input.folded.has(repo.id);
|
|
13526
|
-
_html(`<div${_attr_class(["
|
|
13527
|
-
["
|
|
13528
|
-
["
|
|
13529
|
-
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("
|
|
13537
|
+
_html(`<div${_attr_class(["_ju", {
|
|
13538
|
+
["_js"]: isOn,
|
|
13539
|
+
["_jt"]: isFolded
|
|
13540
|
+
}])} role=tab aria-selected=${isOn ? "true" : "false"}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_jx")} title=${isFolded ? "\"Show this section's files\"" : "\"Hide this section's files\""} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_jy")}>▾</span></button>${_el_resume($scope3_id, "b")}<button type=button${_attr_class("_jw")} title="Scroll to this section"><span${_attr_class(worktree)}>${_text_resume($scope3_id, "f", repo.worktree, $sg__input_tabs)}</span>`);
|
|
13530
13541
|
_if(() => {
|
|
13531
13542
|
if (repo.pr) {
|
|
13532
13543
|
const $scope5_id = _scope_id();
|
|
13533
13544
|
_html(`<span${_attr_class([
|
|
13534
13545
|
"_u",
|
|
13535
13546
|
"_v",
|
|
13536
|
-
"
|
|
13547
|
+
"_jA"
|
|
13537
13548
|
])}>#${_text_resume($scope5_id, "b", repo.pr.number, $sg__input_tabs * 2)}</span>`);
|
|
13538
13549
|
$si__input_tabs && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
13539
13550
|
return 0;
|
|
@@ -13559,11 +13570,11 @@ var review_repos_default = _template("y", (input) => {
|
|
|
13559
13570
|
if (current) {
|
|
13560
13571
|
const $scope4_id = _scope_id();
|
|
13561
13572
|
const one = current.repo;
|
|
13562
|
-
_html(`<div${_attr_class("
|
|
13573
|
+
_html(`<div${_attr_class("_jB")}>`);
|
|
13563
13574
|
_if(() => {
|
|
13564
13575
|
if (!many) {
|
|
13565
13576
|
const $scope6_id = _scope_id();
|
|
13566
|
-
_html(`<span${_attr_class([worktree, "
|
|
13577
|
+
_html(`<span${_attr_class([worktree, "_jv"])}>${_text_resume($scope6_id, "b", one.worktree, $sg__input_tabs__OR__input_active)}</span>`);
|
|
13567
13578
|
$si__input_tabs__OR__input_active && writeScope($scope6_id, { _: _scope_with_id($scope4_id) });
|
|
13568
13579
|
return 0;
|
|
13569
13580
|
}
|
|
@@ -13748,7 +13759,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13748
13759
|
dragging$1 = false;
|
|
13749
13760
|
if (width != null) setDiffTreeWidth(width);
|
|
13750
13761
|
}, "z2", $scope0_id);
|
|
13751
|
-
_html(`<div${_attr_class(["
|
|
13762
|
+
_html(`<div${_attr_class(["_iB", { ["_iA"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iO", { ["_iN"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_iC")}>`);
|
|
13752
13763
|
_set_serialize_reason(2);
|
|
13753
13764
|
const $childScope = _peek_scope_id();
|
|
13754
13765
|
file_filter_default({
|
|
@@ -13757,22 +13768,22 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13757
13768
|
filter$1 = _new_filter;
|
|
13758
13769
|
}, "z3", $scope0_id)
|
|
13759
13770
|
});
|
|
13760
|
-
_html(`</div><div${_attr_class("
|
|
13771
|
+
_html(`</div><div${_attr_class("_iD")}>`);
|
|
13761
13772
|
_for_of(input.sections, (section$2) => {
|
|
13762
13773
|
const $scope1_id = _scope_id();
|
|
13763
|
-
_html(`<div${_attr_class(["
|
|
13774
|
+
_html(`<div${_attr_class(["_iF", { ["_iE"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13764
13775
|
_if(() => {
|
|
13765
13776
|
if (input.sections.length > 1) {
|
|
13766
13777
|
const $scope2_id = _scope_id();
|
|
13767
|
-
_html(`<button type=button${_attr_class("
|
|
13778
|
+
_html(`<button type=button${_attr_class("_iG")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_iH", { ["_iI"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13768
13779
|
icon_chevron_right_default({ size: 12 });
|
|
13769
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13780
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_iJ")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_iK")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13770
13781
|
_script($scope2_id, "z4");
|
|
13771
13782
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13772
13783
|
return 0;
|
|
13773
13784
|
}
|
|
13774
13785
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13775
|
-
_html(`<div${_attr_class(["
|
|
13786
|
+
_html(`<div${_attr_class(["_iM", { ["_iL"]: input.sections.length === 1 }])}${_attr("data-tree", section$2.id)}${_attr("hidden", closed$4.has(section$2.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13776
13787
|
writeScope($scope1_id, {
|
|
13777
13788
|
f: section$2?.id,
|
|
13778
13789
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13804,7 +13815,7 @@ var review_tree_default = _template("z", (input) => {
|
|
|
13804
13815
|
});
|
|
13805
13816
|
_resume_branch($scope0_id);
|
|
13806
13817
|
});
|
|
13807
|
-
var sheetDir = "
|
|
13818
|
+
var sheetDir = "_jh _ba";
|
|
13808
13819
|
//#endregion
|
|
13809
13820
|
//#region src/tags/diff-file-sheet.marko
|
|
13810
13821
|
var diff_file_sheet_default = _template("i", (input) => {
|
|
@@ -13860,9 +13871,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13860
13871
|
_if(() => {
|
|
13861
13872
|
if (open) {
|
|
13862
13873
|
const $scope1_id = _scope_id();
|
|
13863
|
-
_html(`<div${_attr_class("
|
|
13874
|
+
_html(`<div${_attr_class("_i9")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_i_")} role=dialog aria-label="Jump to file"><div${_attr_class("_ja")}><strong${_attr_class("_i8")}>Files</strong><span${_attr_class("_jb")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_i7"])} title=Close aria-label=Close>`);
|
|
13864
13875
|
icon_xmark_default({ size: 16 });
|
|
13865
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13876
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_jj")}>`);
|
|
13866
13877
|
_set_serialize_reason(2);
|
|
13867
13878
|
const $childScope = _peek_scope_id();
|
|
13868
13879
|
file_filter_default({
|
|
@@ -13871,13 +13882,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13871
13882
|
filter = _new_filter;
|
|
13872
13883
|
}, "i1", $scope1_id)
|
|
13873
13884
|
});
|
|
13874
|
-
_html(`</div><div${_attr_class("
|
|
13885
|
+
_html(`</div><div${_attr_class("_jc")}>`);
|
|
13875
13886
|
_for_of(groups, (group) => {
|
|
13876
13887
|
const $scope2_id = _scope_id();
|
|
13877
|
-
_html(`<div${_attr_class("
|
|
13888
|
+
_html(`<div${_attr_class("_jd")}><div${_attr_class("_je")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13878
13889
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13879
13890
|
const $scope3_id = _scope_id();
|
|
13880
|
-
_html(`<div${_attr_class("
|
|
13891
|
+
_html(`<div${_attr_class("_jf")}>`);
|
|
13881
13892
|
_if(() => {
|
|
13882
13893
|
if (dir) {
|
|
13883
13894
|
const $scope5_id = _scope_id();
|
|
@@ -13888,11 +13899,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13888
13899
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13889
13900
|
_for_of(files, ({ file, name }) => {
|
|
13890
13901
|
const $scope4_id = _scope_id();
|
|
13891
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13902
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_jg", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_ji")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13892
13903
|
_if(() => {
|
|
13893
13904
|
if (newKeys.has(file.key)) {
|
|
13894
13905
|
const $scope6_id = _scope_id();
|
|
13895
|
-
_html(`<span${_attr_class(["_A", "
|
|
13906
|
+
_html(`<span${_attr_class(["_A", "_jl"])} title="Changed since your last visit"></span>`);
|
|
13896
13907
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13897
13908
|
return 0;
|
|
13898
13909
|
}
|
|
@@ -13902,7 +13913,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13902
13913
|
const $scope7_id = _scope_id();
|
|
13903
13914
|
icon_comment_default({
|
|
13904
13915
|
size: 12,
|
|
13905
|
-
class: "
|
|
13916
|
+
class: "_jm"
|
|
13906
13917
|
});
|
|
13907
13918
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13908
13919
|
return 0;
|
|
@@ -13927,7 +13938,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13927
13938
|
_if(() => {
|
|
13928
13939
|
if (!input.files.length) {
|
|
13929
13940
|
const $scope8_id = _scope_id();
|
|
13930
|
-
_html(`<p${_attr_class("
|
|
13941
|
+
_html(`<p${_attr_class("_jk")}>No files match.</p>`);
|
|
13931
13942
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13932
13943
|
return 0;
|
|
13933
13944
|
}
|
|
@@ -14636,12 +14647,12 @@ var review_view_default = _template("A", (input) => {
|
|
|
14636
14647
|
_if(() => {
|
|
14637
14648
|
if (repos && !allFiles.length) {
|
|
14638
14649
|
const $scope8_id = _scope_id();
|
|
14639
|
-
_html(`<p${_attr_class("
|
|
14650
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope8_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14640
14651
|
writeScope($scope8_id, {});
|
|
14641
14652
|
return 0;
|
|
14642
14653
|
} else if (repos && !listFiles.length && !findState.hit) {
|
|
14643
14654
|
const $scope5_id = _scope_id();
|
|
14644
|
-
_html(`<p${_attr_class("
|
|
14655
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope5_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14645
14656
|
writeScope($scope5_id, {});
|
|
14646
14657
|
return 1;
|
|
14647
14658
|
}
|
|
@@ -14964,10 +14975,10 @@ var icon_trash_default = _template("wb", (input) => {
|
|
|
14964
14975
|
});
|
|
14965
14976
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14966
14977
|
});
|
|
14967
|
-
var resultRow = "
|
|
14968
|
-
var resultBranch = "
|
|
14969
|
-
var urlAction = "
|
|
14970
|
-
var addedRow = "
|
|
14978
|
+
var resultRow = "_hV _I";
|
|
14979
|
+
var resultBranch = "_hW _c7 _X _W _3 _l";
|
|
14980
|
+
var urlAction = "_hX _c7 _X _W _c8";
|
|
14981
|
+
var addedRow = "_h8 _c0";
|
|
14971
14982
|
//#endregion
|
|
14972
14983
|
//#region src/tags/branch-pick.marko
|
|
14973
14984
|
var branch_pick_default = _template("f", (input) => {
|
|
@@ -14980,11 +14991,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14980
14991
|
let branchFilter = "";
|
|
14981
14992
|
let reloadTick = 0;
|
|
14982
14993
|
let refreshing = false;
|
|
14983
|
-
_html(`<div${_attr_class("
|
|
14994
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14984
14995
|
_if(() => {
|
|
14985
14996
|
{
|
|
14986
14997
|
const $scope4_id = _scope_id();
|
|
14987
|
-
_html(`<p${_attr_class("
|
|
14998
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14988
14999
|
writeScope($scope4_id, {});
|
|
14989
15000
|
return 0;
|
|
14990
15001
|
}
|
|
@@ -15109,7 +15120,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15109
15120
|
_if(() => {
|
|
15110
15121
|
if (ssoPending.length) {
|
|
15111
15122
|
const $scope11_id = _scope_id();
|
|
15112
|
-
_html(`<div${_attr_class("
|
|
15123
|
+
_html(`<div${_attr_class("_hR")}>`);
|
|
15113
15124
|
ssoBlock.content({});
|
|
15114
15125
|
_html("</div>");
|
|
15115
15126
|
writeScope($scope11_id, {});
|
|
@@ -15119,12 +15130,12 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15119
15130
|
_if(() => {
|
|
15120
15131
|
if (pasted) {
|
|
15121
15132
|
const $scope1_id = _scope_id();
|
|
15122
|
-
_html(`<ul${_attr_class("
|
|
15133
|
+
_html(`<ul${_attr_class("_hS")}><li><div${_attr_class(["_hU", "_hT"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
15123
15134
|
icon_plus_default({
|
|
15124
15135
|
size: 12,
|
|
15125
|
-
class: "
|
|
15136
|
+
class: "_h0"
|
|
15126
15137
|
});
|
|
15127
|
-
_html(`<span${_attr_class("
|
|
15138
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
15128
15139
|
_if(() => {
|
|
15129
15140
|
if (pastedForkable) {
|
|
15130
15141
|
const $scope10_id = _scope_id();
|
|
@@ -15175,7 +15186,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15175
15186
|
return 0;
|
|
15176
15187
|
} else if (filter && !catalog) {
|
|
15177
15188
|
const $scope12_id = _scope_id();
|
|
15178
|
-
_html(`<p${_attr_class("
|
|
15189
|
+
_html(`<p${_attr_class("_co")}>Loading repos…</p>`);
|
|
15179
15190
|
writeScope($scope12_id, {});
|
|
15180
15191
|
return 1;
|
|
15181
15192
|
}
|
|
@@ -15183,15 +15194,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15183
15194
|
_if(() => {
|
|
15184
15195
|
if (results.length) {
|
|
15185
15196
|
const $scope3_id = _scope_id();
|
|
15186
|
-
_html(`<ul${_attr_class("
|
|
15197
|
+
_html(`<ul${_attr_class("_hS")}>`);
|
|
15187
15198
|
_for_of(results, (repo, i) => {
|
|
15188
15199
|
const $scope4_id = _scope_id();
|
|
15189
|
-
_html(`<li><div${_attr_class(["
|
|
15200
|
+
_html(`<li><div${_attr_class(["_hU", { ["_hT"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15190
15201
|
icon_plus_default({
|
|
15191
15202
|
size: 12,
|
|
15192
|
-
class: "
|
|
15203
|
+
class: "_h0"
|
|
15193
15204
|
});
|
|
15194
|
-
_html(`<span${_attr_class("
|
|
15205
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_c6"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15195
15206
|
icon_branch_default({ size: 12 });
|
|
15196
15207
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
15197
15208
|
_if(() => {
|
|
@@ -15226,7 +15237,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15226
15237
|
return 0;
|
|
15227
15238
|
} else if (filter && catalog && !pasted) {
|
|
15228
15239
|
const $scope8_id = _scope_id();
|
|
15229
|
-
_html(`<p${_attr_class("
|
|
15240
|
+
_html(`<p${_attr_class("_co")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15230
15241
|
writeScope($scope8_id, {});
|
|
15231
15242
|
return 1;
|
|
15232
15243
|
}
|
|
@@ -15234,7 +15245,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15234
15245
|
_if(() => {
|
|
15235
15246
|
if (sheet && input$2.added) {
|
|
15236
15247
|
const $scope6_id = _scope_id();
|
|
15237
|
-
_html(`<div${_attr_class("
|
|
15248
|
+
_html(`<div${_attr_class("_h6")}><p${_attr_class("_h7")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
15238
15249
|
_for_of(addedList, (repo) => {
|
|
15239
15250
|
const $scope15_id = _scope_id();
|
|
15240
15251
|
_html(`<li${_attr_class([addedRow, { ["_c5"]: repo.pending }])}>`);
|
|
@@ -15248,13 +15259,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15248
15259
|
const $scope18_id = _scope_id();
|
|
15249
15260
|
icon_check_default({
|
|
15250
15261
|
size: 12,
|
|
15251
|
-
class: "
|
|
15262
|
+
class: "_h0"
|
|
15252
15263
|
});
|
|
15253
15264
|
$si__input_added && writeScope($scope18_id, {});
|
|
15254
15265
|
return 1;
|
|
15255
15266
|
}
|
|
15256
15267
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
15257
|
-
_html(`<span${_attr_class("
|
|
15268
|
+
_html(`<span${_attr_class("_h1")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
15258
15269
|
_if(() => {
|
|
15259
15270
|
if (repo.baseBranch) {
|
|
15260
15271
|
const $scope16_id = _scope_id();
|
|
@@ -15509,7 +15520,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15509
15520
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15510
15521
|
}, "p11", $scope0_id);
|
|
15511
15522
|
const titleId = _id();
|
|
15512
|
-
_html(`<div${_attr_class("
|
|
15523
|
+
_html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
|
|
15513
15524
|
_set_serialize_reason(30);
|
|
15514
15525
|
const $childScope2 = _peek_scope_id();
|
|
15515
15526
|
page_head_default({
|
|
@@ -15617,7 +15628,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15617
15628
|
_resume_branch($scope6_id);
|
|
15618
15629
|
}, $scope0_id) })
|
|
15619
15630
|
});
|
|
15620
|
-
_html(`<div${_attr_class("
|
|
15631
|
+
_html(`<div${_attr_class("_eh")}><section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Name</span><span${_attr_class(["_gj", "_gk"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15621
15632
|
_if(() => {
|
|
15622
15633
|
if (ws.status !== "active") {
|
|
15623
15634
|
const $scope23_id = _scope_id();
|
|
@@ -15682,12 +15693,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15682
15693
|
_if(() => {
|
|
15683
15694
|
if (pendingAction && actionStep) {
|
|
15684
15695
|
const $scope10_id = _scope_id();
|
|
15685
|
-
_html(`<p${_attr_class("
|
|
15696
|
+
_html(`<p${_attr_class("_cc")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15686
15697
|
writeScope($scope10_id, {});
|
|
15687
15698
|
return 0;
|
|
15688
15699
|
}
|
|
15689
15700
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15690
|
-
_html(`<section${_attr_class("
|
|
15701
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gh"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15691
15702
|
icon_plus_default({ size: 16 });
|
|
15692
15703
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15693
15704
|
_set_serialize_reason(34);
|
|
@@ -15750,7 +15761,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15750
15761
|
const $childScope5 = _peek_scope_id();
|
|
15751
15762
|
arm_button_default({
|
|
15752
15763
|
class: [
|
|
15753
|
-
"
|
|
15764
|
+
"_cn",
|
|
15754
15765
|
"_7",
|
|
15755
15766
|
"_8"
|
|
15756
15767
|
],
|
|
@@ -15783,14 +15794,14 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15783
15794
|
_html(`<li${_attr_class([
|
|
15784
15795
|
"_c0",
|
|
15785
15796
|
"_c1",
|
|
15786
|
-
"
|
|
15787
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15797
|
+
"_ch"
|
|
15798
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_cm")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15788
15799
|
writeScope($scope31_id, {});
|
|
15789
15800
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15790
15801
|
_if(() => {
|
|
15791
15802
|
if (!ws.repos.length && !busy.size) {
|
|
15792
15803
|
const $scope32_id = _scope_id();
|
|
15793
|
-
_html(`<li${_attr_class(["_c0", "_c1"])}><span${_attr_class("
|
|
15804
|
+
_html(`<li${_attr_class(["_c0", "_c1"])}><span${_attr_class("_cm")}>No repos yet. Add one to start.</span></li>`);
|
|
15794
15805
|
writeScope($scope32_id, {});
|
|
15795
15806
|
return 0;
|
|
15796
15807
|
}
|
|
@@ -15800,7 +15811,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15800
15811
|
_if(() => {
|
|
15801
15812
|
if (running.length) {
|
|
15802
15813
|
const $scope15_id = _scope_id();
|
|
15803
|
-
_html(`<section${_attr_class("
|
|
15814
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15804
15815
|
_for_of(running, (p) => {
|
|
15805
15816
|
const $scope16_id = _scope_id();
|
|
15806
15817
|
_html(`<li${_attr_class("_c0")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_c3"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_c4")}>`);
|
|
@@ -15811,7 +15822,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15811
15822
|
writeScope($scope33_id, { d: port });
|
|
15812
15823
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15813
15824
|
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15814
|
-
"
|
|
15825
|
+
"_cn",
|
|
15815
15826
|
"_7",
|
|
15816
15827
|
"_gg"
|
|
15817
15828
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
@@ -15834,11 +15845,11 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15834
15845
|
s,
|
|
15835
15846
|
linked: false
|
|
15836
15847
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15837
|
-
_html(`</div><div${_attr_class("
|
|
15848
|
+
_html(`</div><div${_attr_class("_eh")}>`);
|
|
15838
15849
|
_if(() => {
|
|
15839
15850
|
if (allSkills.length) {
|
|
15840
15851
|
const $scope2_id = _scope_id();
|
|
15841
|
-
_html(`<section${_attr_class("
|
|
15852
|
+
_html(`<section${_attr_class("_cd")}><div${_attr_class("_ce")}><h2${_attr_class("_cr")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_cZ"])}>`);
|
|
15842
15853
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15843
15854
|
const $scope3_id = _scope_id();
|
|
15844
15855
|
const isBusy = skillBusy.has(s.id);
|
|
@@ -15903,7 +15914,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15903
15914
|
const $childScope6 = _peek_scope_id();
|
|
15904
15915
|
arm_button_default({
|
|
15905
15916
|
class: [
|
|
15906
|
-
"
|
|
15917
|
+
"_cn",
|
|
15907
15918
|
"_7",
|
|
15908
15919
|
"_8",
|
|
15909
15920
|
"_gf"
|
|
@@ -16016,10 +16027,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
16016
16027
|
});
|
|
16017
16028
|
_resume_branch($scope0_id);
|
|
16018
16029
|
});
|
|
16019
|
-
var curRow = "
|
|
16020
|
-
var archived = "
|
|
16021
|
-
var archivedHint = "
|
|
16022
|
-
var archivedRow = "
|
|
16030
|
+
var curRow = "_fz _c0";
|
|
16031
|
+
var archived = "_fE _cd";
|
|
16032
|
+
var archivedHint = "_fF _W";
|
|
16033
|
+
var archivedRow = "_fG _cY _cW";
|
|
16023
16034
|
//#endregion
|
|
16024
16035
|
//#region src/tags/icons/icon-group.marko
|
|
16025
16036
|
var icon_group_default = _template("jb", (input) => {
|
|
@@ -16039,8 +16050,8 @@ var icon_group_default = _template("jb", (input) => {
|
|
|
16039
16050
|
});
|
|
16040
16051
|
//#endregion
|
|
16041
16052
|
//#region src/tags/join-dialog.css.ts
|
|
16042
|
-
var dlg = "
|
|
16043
|
-
var hint = "
|
|
16053
|
+
var dlg = "_iP _hn";
|
|
16054
|
+
var hint = "_iQ _W";
|
|
16044
16055
|
//#endregion
|
|
16045
16056
|
//#region src/tags/join-dialog.marko
|
|
16046
16057
|
var api$3;
|
|
@@ -16169,26 +16180,26 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16169
16180
|
content: _content("m12", () => {
|
|
16170
16181
|
_scope_reason();
|
|
16171
16182
|
const $scope1_id = _scope_id();
|
|
16172
|
-
_html(`<h2${_attr_class("
|
|
16183
|
+
_html(`<h2${_attr_class("_ho")}${_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([
|
|
16173
16184
|
"_Y",
|
|
16174
16185
|
"_y",
|
|
16175
|
-
"
|
|
16186
|
+
"_iS"
|
|
16176
16187
|
])} 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")}`);
|
|
16177
16188
|
_if(() => {
|
|
16178
16189
|
if (parsed.error) {
|
|
16179
16190
|
const $scope8_id = _scope_id();
|
|
16180
|
-
_html(`<p${_attr_class([hint, "
|
|
16191
|
+
_html(`<p${_attr_class([hint, "_iR"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16181
16192
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16182
16193
|
return 0;
|
|
16183
16194
|
} else if (parsed.ok) {
|
|
16184
16195
|
const $scope3_id = _scope_id();
|
|
16185
|
-
_html(`<ul${_attr_class("
|
|
16196
|
+
_html(`<ul${_attr_class("_iT")}>`);
|
|
16186
16197
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16187
16198
|
const $scope9_id = _scope_id();
|
|
16188
|
-
_html(`<li${_attr_class("
|
|
16199
|
+
_html(`<li${_attr_class("_iU")}><span${_attr_class("_iV")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
16189
16200
|
writeScope($scope9_id, {});
|
|
16190
16201
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16191
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
16202
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_iW")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16192
16203
|
name = _new_name;
|
|
16193
16204
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16194
16205
|
_script($scope3_id, "m8");
|
|
@@ -16225,10 +16236,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16225
16236
|
_if(() => {
|
|
16226
16237
|
if (busy && steps$2.length) {
|
|
16227
16238
|
const $scope6_id = _scope_id();
|
|
16228
|
-
_html(`<ul${_attr_class("
|
|
16239
|
+
_html(`<ul${_attr_class("_iX")}>`);
|
|
16229
16240
|
_for_of(steps$2, (step$2, i) => {
|
|
16230
16241
|
const $scope7_id = _scope_id();
|
|
16231
|
-
_html(`<li${_attr_class(["
|
|
16242
|
+
_html(`<li${_attr_class(["_iZ", { ["_iY"]: i === steps$2.length - 1 }])}>`);
|
|
16232
16243
|
_if(() => {
|
|
16233
16244
|
if (i === steps$2.length - 1) {
|
|
16234
16245
|
const $scope10_id = _scope_id();
|
|
@@ -16237,7 +16248,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
16237
16248
|
return 0;
|
|
16238
16249
|
} else {
|
|
16239
16250
|
const $scope11_id = _scope_id();
|
|
16240
|
-
_html(`<span${_attr_class("
|
|
16251
|
+
_html(`<span${_attr_class("_i0")}>`);
|
|
16241
16252
|
icon_check_default({ size: 14 });
|
|
16242
16253
|
_html("</span>");
|
|
16243
16254
|
writeScope($scope11_id, {});
|
|
@@ -16395,7 +16406,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16395
16406
|
}
|
|
16396
16407
|
}, "s6", $scope0_id);
|
|
16397
16408
|
const titleId = _id();
|
|
16398
|
-
_html(`<div${_attr_class("
|
|
16409
|
+
_html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
|
|
16399
16410
|
_set_serialize_reason({
|
|
16400
16411
|
0: _serialize_guard($scope0_reason, 2),
|
|
16401
16412
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16419,7 +16430,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16419
16430
|
_resume_branch($scope2_id);
|
|
16420
16431
|
}, $scope0_id) })
|
|
16421
16432
|
});
|
|
16422
|
-
_html(`<div${_attr_class("
|
|
16433
|
+
_html(`<div${_attr_class("_eh")}>`);
|
|
16423
16434
|
_if(() => {
|
|
16424
16435
|
if (error) {
|
|
16425
16436
|
const $scope7_id = _scope_id();
|
|
@@ -16440,9 +16451,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16440
16451
|
return 0;
|
|
16441
16452
|
}
|
|
16442
16453
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16443
|
-
_html(`<label${_attr_class("
|
|
16454
|
+
_html(`<label${_attr_class("_fu")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16444
16455
|
name = _new_name;
|
|
16445
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16456
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_cd")}><div${_attr_class("_fx")}><h2${_attr_class("_cr")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "n", selected.length)}</span><div${_attr_class("_z")}></div><button type=button${_attr_class([iconBtnRow, "_fw"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
|
|
16446
16457
|
icon_plus_default({ size: 16 });
|
|
16447
16458
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16448
16459
|
_set_serialize_reason(34);
|
|
@@ -16480,7 +16491,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16480
16491
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16481
16492
|
_for_of(selected, (repo) => {
|
|
16482
16493
|
const $scope3_id = _scope_id();
|
|
16483
|
-
_html(`<li${_attr_class("
|
|
16494
|
+
_html(`<li${_attr_class("_fy")}><div${_attr_class(curRow)}><span${_attr_class("_c2")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_c4")}>`);
|
|
16484
16495
|
_if(() => {
|
|
16485
16496
|
if (repo.fork !== void 0) {
|
|
16486
16497
|
const $scope4_id = _scope_id();
|
|
@@ -16520,7 +16531,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16520
16531
|
_if(() => {
|
|
16521
16532
|
if (branchesFor === repo.fullName) {
|
|
16522
16533
|
const $scope9_id = _scope_id();
|
|
16523
|
-
_html(`<div${_attr_class("
|
|
16534
|
+
_html(`<div${_attr_class("_fA")}>`);
|
|
16524
16535
|
const $childScope4 = _peek_scope_id();
|
|
16525
16536
|
branch_pick_default({
|
|
16526
16537
|
repo: repo.fullName,
|
|
@@ -16558,10 +16569,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16558
16569
|
_if(() => {
|
|
16559
16570
|
if (busy && steps.length) {
|
|
16560
16571
|
const $scope10_id = _scope_id();
|
|
16561
|
-
_html(`<ul${_attr_class("
|
|
16572
|
+
_html(`<ul${_attr_class("_fB")}>`);
|
|
16562
16573
|
_for_of(steps, (step, i) => {
|
|
16563
16574
|
const $scope11_id = _scope_id();
|
|
16564
|
-
_html(`<li${_attr_class(["
|
|
16575
|
+
_html(`<li${_attr_class(["_fH", { ["_fC"]: i === steps.length - 1 }])}>`);
|
|
16565
16576
|
_if(() => {
|
|
16566
16577
|
if (i === steps.length - 1) {
|
|
16567
16578
|
const $scope15_id = _scope_id();
|
|
@@ -16570,7 +16581,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16570
16581
|
return 0;
|
|
16571
16582
|
} else {
|
|
16572
16583
|
const $scope16_id = _scope_id();
|
|
16573
|
-
_html(`<span${_attr_class("
|
|
16584
|
+
_html(`<span${_attr_class("_fD")}>`);
|
|
16574
16585
|
icon_check_default({ size: 14 });
|
|
16575
16586
|
_html("</span>");
|
|
16576
16587
|
writeScope($scope16_id, {});
|
|
@@ -16584,18 +16595,18 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16584
16595
|
return 0;
|
|
16585
16596
|
}
|
|
16586
16597
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
16587
|
-
_html(`<div${_attr_class("
|
|
16598
|
+
_html(`<div${_attr_class("_fs")}><button type=button${_attr_class([
|
|
16588
16599
|
btnLg,
|
|
16589
16600
|
"_r",
|
|
16590
|
-
"
|
|
16591
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("
|
|
16601
|
+
"_ft"
|
|
16602
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("_eh")}>`);
|
|
16592
16603
|
_if(() => {
|
|
16593
16604
|
if (archived$1.length) {
|
|
16594
16605
|
const $scope5_id = _scope_id();
|
|
16595
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16606
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fx")}><h2${_attr_class("_cr")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope5_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(list$2)}>`);
|
|
16596
16607
|
_for_of(archived$1, (ws) => {
|
|
16597
16608
|
const $scope6_id = _scope_id();
|
|
16598
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16609
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cj")}><span${_attr_class("_ck")}>${_text_resume($scope6_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope6_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope6_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
16599
16610
|
_if(() => {
|
|
16600
16611
|
if (restoring === ws.id) {
|
|
16601
16612
|
const $scope17_id = _scope_id();
|
|
@@ -16875,7 +16886,7 @@ var term_default = _template("I", (input) => {
|
|
|
16875
16886
|
}
|
|
16876
16887
|
}, "I9", $scope0_id);
|
|
16877
16888
|
input.keys;
|
|
16878
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16889
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_e0")}><div${_attr_class("_e1")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16879
16890
|
_if(() => {
|
|
16880
16891
|
if (findOpen) {
|
|
16881
16892
|
const $scope4_id = _scope_id();
|
|
@@ -16902,7 +16913,7 @@ var term_default = _template("I", (input) => {
|
|
|
16902
16913
|
_if(() => {
|
|
16903
16914
|
if (uploading) {
|
|
16904
16915
|
const $scope5_id = _scope_id();
|
|
16905
|
-
_html(`<div${_attr_class("
|
|
16916
|
+
_html(`<div${_attr_class("_e7")}>uploading…</div>`);
|
|
16906
16917
|
writeScope($scope5_id, {});
|
|
16907
16918
|
return 0;
|
|
16908
16919
|
}
|
|
@@ -16910,7 +16921,7 @@ var term_default = _template("I", (input) => {
|
|
|
16910
16921
|
_if(() => {
|
|
16911
16922
|
if (copiedFlash) {
|
|
16912
16923
|
const $scope6_id = _scope_id();
|
|
16913
|
-
_html(`<div${_attr_class("
|
|
16924
|
+
_html(`<div${_attr_class("_e6")}>Copied</div>`);
|
|
16914
16925
|
writeScope($scope6_id, {});
|
|
16915
16926
|
return 0;
|
|
16916
16927
|
}
|
|
@@ -16919,7 +16930,7 @@ var term_default = _template("I", (input) => {
|
|
|
16919
16930
|
_if(() => {
|
|
16920
16931
|
if (trapOpen) {
|
|
16921
16932
|
const $scope3_id = _scope_id();
|
|
16922
|
-
_html(`<div${_attr_class("
|
|
16933
|
+
_html(`<div${_attr_class("_e8")}><div${_attr_class("_e9")}><p${_attr_class("_e_")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
16923
16934
|
_script($scope3_id, "I16");
|
|
16924
16935
|
_script($scope3_id, "I17");
|
|
16925
16936
|
writeScope($scope3_id, {});
|
|
@@ -17181,7 +17192,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17181
17192
|
toggleDiff();
|
|
17182
17193
|
}
|
|
17183
17194
|
}, "N14", $scope0_id);
|
|
17184
|
-
_html(`<div${_attr_class(["
|
|
17195
|
+
_html(`<div${_attr_class(["_b8", { ["_b7"]: !input.active }])}><div${_attr_class("_b9")}>`);
|
|
17185
17196
|
_if(() => {
|
|
17186
17197
|
if (error) {
|
|
17187
17198
|
const $scope8_id = _scope_id();
|
|
@@ -17204,7 +17215,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17204
17215
|
_if(() => {
|
|
17205
17216
|
if (diffMounted && ws) {
|
|
17206
17217
|
const $scope1_id = _scope_id();
|
|
17207
|
-
_html(`<div${_attr_class("
|
|
17218
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17208
17219
|
_set_serialize_reason({
|
|
17209
17220
|
0: $sg__input_workspace,
|
|
17210
17221
|
1: $sg__input_workspace,
|
|
@@ -17266,7 +17277,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17266
17277
|
_if(() => {
|
|
17267
17278
|
if (manageMounted && ws) {
|
|
17268
17279
|
const $scope2_id = _scope_id();
|
|
17269
|
-
_html(`<div${_attr_class("
|
|
17280
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17270
17281
|
_set_serialize_reason({
|
|
17271
17282
|
0: $sg__input_workspace,
|
|
17272
17283
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17292,7 +17303,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17292
17303
|
_if(() => {
|
|
17293
17304
|
if (settingsMounted) {
|
|
17294
17305
|
const $scope3_id = _scope_id();
|
|
17295
|
-
_html(`<div${_attr_class("
|
|
17306
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17296
17307
|
_set_serialize_reason({
|
|
17297
17308
|
0: _serialize_guard($scope0_reason, 0),
|
|
17298
17309
|
1: $sg__input_workspace,
|
|
@@ -17334,7 +17345,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17334
17345
|
_if(() => {
|
|
17335
17346
|
if (newMounted) {
|
|
17336
17347
|
const $scope4_id = _scope_id();
|
|
17337
|
-
_html(`<div${_attr_class("
|
|
17348
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17338
17349
|
_set_serialize_reason({
|
|
17339
17350
|
0: 1,
|
|
17340
17351
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17359,13 +17370,13 @@ var work_view_default = _template("N", (input) => {
|
|
|
17359
17370
|
return 0;
|
|
17360
17371
|
}
|
|
17361
17372
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17362
|
-
_html(`<div${_attr_class("
|
|
17373
|
+
_html(`<div${_attr_class("_ca")}${_attr("inert", view !== "term")}>`);
|
|
17363
17374
|
_if(() => {
|
|
17364
17375
|
if (ws && shownSessions) {
|
|
17365
17376
|
const $scope5_id = _scope_id();
|
|
17366
17377
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17367
17378
|
const $scope6_id = _scope_id();
|
|
17368
|
-
_html(`<div${_attr_class("
|
|
17379
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17369
17380
|
_set_serialize_reason(2);
|
|
17370
17381
|
const $childScope5 = _peek_scope_id();
|
|
17371
17382
|
term_default({
|
|
@@ -17391,7 +17402,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17391
17402
|
_if(() => {
|
|
17392
17403
|
if (!shownSessions.length && view === "term") {
|
|
17393
17404
|
const $scope7_id = _scope_id();
|
|
17394
|
-
_html(`<div${_attr_class("
|
|
17405
|
+
_html(`<div${_attr_class("_cp")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
17395
17406
|
_script($scope7_id, "N39");
|
|
17396
17407
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17397
17408
|
return 0;
|
|
@@ -17401,7 +17412,7 @@ var work_view_default = _template("N", (input) => {
|
|
|
17401
17412
|
return 0;
|
|
17402
17413
|
} else if (ws) {
|
|
17403
17414
|
const $scope10_id = _scope_id();
|
|
17404
|
-
_html(`<p${_attr_class("
|
|
17415
|
+
_html(`<p${_attr_class("_cp")}>Loading sessions…</p>`);
|
|
17405
17416
|
writeScope($scope10_id, {});
|
|
17406
17417
|
return 1;
|
|
17407
17418
|
}
|
|
@@ -17520,8 +17531,8 @@ _template("yb", (input) => {
|
|
|
17520
17531
|
});
|
|
17521
17532
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17522
17533
|
});
|
|
17523
|
-
var sessOpen = "
|
|
17524
|
-
var sessRename = "
|
|
17534
|
+
var sessOpen = "_eP _I";
|
|
17535
|
+
var sessRename = "_eT _J";
|
|
17525
17536
|
//#endregion
|
|
17526
17537
|
//#region src/tags/usage-pcts.marko
|
|
17527
17538
|
var usage_pcts_default = _template("M", (input) => {
|
|
@@ -17533,22 +17544,22 @@ var usage_pcts_default = _template("M", (input) => {
|
|
|
17533
17544
|
if (windows.length) {
|
|
17534
17545
|
const $scope1_id = _scope_id();
|
|
17535
17546
|
_html(`<span${_attr_class([
|
|
17536
|
-
"
|
|
17547
|
+
"_hL",
|
|
17537
17548
|
input.class,
|
|
17538
|
-
{ ["
|
|
17549
|
+
{ ["_hM"]: agent.stale_seconds != null }
|
|
17539
17550
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17540
17551
|
_for_of(windows, (win$1, i) => {
|
|
17541
17552
|
const $scope2_id = _scope_id();
|
|
17542
|
-
_html(`<span${_attr_class("
|
|
17553
|
+
_html(`<span${_attr_class("_hN")}>`);
|
|
17543
17554
|
_if(() => {
|
|
17544
17555
|
if (i) {
|
|
17545
17556
|
const $scope3_id = _scope_id();
|
|
17546
|
-
_html(`<span${_attr_class("
|
|
17557
|
+
_html(`<span${_attr_class("_hQ")} aria-hidden=true>·</span>`);
|
|
17547
17558
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17548
17559
|
return 0;
|
|
17549
17560
|
}
|
|
17550
17561
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17551
|
-
_html(`<span${_attr_class("
|
|
17562
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hP", win$1.used_percent >= 90 ? "_hi" : win$1.used_percent >= 70 ? "_hh" : win$1.used_percent >= 40 ? "_hg" : "_hf"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17552
17563
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17553
17564
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17554
17565
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17590,7 +17601,7 @@ _template("n", (input) => {
|
|
|
17590
17601
|
align: "center",
|
|
17591
17602
|
gap: 8
|
|
17592
17603
|
}), "n2", $scope0_id);
|
|
17593
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17604
|
+
_html(`<button${_attr_class([kbtn, "_eL"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17594
17605
|
_set_serialize_reason({
|
|
17595
17606
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17596
17607
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17604,11 +17615,11 @@ _template("n", (input) => {
|
|
|
17604
17615
|
"_A",
|
|
17605
17616
|
"_bb",
|
|
17606
17617
|
phase[sessionPhase(current$2?.state)]
|
|
17607
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "
|
|
17618
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "_eM"])}>`);
|
|
17608
17619
|
_for_of(input.sessions, (s) => {
|
|
17609
17620
|
const $scope1_id = _scope_id();
|
|
17610
17621
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17611
|
-
_html(`<div${_attr_class(["
|
|
17622
|
+
_html(`<div${_attr_class(["_eO", { ["_eN"]: s.id === input.sessionId }])}>`);
|
|
17612
17623
|
_if(() => {
|
|
17613
17624
|
if (renamingId === s.id) {
|
|
17614
17625
|
const $scope5_id = _scope_id();
|
|
@@ -17640,7 +17651,7 @@ _template("n", (input) => {
|
|
|
17640
17651
|
agent: activeAgent(s),
|
|
17641
17652
|
size: 14
|
|
17642
17653
|
});
|
|
17643
|
-
_html(`<span${_attr_class("
|
|
17654
|
+
_html(`<span${_attr_class("_eQ")}><span${_attr_class("_eS")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17644
17655
|
_if(() => {
|
|
17645
17656
|
if (s.id === input.sessionId) {
|
|
17646
17657
|
const $scope7_id = _scope_id();
|
|
@@ -17652,7 +17663,7 @@ _template("n", (input) => {
|
|
|
17652
17663
|
const $childScope4 = _peek_scope_id();
|
|
17653
17664
|
usage_pcts_default({
|
|
17654
17665
|
agent: plan,
|
|
17655
|
-
class: "
|
|
17666
|
+
class: "_eR"
|
|
17656
17667
|
});
|
|
17657
17668
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17658
17669
|
return 0;
|
|
@@ -17669,7 +17680,7 @@ _template("n", (input) => {
|
|
|
17669
17680
|
_if(() => {
|
|
17670
17681
|
if (input.onRenameSession) {
|
|
17671
17682
|
const $scope6_id = _scope_id();
|
|
17672
|
-
_html(`<button${_attr_class(["
|
|
17683
|
+
_html(`<button${_attr_class(["_eU", "_eV"])} title="Rename session">`);
|
|
17673
17684
|
icon_edit_default({ size: 12 });
|
|
17674
17685
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17675
17686
|
_script($scope6_id, "n5");
|
|
@@ -17681,7 +17692,7 @@ _template("n", (input) => {
|
|
|
17681
17692
|
if (input.onCloseSession) {
|
|
17682
17693
|
const $scope3_id = _scope_id();
|
|
17683
17694
|
arm_button_default({
|
|
17684
|
-
class: ["
|
|
17695
|
+
class: ["_eU", "_7"],
|
|
17685
17696
|
title: "Close session",
|
|
17686
17697
|
armedTitle: "Close?",
|
|
17687
17698
|
onFire: _resume(function() {
|
|
@@ -17713,7 +17724,7 @@ _template("n", (input) => {
|
|
|
17713
17724
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17714
17725
|
});
|
|
17715
17726
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17716
|
-
_html(`<div${_attr_class("
|
|
17727
|
+
_html(`<div${_attr_class("_eW")}><span${_attr_class("_eX")}>New session</span><div${_attr_class("_eY")}>`);
|
|
17717
17728
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17718
17729
|
const $scope4_id = _scope_id();
|
|
17719
17730
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26356,11 +26367,19 @@ require_websocket();
|
|
|
26356
26367
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
26357
26368
|
//#endregion
|
|
26358
26369
|
//#region src/server/terminal-replies.ts
|
|
26370
|
+
/** `4` in the primary attributes is sixel. It has to be claimed here rather
|
|
26371
|
+
* than left to the browser, because these answers never reach the browser —
|
|
26372
|
+
* and both readers of this one are downstream of that. tmux only draws a
|
|
26373
|
+
* sixel image for a client whose attributes admit to it, and yazi asks the
|
|
26374
|
+
* same question through tmux passthrough to choose between a real image and
|
|
26375
|
+
* chafa's ASCII art. Answering without the 4 is how a pane that can show
|
|
26376
|
+
* pictures ends up saying "failed to spawn chafa". The claim is true: the
|
|
26377
|
+
* browser terminal decodes sixel (@xterm/addon-image in term.marko). */
|
|
26359
26378
|
var queries = [
|
|
26360
26379
|
["\x1B[>0c", "\x1B[>0;276;0c"],
|
|
26361
26380
|
["\x1B[>c", "\x1B[>0;276;0c"],
|
|
26362
|
-
["\x1B[0c", "\x1B[?1;
|
|
26363
|
-
["\x1B[c", "\x1B[?1;
|
|
26381
|
+
["\x1B[0c", "\x1B[?1;2;4c"],
|
|
26382
|
+
["\x1B[c", "\x1B[?1;2;4c"]
|
|
26364
26383
|
];
|
|
26365
26384
|
/**
|
|
26366
26385
|
* Answer terminal identity probes beside the PTY instead of making them
|
|
@@ -26455,6 +26474,15 @@ var PING_MS$1 = 15e3;
|
|
|
26455
26474
|
* 5–20× on the wire. Few sockets live at once, so per-socket zlib state is
|
|
26456
26475
|
* not the concern ws's docs raise for large fleets. */
|
|
26457
26476
|
var DEFLATE_THRESHOLD = 512;
|
|
26477
|
+
/** The terminal's answer to tmux's CSI 14t — window size in pixels, which
|
|
26478
|
+
* divided by the grid is the cell size tmux needs before it will paint an
|
|
26479
|
+
* image. Recognised on the way through rather than parsed: all this marks
|
|
26480
|
+
* is the moment tmux stopped guessing. */
|
|
26481
|
+
var WINDOW_PIXELS_REPLY = /\x1b\[4;\d+;\d+t/;
|
|
26482
|
+
/** Long enough for the reply above to reach tmux's client and reach the
|
|
26483
|
+
* server as a new cell size, short enough to stay inside the repaint the
|
|
26484
|
+
* eye reads as "the pane came back". */
|
|
26485
|
+
var CELL_SIZE_SETTLE_MS = 120;
|
|
26458
26486
|
/** Which dims each session's tmux window was last forced to — lets the
|
|
26459
26487
|
* input path skip the tmux exec when this client already holds the size.
|
|
26460
26488
|
* A memo, not the truth: the window can move under it (another client, a
|
|
@@ -26669,10 +26697,31 @@ async function handleTermConnection(ws, req) {
|
|
|
26669
26697
|
});
|
|
26670
26698
|
};
|
|
26671
26699
|
forceWindowSize();
|
|
26700
|
+
let sized = false;
|
|
26701
|
+
const redrawWithCellSize = () => {
|
|
26702
|
+
if (sized) return;
|
|
26703
|
+
sized = true;
|
|
26704
|
+
setTimeout(async () => {
|
|
26705
|
+
const clients = await tmux([
|
|
26706
|
+
"list-clients",
|
|
26707
|
+
"-t",
|
|
26708
|
+
name,
|
|
26709
|
+
"-F",
|
|
26710
|
+
"#{client_name}"
|
|
26711
|
+
]).catch(() => "");
|
|
26712
|
+
for (const client of clients.split("\n").filter(Boolean)) await tmux([
|
|
26713
|
+
"refresh-client",
|
|
26714
|
+
"-t",
|
|
26715
|
+
client
|
|
26716
|
+
]).catch(() => {});
|
|
26717
|
+
}, CELL_SIZE_SETTLE_MS);
|
|
26718
|
+
};
|
|
26672
26719
|
ws.on("message", (data, isBinary) => {
|
|
26673
26720
|
if (isBinary) {
|
|
26674
26721
|
if (lastForced.get(session.id) !== `${dims[0]}x${dims[1]}`) forceWindowSize();
|
|
26675
|
-
|
|
26722
|
+
const input = data.toString();
|
|
26723
|
+
if (!exited) ptyProc.write(input);
|
|
26724
|
+
if (WINDOW_PIXELS_REPLY.test(input)) redrawWithCellSize();
|
|
26676
26725
|
} else {
|
|
26677
26726
|
const text = data.toString();
|
|
26678
26727
|
const resize = parseResize(text);
|
|
@@ -26882,4 +26931,4 @@ server.listen(port, () => {
|
|
|
26882
26931
|
//#endregion
|
|
26883
26932
|
export {};
|
|
26884
26933
|
|
|
26885
|
-
;var __MARKO_MANIFEST__={"
|
|
26934
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">",2,"stylesheet#/assets/app-page-mpLi5gUf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-mpLi5gUf.css\"",">"],"defer":[2,"/assets/settings-CkY2AXTw.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CkY2AXTw.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D8fFV5Ym.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D8fFV5Ym.js\"",">",2,"modulepreload#/assets/_s72b-JB_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_s72b-JB_.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">",2,"stylesheet#/assets/app-page-mpLi5gUf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-mpLi5gUf.css\"",">"],"defer":[2,"/assets/new-CkY2AXTw.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CkY2AXTw.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D8fFV5Ym.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D8fFV5Ym.js\"",">",2,"modulepreload#/assets/_s72b-JB_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_s72b-JB_.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">",2,"stylesheet#/assets/app-page-mpLi5gUf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-mpLi5gUf.css\"",">"],"defer":[2,"/assets/w._-CkY2AXTw.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CkY2AXTw.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D8fFV5Ym.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D8fFV5Ym.js\"",">",2,"modulepreload#/assets/_s72b-JB_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_s72b-JB_.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">",2,"stylesheet#/assets/app-page-mpLi5gUf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-mpLi5gUf.css\"",">"],"defer":[2,"/assets/w._-Csr1ikwd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Csr1ikwd.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D8fFV5Ym.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D8fFV5Ym.js\"",">",2,"modulepreload#/assets/_s72b-JB_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_s72b-JB_.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">",2,"stylesheet#/assets/app-page-mpLi5gUf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-mpLi5gUf.css\"",">"],"defer":[2,"/assets/w-CkY2AXTw.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CkY2AXTw.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D8fFV5Ym.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D8fFV5Ym.js\"",">",2,"modulepreload#/assets/_s72b-JB_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_s72b-JB_.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-BrfjQmXA.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-BrfjQmXA.css\"",">",2,"stylesheet#/assets/icon-arrow-down-DSmBsYc0.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-DSmBsYc0.css\"",">"],"defer":[2,"/assets/review-view-DtiHctEJ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-DtiHctEJ.js\"","></script>",2,"modulepreload#/assets/_4WrdbxBF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_4WrdbxBF.js\"",">"]}};
|