@dylanpiercey/work 0.0.170 → 0.0.171
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/index.mjs +358 -353
- package/dist/public/assets/_3EfwUy0W.js +1 -0
- package/dist/public/assets/_7P6VyxcT.js +1 -0
- package/dist/public/assets/_BcCge-9R.js +1 -0
- package/dist/public/assets/{_DjPbyhtm.js → _Br10NZ6d.js} +4 -4
- package/dist/public/assets/_Br10NZ6d.js.br +0 -0
- package/dist/public/assets/_C16yshan.js +1 -0
- package/dist/public/assets/_C6S6mCpC.js +1 -0
- package/dist/public/assets/_CNFkFicO.js +1 -0
- package/dist/public/assets/_COycfK9m.js +1 -0
- package/dist/public/assets/_CSE9m5gn.js +1 -0
- package/dist/public/assets/_CbHpH_g1.js +1 -0
- package/dist/public/assets/_CfJhsMDh.js +1 -0
- package/dist/public/assets/{_DbVUck3-.js → _CjiKSTp-.js} +6 -6
- package/dist/public/assets/_CjiKSTp-.js.br +0 -0
- package/dist/public/assets/_D9RRMMV-.js +1 -0
- package/dist/public/assets/_DB6kFCHN.js +1 -0
- package/dist/public/assets/_DCTXnTag.js +1 -0
- package/dist/public/assets/_DMA5bFpc.js +1 -0
- package/dist/public/assets/_DNoMUOBv.js +1 -0
- package/dist/public/assets/_DQDWADEU.js +1 -0
- package/dist/public/assets/_DjA0VSzF.js +1 -0
- package/dist/public/assets/_DuT2R6Xf.js +1 -0
- package/dist/public/assets/_JbyKR-1U.js +1 -0
- package/dist/public/assets/_Wi-YzA_N.js +1 -0
- package/dist/public/assets/_mmeIKJus.js +1 -0
- package/dist/public/assets/{_CYqX2f3f.js → _xrGv6Zps.js} +1 -1
- package/dist/public/assets/_xrGv6Zps.js.br +0 -0
- package/dist/public/assets/{app-page-CRushKCr.css → app-page-CB4NzxkK.css} +1 -1
- package/dist/public/assets/app-page-CB4NzxkK.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-CtcHHJio.css → icon-arrow-down-TOdaaJnn.css} +1 -1
- package/dist/public/assets/icon-arrow-down-TOdaaJnn.css.br +0 -0
- package/dist/public/assets/new-DV5OtPht.js +1 -0
- package/dist/public/assets/{review-view-B95CZ5lI.css → review-view-BmRsB-40.css} +1 -1
- package/dist/public/assets/review-view-BmRsB-40.css.br +0 -0
- package/dist/public/assets/review-view-Dz0lNaF0.js +2 -0
- package/dist/public/assets/settings-DV5OtPht.js +1 -0
- package/dist/public/assets/w-DV5OtPht.js +1 -0
- package/dist/public/assets/w._-DV5OtPht.js +1 -0
- package/dist/public/assets/w._-RJq7Wy4Z.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_AprdAiCF.js +0 -1
- package/dist/public/assets/_B-6CrIqx.js +0 -1
- package/dist/public/assets/_B6F1nNKp.js +0 -1
- package/dist/public/assets/_BBLHtUpD.js +0 -1
- package/dist/public/assets/_BIICda_z.js +0 -1
- package/dist/public/assets/_BnHgG8Kq.js +0 -1
- package/dist/public/assets/_CFB3BxaN.js +0 -1
- package/dist/public/assets/_CL9zeyYy.js +0 -1
- package/dist/public/assets/_CYqX2f3f.js.br +0 -0
- package/dist/public/assets/_Ckrvpxti.js +0 -1
- package/dist/public/assets/_D7RBhyll.js +0 -1
- package/dist/public/assets/_D9xomi0r.js +0 -1
- package/dist/public/assets/_DNcOj-lY.js +0 -1
- package/dist/public/assets/_DbVUck3-.js.br +0 -0
- package/dist/public/assets/_DjPbyhtm.js.br +0 -0
- package/dist/public/assets/_DlA-Rq0Y.js +0 -1
- package/dist/public/assets/_Duwzypc2.js +0 -1
- package/dist/public/assets/_DxSx-utO.js +0 -1
- package/dist/public/assets/_DyYtuSwv.js +0 -1
- package/dist/public/assets/_LekqYxqr.js +0 -1
- package/dist/public/assets/_XumzXBny.js +0 -1
- package/dist/public/assets/_cComLBto.js +0 -1
- package/dist/public/assets/_d-kMKz73.js +0 -1
- package/dist/public/assets/_pfNREdwI.js +0 -1
- package/dist/public/assets/app-page-CRushKCr.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-CtcHHJio.css.br +0 -0
- package/dist/public/assets/new-Rx4dBoTQ.js +0 -1
- package/dist/public/assets/review-view-B95CZ5lI.css.br +0 -0
- package/dist/public/assets/review-view-DGJFqqiT.js +0 -2
- package/dist/public/assets/settings-Rx4dBoTQ.js +0 -1
- package/dist/public/assets/w-Rx4dBoTQ.js +0 -1
- package/dist/public/assets/w._-DqT00bZV.js +0 -1
- package/dist/public/assets/w._-Rx4dBoTQ.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7314,19 +7314,19 @@ function applyInstance(inst) {
|
|
|
7314
7314
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7315
7315
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7316
7316
|
}
|
|
7317
|
-
var agentRow = "
|
|
7318
|
-
var toolGrid = "
|
|
7319
|
-
var toolRow = "
|
|
7320
|
-
var themeSeg = "
|
|
7321
|
-
var checkList = "
|
|
7322
|
-
var list$2 = "
|
|
7323
|
-
var flatCardRow = "
|
|
7324
|
-
var chip$1 = "
|
|
7325
|
-
var pop$1 = "
|
|
7326
|
-
var spinner = "
|
|
7327
|
-
var busy = "
|
|
7328
|
-
var pop = "
|
|
7329
|
-
var sectionCount$1 = "
|
|
7317
|
+
var agentRow = "_di _cU";
|
|
7318
|
+
var toolGrid = "_dq _c4";
|
|
7319
|
+
var toolRow = "_dr _c5";
|
|
7320
|
+
var themeSeg = "_dO _bd";
|
|
7321
|
+
var checkList = "_ej _cg";
|
|
7322
|
+
var list$2 = "_c6 _ci _cT _c4";
|
|
7323
|
+
var flatCardRow = "_c7 _c5";
|
|
7324
|
+
var chip$1 = "_df _X _W";
|
|
7325
|
+
var pop$1 = "_cP _9";
|
|
7326
|
+
var spinner = "_cS _1 _G";
|
|
7327
|
+
var busy = "_cE _cD";
|
|
7328
|
+
var pop = "_cG _9";
|
|
7329
|
+
var sectionCount$1 = "_cf _N _O";
|
|
7330
7330
|
//#endregion
|
|
7331
7331
|
//#region src/tags/icons/icon-refresh.marko
|
|
7332
7332
|
var icon_refresh_default = _template("nb", (input) => {
|
|
@@ -7366,18 +7366,18 @@ var icon_back_default = _template("U", (input) => {
|
|
|
7366
7366
|
var page_head_default = _template("t", (input) => {
|
|
7367
7367
|
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);
|
|
7368
7368
|
const $scope0_id = _scope_id();
|
|
7369
|
-
_html(`<header${_attr_class("
|
|
7369
|
+
_html(`<header${_attr_class("_cw")}>`);
|
|
7370
7370
|
_if(() => {
|
|
7371
7371
|
if (input.backHref) {
|
|
7372
7372
|
const $scope1_id = _scope_id();
|
|
7373
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7373
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_fg"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7374
7374
|
icon_back_default({ size: 14 });
|
|
7375
7375
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7376
7376
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7377
7377
|
return 0;
|
|
7378
7378
|
} else if (input.onBack) {
|
|
7379
7379
|
const $scope2_id = _scope_id();
|
|
7380
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7380
|
+
_html(`<button${_attr_class([iconBtnRow, "_fg"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7381
7381
|
icon_back_default({ size: 14 });
|
|
7382
7382
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7383
7383
|
_script($scope2_id, "t0");
|
|
@@ -7385,11 +7385,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7385
7385
|
return 1;
|
|
7386
7386
|
}
|
|
7387
7387
|
}, $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);
|
|
7388
|
-
_html(`<div${_attr_class("
|
|
7388
|
+
_html(`<div${_attr_class("_cy")}><h1${_attr("id", input.titleId)}${_attr_class("_cx")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7389
7389
|
_if(() => {
|
|
7390
7390
|
if (input.meta) {
|
|
7391
7391
|
const $scope3_id = _scope_id();
|
|
7392
|
-
_html(`<p${_attr_class("
|
|
7392
|
+
_html(`<p${_attr_class("_cz")}>`);
|
|
7393
7393
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7394
7394
|
_html("</p>");
|
|
7395
7395
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7400,7 +7400,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7400
7400
|
_if(() => {
|
|
7401
7401
|
if (input.actions) {
|
|
7402
7402
|
const $scope4_id = _scope_id();
|
|
7403
|
-
_html(`<div${_attr_class("
|
|
7403
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
7404
7404
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7405
7405
|
_html("</div>");
|
|
7406
7406
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7468,7 +7468,7 @@ var icon_agent_default = _template("O", (input) => {
|
|
|
7468
7468
|
n: $badge__closures
|
|
7469
7469
|
});
|
|
7470
7470
|
});
|
|
7471
|
-
var usageNote = "
|
|
7471
|
+
var usageNote = "_hm _W";
|
|
7472
7472
|
//#endregion
|
|
7473
7473
|
//#region src/tags/icons/icon-warning.marko
|
|
7474
7474
|
var icon_warning_default = _template("vb", (input) => {
|
|
@@ -7498,11 +7498,11 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7498
7498
|
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);
|
|
7499
7499
|
const $scope0_id = _scope_id();
|
|
7500
7500
|
const agent = input.agent;
|
|
7501
|
-
_html(`<div${_attr_class(["
|
|
7501
|
+
_html(`<div${_attr_class(["_hg", { ["_hh"]: input.hideName }])}><div${_attr_class("_hi")}>`);
|
|
7502
7502
|
_if(() => {
|
|
7503
7503
|
if (!input.hideName) {
|
|
7504
7504
|
const $scope1_id = _scope_id();
|
|
7505
|
-
_html(`<strong${_attr_class("
|
|
7505
|
+
_html(`<strong${_attr_class("_hB")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7506
7506
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7507
7507
|
return 0;
|
|
7508
7508
|
}
|
|
@@ -7510,7 +7510,7 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7510
7510
|
_if(() => {
|
|
7511
7511
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7512
7512
|
const $scope2_id = _scope_id();
|
|
7513
|
-
_html(`<span${_attr_class("
|
|
7513
|
+
_html(`<span${_attr_class("_hj")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7514
7514
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7515
7515
|
return 0;
|
|
7516
7516
|
}
|
|
@@ -7518,21 +7518,21 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7518
7518
|
_if(() => {
|
|
7519
7519
|
if (agent.stale_seconds != null) {
|
|
7520
7520
|
const $scope3_id = _scope_id();
|
|
7521
|
-
_html(`<span${_attr_class("
|
|
7521
|
+
_html(`<span${_attr_class("_hk")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7522
7522
|
icon_warning_default({ size: 12 });
|
|
7523
7523
|
_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)}`);
|
|
7524
7524
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7525
7525
|
return 0;
|
|
7526
7526
|
}
|
|
7527
7527
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7528
|
-
_html(`</div><div${_attr_class(["
|
|
7528
|
+
_html(`</div><div${_attr_class(["_hl", { ["_hC"]: agent.stale_seconds != null }])}>`);
|
|
7529
7529
|
_for_of(agent.windows || [], (win) => {
|
|
7530
7530
|
const $scope4_id = _scope_id();
|
|
7531
7531
|
const pct = pctText(win.used_percent);
|
|
7532
7532
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7533
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7534
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7535
|
-
_html(`<div${_attr_class("
|
|
7533
|
+
const fillClass = win.used_percent >= 90 ? "_hu" : win.used_percent >= 70 ? "_ht" : win.used_percent >= 40 ? "_hs" : "_hr";
|
|
7534
|
+
const pctClass = win.used_percent >= 90 ? "_hz" : win.used_percent >= 70 ? "_hy" : win.used_percent >= 40 ? "_hx" : "_hw";
|
|
7535
|
+
_html(`<div${_attr_class("_hn")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_ho")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hp")}><span${_attr_class(["_hq", 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(["_hv", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hA")}>`);
|
|
7536
7536
|
_if(() => {
|
|
7537
7537
|
if (label) {
|
|
7538
7538
|
const $scope6_id = _scope_id();
|
|
@@ -7631,10 +7631,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7631
7631
|
}
|
|
7632
7632
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7633
7633
|
_html(`<form${_attr_class([
|
|
7634
|
-
"
|
|
7634
|
+
"_cI",
|
|
7635
7635
|
input$3.class,
|
|
7636
|
-
{ ["
|
|
7637
|
-
])}><label${_attr_class(["_0", "
|
|
7636
|
+
{ ["_cJ"]: !open }
|
|
7637
|
+
])}><label${_attr_class(["_0", "_cL"])}>`);
|
|
7638
7638
|
_if(() => {
|
|
7639
7639
|
if (input$3.searching) {
|
|
7640
7640
|
const $scope5_id = _scope_id();
|
|
@@ -7661,7 +7661,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7661
7661
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7662
7662
|
"_Y",
|
|
7663
7663
|
"_2",
|
|
7664
|
-
"
|
|
7664
|
+
"_cM"
|
|
7665
7665
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7666
7666
|
_if(() => {
|
|
7667
7667
|
if (input$3.submitLabel) {
|
|
@@ -7669,19 +7669,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7669
7669
|
_html(`<button${_attr_class([
|
|
7670
7670
|
btnSm,
|
|
7671
7671
|
"_r",
|
|
7672
|
-
"
|
|
7672
|
+
"_cN"
|
|
7673
7673
|
])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, _serialize_guard($scope0_reason, 1))}</button>${_el_resume($scope3_id, "a")}`);
|
|
7674
7674
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7675
7675
|
return 0;
|
|
7676
7676
|
}
|
|
7677
7677
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7678
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7678
|
+
_html(`<button${_attr_class([iconBtnRow, "_cO"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7679
7679
|
icon_xmark_default({ size: 14 });
|
|
7680
7680
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7681
7681
|
_if(() => {
|
|
7682
7682
|
if (input$3.content) {
|
|
7683
7683
|
const $scope4_id = _scope_id();
|
|
7684
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7684
|
+
_html(`<ul${_attr_class([pop$1, "_cQ"])}${_attr("hidden", !open || !value.trim())}>`);
|
|
7685
7685
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7686
7686
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7687
7687
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7808,14 +7808,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7808
7808
|
localCode = null;
|
|
7809
7809
|
}
|
|
7810
7810
|
}, "F0", $scope0_id);
|
|
7811
|
-
_html(`<div${_attr_class(["
|
|
7811
|
+
_html(`<div${_attr_class(["_g5", input.class])}>`);
|
|
7812
7812
|
_for_of(input.items, (s) => {
|
|
7813
7813
|
const $scope1_id = _scope_id();
|
|
7814
|
-
_html(`<div${_attr_class("
|
|
7814
|
+
_html(`<div${_attr_class("_g6")}><span${_attr_class("_g8")}><span${_attr_class("_g9")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_g_", "_ha"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7815
7815
|
_if(() => {
|
|
7816
7816
|
if (!busy) {
|
|
7817
7817
|
const $scope2_id = _scope_id();
|
|
7818
|
-
_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, "
|
|
7818
|
+
_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, "_hb"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7819
7819
|
_script($scope2_id, "F1");
|
|
7820
7820
|
writeScope($scope2_id, {});
|
|
7821
7821
|
return 0;
|
|
@@ -7830,13 +7830,13 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7830
7830
|
_if(() => {
|
|
7831
7831
|
if (localBusy && localCode) {
|
|
7832
7832
|
const $scope4_id = _scope_id();
|
|
7833
|
-
_html(`<div${_attr_class(["
|
|
7833
|
+
_html(`<div${_attr_class(["_g6", "_hc"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hd")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_he")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7834
7834
|
_script($scope4_id, "F2");
|
|
7835
7835
|
writeScope($scope4_id, {});
|
|
7836
7836
|
return 0;
|
|
7837
7837
|
} else if (localBusy) {
|
|
7838
7838
|
const $scope6_id = _scope_id();
|
|
7839
|
-
_html(`<div${_attr_class(["
|
|
7839
|
+
_html(`<div${_attr_class(["_g6", "_hc"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7840
7840
|
writeScope($scope6_id, {});
|
|
7841
7841
|
return 1;
|
|
7842
7842
|
}
|
|
@@ -7844,14 +7844,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7844
7844
|
_if(() => {
|
|
7845
7845
|
if (localError) {
|
|
7846
7846
|
const $scope5_id = _scope_id();
|
|
7847
|
-
_html(`<p${_attr_class(["
|
|
7847
|
+
_html(`<p${_attr_class(["_g6", "_hf"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7848
7848
|
writeScope($scope5_id, {});
|
|
7849
7849
|
return 0;
|
|
7850
7850
|
}
|
|
7851
7851
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7852
7852
|
_for_of(skipped, (s) => {
|
|
7853
7853
|
const $scope3_id = _scope_id();
|
|
7854
|
-
_html(`<div${_attr_class(["
|
|
7854
|
+
_html(`<div${_attr_class(["_g6", "_g7"])}><span${_attr_class("_g8")}><span${_attr_class("_g9")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_g_")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hb"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7855
7855
|
_script($scope3_id, "F3");
|
|
7856
7856
|
writeScope($scope3_id, {
|
|
7857
7857
|
i: s?.org,
|
|
@@ -7902,7 +7902,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7902
7902
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7903
7903
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7904
7904
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7905
|
-
_html(`<li${_attr_class("
|
|
7905
|
+
_html(`<li${_attr_class("_cC")}>`);
|
|
7906
7906
|
_if(() => {
|
|
7907
7907
|
if (input.busy != null) {
|
|
7908
7908
|
const $scope1_id = _scope_id();
|
|
@@ -7912,20 +7912,20 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7912
7912
|
} else {
|
|
7913
7913
|
const $scope2_id = _scope_id();
|
|
7914
7914
|
const popId = _id();
|
|
7915
|
-
_html(`<button${_attr_class("
|
|
7915
|
+
_html(`<button${_attr_class("_cD")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7916
7916
|
_if(() => {
|
|
7917
7917
|
if (input.hint) {
|
|
7918
7918
|
const $scope3_id = _scope_id();
|
|
7919
|
-
_html(`<span${_attr_class("
|
|
7919
|
+
_html(`<span${_attr_class("_cF")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7920
7920
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7921
7921
|
return 0;
|
|
7922
7922
|
}
|
|
7923
7923
|
}, $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);
|
|
7924
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7924
|
+
_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>`);
|
|
7925
7925
|
_if(() => {
|
|
7926
7926
|
if (input.description) {
|
|
7927
7927
|
const $scope4_id = _scope_id();
|
|
7928
|
-
_html(`<span${_attr_class("
|
|
7928
|
+
_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)}`);
|
|
7929
7929
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7930
7930
|
return 0;
|
|
7931
7931
|
}
|
|
@@ -7933,12 +7933,12 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7933
7933
|
_if(() => {
|
|
7934
7934
|
if (input.sourceUrl) {
|
|
7935
7935
|
const $scope5_id = _scope_id();
|
|
7936
|
-
_html(`<a${_attr_class(["
|
|
7936
|
+
_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))}`);
|
|
7937
7937
|
$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) })));
|
|
7938
7938
|
return 0;
|
|
7939
7939
|
} else if (input.source) {
|
|
7940
7940
|
const $scope6_id = _scope_id();
|
|
7941
|
-
_html(`<span${_attr_class("
|
|
7941
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7942
7942
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7943
7943
|
_: _scope_with_id($scope2_id),
|
|
7944
7944
|
Cs: $si__input_source && 1
|
|
@@ -7946,7 +7946,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7946
7946
|
return 1;
|
|
7947
7947
|
} else if (input.noteLocal) {
|
|
7948
7948
|
const $scope10_id = _scope_id();
|
|
7949
|
-
_html(`<span${_attr_class(["
|
|
7949
|
+
_html(`<span${_attr_class(["_cm", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7950
7950
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7951
7951
|
return 2;
|
|
7952
7952
|
}
|
|
@@ -7954,7 +7954,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7954
7954
|
_if(() => {
|
|
7955
7955
|
if (input.tags) {
|
|
7956
7956
|
const $scope7_id = _scope_id();
|
|
7957
|
-
_html(`<span${_attr_class("
|
|
7957
|
+
_html(`<span${_attr_class("_cl")}>`);
|
|
7958
7958
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7959
7959
|
_html("</span>");
|
|
7960
7960
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7964,7 +7964,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7964
7964
|
_if(() => {
|
|
7965
7965
|
if (input.actions) {
|
|
7966
7966
|
const $scope8_id = _scope_id();
|
|
7967
|
-
_html(`<div${_attr_class("
|
|
7967
|
+
_html(`<div${_attr_class("_cH")}>`);
|
|
7968
7968
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7969
7969
|
_html("</div>");
|
|
7970
7970
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8750,7 +8750,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8750
8750
|
const githubId = _id();
|
|
8751
8751
|
const backupId = _id();
|
|
8752
8752
|
const machineId = _id();
|
|
8753
|
-
_html(`<div${_attr_class("
|
|
8753
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
8754
8754
|
_set_serialize_reason({
|
|
8755
8755
|
0: _serialize_guard($scope0_reason, 4),
|
|
8756
8756
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8782,7 +8782,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8782
8782
|
_resume_branch($scope12_id);
|
|
8783
8783
|
}, $scope0_id) })
|
|
8784
8784
|
});
|
|
8785
|
-
_html(`<div${_attr_class("
|
|
8785
|
+
_html(`<div${_attr_class("_cv")}>`);
|
|
8786
8786
|
_if(() => {
|
|
8787
8787
|
if (setup && !setup.ready) {
|
|
8788
8788
|
const $scope4_id = _scope_id();
|
|
@@ -8825,16 +8825,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8825
8825
|
_if(() => {
|
|
8826
8826
|
if (selfUpdatePending || selfUpdating) {
|
|
8827
8827
|
const $scope43_id = _scope_id();
|
|
8828
|
-
_html(`<div${_attr_class("
|
|
8828
|
+
_html(`<div${_attr_class("_dS")} role=status><div${_attr_class("_dT")}>`);
|
|
8829
8829
|
_if(() => {
|
|
8830
8830
|
if (selfUpdating) {
|
|
8831
8831
|
const $scope81_id = _scope_id();
|
|
8832
|
-
_html(`<span${_attr_class("
|
|
8832
|
+
_html(`<span${_attr_class("_dU")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dV")}>The app restarts and reloads when it is done.</span>`);
|
|
8833
8833
|
writeScope($scope81_id, {});
|
|
8834
8834
|
return 0;
|
|
8835
8835
|
} else {
|
|
8836
8836
|
const $scope44_id = _scope_id();
|
|
8837
|
-
_html(`<span${_attr_class("
|
|
8837
|
+
_html(`<span${_attr_class("_dU")}>Update available</span><span${_attr_class("_dV")}>v${_text_resume($scope44_id, "c", self.version, 2)} → v${_text_resume($scope44_id, "d", self.latest, 2)}</span>`);
|
|
8838
8838
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8839
8839
|
return 1;
|
|
8840
8840
|
}
|
|
@@ -8864,11 +8864,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8864
8864
|
_: _scope_with_id($scope0_id)
|
|
8865
8865
|
});
|
|
8866
8866
|
}, $scope0_id) };
|
|
8867
|
-
_html(`<section${_attr_class("
|
|
8867
|
+
_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("_dj")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8868
8868
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8869
8869
|
setPreferred(v);
|
|
8870
8870
|
}, "A0", $scope0_id), () => {
|
|
8871
|
-
_html(`<select${_attr_class(["_p", "
|
|
8871
|
+
_html(`<select${_attr_class(["_p", "_dk"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8872
8872
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8873
8873
|
const $scope83_id = _scope_id();
|
|
8874
8874
|
_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)}`);
|
|
@@ -8883,14 +8883,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8883
8883
|
const rows = lone ? [] : a.instances;
|
|
8884
8884
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8885
8885
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8886
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8886
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_dl", { ["_dn"]: lone && !lone.enabled }])}>`);
|
|
8887
8887
|
_set_serialize_reason(12);
|
|
8888
8888
|
const $childScope3 = _peek_scope_id();
|
|
8889
8889
|
icon_agent_default({
|
|
8890
8890
|
agent: a.id,
|
|
8891
8891
|
size: 18
|
|
8892
8892
|
});
|
|
8893
|
-
_html(`<div${_attr_class("
|
|
8893
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8894
8894
|
_if(() => {
|
|
8895
8895
|
if (lone && input.preferred === lone.id) {
|
|
8896
8896
|
const $scope85_id = _scope_id();
|
|
@@ -8903,12 +8903,12 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8903
8903
|
_if(() => {
|
|
8904
8904
|
if (active.has(a.id)) {
|
|
8905
8905
|
const $scope13_id = _scope_id();
|
|
8906
|
-
_html(`<span${_attr_class("
|
|
8906
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8907
8907
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8908
8908
|
return 0;
|
|
8909
8909
|
} else if (!a.installed) {
|
|
8910
8910
|
const $scope86_id = _scope_id();
|
|
8911
|
-
_html(`<span${_attr_class("
|
|
8911
|
+
_html(`<span${_attr_class("_cm")}>Not installed</span>`);
|
|
8912
8912
|
writeScope($scope86_id, {});
|
|
8913
8913
|
return 1;
|
|
8914
8914
|
}
|
|
@@ -8939,15 +8939,15 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8939
8939
|
_if(() => {
|
|
8940
8940
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8941
8941
|
const $scope2_id = _scope_id();
|
|
8942
|
-
_html(`<ul${_attr_class(["
|
|
8942
|
+
_html(`<ul${_attr_class(["_dp", { ["_dn"]: lone && !lone.enabled }])}>`);
|
|
8943
8943
|
_for_of(rows, (inst) => {
|
|
8944
8944
|
const $scope3_id = _scope_id();
|
|
8945
8945
|
const accounts = accountsFor(inst.id);
|
|
8946
|
-
_html(`<li${_attr_class(["
|
|
8946
|
+
_html(`<li${_attr_class(["_dm", { ["_dn"]: !inst.enabled }])}><div${_attr_class("_dl")}>`);
|
|
8947
8947
|
_set_serialize_reason(12);
|
|
8948
8948
|
const $childScope5 = _peek_scope_id();
|
|
8949
8949
|
icon_agent_default({ agent: inst.id });
|
|
8950
|
-
_html(`<span${_attr_class(["
|
|
8950
|
+
_html(`<span${_attr_class(["_do", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8951
8951
|
_if(() => {
|
|
8952
8952
|
if (input.preferred === inst.id) {
|
|
8953
8953
|
const $scope87_id = _scope_id();
|
|
@@ -9026,24 +9026,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9026
9026
|
_if(() => {
|
|
9027
9027
|
if (!usage && families.length) {
|
|
9028
9028
|
const $scope90_id = _scope_id();
|
|
9029
|
-
_html(`<p${_attr_class("
|
|
9029
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9030
9030
|
writeScope($scope90_id, {});
|
|
9031
9031
|
return 0;
|
|
9032
9032
|
} else if (usage?.error) {
|
|
9033
9033
|
const $scope9_id = _scope_id();
|
|
9034
|
-
_html(`<p${_attr_class("
|
|
9034
|
+
_html(`<p${_attr_class("_co")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9035
9035
|
writeScope($scope9_id, {});
|
|
9036
9036
|
return 1;
|
|
9037
9037
|
}
|
|
9038
9038
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9039
|
-
_html(`</section></div><div${_attr_class("
|
|
9039
|
+
_html(`</section></div><div${_attr_class("_cv")}><section${_attr_class("_cd")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ce")}><h2${_attr("id", githubId)}${_attr_class("_cr")}>GitHub</h2>`);
|
|
9040
9040
|
_if(() => {
|
|
9041
9041
|
if (setup) {
|
|
9042
9042
|
const $scope41_id = _scope_id();
|
|
9043
9043
|
_set_serialize_reason(44);
|
|
9044
9044
|
const $childScope10 = _peek_scope_id();
|
|
9045
9045
|
add_field_default({
|
|
9046
|
-
class: "
|
|
9046
|
+
class: "_dx",
|
|
9047
9047
|
open: addingHost,
|
|
9048
9048
|
openChange: _resume((_new_addingHost) => {
|
|
9049
9049
|
addingHost = _new_addingHost;
|
|
@@ -9073,19 +9073,19 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9073
9073
|
return 0;
|
|
9074
9074
|
}
|
|
9075
9075
|
}, $scope0_id, "y");
|
|
9076
|
-
_html(`</div><div${_attr_class(["
|
|
9076
|
+
_html(`</div><div${_attr_class(["_ci", "_cT"])}>`);
|
|
9077
9077
|
_for_of(setup?.github || [], (h) => {
|
|
9078
9078
|
const $scope7_id = _scope_id();
|
|
9079
9079
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9080
9080
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9081
9081
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9082
9082
|
const busy = active.has(h.host);
|
|
9083
|
-
_html(`<div${_attr_class(["
|
|
9083
|
+
_html(`<div${_attr_class(["_cU", "_dy"])}><div${_attr_class("_dz")}>`);
|
|
9084
9084
|
icon_github_default({
|
|
9085
9085
|
size: 18,
|
|
9086
|
-
class: "
|
|
9086
|
+
class: "_dA"
|
|
9087
9087
|
});
|
|
9088
|
-
_html(`<div${_attr_class("
|
|
9088
|
+
_html(`<div${_attr_class("_cj")}><span${_attr_class("_cl")}><span${_attr_class("_ck")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9089
9089
|
_if(() => {
|
|
9090
9090
|
if (h.isEnterprise) {
|
|
9091
9091
|
const $scope94_id = _scope_id();
|
|
@@ -9098,25 +9098,25 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9098
9098
|
_if(() => {
|
|
9099
9099
|
if (busy) {
|
|
9100
9100
|
const $scope14_id = _scope_id();
|
|
9101
|
-
_html(`<span${_attr_class(["
|
|
9101
|
+
_html(`<span${_attr_class(["_cm", "_dB"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9102
9102
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9103
9103
|
return 0;
|
|
9104
9104
|
} else if (h.authed) {
|
|
9105
9105
|
const $scope92_id = _scope_id();
|
|
9106
|
-
_html(`<span${_attr_class(["
|
|
9106
|
+
_html(`<span${_attr_class(["_cm", "_dB"])}>`);
|
|
9107
9107
|
icon_check_default({
|
|
9108
9108
|
size: 12,
|
|
9109
|
-
class: "
|
|
9109
|
+
class: "_dC"
|
|
9110
9110
|
});
|
|
9111
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9111
|
+
_html(` Signed in as <strong${_attr_class("_dE")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9112
9112
|
writeScope($scope92_id, {});
|
|
9113
9113
|
return 1;
|
|
9114
9114
|
} else if (h.error) {
|
|
9115
9115
|
const $scope93_id = _scope_id();
|
|
9116
9116
|
_html(`<span${_attr_class([
|
|
9117
|
-
"
|
|
9118
|
-
"
|
|
9119
|
-
"
|
|
9117
|
+
"_cm",
|
|
9118
|
+
"_dB",
|
|
9119
|
+
"_dD"
|
|
9120
9120
|
])}>`);
|
|
9121
9121
|
icon_warning_default({ size: 12 });
|
|
9122
9122
|
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
@@ -9124,7 +9124,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9124
9124
|
return 2;
|
|
9125
9125
|
} else {
|
|
9126
9126
|
const $scope95_id = _scope_id();
|
|
9127
|
-
_html(`<span${_attr_class(["
|
|
9127
|
+
_html(`<span${_attr_class(["_cm", "_dB"])}>Not signed in</span>`);
|
|
9128
9128
|
writeScope($scope95_id, {});
|
|
9129
9129
|
return 3;
|
|
9130
9130
|
}
|
|
@@ -9167,7 +9167,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9167
9167
|
const $childScope12 = _peek_scope_id();
|
|
9168
9168
|
arm_button_default({
|
|
9169
9169
|
class: [
|
|
9170
|
-
"
|
|
9170
|
+
"_cn",
|
|
9171
9171
|
"_7",
|
|
9172
9172
|
"_8"
|
|
9173
9173
|
],
|
|
@@ -9198,7 +9198,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9198
9198
|
_if(() => {
|
|
9199
9199
|
if (busy && authCodes.has(h.host)) {
|
|
9200
9200
|
const $scope35_id = _scope_id();
|
|
9201
|
-
_html(`<div${_attr_class("
|
|
9201
|
+
_html(`<div${_attr_class("_dF")}><span${_attr_class("_dG")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dI")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dH")}>${_text_resume($scope35_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
9202
9202
|
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9203
9203
|
return 0;
|
|
9204
9204
|
}
|
|
@@ -9210,7 +9210,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9210
9210
|
_set_serialize_reason(30);
|
|
9211
9211
|
const $childScope13 = _peek_scope_id();
|
|
9212
9212
|
sso_auth_default({
|
|
9213
|
-
class: ["
|
|
9213
|
+
class: ["_cU", "_dJ"],
|
|
9214
9214
|
items: hostSso$1,
|
|
9215
9215
|
skipped: skippedSso,
|
|
9216
9216
|
busy,
|
|
@@ -9244,23 +9244,23 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9244
9244
|
_if(() => {
|
|
9245
9245
|
if (setup && !setup.github.length) {
|
|
9246
9246
|
const $scope98_id = _scope_id();
|
|
9247
|
-
_html(`<p${_attr_class("
|
|
9247
|
+
_html(`<p${_attr_class("_co")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9248
9248
|
writeScope($scope98_id, {});
|
|
9249
9249
|
return 0;
|
|
9250
9250
|
}
|
|
9251
9251
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9252
|
-
_html(`</section><section${_attr_class("
|
|
9252
|
+
_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", "_cT"])}><div${_attr_class(["_cU", "_cV"])}><div${_attr_class(["_cW", { ["_cX"]: skillsOpen }])}><button${_attr_class("_cY")} aria-expanded=true>`);
|
|
9253
9253
|
_set_serialize_reason(1);
|
|
9254
9254
|
const $childScope14 = _peek_scope_id();
|
|
9255
9255
|
icon_chevron_right_default({
|
|
9256
9256
|
size: 12,
|
|
9257
|
-
class: ["
|
|
9257
|
+
class: ["_c2", { ["_c3"]: skillsOpen }]
|
|
9258
9258
|
});
|
|
9259
|
-
_html(`<span${_attr_class("
|
|
9259
|
+
_html(`<span${_attr_class("_cZ")}>Skills</span>`);
|
|
9260
9260
|
_if(() => {
|
|
9261
9261
|
if (skills?.global.length) {
|
|
9262
9262
|
const $scope50_id = _scope_id();
|
|
9263
|
-
_html(`<span${_attr_class("
|
|
9263
|
+
_html(`<span${_attr_class("_c0")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9264
9264
|
writeScope($scope50_id, {});
|
|
9265
9265
|
return 0;
|
|
9266
9266
|
}
|
|
@@ -9288,7 +9288,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9288
9288
|
_if(() => {
|
|
9289
9289
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9290
9290
|
const $scope99_id = _scope_id();
|
|
9291
|
-
_html(`<li${_attr_class("
|
|
9291
|
+
_html(`<li${_attr_class("_cR")}>Searching skills.sh…</li>`);
|
|
9292
9292
|
writeScope($scope99_id, {});
|
|
9293
9293
|
return 0;
|
|
9294
9294
|
}
|
|
@@ -9296,11 +9296,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9296
9296
|
_if(() => {
|
|
9297
9297
|
if (looksLikeSource(skillQuery)) {
|
|
9298
9298
|
const $scope17_id = _scope_id();
|
|
9299
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9299
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9300
9300
|
_if(() => {
|
|
9301
9301
|
if (active.has(skillQuery.trim())) {
|
|
9302
9302
|
const $scope18_id = _scope_id();
|
|
9303
|
-
_html(`<span${_attr_class("
|
|
9303
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9304
9304
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9305
9305
|
Ch1: 3,
|
|
9306
9306
|
Chs: 2
|
|
@@ -9308,7 +9308,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9308
9308
|
return 0;
|
|
9309
9309
|
} else {
|
|
9310
9310
|
const $scope100_id = _scope_id();
|
|
9311
|
-
_html(`<span${_attr_class("
|
|
9311
|
+
_html(`<span${_attr_class("_cm")}>Add straight from this source</span>`);
|
|
9312
9312
|
writeScope($scope100_id, {});
|
|
9313
9313
|
return 1;
|
|
9314
9314
|
}
|
|
@@ -9334,16 +9334,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9334
9334
|
_for_of(skillHits || [], (h) => {
|
|
9335
9335
|
const $scope19_id = _scope_id();
|
|
9336
9336
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9337
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9337
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9338
9338
|
_if(() => {
|
|
9339
9339
|
if (active.has(h.skillId)) {
|
|
9340
9340
|
const $scope20_id = _scope_id();
|
|
9341
|
-
_html(`<span${_attr_class("
|
|
9341
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9342
9342
|
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9343
9343
|
return 0;
|
|
9344
9344
|
} else {
|
|
9345
9345
|
const $scope101_id = _scope_id();
|
|
9346
|
-
_html(`<span${_attr_class("
|
|
9346
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9347
9347
|
writeScope($scope101_id, {});
|
|
9348
9348
|
return 1;
|
|
9349
9349
|
}
|
|
@@ -9391,7 +9391,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9391
9391
|
_if(() => {
|
|
9392
9392
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9393
9393
|
const $scope52_id = _scope_id();
|
|
9394
|
-
_html(`<li${_attr_class("
|
|
9394
|
+
_html(`<li${_attr_class("_cR")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9395
9395
|
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9396
9396
|
return 0;
|
|
9397
9397
|
}
|
|
@@ -9408,22 +9408,22 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9408
9408
|
_if(() => {
|
|
9409
9409
|
{
|
|
9410
9410
|
const $scope21_id = _scope_id();
|
|
9411
|
-
_html(`<div${_attr_class("
|
|
9411
|
+
_html(`<div${_attr_class("_c1")}>`);
|
|
9412
9412
|
_if(() => {
|
|
9413
9413
|
if (skills && !skills.agents.length) {
|
|
9414
9414
|
const $scope104_id = _scope_id();
|
|
9415
|
-
_html(`<p${_attr_class("
|
|
9415
|
+
_html(`<p${_attr_class("_co")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9416
9416
|
writeScope($scope104_id, {});
|
|
9417
9417
|
return 0;
|
|
9418
9418
|
} else if (skills && !skills.available) {
|
|
9419
9419
|
const $scope22_id = _scope_id();
|
|
9420
|
-
_html(`<p${_attr_class("
|
|
9420
|
+
_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>`);
|
|
9421
9421
|
_script($scope22_id, "A66");
|
|
9422
9422
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9423
9423
|
return 1;
|
|
9424
9424
|
}
|
|
9425
9425
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9426
|
-
_html(`<ul${_attr_class("
|
|
9426
|
+
_html(`<ul${_attr_class("_cB")}>`);
|
|
9427
9427
|
_for_of(skills?.global || [], (s) => {
|
|
9428
9428
|
const $scope23_id = _scope_id();
|
|
9429
9429
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9501,7 +9501,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9501
9501
|
_if(() => {
|
|
9502
9502
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9503
9503
|
const $scope108_id = _scope_id();
|
|
9504
|
-
_html(`<p${_attr_class("
|
|
9504
|
+
_html(`<p${_attr_class("_co")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9505
9505
|
writeScope($scope108_id, {});
|
|
9506
9506
|
return 0;
|
|
9507
9507
|
}
|
|
@@ -9511,18 +9511,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9511
9511
|
return 0;
|
|
9512
9512
|
}
|
|
9513
9513
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9514
|
-
_html(`</div><div${_attr_class(["
|
|
9514
|
+
_html(`</div><div${_attr_class(["_cU", "_cV"])}><div${_attr_class(["_cW", { ["_cX"]: machineOpen }])}><button${_attr_class("_cY")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9515
9515
|
_set_serialize_reason(1);
|
|
9516
9516
|
const $childScope18 = _peek_scope_id();
|
|
9517
9517
|
icon_chevron_right_default({
|
|
9518
9518
|
size: 12,
|
|
9519
|
-
class: ["
|
|
9519
|
+
class: ["_c2", { ["_c3"]: machineOpen }]
|
|
9520
9520
|
});
|
|
9521
|
-
_html(`<span${_attr_class("
|
|
9521
|
+
_html(`<span${_attr_class("_cZ")}>Tools</span><span${_attr_class("_c0")}>${_text_resume($scope0_id, "aj", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "ak", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "al", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "af")}`);
|
|
9522
9522
|
_if(() => {
|
|
9523
9523
|
if (bulk) {
|
|
9524
9524
|
const $scope34_id = _scope_id();
|
|
9525
|
-
_html(`<span${_attr_class("
|
|
9525
|
+
_html(`<span${_attr_class("_dh")}><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>`);
|
|
9526
9526
|
writeScope($scope34_id, {});
|
|
9527
9527
|
return 0;
|
|
9528
9528
|
} else {
|
|
@@ -9571,7 +9571,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9571
9571
|
_if(() => {
|
|
9572
9572
|
if (searching && !hits?.length) {
|
|
9573
9573
|
const $scope109_id = _scope_id();
|
|
9574
|
-
_html(`<li${_attr_class("
|
|
9574
|
+
_html(`<li${_attr_class("_cR")}>Searching the mise registry…</li>`);
|
|
9575
9575
|
writeScope($scope109_id, {});
|
|
9576
9576
|
return 0;
|
|
9577
9577
|
}
|
|
@@ -9579,23 +9579,23 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9579
9579
|
_if(() => {
|
|
9580
9580
|
if (hits && !hits.length && !searching) {
|
|
9581
9581
|
const $scope42_id = _scope_id();
|
|
9582
|
-
_html(`<li${_attr_class("
|
|
9582
|
+
_html(`<li${_attr_class("_cR")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9583
9583
|
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9584
9584
|
return 0;
|
|
9585
9585
|
}
|
|
9586
9586
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9587
9587
|
_for_of(hits || [], (h) => {
|
|
9588
9588
|
const $scope29_id = _scope_id();
|
|
9589
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9589
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cj")}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9590
9590
|
_if(() => {
|
|
9591
9591
|
if (active.has(h.name)) {
|
|
9592
9592
|
const $scope30_id = _scope_id();
|
|
9593
|
-
_html(`<span${_attr_class("
|
|
9593
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9594
9594
|
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9595
9595
|
return 0;
|
|
9596
9596
|
} else if (h.description) {
|
|
9597
9597
|
const $scope110_id = _scope_id();
|
|
9598
|
-
_html(`<span${_attr_class("
|
|
9598
|
+
_html(`<span${_attr_class("_cm")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9599
9599
|
writeScope($scope110_id, {});
|
|
9600
9600
|
return 1;
|
|
9601
9601
|
}
|
|
@@ -9642,11 +9642,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9642
9642
|
_if(() => {
|
|
9643
9643
|
if (machineOpen) {
|
|
9644
9644
|
const $scope6_id = _scope_id();
|
|
9645
|
-
_html(`<div${_attr_class("
|
|
9645
|
+
_html(`<div${_attr_class("_c1")}>`);
|
|
9646
9646
|
_if(() => {
|
|
9647
9647
|
if (setup && !setup.mise.installed) {
|
|
9648
9648
|
const $scope31_id = _scope_id();
|
|
9649
|
-
_html(`<p${_attr_class("
|
|
9649
|
+
_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>`);
|
|
9650
9650
|
_script($scope31_id, "A76");
|
|
9651
9651
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9652
9652
|
return 0;
|
|
@@ -9656,11 +9656,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9656
9656
|
_if(() => {
|
|
9657
9657
|
if (self) {
|
|
9658
9658
|
const $scope46_id = _scope_id();
|
|
9659
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9659
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dt", "_y"])}>work</span>`);
|
|
9660
9660
|
_if(() => {
|
|
9661
9661
|
if (selfUpdating) {
|
|
9662
9662
|
const $scope112_id = _scope_id();
|
|
9663
|
-
_html(`<span${_attr_class("
|
|
9663
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9664
9664
|
writeScope($scope112_id, {});
|
|
9665
9665
|
return 0;
|
|
9666
9666
|
} else {
|
|
@@ -9674,7 +9674,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9674
9674
|
return 0;
|
|
9675
9675
|
} else if (self.latest && self.latest !== self.version) {
|
|
9676
9676
|
const $scope48_id = _scope_id();
|
|
9677
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9677
|
+
_html(`<button${_attr_class([btnSm, "_dw"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9678
9678
|
icon_arrow_up_default({ size: 12 });
|
|
9679
9679
|
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9680
9680
|
_script($scope48_id, "A77");
|
|
@@ -9717,11 +9717,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9717
9717
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9718
9718
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9719
9719
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9720
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9720
|
+
_html(`<li${_attr_class([toolRow, { ["_ds"]: !t.installed }])}><span${_attr_class(["_dt", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9721
9721
|
_if(() => {
|
|
9722
9722
|
if (active.has(t.id)) {
|
|
9723
9723
|
const $scope33_id = _scope_id();
|
|
9724
|
-
_html(`<span${_attr_class("
|
|
9724
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9725
9725
|
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9726
9726
|
return 0;
|
|
9727
9727
|
} else if (t.installed) {
|
|
@@ -9729,11 +9729,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9729
9729
|
_if(() => {
|
|
9730
9730
|
if (t.version) {
|
|
9731
9731
|
const $scope40_id = _scope_id();
|
|
9732
|
-
_html(`<button${_attr_class(["
|
|
9732
|
+
_html(`<button${_attr_class(["_dv", "_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)}`);
|
|
9733
9733
|
_if(() => {
|
|
9734
9734
|
if (aliasPin(t)) {
|
|
9735
9735
|
const $scope116_id = _scope_id();
|
|
9736
|
-
_html(`<span${_attr_class("
|
|
9736
|
+
_html(`<span${_attr_class("_du")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9737
9737
|
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9738
9738
|
return 0;
|
|
9739
9739
|
}
|
|
@@ -9752,7 +9752,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9752
9752
|
_if(() => {
|
|
9753
9753
|
if (outdated(t)) {
|
|
9754
9754
|
const $scope57_id = _scope_id();
|
|
9755
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9755
|
+
_html(`<button${_attr_class([btnSm, "_dw"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9756
9756
|
icon_arrow_up_default({ size: 12 });
|
|
9757
9757
|
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9758
9758
|
_script($scope57_id, "A79");
|
|
@@ -9760,7 +9760,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9760
9760
|
return 0;
|
|
9761
9761
|
} else if (t.newest) {
|
|
9762
9762
|
const $scope58_id = _scope_id();
|
|
9763
|
-
_html(`<button${_attr_class(["
|
|
9763
|
+
_html(`<button${_attr_class(["_dv", "_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")}`);
|
|
9764
9764
|
_script($scope58_id, "A80");
|
|
9765
9765
|
_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 })))));
|
|
9766
9766
|
return 1;
|
|
@@ -9873,14 +9873,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9873
9873
|
label: "Dark"
|
|
9874
9874
|
}
|
|
9875
9875
|
];
|
|
9876
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9876
|
+
_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", "_dK"])}><div${_attr_class("_dW")}><img${_attr_class("_dX")}${_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("_dY")}><span${_attr_class("_dZ")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_d0")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dL")}><span${_attr_class("_dM")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9877
9877
|
setInstance({ name: v });
|
|
9878
|
-
}, "A1", $scope0_id))}${_attr_class(["_Y", "
|
|
9878
|
+
}, "A1", $scope0_id))}${_attr_class(["_Y", "_dN"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dL")}><span${_attr_class("_dM")}>Theme</span><span${_attr_class("_dP")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9879
9879
|
_for_of(themeOpts, (opt) => {
|
|
9880
9880
|
const $scope49_id = _scope_id();
|
|
9881
9881
|
_html(`<button type=button${_attr_class([
|
|
9882
9882
|
"_bf",
|
|
9883
|
-
"
|
|
9883
|
+
"_d1",
|
|
9884
9884
|
{ ["_be"]: themeMode === opt.id }
|
|
9885
9885
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9886
9886
|
if (opt.id === "system") {
|
|
@@ -9900,28 +9900,28 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9900
9900
|
_: _scope_with_id($scope0_id)
|
|
9901
9901
|
});
|
|
9902
9902
|
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9903
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9903
|
+
_html(`</span><span${_attr_class(["_o", "_dQ"])}>`);
|
|
9904
9904
|
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9905
9905
|
setThemeMode(v);
|
|
9906
9906
|
}, "A2", $scope0_id), () => {
|
|
9907
|
-
_html(`<select${_attr_class(["_p", "
|
|
9907
|
+
_html(`<select${_attr_class(["_p", "_dR"])} aria-label="Color theme">`);
|
|
9908
9908
|
forOf(themeOpts, (opt) => {
|
|
9909
9909
|
_scope_id();
|
|
9910
9910
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9911
9911
|
});
|
|
9912
9912
|
_html("</select>");
|
|
9913
9913
|
});
|
|
9914
|
-
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("
|
|
9915
|
-
"
|
|
9916
|
-
"
|
|
9917
|
-
{ ["
|
|
9914
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dL")}><span${_attr_class("_dM")}>Accent</span><span${_attr_class("_d2")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9915
|
+
"_d3",
|
|
9916
|
+
"_d6",
|
|
9917
|
+
{ ["_d4"]: !accent }
|
|
9918
9918
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9919
9919
|
_if(() => {
|
|
9920
9920
|
if (!accent) {
|
|
9921
9921
|
const $scope126_id = _scope_id();
|
|
9922
9922
|
icon_check_default({
|
|
9923
9923
|
size: 12,
|
|
9924
|
-
class: "
|
|
9924
|
+
class: "_d5"
|
|
9925
9925
|
});
|
|
9926
9926
|
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9927
9927
|
return 0;
|
|
@@ -9929,13 +9929,13 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9929
9929
|
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9930
9930
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9931
9931
|
const $scope79_id = _scope_id();
|
|
9932
|
-
_html(`<button type=button${_attr_class(["
|
|
9932
|
+
_html(`<button type=button${_attr_class(["_d3", { ["_d4"]: 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)}>`);
|
|
9933
9933
|
_if(() => {
|
|
9934
9934
|
if (accent === p.value) {
|
|
9935
9935
|
const $scope127_id = _scope_id();
|
|
9936
9936
|
icon_check_default({
|
|
9937
9937
|
size: 12,
|
|
9938
|
-
class: "
|
|
9938
|
+
class: "_d5"
|
|
9939
9939
|
});
|
|
9940
9940
|
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9941
9941
|
return 0;
|
|
@@ -9949,18 +9949,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9949
9949
|
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9950
9950
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9951
9951
|
_html(`<label${_attr_class([
|
|
9952
|
-
"
|
|
9953
|
-
"
|
|
9954
|
-
{ ["
|
|
9952
|
+
"_d3",
|
|
9953
|
+
"_d7",
|
|
9954
|
+
{ ["_d4"]: customOn }
|
|
9955
9955
|
])}${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) {
|
|
9956
9956
|
setInstance({ accent: v });
|
|
9957
|
-
}, "A3", $scope0_id))}${_attr_class("
|
|
9957
|
+
}, "A3", $scope0_id))}${_attr_class("_d8")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9958
9958
|
_if(() => {
|
|
9959
9959
|
if (customOn) {
|
|
9960
9960
|
const $scope128_id = _scope_id();
|
|
9961
9961
|
icon_check_default({
|
|
9962
9962
|
size: 12,
|
|
9963
|
-
class: "
|
|
9963
|
+
class: "_d5"
|
|
9964
9964
|
});
|
|
9965
9965
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9966
9966
|
return 0;
|
|
@@ -9971,16 +9971,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9971
9971
|
return 1;
|
|
9972
9972
|
}
|
|
9973
9973
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9974
|
-
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9974
|
+
_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", "_cT"])}><div${_attr_class("_cU")}><div${_attr_class("_d9")}><div${_attr_class("_cj")}>`);
|
|
9975
9975
|
_if(() => {
|
|
9976
9976
|
if (backupBusy === "preflight") {
|
|
9977
9977
|
const $scope66_id = _scope_id();
|
|
9978
|
-
_html(`<span${_attr_class("
|
|
9978
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9979
9979
|
writeScope($scope66_id, {});
|
|
9980
9980
|
return 0;
|
|
9981
9981
|
} else {
|
|
9982
9982
|
const $scope130_id = _scope_id();
|
|
9983
|
-
_html(`<span${_attr_class("
|
|
9983
|
+
_html(`<span${_attr_class("_cm")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9984
9984
|
writeScope($scope130_id, {});
|
|
9985
9985
|
return 1;
|
|
9986
9986
|
}
|
|
@@ -9998,7 +9998,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9998
9998
|
_if(() => {
|
|
9999
9999
|
if (preflight && !backupBusy) {
|
|
10000
10000
|
const $scope68_id = _scope_id();
|
|
10001
|
-
_html(`<div${_attr_class("
|
|
10001
|
+
_html(`<div${_attr_class("_ea")}><p${_attr_class("_eb")}>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("_eb")}>Not in the file: `);
|
|
10002
10002
|
_if(() => {
|
|
10003
10003
|
if (preflight.unpushed) {
|
|
10004
10004
|
const $scope69_id = _scope_id();
|
|
@@ -10015,15 +10015,15 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10015
10015
|
return 0;
|
|
10016
10016
|
}
|
|
10017
10017
|
}, $scope68_id, "m");
|
|
10018
|
-
_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("
|
|
10018
|
+
_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("_ec")}>`);
|
|
10019
10019
|
_for_of(preflight.workspaces, (w) => {
|
|
10020
10020
|
const $scope132_id = _scope_id();
|
|
10021
10021
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
10022
|
-
_html(`<li${_attr_class("
|
|
10022
|
+
_html(`<li${_attr_class("_ed")}><span${_attr_class("_ck")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_ec")}>`);
|
|
10023
10023
|
_for_of(w.repos, (r) => {
|
|
10024
10024
|
const $scope133_id = _scope_id();
|
|
10025
10025
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
10026
|
-
_html(`<li${_attr_class("
|
|
10026
|
+
_html(`<li${_attr_class("_ee")}><span${_attr_class("_ef")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
10027
10027
|
_for_of(r.unpushed, (b) => {
|
|
10028
10028
|
const $scope134_id = _scope_id();
|
|
10029
10029
|
_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 `);
|
|
@@ -10042,10 +10042,10 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10042
10042
|
_if(() => {
|
|
10043
10043
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
10044
10044
|
const $scope135_id = _scope_id();
|
|
10045
|
-
_html(`<ul${_attr_class("
|
|
10045
|
+
_html(`<ul${_attr_class("_eg")}>`);
|
|
10046
10046
|
_for_of(r.modified, (f) => {
|
|
10047
10047
|
const $scope138_id = _scope_id();
|
|
10048
|
-
_html(`<li${_attr_class("
|
|
10048
|
+
_html(`<li${_attr_class("_eh")}><span${_attr_class([
|
|
10049
10049
|
"_N",
|
|
10050
10050
|
"_P",
|
|
10051
10051
|
tone.warn
|
|
@@ -10054,18 +10054,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10054
10054
|
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
10055
10055
|
_for_of(r.untracked, (f) => {
|
|
10056
10056
|
const $scope139_id = _scope_id();
|
|
10057
|
-
_html(`<li${_attr_class("
|
|
10057
|
+
_html(`<li${_attr_class("_eh")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10058
10058
|
writeScope($scope139_id, {});
|
|
10059
10059
|
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10060
10060
|
_for_of(r.ignored, (f) => {
|
|
10061
10061
|
const $scope140_id = _scope_id();
|
|
10062
|
-
_html(`<li${_attr_class("
|
|
10062
|
+
_html(`<li${_attr_class("_eh")}><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>`);
|
|
10063
10063
|
writeScope($scope140_id, {});
|
|
10064
10064
|
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10065
10065
|
_if(() => {
|
|
10066
10066
|
if (r.more) {
|
|
10067
10067
|
const $scope136_id = _scope_id();
|
|
10068
|
-
_html(`<li${_attr_class(["
|
|
10068
|
+
_html(`<li${_attr_class(["_eh", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10069
10069
|
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10070
10070
|
return 0;
|
|
10071
10071
|
}
|
|
@@ -10090,27 +10090,27 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10090
10090
|
i: $for_content17__w_name__closures
|
|
10091
10091
|
});
|
|
10092
10092
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10093
|
-
_html(`<div${_attr_class("
|
|
10093
|
+
_html(`<div${_attr_class("_ei")}><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>`);
|
|
10094
10094
|
_script($scope68_id, "A86");
|
|
10095
10095
|
writeScope($scope68_id, {});
|
|
10096
10096
|
return 0;
|
|
10097
10097
|
}
|
|
10098
10098
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10099
|
-
_html(`</div><div${_attr_class("
|
|
10099
|
+
_html(`</div><div${_attr_class("_cU")}><div${_attr_class("_d9")}><div${_attr_class("_cj")}>`);
|
|
10100
10100
|
_if(() => {
|
|
10101
10101
|
if (backupBusy === "restore") {
|
|
10102
10102
|
const $scope67_id = _scope_id();
|
|
10103
|
-
_html(`<span${_attr_class("
|
|
10103
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10104
10104
|
writeScope($scope67_id, {});
|
|
10105
10105
|
return 0;
|
|
10106
10106
|
} else if (restoreDone) {
|
|
10107
10107
|
const $scope75_id = _scope_id();
|
|
10108
|
-
_html(`<span${_attr_class("
|
|
10108
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10109
10109
|
writeScope($scope75_id, {});
|
|
10110
10110
|
return 1;
|
|
10111
10111
|
} else {
|
|
10112
10112
|
const $scope141_id = _scope_id();
|
|
10113
|
-
_html(`<span${_attr_class("
|
|
10113
|
+
_html(`<span${_attr_class("_cm")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10114
10114
|
writeScope($scope141_id, {});
|
|
10115
10115
|
return 2;
|
|
10116
10116
|
}
|
|
@@ -10118,7 +10118,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10118
10118
|
_if(() => {
|
|
10119
10119
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10120
10120
|
const $scope77_id = _scope_id();
|
|
10121
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10121
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_d_")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10122
10122
|
_script($scope77_id, "A87");
|
|
10123
10123
|
writeScope($scope77_id, {});
|
|
10124
10124
|
return 0;
|
|
@@ -10129,14 +10129,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10129
10129
|
if (restorePreview && backupBusy !== "restore") {
|
|
10130
10130
|
const $scope70_id = _scope_id();
|
|
10131
10131
|
const { preview } = restorePreview;
|
|
10132
|
-
_html(`<div${_attr_class("
|
|
10132
|
+
_html(`<div${_attr_class("_ea")}><p${_attr_class("_eb")}>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>`);
|
|
10133
10133
|
_if(() => {
|
|
10134
10134
|
if (preview.workspaces.length) {
|
|
10135
10135
|
const $scope71_id = _scope_id();
|
|
10136
10136
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10137
10137
|
_for_of(preview.workspaces, (w) => {
|
|
10138
10138
|
const $scope72_id = _scope_id();
|
|
10139
|
-
_html(`<li><label${_attr_class(["
|
|
10139
|
+
_html(`<li><label${_attr_class(["_ek", { ["_em"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_el")} 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>`);
|
|
10140
10140
|
_if(() => {
|
|
10141
10141
|
if (w.status === "archived") {
|
|
10142
10142
|
const $scope145_id = _scope_id();
|
|
@@ -10158,7 +10158,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10158
10158
|
return 1;
|
|
10159
10159
|
}
|
|
10160
10160
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10161
|
-
_html(`</span><span${_attr_class("
|
|
10161
|
+
_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>`);
|
|
10162
10162
|
_script($scope72_id, "A88");
|
|
10163
10163
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10164
10164
|
n: w?.unknownHost,
|
|
@@ -10169,7 +10169,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10169
10169
|
return 0;
|
|
10170
10170
|
} else {
|
|
10171
10171
|
const $scope143_id = _scope_id();
|
|
10172
|
-
_html(`<p${_attr_class("
|
|
10172
|
+
_html(`<p${_attr_class("_co")}>No workspaces in this file.</p>`);
|
|
10173
10173
|
writeScope($scope143_id, {});
|
|
10174
10174
|
return 1;
|
|
10175
10175
|
}
|
|
@@ -10209,7 +10209,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10209
10209
|
_if(() => {
|
|
10210
10210
|
if (p.total) {
|
|
10211
10211
|
const $scope74_id = _scope_id();
|
|
10212
|
-
_html(`<li><label${_attr_class(["
|
|
10212
|
+
_html(`<li><label${_attr_class(["_ek", { ["_em"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_el")} 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")}>`);
|
|
10213
10213
|
_if(() => {
|
|
10214
10214
|
if (p.key === "settings") {
|
|
10215
10215
|
const $scope142_id = _scope_id();
|
|
@@ -10256,7 +10256,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10256
10256
|
i: $for_content10__p_total__closures
|
|
10257
10257
|
});
|
|
10258
10258
|
}, "key", $scope70_id, "h");
|
|
10259
|
-
_html(`</ul><div${_attr_class("
|
|
10259
|
+
_html(`</ul><div${_attr_class("_ei")}><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>`);
|
|
10260
10260
|
_script($scope70_id, "A90");
|
|
10261
10261
|
writeScope($scope70_id, {});
|
|
10262
10262
|
return 0;
|
|
@@ -10553,14 +10553,14 @@ function activeAgent(session) {
|
|
|
10553
10553
|
const command = session.state?.command?.trim();
|
|
10554
10554
|
return command && agentFromCommand(command) || session.agent;
|
|
10555
10555
|
}
|
|
10556
|
-
var heroTag = "
|
|
10557
|
-
var rowState = "
|
|
10558
|
-
var prChip = "
|
|
10559
|
-
var portChip = "
|
|
10556
|
+
var heroTag = "_e3 _N _Q";
|
|
10557
|
+
var rowState = "_fe _N";
|
|
10558
|
+
var prChip = "_id _u _ic";
|
|
10559
|
+
var portChip = "_ie _u _ic";
|
|
10560
10560
|
var prState = {
|
|
10561
|
-
open: "
|
|
10562
|
-
merged: "
|
|
10563
|
-
closed: "
|
|
10561
|
+
open: "_ii",
|
|
10562
|
+
merged: "_ij",
|
|
10563
|
+
closed: "_ik"
|
|
10564
10564
|
};
|
|
10565
10565
|
//#endregion
|
|
10566
10566
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10641,7 +10641,7 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10641
10641
|
const name = repo.full_name.split("/").at(-1);
|
|
10642
10642
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10643
10643
|
}, "B3", $scope1_id);
|
|
10644
|
-
_html(`<div${_attr_class("
|
|
10644
|
+
_html(`<div${_attr_class("_ib")}>`);
|
|
10645
10645
|
_for_of(repos, (repo) => {
|
|
10646
10646
|
const $scope2_id = _scope_id();
|
|
10647
10647
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10657,11 +10657,11 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10657
10657
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10658
10658
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10659
10659
|
}
|
|
10660
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10660
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_if", { ["_in"]: !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")}`);
|
|
10661
10661
|
_if(() => {
|
|
10662
10662
|
if (open) {
|
|
10663
10663
|
const $scope4_id = _scope_id();
|
|
10664
|
-
_html(`<a${_attr_class(["
|
|
10664
|
+
_html(`<a${_attr_class(["_if", "_ig"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10665
10665
|
icon_diff_default({ size: 12 });
|
|
10666
10666
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10667
10667
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10669,9 +10669,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10669
10669
|
} else {
|
|
10670
10670
|
const $scope5_id = _scope_id();
|
|
10671
10671
|
_html(`<button type=button${_attr_class([
|
|
10672
|
-
"
|
|
10673
|
-
"
|
|
10674
|
-
"
|
|
10672
|
+
"_if",
|
|
10673
|
+
"_ig",
|
|
10674
|
+
"_ih"
|
|
10675
10675
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10676
10676
|
icon_xmark_default({ size: 12 });
|
|
10677
10677
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10699,12 +10699,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10699
10699
|
_if(() => {
|
|
10700
10700
|
if (dead.has(p.port)) {
|
|
10701
10701
|
const $scope7_id = _scope_id();
|
|
10702
|
-
_html(`<span${_attr_class(["
|
|
10702
|
+
_html(`<span${_attr_class(["_if", "_il"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10703
10703
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10704
10704
|
return 0;
|
|
10705
10705
|
} else {
|
|
10706
10706
|
const $scope8_id = _scope_id();
|
|
10707
|
-
_html(`<button type=button${_attr_class(["
|
|
10707
|
+
_html(`<button type=button${_attr_class(["_if", "_im"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10708
10708
|
_script($scope8_id, "B6");
|
|
10709
10709
|
writeScope($scope8_id, {});
|
|
10710
10710
|
return 1;
|
|
@@ -10713,9 +10713,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10713
10713
|
const $childScope = _peek_scope_id();
|
|
10714
10714
|
arm_button_default({
|
|
10715
10715
|
class: [
|
|
10716
|
-
"
|
|
10717
|
-
"
|
|
10718
|
-
"
|
|
10716
|
+
"_if",
|
|
10717
|
+
"_ig",
|
|
10718
|
+
"_ih"
|
|
10719
10719
|
],
|
|
10720
10720
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10721
10721
|
armedTitle: "Kill?",
|
|
@@ -10762,12 +10762,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10762
10762
|
});
|
|
10763
10763
|
_resume_branch($scope0_id);
|
|
10764
10764
|
});
|
|
10765
|
-
var railBtn = "
|
|
10766
|
-
var wsBtn = "
|
|
10767
|
-
var rowIcon = "
|
|
10768
|
-
var close = "
|
|
10769
|
-
var sessRename$1 = "
|
|
10770
|
-
var sessBtn$1 = "
|
|
10765
|
+
var railBtn = "_fv _l";
|
|
10766
|
+
var wsBtn = "_fz _I";
|
|
10767
|
+
var rowIcon = "_fC _3 _l";
|
|
10768
|
+
var close = "_fD _6 _l _7";
|
|
10769
|
+
var sessRename$1 = "_fJ _J";
|
|
10770
|
+
var sessBtn$1 = "_fL _I";
|
|
10771
10771
|
//#endregion
|
|
10772
10772
|
//#region src/tags/icons/icon-manage.marko
|
|
10773
10773
|
var icon_manage_default = _template("jb", (input) => {
|
|
@@ -10882,7 +10882,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10882
10882
|
_if(() => {
|
|
10883
10883
|
if (input.rail) {
|
|
10884
10884
|
const $scope2_id = _scope_id();
|
|
10885
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10885
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fs"]: 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([
|
|
10886
10886
|
"_A",
|
|
10887
10887
|
phase[dot$1],
|
|
10888
10888
|
"_bb"
|
|
@@ -10892,31 +10892,31 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10892
10892
|
} else if (ws$1.pending) {
|
|
10893
10893
|
const $scope3_id = _scope_id();
|
|
10894
10894
|
_html(`<section${_attr_class([
|
|
10895
|
+
"_fx",
|
|
10895
10896
|
"_fN",
|
|
10896
|
-
"
|
|
10897
|
-
|
|
10898
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fO")}><div${_attr_class(wsBtn)}>`);
|
|
10897
|
+
{ ["_fw"]: input.page }
|
|
10898
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fy")}><div${_attr_class(wsBtn)}>`);
|
|
10899
10899
|
_if(() => {
|
|
10900
10900
|
if (ws$1.pending_error) {
|
|
10901
10901
|
const $scope11_id = _scope_id();
|
|
10902
10902
|
icon_warning_default({
|
|
10903
10903
|
size: 12,
|
|
10904
|
-
class: "
|
|
10904
|
+
class: "_fP"
|
|
10905
10905
|
});
|
|
10906
10906
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10907
10907
|
return 0;
|
|
10908
10908
|
} else {
|
|
10909
10909
|
const $scope12_id = _scope_id();
|
|
10910
|
-
_html(`<span${_attr_class(["_G", "
|
|
10910
|
+
_html(`<span${_attr_class(["_G", "_fO"])}></span>`);
|
|
10911
10911
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10912
10912
|
return 1;
|
|
10913
10913
|
}
|
|
10914
10914
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10915
|
-
_html(`<span${_attr_class("
|
|
10915
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fR")}${_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>`);
|
|
10916
10916
|
_if(() => {
|
|
10917
10917
|
if (ws$1.pending_error && !retrying) {
|
|
10918
10918
|
const $scope10_id = _scope_id();
|
|
10919
|
-
_html(`<div${_attr_class("
|
|
10919
|
+
_html(`<div${_attr_class("_fQ")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10920
10920
|
arm_button_default({
|
|
10921
10921
|
class: ["_q", btnSm],
|
|
10922
10922
|
title: "Delete workspace",
|
|
@@ -10947,11 +10947,11 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10947
10947
|
const $scope4_id = _scope_id();
|
|
10948
10948
|
const sessions$1 = input.sessions || [];
|
|
10949
10949
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10950
|
-
_html(`<section${_attr_class(["
|
|
10951
|
-
["
|
|
10950
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10951
|
+
["_fs"]: input.current,
|
|
10952
10952
|
["_bc"]: input.current,
|
|
10953
|
-
["
|
|
10954
|
-
}])}><div${_attr_class("
|
|
10953
|
+
["_fu"]: input.menuOpen
|
|
10954
|
+
}])}><div${_attr_class("_fy")}><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)}`);
|
|
10955
10955
|
_if(() => {
|
|
10956
10956
|
if (sessions$1.length === 1) {
|
|
10957
10957
|
const $scope14_id = _scope_id();
|
|
@@ -10963,7 +10963,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10963
10963
|
icon_agent_default({
|
|
10964
10964
|
agent: activeAgent(sessions$1[0]),
|
|
10965
10965
|
size: 12,
|
|
10966
|
-
class: "
|
|
10966
|
+
class: "_fE"
|
|
10967
10967
|
});
|
|
10968
10968
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10969
10969
|
_: _scope_with_id($scope4_id),
|
|
@@ -10972,7 +10972,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10972
10972
|
return 0;
|
|
10973
10973
|
}
|
|
10974
10974
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10975
|
-
_html(`<span${_attr_class("
|
|
10975
|
+
_html(`<span${_attr_class("_fF")}><span${_attr_class("_fG")}>${_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("_fA")}>`);
|
|
10976
10976
|
_if(() => {
|
|
10977
10977
|
if (input.onNewSession) {
|
|
10978
10978
|
const $scope5_id = _scope_id();
|
|
@@ -11000,19 +11000,19 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
11000
11000
|
return 0;
|
|
11001
11001
|
}
|
|
11002
11002
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
11003
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
11003
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_ft"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
11004
11004
|
icon_manage_default({ size: 12 });
|
|
11005
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
11005
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_fK")}>`);
|
|
11006
11006
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
11007
11007
|
const $scope6_id = _scope_id();
|
|
11008
|
-
_html(`<div${_attr_class(["
|
|
11008
|
+
_html(`<div${_attr_class(["_fB", { ["_fs"]: s.id === input.currentTab }])}>`);
|
|
11009
11009
|
_if(() => {
|
|
11010
11010
|
if (renamingId === s.id) {
|
|
11011
11011
|
const $scope7_id = _scope_id();
|
|
11012
11012
|
_html(`<span${_attr_class([
|
|
11013
11013
|
"_A",
|
|
11014
11014
|
phase[sessionPhase(s.state)],
|
|
11015
|
-
"
|
|
11015
|
+
"_fI"
|
|
11016
11016
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
11017
11017
|
_set_serialize_reason({
|
|
11018
11018
|
1: $sg__input_sessions,
|
|
@@ -11022,7 +11022,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
11022
11022
|
icon_agent_default({
|
|
11023
11023
|
agent: activeAgent(s),
|
|
11024
11024
|
size: 12,
|
|
11025
|
-
class: "
|
|
11025
|
+
class: "_fM"
|
|
11026
11026
|
});
|
|
11027
11027
|
const $childScope3 = _peek_scope_id();
|
|
11028
11028
|
rename_input_default({
|
|
@@ -11053,9 +11053,9 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
11053
11053
|
icon_agent_default({
|
|
11054
11054
|
agent: activeAgent(s),
|
|
11055
11055
|
size: 12,
|
|
11056
|
-
class: "
|
|
11056
|
+
class: "_fM"
|
|
11057
11057
|
});
|
|
11058
|
-
_html(`<span${_attr_class("
|
|
11058
|
+
_html(`<span${_attr_class("_fH")}>${_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">`);
|
|
11059
11059
|
icon_edit_default({ size: 12 });
|
|
11060
11060
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
11061
11061
|
arm_button_default({
|
|
@@ -11178,11 +11178,11 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11178
11178
|
const sessions = input.sessions || st?.sessions || [];
|
|
11179
11179
|
const manySessions = sessions.length > 1;
|
|
11180
11180
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11181
|
-
_html(`<div${_attr_class("
|
|
11181
|
+
_html(`<div${_attr_class("_eZ")}>`);
|
|
11182
11182
|
_if(() => {
|
|
11183
11183
|
if (ws) {
|
|
11184
11184
|
const $scope1_id = _scope_id();
|
|
11185
|
-
_html(`<section${_attr_class("
|
|
11185
|
+
_html(`<section${_attr_class("_e0")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_e1")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11186
11186
|
_if(() => {
|
|
11187
11187
|
if (sessions.length === 1) {
|
|
11188
11188
|
const $scope8_id = _scope_id();
|
|
@@ -11194,7 +11194,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11194
11194
|
icon_agent_default({
|
|
11195
11195
|
agent: activeAgent(sessions[0]),
|
|
11196
11196
|
size: 16,
|
|
11197
|
-
class: "
|
|
11197
|
+
class: "_e5"
|
|
11198
11198
|
});
|
|
11199
11199
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11200
11200
|
_: _scope_with_id($scope1_id),
|
|
@@ -11203,14 +11203,14 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11203
11203
|
return 0;
|
|
11204
11204
|
}
|
|
11205
11205
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11206
|
-
_html(`<span${_attr_class("
|
|
11206
|
+
_html(`<span${_attr_class("_e2")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>current</span><span${_attr_class("_e4")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11207
11207
|
_if(() => {
|
|
11208
11208
|
if (manySessions) {
|
|
11209
11209
|
const $scope2_id = _scope_id();
|
|
11210
|
-
_html(`<div${_attr_class("
|
|
11210
|
+
_html(`<div${_attr_class("_e6")}>`);
|
|
11211
11211
|
_for_of(sessions, (s) => {
|
|
11212
11212
|
const $scope3_id = _scope_id();
|
|
11213
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11213
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e8", { ["_e7"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11214
11214
|
_set_serialize_reason({
|
|
11215
11215
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11216
11216
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11220,7 +11220,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11220
11220
|
agent: activeAgent(s),
|
|
11221
11221
|
size: 14
|
|
11222
11222
|
});
|
|
11223
|
-
_html(`<span${_attr_class("
|
|
11223
|
+
_html(`<span${_attr_class("_e9")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 7))}`);
|
|
11224
11224
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11225
11225
|
h: $si__input_tab && s?.id,
|
|
11226
11226
|
_: _scope_with_id($scope2_id),
|
|
@@ -11249,7 +11249,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11249
11249
|
_if(() => {
|
|
11250
11250
|
if (input.ids.length) {
|
|
11251
11251
|
const $scope4_id = _scope_id();
|
|
11252
|
-
_html(`<div${_attr_class("
|
|
11252
|
+
_html(`<div${_attr_class("_e_")}>`);
|
|
11253
11253
|
_for_of(input.ids, (id) => {
|
|
11254
11254
|
const $scope5_id = _scope_id();
|
|
11255
11255
|
const w = input.byId.get(id);
|
|
@@ -11293,7 +11293,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11293
11293
|
const rp = phaseOf(rs);
|
|
11294
11294
|
const rowSessions = rs?.sessions || [];
|
|
11295
11295
|
const many = rowSessions.length > 1;
|
|
11296
|
-
_html(`<div${_attr_class("
|
|
11296
|
+
_html(`<div${_attr_class("_fa")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fb")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11297
11297
|
_if(() => {
|
|
11298
11298
|
if (rowSessions.length === 1) {
|
|
11299
11299
|
const $scope9_id = _scope_id();
|
|
@@ -11305,7 +11305,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11305
11305
|
icon_agent_default({
|
|
11306
11306
|
agent: activeAgent(rowSessions[0]),
|
|
11307
11307
|
size: 16,
|
|
11308
|
-
class: "
|
|
11308
|
+
class: "_fd"
|
|
11309
11309
|
});
|
|
11310
11310
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11311
11311
|
_: _scope_with_id($scope7_id),
|
|
@@ -11314,7 +11314,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11314
11314
|
return 0;
|
|
11315
11315
|
}
|
|
11316
11316
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11317
|
-
_html(`<span${_attr_class("
|
|
11317
|
+
_html(`<span${_attr_class("_fc")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11318
11318
|
_if(() => {
|
|
11319
11319
|
if (many) {
|
|
11320
11320
|
const $scope10_id = _scope_id();
|
|
@@ -11325,7 +11325,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11325
11325
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11326
11326
|
icon_chevron_right_default({
|
|
11327
11327
|
size: 14,
|
|
11328
|
-
class: "
|
|
11328
|
+
class: "_ff"
|
|
11329
11329
|
});
|
|
11330
11330
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11331
11331
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11445,13 +11445,13 @@ var usage_bars_default = _template("J", (input) => {
|
|
|
11445
11445
|
if (windows.length) {
|
|
11446
11446
|
const $scope1_id = _scope_id();
|
|
11447
11447
|
_html(`<span${_attr_class([
|
|
11448
|
-
"
|
|
11448
|
+
"_hD",
|
|
11449
11449
|
input.class,
|
|
11450
|
-
{ ["
|
|
11450
|
+
{ ["_hE"]: agent.stale_seconds != null }
|
|
11451
11451
|
])} 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)}>`);
|
|
11452
11452
|
_for_of(windows, (win) => {
|
|
11453
11453
|
const $scope2_id = _scope_id();
|
|
11454
|
-
_html(`<span${_attr_class(["
|
|
11454
|
+
_html(`<span${_attr_class(["_hF", win.used_percent >= 90 ? "_hJ" : win.used_percent >= 70 ? "_hI" : win.used_percent >= 40 ? "_hH" : "_hG"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11455
11455
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11456
11456
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11457
11457
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11483,7 +11483,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11483
11483
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11484
11484
|
const all = usage?.agents || [];
|
|
11485
11485
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11486
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11486
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eK" : pct >= 70 ? "_eJ" : pct >= 40 ? "_eI" : "_eH", "r0");
|
|
11487
11487
|
let card$2 = null;
|
|
11488
11488
|
const showCard = _resume((el) => {
|
|
11489
11489
|
const r = el.getBoundingClientRect();
|
|
@@ -11495,18 +11495,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11495
11495
|
_if(() => {
|
|
11496
11496
|
if (plan) {
|
|
11497
11497
|
const $scope1_id = _scope_id();
|
|
11498
|
-
_html(`<span${_attr_class("
|
|
11498
|
+
_html(`<span${_attr_class("_eB")} tabindex=0>`);
|
|
11499
11499
|
_set_serialize_reason(1);
|
|
11500
11500
|
const $childScope = _peek_scope_id();
|
|
11501
11501
|
usage_bars_default({
|
|
11502
|
-
class: "
|
|
11502
|
+
class: "_eD",
|
|
11503
11503
|
agent: plan
|
|
11504
11504
|
});
|
|
11505
|
-
_html(`<svg${_attr_class(["
|
|
11505
|
+
_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")}`);
|
|
11506
11506
|
_if(() => {
|
|
11507
11507
|
if (card$2) {
|
|
11508
11508
|
const $scope2_id = _scope_id();
|
|
11509
|
-
_html(`<div${_attr_class(["_9", "
|
|
11509
|
+
_html(`<div${_attr_class(["_9", "_eC"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11510
11510
|
_for_of(all, (a) => {
|
|
11511
11511
|
const $scope3_id = _scope_id();
|
|
11512
11512
|
_set_serialize_reason(6);
|
|
@@ -12924,7 +12924,7 @@ function indent(text) {
|
|
|
12924
12924
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12925
12925
|
}
|
|
12926
12926
|
var treeToggle = "_go _4 _l";
|
|
12927
|
-
var pageTitle = "_gv
|
|
12927
|
+
var pageTitle = "_gv _cx";
|
|
12928
12928
|
//#endregion
|
|
12929
12929
|
//#region src/tags/diff-send.marko
|
|
12930
12930
|
var diff_send_default = _template("k", (input) => {
|
|
@@ -13390,7 +13390,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13390
13390
|
dragging$1 = false;
|
|
13391
13391
|
if (width != null) setDiffTreeWidth(width);
|
|
13392
13392
|
}, "y2", $scope0_id);
|
|
13393
|
-
_html(`<div${_attr_class(["
|
|
13393
|
+
_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")}>`);
|
|
13394
13394
|
_set_serialize_reason(2);
|
|
13395
13395
|
const $childScope = _peek_scope_id();
|
|
13396
13396
|
file_filter_default({
|
|
@@ -13399,22 +13399,22 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13399
13399
|
filter$1 = _new_filter;
|
|
13400
13400
|
}, "y3", $scope0_id)
|
|
13401
13401
|
});
|
|
13402
|
-
_html(`</div><div${_attr_class("
|
|
13402
|
+
_html(`</div><div${_attr_class("_iD")}>`);
|
|
13403
13403
|
_for_of(input.sections, (section$2) => {
|
|
13404
13404
|
const $scope1_id = _scope_id();
|
|
13405
|
-
_html(`<div${_attr_class(["
|
|
13405
|
+
_html(`<div${_attr_class(["_iF", { ["_iE"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13406
13406
|
_if(() => {
|
|
13407
13407
|
if (input.sections.length > 1) {
|
|
13408
13408
|
const $scope2_id = _scope_id();
|
|
13409
|
-
_html(`<button type=button${_attr_class("
|
|
13409
|
+
_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>`);
|
|
13410
13410
|
icon_chevron_right_default({ size: 12 });
|
|
13411
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13411
|
+
_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")}`);
|
|
13412
13412
|
_script($scope2_id, "y4");
|
|
13413
13413
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13414
13414
|
return 0;
|
|
13415
13415
|
}
|
|
13416
13416
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13417
|
-
_html(`<div${_attr_class(["
|
|
13417
|
+
_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)}`);
|
|
13418
13418
|
writeScope($scope1_id, {
|
|
13419
13419
|
f: section$2?.id,
|
|
13420
13420
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -14178,12 +14178,12 @@ var review_view_default = _template("z", (input) => {
|
|
|
14178
14178
|
_if(() => {
|
|
14179
14179
|
if (repos && !allFiles.length) {
|
|
14180
14180
|
const $scope11_id = _scope_id();
|
|
14181
|
-
_html(`<p${_attr_class("
|
|
14181
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope11_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>`);
|
|
14182
14182
|
writeScope($scope11_id, {});
|
|
14183
14183
|
return 0;
|
|
14184
14184
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14185
14185
|
const $scope8_id = _scope_id();
|
|
14186
|
-
_html(`<p${_attr_class("
|
|
14186
|
+
_html(`<p${_attr_class("_cp")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14187
14187
|
writeScope($scope8_id, {});
|
|
14188
14188
|
return 1;
|
|
14189
14189
|
}
|
|
@@ -14550,10 +14550,10 @@ function parseInvite(text) {
|
|
|
14550
14550
|
}
|
|
14551
14551
|
//#endregion
|
|
14552
14552
|
//#region src/tags/manage-workspace.css.ts
|
|
14553
|
-
var procCmd = "
|
|
14554
|
-
var skillRow = "
|
|
14555
|
-
var skillName = "
|
|
14556
|
-
var skillDesc = "
|
|
14553
|
+
var procCmd = "_fS _da";
|
|
14554
|
+
var skillRow = "_fU _c9";
|
|
14555
|
+
var skillName = "_fW _fS _da";
|
|
14556
|
+
var skillDesc = "_fZ _db";
|
|
14557
14557
|
//#endregion
|
|
14558
14558
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14559
14559
|
var icon_clipboard_default = _template("$", (input) => {
|
|
@@ -14605,10 +14605,10 @@ var icon_trash_default = _template("ub", (input) => {
|
|
|
14605
14605
|
});
|
|
14606
14606
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14607
14607
|
});
|
|
14608
|
-
var resultRow = "
|
|
14609
|
-
var resultBranch = "
|
|
14610
|
-
var urlAction = "
|
|
14611
|
-
var addedRow = "
|
|
14608
|
+
var resultRow = "_hY _I";
|
|
14609
|
+
var resultBranch = "_hZ _df _X _W _3 _l";
|
|
14610
|
+
var urlAction = "_h0 _df _X _W _dg";
|
|
14611
|
+
var addedRow = "_ia _c9";
|
|
14612
14612
|
//#endregion
|
|
14613
14613
|
//#region src/tags/icons/icon-branch.marko
|
|
14614
14614
|
var icon_branch_default = _template("X", (input) => {
|
|
@@ -14638,11 +14638,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14638
14638
|
let branchFilter = "";
|
|
14639
14639
|
let reloadTick = 0;
|
|
14640
14640
|
let refreshing = false;
|
|
14641
|
-
_html(`<div${_attr_class("
|
|
14641
|
+
_html(`<div${_attr_class("_h1")}>`);
|
|
14642
14642
|
_if(() => {
|
|
14643
14643
|
{
|
|
14644
14644
|
const $scope4_id = _scope_id();
|
|
14645
|
-
_html(`<p${_attr_class("
|
|
14645
|
+
_html(`<p${_attr_class("_co")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14646
14646
|
writeScope($scope4_id, {});
|
|
14647
14647
|
return 0;
|
|
14648
14648
|
}
|
|
@@ -14745,10 +14745,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14745
14745
|
}, $scope0_id) };
|
|
14746
14746
|
const addedList = sheet ? input$2.added || [] : [];
|
|
14747
14747
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
|
|
14748
|
-
_html(`<div${_attr_class(["
|
|
14749
|
-
["
|
|
14750
|
-
["
|
|
14751
|
-
}])}><label${_attr_class(["_0", "
|
|
14748
|
+
_html(`<div${_attr_class(["_cI", {
|
|
14749
|
+
["_cJ"]: !input$2.open,
|
|
14750
|
+
["_cK"]: input$2.pinned
|
|
14751
|
+
}])}><label${_attr_class(["_0", "_cL"])}>`);
|
|
14752
14752
|
icon_search_default({
|
|
14753
14753
|
size: 14,
|
|
14754
14754
|
class: "_1"
|
|
@@ -14760,14 +14760,14 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14760
14760
|
}, "w0", $scope0_id))}${_attr_class([
|
|
14761
14761
|
"_Y",
|
|
14762
14762
|
"_2",
|
|
14763
|
-
"
|
|
14764
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
14763
|
+
"_cM"
|
|
14764
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_cO"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14765
14765
|
icon_xmark_default({ size: 14 });
|
|
14766
14766
|
_html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)}${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
|
|
14767
14767
|
_if(() => {
|
|
14768
14768
|
if (ssoPending.length) {
|
|
14769
14769
|
const $scope11_id = _scope_id();
|
|
14770
|
-
_html(`<div${_attr_class("
|
|
14770
|
+
_html(`<div${_attr_class("_hU")}>`);
|
|
14771
14771
|
ssoBlock.content({});
|
|
14772
14772
|
_html("</div>");
|
|
14773
14773
|
writeScope($scope11_id, {});
|
|
@@ -14777,16 +14777,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14777
14777
|
_if(() => {
|
|
14778
14778
|
if (pasted) {
|
|
14779
14779
|
const $scope1_id = _scope_id();
|
|
14780
|
-
_html(`<ul${_attr_class("
|
|
14780
|
+
_html(`<ul${_attr_class("_hV")}><li><div${_attr_class(["_hX", "_hW"])}><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)`)}>`);
|
|
14781
14781
|
icon_plus_default({
|
|
14782
14782
|
size: 12,
|
|
14783
|
-
class: "
|
|
14783
|
+
class: "_h3"
|
|
14784
14784
|
});
|
|
14785
|
-
_html(`<span${_attr_class("
|
|
14785
|
+
_html(`<span${_attr_class("_h4")}>${_text_resume($scope1_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
14786
14786
|
_if(() => {
|
|
14787
14787
|
if (pastedForkable) {
|
|
14788
14788
|
const $scope10_id = _scope_id();
|
|
14789
|
-
_html(`<button${_attr_class([urlAction, { ["
|
|
14789
|
+
_html(`<button${_attr_class([urlAction, { ["_de"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
14790
14790
|
_if(() => {
|
|
14791
14791
|
if (pasteWillFork) {
|
|
14792
14792
|
const $scope13_id = _scope_id();
|
|
@@ -14806,7 +14806,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14806
14806
|
return 0;
|
|
14807
14807
|
}
|
|
14808
14808
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
14809
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14809
|
+
_html(`<button${_attr_class([resultBranch, { ["_de"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14810
14810
|
icon_branch_default({ size: 12 });
|
|
14811
14811
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
14812
14812
|
_if(() => {
|
|
@@ -14833,7 +14833,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14833
14833
|
return 0;
|
|
14834
14834
|
} else if (filter && !catalog) {
|
|
14835
14835
|
const $scope12_id = _scope_id();
|
|
14836
|
-
_html(`<p${_attr_class("
|
|
14836
|
+
_html(`<p${_attr_class("_co")}>Loading repos…</p>`);
|
|
14837
14837
|
writeScope($scope12_id, {});
|
|
14838
14838
|
return 1;
|
|
14839
14839
|
}
|
|
@@ -14841,15 +14841,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14841
14841
|
_if(() => {
|
|
14842
14842
|
if (results.length) {
|
|
14843
14843
|
const $scope3_id = _scope_id();
|
|
14844
|
-
_html(`<ul${_attr_class("
|
|
14844
|
+
_html(`<ul${_attr_class("_hV")}>`);
|
|
14845
14845
|
_for_of(results, (repo, i) => {
|
|
14846
14846
|
const $scope4_id = _scope_id();
|
|
14847
|
-
_html(`<li><div${_attr_class(["
|
|
14847
|
+
_html(`<li><div${_attr_class(["_hX", { ["_hW"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14848
14848
|
icon_plus_default({
|
|
14849
14849
|
size: 12,
|
|
14850
|
-
class: "
|
|
14850
|
+
class: "_h3"
|
|
14851
14851
|
});
|
|
14852
|
-
_html(`<span${_attr_class("
|
|
14852
|
+
_html(`<span${_attr_class("_h4")}>${_text_resume($scope4_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_de"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14853
14853
|
icon_branch_default({ size: 12 });
|
|
14854
14854
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
14855
14855
|
_if(() => {
|
|
@@ -14884,7 +14884,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14884
14884
|
return 0;
|
|
14885
14885
|
} else if (filter && catalog && !pasted) {
|
|
14886
14886
|
const $scope8_id = _scope_id();
|
|
14887
|
-
_html(`<p${_attr_class("
|
|
14887
|
+
_html(`<p${_attr_class("_co")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
14888
14888
|
writeScope($scope8_id, {});
|
|
14889
14889
|
return 1;
|
|
14890
14890
|
}
|
|
@@ -14892,10 +14892,10 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14892
14892
|
_if(() => {
|
|
14893
14893
|
if (sheet && input$2.added) {
|
|
14894
14894
|
const $scope6_id = _scope_id();
|
|
14895
|
-
_html(`<div${_attr_class("
|
|
14895
|
+
_html(`<div${_attr_class("_h9")}><p${_attr_class("_h_")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
|
|
14896
14896
|
_for_of(addedList, (repo) => {
|
|
14897
14897
|
const $scope15_id = _scope_id();
|
|
14898
|
-
_html(`<li${_attr_class([addedRow, { ["
|
|
14898
|
+
_html(`<li${_attr_class([addedRow, { ["_dd"]: repo.pending }])}>`);
|
|
14899
14899
|
_if(() => {
|
|
14900
14900
|
if (repo.pending) {
|
|
14901
14901
|
const $scope17_id = _scope_id();
|
|
@@ -14906,13 +14906,13 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14906
14906
|
const $scope18_id = _scope_id();
|
|
14907
14907
|
icon_check_default({
|
|
14908
14908
|
size: 12,
|
|
14909
|
-
class: "
|
|
14909
|
+
class: "_h3"
|
|
14910
14910
|
});
|
|
14911
14911
|
$si__input_added && writeScope($scope18_id, {});
|
|
14912
14912
|
return 1;
|
|
14913
14913
|
}
|
|
14914
14914
|
}, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
|
|
14915
|
-
_html(`<span${_attr_class("
|
|
14915
|
+
_html(`<span${_attr_class("_h4")}>${_text_resume($scope15_id, "d", repoLabel$1(repo.name), $sg__input_added)}</span>`);
|
|
14916
14916
|
_if(() => {
|
|
14917
14917
|
if (repo.baseBranch) {
|
|
14918
14918
|
const $scope16_id = _scope_id();
|
|
@@ -14929,7 +14929,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14929
14929
|
_if(() => {
|
|
14930
14930
|
if (!addedList.length) {
|
|
14931
14931
|
const $scope7_id = _scope_id();
|
|
14932
|
-
_html(`<li${_attr_class([addedRow, "
|
|
14932
|
+
_html(`<li${_attr_class([addedRow, "_dd"])}>`);
|
|
14933
14933
|
_if(() => {
|
|
14934
14934
|
if (catalog) {
|
|
14935
14935
|
const $scope19_id = _scope_id();
|
|
@@ -15167,7 +15167,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15167
15167
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15168
15168
|
}, "p11", $scope0_id);
|
|
15169
15169
|
const titleId = _id();
|
|
15170
|
-
_html(`<div${_attr_class("
|
|
15170
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
15171
15171
|
_set_serialize_reason(30);
|
|
15172
15172
|
const $childScope2 = _peek_scope_id();
|
|
15173
15173
|
page_head_default({
|
|
@@ -15275,7 +15275,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15275
15275
|
_resume_branch($scope6_id);
|
|
15276
15276
|
}, $scope0_id) })
|
|
15277
15277
|
});
|
|
15278
|
-
_html(`<div${_attr_class("
|
|
15278
|
+
_html(`<div${_attr_class("_cv")}><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("_f3")}>Name</span><span${_attr_class(["_f4", "_f5"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15279
15279
|
_if(() => {
|
|
15280
15280
|
if (ws.status !== "active") {
|
|
15281
15281
|
const $scope23_id = _scope_id();
|
|
@@ -15284,8 +15284,8 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15284
15284
|
return 0;
|
|
15285
15285
|
}
|
|
15286
15286
|
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
15287
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15288
|
-
"
|
|
15287
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_f3")}>Path</span><span${_attr_class([
|
|
15288
|
+
"_f4",
|
|
15289
15289
|
"_y",
|
|
15290
15290
|
"_ba"
|
|
15291
15291
|
])}${_attr("title", ws.display_path || ws.path)}><bdi>${_text_resume($scope0_id, "r", ws.display_path || ws.path)}</bdi></span>${_el_resume($scope0_id, "q")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "path" ? "Copied" : "\"Copy path\""} aria-label="Copy path">`);
|
|
@@ -15302,7 +15302,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15302
15302
|
return 1;
|
|
15303
15303
|
}
|
|
15304
15304
|
}, $scope0_id, "s", 1, 1, 1, "</button>", 1);
|
|
15305
|
-
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15305
|
+
_html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_f3")}>Branch</span><span${_attr_class(["_f4", "_y"])}${_attr("title", ws.branch)}>${_text_resume($scope0_id, "w", ws.branch)}</span>${_el_resume($scope0_id, "v")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "branch" ? "Copied" : "\"Copy branch\""} aria-label="Copy branch">`);
|
|
15306
15306
|
_if(() => {
|
|
15307
15307
|
if (copiedFact === "branch") {
|
|
15308
15308
|
const $scope26_id = _scope_id();
|
|
@@ -15340,12 +15340,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15340
15340
|
_if(() => {
|
|
15341
15341
|
if (pendingAction && actionStep) {
|
|
15342
15342
|
const $scope10_id = _scope_id();
|
|
15343
|
-
_html(`<p${_attr_class("
|
|
15343
|
+
_html(`<p${_attr_class("_cc")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15344
15344
|
writeScope($scope10_id, {});
|
|
15345
15345
|
return 0;
|
|
15346
15346
|
}
|
|
15347
15347
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15348
|
-
_html(`<section${_attr_class("
|
|
15348
|
+
_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, "_f2"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15349
15349
|
icon_plus_default({ size: 16 });
|
|
15350
15350
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15351
15351
|
_set_serialize_reason(34);
|
|
@@ -15382,10 +15382,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15382
15382
|
size: 14,
|
|
15383
15383
|
class: catalogRefreshing && "_F"
|
|
15384
15384
|
});
|
|
15385
|
-
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "
|
|
15385
|
+
_html(`</button>${_el_resume($scope0_id, "aa")}</div><ul${_attr_class([list$2, "_c8"])}>`);
|
|
15386
15386
|
_for_of(ws.repos, (row) => {
|
|
15387
15387
|
const $scope1_id = _scope_id();
|
|
15388
|
-
_html(`<li${_attr_class("
|
|
15388
|
+
_html(`<li${_attr_class("_c9")}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope1_id, "c", row.worktree)}/</span><span${_attr_class("_db")}><a${_attr_class("_K")}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "f", repoLabel$1(row.full_name))}</a>${_el_resume($scope1_id, "e")}`);
|
|
15389
15389
|
_if(() => {
|
|
15390
15390
|
if (row.base_branch !== row.default_branch) {
|
|
15391
15391
|
const $scope28_id = _scope_id();
|
|
@@ -15396,7 +15396,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15396
15396
|
return 0;
|
|
15397
15397
|
}
|
|
15398
15398
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
15399
|
-
_html(`</span><span${_attr_class("
|
|
15399
|
+
_html(`</span><span${_attr_class("_dc")}>`);
|
|
15400
15400
|
_if(() => {
|
|
15401
15401
|
if (busy.has(row.full_name)) {
|
|
15402
15402
|
const $scope29_id = _scope_id();
|
|
@@ -15408,7 +15408,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15408
15408
|
const $childScope5 = _peek_scope_id();
|
|
15409
15409
|
arm_button_default({
|
|
15410
15410
|
class: [
|
|
15411
|
-
"
|
|
15411
|
+
"_cn",
|
|
15412
15412
|
"_7",
|
|
15413
15413
|
"_8"
|
|
15414
15414
|
],
|
|
@@ -15439,16 +15439,16 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15439
15439
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15440
15440
|
const $scope31_id = _scope_id();
|
|
15441
15441
|
_html(`<li${_attr_class([
|
|
15442
|
-
"
|
|
15443
|
-
"
|
|
15444
|
-
"
|
|
15445
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15442
|
+
"_c9",
|
|
15443
|
+
"_c_",
|
|
15444
|
+
"_ch"
|
|
15445
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_cm")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15446
15446
|
writeScope($scope31_id, {});
|
|
15447
15447
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15448
15448
|
_if(() => {
|
|
15449
15449
|
if (!ws.repos.length && !busy.size) {
|
|
15450
15450
|
const $scope32_id = _scope_id();
|
|
15451
|
-
_html(`<li${_attr_class(["
|
|
15451
|
+
_html(`<li${_attr_class(["_c9", "_c_"])}><span${_attr_class("_cm")}>No repos yet. Add one to start.</span></li>`);
|
|
15452
15452
|
writeScope($scope32_id, {});
|
|
15453
15453
|
return 0;
|
|
15454
15454
|
}
|
|
@@ -15458,20 +15458,20 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15458
15458
|
_if(() => {
|
|
15459
15459
|
if (running.length) {
|
|
15460
15460
|
const $scope15_id = _scope_id();
|
|
15461
|
-
_html(`<section${_attr_class("
|
|
15461
|
+
_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)}>`);
|
|
15462
15462
|
_for_of(running, (p) => {
|
|
15463
15463
|
const $scope16_id = _scope_id();
|
|
15464
|
-
_html(`<li${_attr_class("
|
|
15464
|
+
_html(`<li${_attr_class("_c9")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_db"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_dc")}>`);
|
|
15465
15465
|
_for_of(p.ports, (port) => {
|
|
15466
15466
|
const $scope33_id = _scope_id();
|
|
15467
15467
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope33_id, "b", port, 2)}</button>${_el_resume($scope33_id, "a")}`);
|
|
15468
15468
|
_script($scope33_id, "p28");
|
|
15469
15469
|
writeScope($scope33_id, { d: port });
|
|
15470
15470
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15471
|
-
_html(`<span${_attr_class(["_y", "
|
|
15472
|
-
"
|
|
15471
|
+
_html(`<span${_attr_class(["_y", "_fT"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15472
|
+
"_cn",
|
|
15473
15473
|
"_7",
|
|
15474
|
-
"
|
|
15474
|
+
"_f1"
|
|
15475
15475
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15476
15476
|
icon_xmark_default({ size: 14 });
|
|
15477
15477
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15492,28 +15492,28 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15492
15492
|
s,
|
|
15493
15493
|
linked: false
|
|
15494
15494
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15495
|
-
_html(`</div><div${_attr_class("
|
|
15495
|
+
_html(`</div><div${_attr_class("_cv")}>`);
|
|
15496
15496
|
_if(() => {
|
|
15497
15497
|
if (allSkills.length) {
|
|
15498
15498
|
const $scope2_id = _scope_id();
|
|
15499
|
-
_html(`<section${_attr_class("
|
|
15499
|
+
_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, "_c8"])}>`);
|
|
15500
15500
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15501
15501
|
const $scope3_id = _scope_id();
|
|
15502
15502
|
const isBusy = skillBusy.has(s.id);
|
|
15503
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15503
|
+
_html(`<li${_attr_class([skillRow, { ["_fV"]: !linked }])}><span${_attr_class("_fX")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15504
15504
|
_if(() => {
|
|
15505
15505
|
if (s.worktree && !s.broken) {
|
|
15506
15506
|
const $scope34_id = _scope_id();
|
|
15507
15507
|
_html(`<span${_attr_class([
|
|
15508
15508
|
"_N",
|
|
15509
15509
|
"_y",
|
|
15510
|
-
"
|
|
15510
|
+
"_fY"
|
|
15511
15511
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope34_id, "b", s.worktree)}/</span>${_el_resume($scope34_id, "a")}`);
|
|
15512
15512
|
writeScope($scope34_id, {});
|
|
15513
15513
|
return 0;
|
|
15514
15514
|
}
|
|
15515
15515
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
15516
|
-
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("
|
|
15516
|
+
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class("_dc")}>`);
|
|
15517
15517
|
_if(() => {
|
|
15518
15518
|
if (s.broken) {
|
|
15519
15519
|
const $scope35_id = _scope_id();
|
|
@@ -15561,10 +15561,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15561
15561
|
const $childScope6 = _peek_scope_id();
|
|
15562
15562
|
arm_button_default({
|
|
15563
15563
|
class: [
|
|
15564
|
-
"
|
|
15564
|
+
"_cn",
|
|
15565
15565
|
"_7",
|
|
15566
15566
|
"_8",
|
|
15567
|
-
"
|
|
15567
|
+
"_f0"
|
|
15568
15568
|
],
|
|
15569
15569
|
disabled: isBusy,
|
|
15570
15570
|
busy: isBusy,
|
|
@@ -15674,10 +15674,10 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15674
15674
|
});
|
|
15675
15675
|
_resume_branch($scope0_id);
|
|
15676
15676
|
});
|
|
15677
|
-
var curRow = "
|
|
15678
|
-
var archived = "
|
|
15679
|
-
var archivedHint = "
|
|
15680
|
-
var archivedRow = "
|
|
15677
|
+
var curRow = "_gc _c9";
|
|
15678
|
+
var archived = "_gh _cd";
|
|
15679
|
+
var archivedHint = "_gi _W";
|
|
15680
|
+
var archivedRow = "_gj _c7 _c5";
|
|
15681
15681
|
//#endregion
|
|
15682
15682
|
//#region src/tags/icons/icon-group.marko
|
|
15683
15683
|
var icon_group_default = _template("hb", (input) => {
|
|
@@ -15846,7 +15846,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15846
15846
|
_html(`<li${_attr_class("_it")}><span${_attr_class("_iu")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15847
15847
|
writeScope($scope9_id, {});
|
|
15848
15848
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15849
|
-
_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("_iv")}><span${_attr_class("
|
|
15849
|
+
_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("_iv")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15850
15850
|
name = _new_name;
|
|
15851
15851
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15852
15852
|
_script($scope3_id, "m8");
|
|
@@ -16053,7 +16053,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16053
16053
|
}
|
|
16054
16054
|
}, "s6", $scope0_id);
|
|
16055
16055
|
const titleId = _id();
|
|
16056
|
-
_html(`<div${_attr_class("
|
|
16056
|
+
_html(`<div${_attr_class("_cs")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ct")}><div${_attr_class("_cu")}>`);
|
|
16057
16057
|
_set_serialize_reason({
|
|
16058
16058
|
0: _serialize_guard($scope0_reason, 2),
|
|
16059
16059
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16077,7 +16077,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16077
16077
|
_resume_branch($scope2_id);
|
|
16078
16078
|
}, $scope0_id) })
|
|
16079
16079
|
});
|
|
16080
|
-
_html(`<div${_attr_class("
|
|
16080
|
+
_html(`<div${_attr_class("_cv")}>`);
|
|
16081
16081
|
_if(() => {
|
|
16082
16082
|
if (error) {
|
|
16083
16083
|
const $scope7_id = _scope_id();
|
|
@@ -16098,9 +16098,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16098
16098
|
return 0;
|
|
16099
16099
|
}
|
|
16100
16100
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16101
|
-
_html(`<label${_attr_class("
|
|
16101
|
+
_html(`<label${_attr_class("_f8")}><span${_attr_class("_cr")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16102
16102
|
name = _new_name;
|
|
16103
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16103
|
+
}, "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("_ga")}><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, "_f_"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
|
|
16104
16104
|
icon_plus_default({ size: 16 });
|
|
16105
16105
|
_html(`</button>${_el_resume($scope0_id, "p")}`);
|
|
16106
16106
|
_set_serialize_reason(34);
|
|
@@ -16138,14 +16138,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16138
16138
|
_html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
|
|
16139
16139
|
_for_of(selected, (repo) => {
|
|
16140
16140
|
const $scope3_id = _scope_id();
|
|
16141
|
-
_html(`<li${_attr_class("
|
|
16141
|
+
_html(`<li${_attr_class("_gb")}><div${_attr_class(curRow)}><span${_attr_class("_da")}>${_text_resume($scope3_id, "d", repoLabel$1(repo.fullName))}</span><span${_attr_class("_dc")}>`);
|
|
16142
16142
|
_if(() => {
|
|
16143
16143
|
if (repo.fork !== void 0) {
|
|
16144
16144
|
const $scope4_id = _scope_id();
|
|
16145
16145
|
_html(`<button${_attr_class([
|
|
16146
16146
|
chip$1,
|
|
16147
|
-
"
|
|
16148
|
-
{ ["
|
|
16147
|
+
"_dg",
|
|
16148
|
+
{ ["_de"]: repo.fork }
|
|
16149
16149
|
])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
16150
16150
|
_if(() => {
|
|
16151
16151
|
if (repo.fork) {
|
|
@@ -16169,7 +16169,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16169
16169
|
_html(`<button${_attr_class([
|
|
16170
16170
|
chip$1,
|
|
16171
16171
|
"_y",
|
|
16172
|
-
{ ["
|
|
16172
|
+
{ ["_de"]: branchesFor === repo.fullName }
|
|
16173
16173
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16174
16174
|
icon_branch_default({ size: 12 });
|
|
16175
16175
|
_html(`${_text_resume($scope3_id, "i", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope3_id, "g")}<button${_attr_class([iconBtnXs, "_7"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -16178,7 +16178,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16178
16178
|
_if(() => {
|
|
16179
16179
|
if (branchesFor === repo.fullName) {
|
|
16180
16180
|
const $scope9_id = _scope_id();
|
|
16181
|
-
_html(`<div${_attr_class("
|
|
16181
|
+
_html(`<div${_attr_class("_gd")}>`);
|
|
16182
16182
|
const $childScope4 = _peek_scope_id();
|
|
16183
16183
|
branch_pick_default({
|
|
16184
16184
|
repo: repo.fullName,
|
|
@@ -16207,7 +16207,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16207
16207
|
_if(() => {
|
|
16208
16208
|
if (!selected.length) {
|
|
16209
16209
|
const $scope14_id = _scope_id();
|
|
16210
|
-
_html(`<li${_attr_class(["
|
|
16210
|
+
_html(`<li${_attr_class(["_c9", "_dd"])}>No repos yet. Add one above, or create it empty.</li>`);
|
|
16211
16211
|
writeScope($scope14_id, {});
|
|
16212
16212
|
return 0;
|
|
16213
16213
|
}
|
|
@@ -16216,10 +16216,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16216
16216
|
_if(() => {
|
|
16217
16217
|
if (busy && steps.length) {
|
|
16218
16218
|
const $scope10_id = _scope_id();
|
|
16219
|
-
_html(`<ul${_attr_class("
|
|
16219
|
+
_html(`<ul${_attr_class("_ge")}>`);
|
|
16220
16220
|
_for_of(steps, (step, i) => {
|
|
16221
16221
|
const $scope11_id = _scope_id();
|
|
16222
|
-
_html(`<li${_attr_class(["
|
|
16222
|
+
_html(`<li${_attr_class(["_gk", { ["_gf"]: i === steps.length - 1 }])}>`);
|
|
16223
16223
|
_if(() => {
|
|
16224
16224
|
if (i === steps.length - 1) {
|
|
16225
16225
|
const $scope15_id = _scope_id();
|
|
@@ -16228,7 +16228,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16228
16228
|
return 0;
|
|
16229
16229
|
} else {
|
|
16230
16230
|
const $scope16_id = _scope_id();
|
|
16231
|
-
_html(`<span${_attr_class("
|
|
16231
|
+
_html(`<span${_attr_class("_gg")}>`);
|
|
16232
16232
|
icon_check_default({ size: 14 });
|
|
16233
16233
|
_html("</span>");
|
|
16234
16234
|
writeScope($scope16_id, {});
|
|
@@ -16242,18 +16242,18 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16242
16242
|
return 0;
|
|
16243
16243
|
}
|
|
16244
16244
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
16245
|
-
_html(`<div${_attr_class("
|
|
16245
|
+
_html(`<div${_attr_class("_f6")}><button type=button${_attr_class([
|
|
16246
16246
|
btnLg,
|
|
16247
16247
|
"_r",
|
|
16248
|
-
"
|
|
16249
|
-
])}${_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("
|
|
16248
|
+
"_f7"
|
|
16249
|
+
])}${_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("_cv")}>`);
|
|
16250
16250
|
_if(() => {
|
|
16251
16251
|
if (archived$1.length) {
|
|
16252
16252
|
const $scope5_id = _scope_id();
|
|
16253
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
16253
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_ga")}><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)}>`);
|
|
16254
16254
|
_for_of(archived$1, (ws) => {
|
|
16255
16255
|
const $scope6_id = _scope_id();
|
|
16256
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16256
|
+
_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)}>`);
|
|
16257
16257
|
_if(() => {
|
|
16258
16258
|
if (restoring === ws.id) {
|
|
16259
16259
|
const $scope17_id = _scope_id();
|
|
@@ -16533,7 +16533,7 @@ var term_default = _template("H", (input) => {
|
|
|
16533
16533
|
}
|
|
16534
16534
|
}, "H9", $scope0_id);
|
|
16535
16535
|
input.keys;
|
|
16536
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16536
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fh")}><div${_attr_class("_fi")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16537
16537
|
_if(() => {
|
|
16538
16538
|
if (findOpen) {
|
|
16539
16539
|
const $scope4_id = _scope_id();
|
|
@@ -16560,7 +16560,7 @@ var term_default = _template("H", (input) => {
|
|
|
16560
16560
|
_if(() => {
|
|
16561
16561
|
if (uploading) {
|
|
16562
16562
|
const $scope5_id = _scope_id();
|
|
16563
|
-
_html(`<div${_attr_class("
|
|
16563
|
+
_html(`<div${_attr_class("_fo")}>uploading…</div>`);
|
|
16564
16564
|
writeScope($scope5_id, {});
|
|
16565
16565
|
return 0;
|
|
16566
16566
|
}
|
|
@@ -16568,7 +16568,7 @@ var term_default = _template("H", (input) => {
|
|
|
16568
16568
|
_if(() => {
|
|
16569
16569
|
if (copiedFlash) {
|
|
16570
16570
|
const $scope6_id = _scope_id();
|
|
16571
|
-
_html(`<div${_attr_class("
|
|
16571
|
+
_html(`<div${_attr_class("_fn")}>Copied</div>`);
|
|
16572
16572
|
writeScope($scope6_id, {});
|
|
16573
16573
|
return 0;
|
|
16574
16574
|
}
|
|
@@ -16577,7 +16577,7 @@ var term_default = _template("H", (input) => {
|
|
|
16577
16577
|
_if(() => {
|
|
16578
16578
|
if (trapOpen) {
|
|
16579
16579
|
const $scope3_id = _scope_id();
|
|
16580
|
-
_html(`<div${_attr_class("
|
|
16580
|
+
_html(`<div${_attr_class("_fp")}><div${_attr_class("_fq")}><p${_attr_class("_fr")}>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")}`);
|
|
16581
16581
|
_script($scope3_id, "H16");
|
|
16582
16582
|
_script($scope3_id, "H17");
|
|
16583
16583
|
writeScope($scope3_id, {});
|
|
@@ -16839,7 +16839,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16839
16839
|
toggleDiff();
|
|
16840
16840
|
}
|
|
16841
16841
|
}, "M14", $scope0_id);
|
|
16842
|
-
_html(`<div${_attr_class(["
|
|
16842
|
+
_html(`<div${_attr_class(["_b8", { ["_b7"]: !input.active }])}><div${_attr_class("_b9")}>`);
|
|
16843
16843
|
_if(() => {
|
|
16844
16844
|
if (error) {
|
|
16845
16845
|
const $scope8_id = _scope_id();
|
|
@@ -16862,7 +16862,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16862
16862
|
_if(() => {
|
|
16863
16863
|
if (diffMounted && ws) {
|
|
16864
16864
|
const $scope1_id = _scope_id();
|
|
16865
|
-
_html(`<div${_attr_class("
|
|
16865
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16866
16866
|
_set_serialize_reason({
|
|
16867
16867
|
0: $sg__input_workspace,
|
|
16868
16868
|
1: $sg__input_workspace,
|
|
@@ -16924,7 +16924,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16924
16924
|
_if(() => {
|
|
16925
16925
|
if (manageMounted && ws) {
|
|
16926
16926
|
const $scope2_id = _scope_id();
|
|
16927
|
-
_html(`<div${_attr_class("
|
|
16927
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16928
16928
|
_set_serialize_reason({
|
|
16929
16929
|
0: $sg__input_workspace,
|
|
16930
16930
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16950,7 +16950,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16950
16950
|
_if(() => {
|
|
16951
16951
|
if (settingsMounted) {
|
|
16952
16952
|
const $scope3_id = _scope_id();
|
|
16953
|
-
_html(`<div${_attr_class("
|
|
16953
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16954
16954
|
_set_serialize_reason({
|
|
16955
16955
|
0: _serialize_guard($scope0_reason, 0),
|
|
16956
16956
|
1: $sg__input_workspace,
|
|
@@ -16992,7 +16992,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16992
16992
|
_if(() => {
|
|
16993
16993
|
if (newMounted) {
|
|
16994
16994
|
const $scope4_id = _scope_id();
|
|
16995
|
-
_html(`<div${_attr_class("
|
|
16995
|
+
_html(`<div${_attr_class("_b_")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16996
16996
|
_set_serialize_reason({
|
|
16997
16997
|
0: 1,
|
|
16998
16998
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17017,13 +17017,13 @@ var work_view_default = _template("M", (input) => {
|
|
|
17017
17017
|
return 0;
|
|
17018
17018
|
}
|
|
17019
17019
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17020
|
-
_html(`<div${_attr_class("
|
|
17020
|
+
_html(`<div${_attr_class("_ca")}${_attr("inert", view !== "term")}>`);
|
|
17021
17021
|
_if(() => {
|
|
17022
17022
|
if (ws && shownSessions) {
|
|
17023
17023
|
const $scope5_id = _scope_id();
|
|
17024
17024
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17025
17025
|
const $scope6_id = _scope_id();
|
|
17026
|
-
_html(`<div${_attr_class("
|
|
17026
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17027
17027
|
_set_serialize_reason(2);
|
|
17028
17028
|
const $childScope5 = _peek_scope_id();
|
|
17029
17029
|
term_default({
|
|
@@ -17049,7 +17049,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
17049
17049
|
_if(() => {
|
|
17050
17050
|
if (!shownSessions.length && view === "term") {
|
|
17051
17051
|
const $scope7_id = _scope_id();
|
|
17052
|
-
_html(`<div${_attr_class("
|
|
17052
|
+
_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>`);
|
|
17053
17053
|
_script($scope7_id, "M39");
|
|
17054
17054
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17055
17055
|
return 0;
|
|
@@ -17059,7 +17059,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
17059
17059
|
return 0;
|
|
17060
17060
|
} else if (ws) {
|
|
17061
17061
|
const $scope10_id = _scope_id();
|
|
17062
|
-
_html(`<p${_attr_class("
|
|
17062
|
+
_html(`<p${_attr_class("_cp")}>Loading sessions…</p>`);
|
|
17063
17063
|
writeScope($scope10_id, {});
|
|
17064
17064
|
return 1;
|
|
17065
17065
|
}
|
|
@@ -17178,8 +17178,8 @@ _template("wb", (input) => {
|
|
|
17178
17178
|
});
|
|
17179
17179
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17180
17180
|
});
|
|
17181
|
-
var sessOpen = "
|
|
17182
|
-
var sessRename = "
|
|
17181
|
+
var sessOpen = "_eP _I";
|
|
17182
|
+
var sessRename = "_eT _J";
|
|
17183
17183
|
//#endregion
|
|
17184
17184
|
//#region src/tags/usage-pcts.marko
|
|
17185
17185
|
var usage_pcts_default = _template("L", (input) => {
|
|
@@ -17191,22 +17191,22 @@ var usage_pcts_default = _template("L", (input) => {
|
|
|
17191
17191
|
if (windows.length) {
|
|
17192
17192
|
const $scope1_id = _scope_id();
|
|
17193
17193
|
_html(`<span${_attr_class([
|
|
17194
|
-
"
|
|
17194
|
+
"_hK",
|
|
17195
17195
|
input.class,
|
|
17196
|
-
{ ["
|
|
17196
|
+
{ ["_hL"]: agent.stale_seconds != null }
|
|
17197
17197
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
17198
17198
|
_for_of(windows, (win$1, i) => {
|
|
17199
17199
|
const $scope2_id = _scope_id();
|
|
17200
|
-
_html(`<span${_attr_class("
|
|
17200
|
+
_html(`<span${_attr_class("_hM")}>`);
|
|
17201
17201
|
_if(() => {
|
|
17202
17202
|
if (i) {
|
|
17203
17203
|
const $scope3_id = _scope_id();
|
|
17204
|
-
_html(`<span${_attr_class("
|
|
17204
|
+
_html(`<span${_attr_class("_hP")} aria-hidden=true>·</span>`);
|
|
17205
17205
|
$si__input_agent && writeScope($scope3_id, {});
|
|
17206
17206
|
return 0;
|
|
17207
17207
|
}
|
|
17208
17208
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17209
|
-
_html(`<span${_attr_class("
|
|
17209
|
+
_html(`<span${_attr_class("_hN")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hO", win$1.used_percent >= 90 ? "_hz" : win$1.used_percent >= 70 ? "_hy" : win$1.used_percent >= 40 ? "_hx" : "_hw"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17210
17210
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17211
17211
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17212
17212
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17248,7 +17248,7 @@ _template("n", (input) => {
|
|
|
17248
17248
|
align: "center",
|
|
17249
17249
|
gap: 8
|
|
17250
17250
|
}), "n2", $scope0_id);
|
|
17251
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17251
|
+
_html(`<button${_attr_class([kbtn, "_eL"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17252
17252
|
_set_serialize_reason({
|
|
17253
17253
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17254
17254
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17262,11 +17262,11 @@ _template("n", (input) => {
|
|
|
17262
17262
|
"_A",
|
|
17263
17263
|
"_bb",
|
|
17264
17264
|
phase[sessionPhase(current$2?.state)]
|
|
17265
|
-
])}></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", "
|
|
17265
|
+
])}></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"])}>`);
|
|
17266
17266
|
_for_of(input.sessions, (s) => {
|
|
17267
17267
|
const $scope1_id = _scope_id();
|
|
17268
17268
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17269
|
-
_html(`<div${_attr_class(["
|
|
17269
|
+
_html(`<div${_attr_class(["_eO", { ["_eN"]: s.id === input.sessionId }])}>`);
|
|
17270
17270
|
_if(() => {
|
|
17271
17271
|
if (renamingId === s.id) {
|
|
17272
17272
|
const $scope5_id = _scope_id();
|
|
@@ -17298,7 +17298,7 @@ _template("n", (input) => {
|
|
|
17298
17298
|
agent: activeAgent(s),
|
|
17299
17299
|
size: 14
|
|
17300
17300
|
});
|
|
17301
|
-
_html(`<span${_attr_class("
|
|
17301
|
+
_html(`<span${_attr_class("_eQ")}><span${_attr_class("_eS")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17302
17302
|
_if(() => {
|
|
17303
17303
|
if (s.id === input.sessionId) {
|
|
17304
17304
|
const $scope7_id = _scope_id();
|
|
@@ -17310,7 +17310,7 @@ _template("n", (input) => {
|
|
|
17310
17310
|
const $childScope4 = _peek_scope_id();
|
|
17311
17311
|
usage_pcts_default({
|
|
17312
17312
|
agent: plan,
|
|
17313
|
-
class: "
|
|
17313
|
+
class: "_eR"
|
|
17314
17314
|
});
|
|
17315
17315
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17316
17316
|
return 0;
|
|
@@ -17327,7 +17327,7 @@ _template("n", (input) => {
|
|
|
17327
17327
|
_if(() => {
|
|
17328
17328
|
if (input.onRenameSession) {
|
|
17329
17329
|
const $scope6_id = _scope_id();
|
|
17330
|
-
_html(`<button${_attr_class(["
|
|
17330
|
+
_html(`<button${_attr_class(["_eU", "_eV"])} title="Rename session">`);
|
|
17331
17331
|
icon_edit_default({ size: 12 });
|
|
17332
17332
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17333
17333
|
_script($scope6_id, "n5");
|
|
@@ -17339,7 +17339,7 @@ _template("n", (input) => {
|
|
|
17339
17339
|
if (input.onCloseSession) {
|
|
17340
17340
|
const $scope3_id = _scope_id();
|
|
17341
17341
|
arm_button_default({
|
|
17342
|
-
class: ["
|
|
17342
|
+
class: ["_eU", "_7"],
|
|
17343
17343
|
title: "Close session",
|
|
17344
17344
|
armedTitle: "Close?",
|
|
17345
17345
|
onFire: _resume(function() {
|
|
@@ -17371,7 +17371,7 @@ _template("n", (input) => {
|
|
|
17371
17371
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17372
17372
|
});
|
|
17373
17373
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17374
|
-
_html(`<div${_attr_class("
|
|
17374
|
+
_html(`<div${_attr_class("_eW")}><span${_attr_class("_eX")}>New session</span><div${_attr_class("_eY")}>`);
|
|
17375
17375
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17376
17376
|
const $scope4_id = _scope_id();
|
|
17377
17377
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -22348,6 +22348,11 @@ async function fetch$1(request, platform) {
|
|
|
22348
22348
|
* refuse unknown hostnames — with the public host kept in
|
|
22349
22349
|
* `X-Forwarded-Host`. Any loopback port except work's own is reachable;
|
|
22350
22350
|
* this sits behind the same auth the rest of the app does.
|
|
22351
|
+
*
|
|
22352
|
+
* Upstream is dialled by name, never `127.0.0.1`: node resolves `localhost`
|
|
22353
|
+
* verbatim, so a vite server listens on `[::1]` alone and an IPv4 literal
|
|
22354
|
+
* gets ECONNREFUSED from a port that is very much serving. The name lets
|
|
22355
|
+
* node try both families and reach a server on either.
|
|
22351
22356
|
*/
|
|
22352
22357
|
function proxyPort(req) {
|
|
22353
22358
|
const host = String(req.headers.host || "");
|
|
@@ -22369,7 +22374,7 @@ function proxyRequest(req, res) {
|
|
|
22369
22374
|
const port = proxyPort(req);
|
|
22370
22375
|
if (!port) return false;
|
|
22371
22376
|
const up = http.request({
|
|
22372
|
-
host: "
|
|
22377
|
+
host: "localhost",
|
|
22373
22378
|
port,
|
|
22374
22379
|
method: req.method,
|
|
22375
22380
|
path: req.url,
|
|
@@ -22390,7 +22395,7 @@ function proxyRequest(req, res) {
|
|
|
22390
22395
|
function proxyUpgrade(req, socket, head) {
|
|
22391
22396
|
const port = proxyPort(req);
|
|
22392
22397
|
if (!port) return false;
|
|
22393
|
-
const up = net.connect(port, "
|
|
22398
|
+
const up = net.connect(port, "localhost");
|
|
22394
22399
|
up.on("connect", () => {
|
|
22395
22400
|
const headers = upstreamHeaders(req, port);
|
|
22396
22401
|
const lines = [`${req.method} ${req.url} HTTP/${req.httpVersion}`];
|
|
@@ -26535,4 +26540,4 @@ server.listen(port, () => {
|
|
|
26535
26540
|
//#endregion
|
|
26536
26541
|
export {};
|
|
26537
26542
|
|
|
26538
|
-
;var __MARKO_MANIFEST__={"
|
|
26543
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-CB4NzxkK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CB4NzxkK.css\"",">"],"defer":[2,"/assets/new-DV5OtPht.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DV5OtPht.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_xrGv6Zps.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_xrGv6Zps.js\"",">",2,"modulepreload#/assets/_Br10NZ6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Br10NZ6d.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-CB4NzxkK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CB4NzxkK.css\"",">"],"defer":[2,"/assets/settings-DV5OtPht.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DV5OtPht.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_xrGv6Zps.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_xrGv6Zps.js\"",">",2,"modulepreload#/assets/_Br10NZ6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Br10NZ6d.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-CB4NzxkK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CB4NzxkK.css\"",">"],"defer":[2,"/assets/w-DV5OtPht.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DV5OtPht.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_xrGv6Zps.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_xrGv6Zps.js\"",">",2,"modulepreload#/assets/_Br10NZ6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Br10NZ6d.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-CB4NzxkK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CB4NzxkK.css\"",">"],"defer":[2,"/assets/w._-DV5OtPht.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DV5OtPht.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_xrGv6Zps.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_xrGv6Zps.js\"",">",2,"modulepreload#/assets/_Br10NZ6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Br10NZ6d.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">",2,"stylesheet#/assets/app-page-CB4NzxkK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CB4NzxkK.css\"",">"],"defer":[2,"/assets/w._-RJq7Wy4Z.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-RJq7Wy4Z.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_xrGv6Zps.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_xrGv6Zps.js\"",">",2,"modulepreload#/assets/_Br10NZ6d.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Br10NZ6d.js\"",">"]},"_z":{"block":[2,"stylesheet#/assets/review-view-BmRsB-40.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-BmRsB-40.css\"",">",2,"stylesheet#/assets/icon-arrow-down-TOdaaJnn.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-TOdaaJnn.css\"",">"],"defer":[2,"/assets/review-view-Dz0lNaF0.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-Dz0lNaF0.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">"]}};
|