@dylanpiercey/work 0.0.155 → 0.0.157

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.
Files changed (77) hide show
  1. package/dist/{_DGEhqy7E.js → _B8Ruz8T9.js} +27 -5
  2. package/dist/_wmfv4tOT.js +2 -0
  3. package/dist/index.mjs +888 -1029
  4. package/dist/public/assets/_2vYIuIib.js +1 -0
  5. package/dist/public/assets/_BB0LITVp.js +1 -0
  6. package/dist/public/assets/_BIJpL70W.js +1 -0
  7. package/dist/public/assets/_BQi9QWKd.js +1 -0
  8. package/dist/public/assets/_BcEuKTJx.js +1 -0
  9. package/dist/public/assets/_Bsl8llqw.js +1 -0
  10. package/dist/public/assets/_BxQ_-xPH.js +1 -0
  11. package/dist/public/assets/_C-2aR8XG.js +1 -0
  12. package/dist/public/assets/_C3ym7hxu.js +1 -0
  13. package/dist/public/assets/_CUAQigw_.js +83 -0
  14. package/dist/public/assets/_CUAQigw_.js.br +0 -0
  15. package/dist/public/assets/_Cf-9k3zD.js +1 -0
  16. package/dist/public/assets/{_1gUZhn72.js → _Cjgj-pBB.js} +1 -1
  17. package/dist/public/assets/_Cjgj-pBB.js.br +0 -0
  18. package/dist/public/assets/_D66zCDkb.js +1 -0
  19. package/dist/public/assets/_DOiEoSai.js +1 -0
  20. package/dist/public/assets/_DfpiGKYM.js +1 -0
  21. package/dist/public/assets/_Jqsd_7oO.js +1 -0
  22. package/dist/public/assets/_SbAHZSQh.js +1 -0
  23. package/dist/public/assets/_YoOFMyGk.js +1 -0
  24. package/dist/public/assets/{_RyGFT-OL.js → _dHGVn24e.js} +4 -4
  25. package/dist/public/assets/_dHGVn24e.js.br +0 -0
  26. package/dist/public/assets/_eF6YdkxU.js +1 -0
  27. package/dist/public/assets/_qEbnUCeE.js +1 -0
  28. package/dist/public/assets/_r5iIfsdp.js +1 -0
  29. package/dist/public/assets/app-page-D2BI9pqy.css +1 -0
  30. package/dist/public/assets/app-page-D2BI9pqy.css.br +0 -0
  31. package/dist/public/assets/diff-view-CDR_rQOe.css +1 -0
  32. package/dist/public/assets/diff-view-CDR_rQOe.css.br +0 -0
  33. package/dist/public/assets/diff-view-CyDQspSd.js +2 -0
  34. package/dist/public/assets/{icon-arrow-down-Cx-52UZC.css → icon-arrow-down-xhBqf52S.css} +1 -1
  35. package/dist/public/assets/icon-arrow-down-xhBqf52S.css.br +0 -0
  36. package/dist/public/assets/new-xKLJRIst.js +1 -0
  37. package/dist/public/assets/settings-xKLJRIst.js +1 -0
  38. package/dist/public/assets/w-xKLJRIst.js +1 -0
  39. package/dist/public/assets/w._-CaFh5fWn.js +1 -0
  40. package/dist/public/assets/w._-xKLJRIst.js +1 -0
  41. package/package.json +1 -1
  42. package/scripts/migrate.mjs +66 -0
  43. package/dist/_Bv4lCw13.js +0 -2
  44. package/dist/public/assets/_1gUZhn72.js.br +0 -0
  45. package/dist/public/assets/_3wdC4kjt.js +0 -1
  46. package/dist/public/assets/_8LoUYieB.js +0 -1
  47. package/dist/public/assets/_BHkh0C4r.js +0 -1
  48. package/dist/public/assets/_BxsNwKYs.js +0 -1
  49. package/dist/public/assets/_C-7E8N0G.js +0 -1
  50. package/dist/public/assets/_CEMoDLXP.js +0 -83
  51. package/dist/public/assets/_CEMoDLXP.js.br +0 -0
  52. package/dist/public/assets/_CH1656a4.js +0 -1
  53. package/dist/public/assets/_CYNLMVHd.js +0 -1
  54. package/dist/public/assets/_CZWK2oF5.js +0 -1
  55. package/dist/public/assets/_C_fb7SlO.js +0 -1
  56. package/dist/public/assets/_Chgv7FAK.js +0 -1
  57. package/dist/public/assets/_CsjqksEp.js +0 -1
  58. package/dist/public/assets/_D0ziDtl8.js +0 -1
  59. package/dist/public/assets/_DEh3RwEA.js +0 -1
  60. package/dist/public/assets/_DK2H3WGf.js +0 -1
  61. package/dist/public/assets/_DyNsNUHj.js +0 -1
  62. package/dist/public/assets/_RyGFT-OL.js.br +0 -0
  63. package/dist/public/assets/_UNGY8FMp.js +0 -1
  64. package/dist/public/assets/__Emydtfa.js +0 -1
  65. package/dist/public/assets/_mywpJcKx.js +0 -1
  66. package/dist/public/assets/_o6cgOqS_.js +0 -1
  67. package/dist/public/assets/app-page-CrdRBxBQ.css +0 -1
  68. package/dist/public/assets/app-page-CrdRBxBQ.css.br +0 -0
  69. package/dist/public/assets/diff-view-Cr-PefQe.js +0 -2
  70. package/dist/public/assets/diff-view-CyfjTVs-.css +0 -1
  71. package/dist/public/assets/diff-view-CyfjTVs-.css.br +0 -0
  72. package/dist/public/assets/icon-arrow-down-Cx-52UZC.css.br +0 -0
  73. package/dist/public/assets/new-C_aFgj9M.js +0 -1
  74. package/dist/public/assets/settings-C_aFgj9M.js +0 -1
  75. package/dist/public/assets/w-C_aFgj9M.js +0 -1
  76. package/dist/public/assets/w._-BmFMmeGE.js +0 -1
  77. package/dist/public/assets/w._-C_aFgj9M.js +0 -1
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
2
- import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./_DGEhqy7E.js";
2
+ import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./_B8Ruz8T9.js";
3
3
  import fs from "node:fs";
4
4
  import http, { createServer } from "node:http";
5
5
  import path from "node:path";
@@ -2283,7 +2283,7 @@ async function ensureGitCredentials(host) {
2283
2283
  "setup-git",
2284
2284
  "--hostname",
2285
2285
  host
2286
- ]).catch(() => {});
2286
+ ], void 0, void 0, { timeoutMs: 3e4 }).catch(() => {});
2287
2287
  }
2288
2288
  function graphqlUrl(host) {
2289
2289
  return host === DEFAULT_HOST ? "https://api.github.com/graphql" : `https://${host}/api/graphql`;
@@ -3489,12 +3489,18 @@ async function ensureBare(fullName) {
3489
3489
  progress$1(`Cloning ${fullName} (first time, may take a while)…`);
3490
3490
  fs.mkdirSync(path.dirname(bare), { recursive: true });
3491
3491
  await ensureGitCredentials(splitRepo(fullName).host);
3492
+ fs.mkdirSync(bare, { recursive: true });
3492
3493
  await git([
3493
- "clone",
3494
+ "init",
3494
3495
  "--bare",
3495
- cloneUrl(fullName),
3496
- bare
3497
- ]);
3496
+ "--quiet"
3497
+ ], bare);
3498
+ await git([
3499
+ "remote",
3500
+ "add",
3501
+ "origin",
3502
+ cloneUrl(fullName)
3503
+ ], bare);
3498
3504
  await git([
3499
3505
  "config",
3500
3506
  "remote.origin.fetch",
@@ -6742,7 +6748,7 @@ function isAuthDeathResponse(res) {
6742
6748
  *
6743
6749
  * Behind an auth proxy, an expired session turns into login HTML (or 401).
6744
6750
  * Reload once — same fix users already apply by hand, hosting-agnostic. */
6745
- async function api$11(url, init) {
6751
+ async function api$10(url, init) {
6746
6752
  const res = await fetch(url, init);
6747
6753
  if (isAuthDeathResponse(res)) {
6748
6754
  reloadOnceForAuth();
@@ -6812,7 +6818,7 @@ function getUsage(refresh = false) {
6812
6818
  if (cached$1 && Date.now() - cached$1.at < TTL_MS) return Promise.resolve(cached$1.value);
6813
6819
  if (inflight) return inflight;
6814
6820
  }
6815
- inflight = api$11(`/api/usage${refresh ? "?refresh" : ""}`).then((value) => {
6821
+ inflight = api$10(`/api/usage${refresh ? "?refresh" : ""}`).then((value) => {
6816
6822
  setCached(value);
6817
6823
  return value;
6818
6824
  }).catch((err) => {
@@ -7246,19 +7252,19 @@ function applyInstance(inst) {
7246
7252
  if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
7247
7253
  syncThemeColorMetas(theme(), inst.accent || "");
7248
7254
  }
7249
- var agentList = "_cZ _ce _cM _cX";
7250
- var agentRow = "_c3 _cN";
7251
- var toolGrid = "_da _cX";
7252
- var toolRow = "_db _cY";
7253
- var themeSeg = "_dz _be";
7254
- var checkList = "_d5 _cc";
7255
- var list$2 = "_cZ _ce _cM _cX";
7256
- var flatCardRow = "_c0 _cY";
7257
- var pop$1 = "_cI __";
7258
- var spinner = "_cL _2 _G";
7259
- var busy = "_cy _cx";
7260
- var pop = "_cA __";
7261
- var sectionCount = "_cb _N _O";
7255
+ var agentList = "_ed _cd _d1 _eb";
7256
+ var agentRow = "_fA _d2";
7257
+ var toolGrid = "_fI _eb";
7258
+ var toolRow = "_fJ _ec";
7259
+ var themeSeg = "_f7 _be";
7260
+ var checkList = "_gC _cb";
7261
+ var list$2 = "_ed _cd _d1 _eb";
7262
+ var flatCardRow = "_ee _ec";
7263
+ var pop$1 = "_fu __";
7264
+ var spinner = "_fx _2 _G";
7265
+ var busy = "_fk _fj";
7266
+ var pop = "_fm __";
7267
+ var sectionCount = "_ca _N _O";
7262
7268
  var iconBtn$1 = "_5 _l";
7263
7269
  //#endregion
7264
7270
  //#region src/tags/icons/icon-refresh.marko
@@ -7299,18 +7305,18 @@ var icon_back_default = _template("R", (input) => {
7299
7305
  var page_head_default = _template("u", (input) => {
7300
7306
  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);
7301
7307
  const $scope0_id = _scope_id();
7302
- _html(`<header${_attr_class("_eb")}>`);
7308
+ _html(`<header${_attr_class("_dW")}>`);
7303
7309
  _if(() => {
7304
7310
  if (input.backHref) {
7305
7311
  const $scope1_id = _scope_id();
7306
- _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
7312
+ _html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
7307
7313
  icon_back_default({ size: 14 });
7308
7314
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
7309
7315
  _serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
7310
7316
  return 0;
7311
7317
  } else if (input.onBack) {
7312
7318
  const $scope2_id = _scope_id();
7313
- _html(`<button${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
7319
+ _html(`<button${_attr_class([iconBtnRow, "_gM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
7314
7320
  icon_back_default({ size: 14 });
7315
7321
  _html(`</button>${_el_resume($scope2_id, "a")}`);
7316
7322
  _script($scope2_id, "u0");
@@ -7318,11 +7324,11 @@ var page_head_default = _template("u", (input) => {
7318
7324
  return 1;
7319
7325
  }
7320
7326
  }, $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);
7321
- _html(`<div${_attr_class("_ed")}><h1${_attr("id", input.titleId)}${_attr_class("_ec")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
7327
+ _html(`<div${_attr_class("_dY")}><h1${_attr("id", input.titleId)}${_attr_class("_dX")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
7322
7328
  _if(() => {
7323
7329
  if (input.meta) {
7324
7330
  const $scope3_id = _scope_id();
7325
- _html(`<p${_attr_class("_ee")}>`);
7331
+ _html(`<p${_attr_class("_dZ")}>`);
7326
7332
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
7327
7333
  _html("</p>");
7328
7334
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -7333,7 +7339,7 @@ var page_head_default = _template("u", (input) => {
7333
7339
  _if(() => {
7334
7340
  if (input.actions) {
7335
7341
  const $scope4_id = _scope_id();
7336
- _html(`<div${_attr_class("_ef")}>`);
7342
+ _html(`<div${_attr_class("_d0")}>`);
7337
7343
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
7338
7344
  _html("</div>");
7339
7345
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -7401,7 +7407,7 @@ var icon_agent_default = _template("L", (input) => {
7401
7407
  n: $badge__closures
7402
7408
  });
7403
7409
  });
7404
- var usageNote = "_g9 _X";
7410
+ var usageNote = "_gT _X";
7405
7411
  //#endregion
7406
7412
  //#region src/tags/icons/icon-warning.marko
7407
7413
  var icon_warning_default = _template("sb", (input) => {
@@ -7431,11 +7437,11 @@ var usage_meters_default = _template("H", (input) => {
7431
7437
  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);
7432
7438
  const $scope0_id = _scope_id();
7433
7439
  const agent = input.agent;
7434
- _html(`<div${_attr_class(["_g3", { ["_g4"]: input.hideName }])}><div${_attr_class("_g5")}>`);
7440
+ _html(`<div${_attr_class(["_gN", { ["_gO"]: input.hideName }])}><div${_attr_class("_gP")}>`);
7435
7441
  _if(() => {
7436
7442
  if (!input.hideName) {
7437
7443
  const $scope1_id = _scope_id();
7438
- _html(`<strong${_attr_class("_hn")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
7444
+ _html(`<strong${_attr_class("_g8")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
7439
7445
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
7440
7446
  return 0;
7441
7447
  }
@@ -7443,7 +7449,7 @@ var usage_meters_default = _template("H", (input) => {
7443
7449
  _if(() => {
7444
7450
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
7445
7451
  const $scope2_id = _scope_id();
7446
- _html(`<span${_attr_class("_g6")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
7452
+ _html(`<span${_attr_class("_gQ")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
7447
7453
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
7448
7454
  return 0;
7449
7455
  }
@@ -7451,21 +7457,21 @@ var usage_meters_default = _template("H", (input) => {
7451
7457
  _if(() => {
7452
7458
  if (agent.stale_seconds != null) {
7453
7459
  const $scope3_id = _scope_id();
7454
- _html(`<span${_attr_class("_g7")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
7460
+ _html(`<span${_attr_class("_gR")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
7455
7461
  icon_warning_default({ size: 12 });
7456
7462
  _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)}`);
7457
7463
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
7458
7464
  return 0;
7459
7465
  }
7460
7466
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
7461
- _html(`</div><div${_attr_class(["_g8", { ["_ho"]: agent.stale_seconds != null }])}>`);
7467
+ _html(`</div><div${_attr_class(["_gS", { ["_g9"]: agent.stale_seconds != null }])}>`);
7462
7468
  _for_of(agent.windows || [], (win) => {
7463
7469
  const $scope4_id = _scope_id();
7464
7470
  const pct = pctText(win.used_percent);
7465
7471
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
7466
- const fillClass = win.used_percent >= 90 ? "_hg" : win.used_percent >= 70 ? "_hf" : win.used_percent >= 40 ? "_he" : "_hd";
7467
- const pctClass = win.used_percent >= 90 ? "_hl" : win.used_percent >= 70 ? "_hk" : win.used_percent >= 40 ? "_hj" : "_hi";
7468
- _html(`<div${_attr_class("_g_")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_ha")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hb")}><span${_attr_class(["_hc", 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(["_hh", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hm")}>`);
7472
+ const fillClass = win.used_percent >= 90 ? "_g1" : win.used_percent >= 70 ? "_g0" : win.used_percent >= 40 ? "_gZ" : "_gY";
7473
+ const pctClass = win.used_percent >= 90 ? "_g6" : win.used_percent >= 70 ? "_g5" : win.used_percent >= 40 ? "_g4" : "_g3";
7474
+ _html(`<div${_attr_class("_gU")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gV")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gW")}><span${_attr_class(["_gX", 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(["_g2", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_g7")}>`);
7469
7475
  _if(() => {
7470
7476
  if (label) {
7471
7477
  const $scope6_id = _scope_id();
@@ -7542,7 +7548,7 @@ var icon_check_default = _template("V", (input) => {
7542
7548
  });
7543
7549
  //#endregion
7544
7550
  //#region src/tags/sso-auth.marko
7545
- var api$10;
7551
+ var api$9;
7546
7552
  var watchProgress$3;
7547
7553
  var sso_auth_default = _template("D", (input) => {
7548
7554
  const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $sg__input_skipped__OR__input_items = _serialize_guard($scope0_reason, 0), $sg__input_skipped = _serialize_guard($scope0_reason, 1);
@@ -7568,7 +7574,7 @@ var sso_auth_default = _template("D", (input) => {
7568
7574
  });
7569
7575
  await watcher.ready;
7570
7576
  try {
7571
- await api$10(`/api/setup/${encodeURIComponent(host)}`, {
7577
+ await api$9(`/api/setup/${encodeURIComponent(host)}`, {
7572
7578
  method: "POST",
7573
7579
  headers: { "content-type": "application/json" },
7574
7580
  body: JSON.stringify({ action: "auth-refresh" })
@@ -7582,14 +7588,14 @@ var sso_auth_default = _template("D", (input) => {
7582
7588
  localCode = null;
7583
7589
  }
7584
7590
  }, "D0", $scope0_id);
7585
- _html(`<div${_attr_class(["_gL", input.class])}>`);
7591
+ _html(`<div${_attr_class(["_hU", input.class])}>`);
7586
7592
  _for_of(input.items, (s) => {
7587
7593
  const $scope1_id = _scope_id();
7588
- _html(`<div${_attr_class("_gM")}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gQ", "_gR"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
7594
+ _html(`<div${_attr_class("_hV")}><span${_attr_class("_hX")}><span${_attr_class("_hY")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hZ", "_h0"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
7589
7595
  _if(() => {
7590
7596
  if (!busy) {
7591
7597
  const $scope2_id = _scope_id();
7592
- _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, "_gS"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
7598
+ _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, "_h1"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
7593
7599
  _script($scope2_id, "D1");
7594
7600
  writeScope($scope2_id, {});
7595
7601
  return 0;
@@ -7604,13 +7610,13 @@ var sso_auth_default = _template("D", (input) => {
7604
7610
  _if(() => {
7605
7611
  if (localBusy && localCode) {
7606
7612
  const $scope4_id = _scope_id();
7607
- _html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gU")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gV")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
7613
+ _html(`<div${_attr_class(["_hV", "_h2"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_h3")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_h4")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
7608
7614
  _script($scope4_id, "D2");
7609
7615
  writeScope($scope4_id, {});
7610
7616
  return 0;
7611
7617
  } else if (localBusy) {
7612
7618
  const $scope6_id = _scope_id();
7613
- _html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
7619
+ _html(`<div${_attr_class(["_hV", "_h2"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
7614
7620
  writeScope($scope6_id, {});
7615
7621
  return 1;
7616
7622
  }
@@ -7618,14 +7624,14 @@ var sso_auth_default = _template("D", (input) => {
7618
7624
  _if(() => {
7619
7625
  if (localError) {
7620
7626
  const $scope5_id = _scope_id();
7621
- _html(`<p${_attr_class(["_gM", "_gW"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
7627
+ _html(`<p${_attr_class(["_hV", "_h5"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
7622
7628
  writeScope($scope5_id, {});
7623
7629
  return 0;
7624
7630
  }
7625
7631
  }, $scope0_id, "d", 1, 1, 1, 0, 1);
7626
7632
  _for_of(skipped, (s) => {
7627
7633
  const $scope3_id = _scope_id();
7628
- _html(`<div${_attr_class(["_gM", "_gN"])}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gQ")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gS"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
7634
+ _html(`<div${_attr_class(["_hV", "_hW"])}><span${_attr_class("_hX")}><span${_attr_class("_hY")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hZ")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_h1"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
7629
7635
  _script($scope3_id, "D3");
7630
7636
  writeScope($scope3_id, {
7631
7637
  i: s?.org,
@@ -7693,7 +7699,7 @@ var skill_chip_default = _template("C", (input) => {
7693
7699
  const $input_tags__closures = /* @__PURE__ */ new Set();
7694
7700
  const $input_actions__closures = /* @__PURE__ */ new Set();
7695
7701
  const $input_trailing__closures = /* @__PURE__ */ new Set();
7696
- _html(`<li${_attr_class("_cw")}>`);
7702
+ _html(`<li${_attr_class("_fi")}>`);
7697
7703
  _if(() => {
7698
7704
  if (input.busy != null) {
7699
7705
  const $scope1_id = _scope_id();
@@ -7703,20 +7709,20 @@ var skill_chip_default = _template("C", (input) => {
7703
7709
  } else {
7704
7710
  const $scope2_id = _scope_id();
7705
7711
  const popId = _id();
7706
- _html(`<button${_attr_class("_cx")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
7712
+ _html(`<button${_attr_class("_fj")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
7707
7713
  _if(() => {
7708
7714
  if (input.hint) {
7709
7715
  const $scope3_id = _scope_id();
7710
- _html(`<span${_attr_class("_cz")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
7716
+ _html(`<span${_attr_class("_fl")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
7711
7717
  $si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
7712
7718
  return 0;
7713
7719
  }
7714
7720
  }, $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);
7715
- _html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
7721
+ _html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cf", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
7716
7722
  _if(() => {
7717
7723
  if (input.description) {
7718
7724
  const $scope4_id = _scope_id();
7719
- _html(`<span${_attr_class("_ci")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
7725
+ _html(`<span${_attr_class("_ch")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
7720
7726
  $si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
7721
7727
  return 0;
7722
7728
  }
@@ -7724,12 +7730,12 @@ var skill_chip_default = _template("C", (input) => {
7724
7730
  _if(() => {
7725
7731
  if (input.sourceUrl) {
7726
7732
  const $scope5_id = _scope_id();
7727
- _html(`<a${_attr_class(["_ci", "_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))}`);
7733
+ _html(`<a${_attr_class(["_ch", "_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))}`);
7728
7734
  $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) })));
7729
7735
  return 0;
7730
7736
  } else if (input.source) {
7731
7737
  const $scope6_id = _scope_id();
7732
- _html(`<span${_attr_class("_ci")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
7738
+ _html(`<span${_attr_class("_ch")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
7733
7739
  $si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
7734
7740
  _: _scope_with_id($scope2_id),
7735
7741
  Cs: $si__input_source && 1
@@ -7737,7 +7743,7 @@ var skill_chip_default = _template("C", (input) => {
7737
7743
  return 1;
7738
7744
  } else if (input.noteLocal) {
7739
7745
  const $scope10_id = _scope_id();
7740
- _html(`<span${_attr_class(["_ci", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
7746
+ _html(`<span${_attr_class(["_ch", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
7741
7747
  _serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
7742
7748
  return 2;
7743
7749
  }
@@ -7745,7 +7751,7 @@ var skill_chip_default = _template("C", (input) => {
7745
7751
  _if(() => {
7746
7752
  if (input.tags) {
7747
7753
  const $scope7_id = _scope_id();
7748
- _html(`<span${_attr_class("_ch")}>`);
7754
+ _html(`<span${_attr_class("_cg")}>`);
7749
7755
  _dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
7750
7756
  _html("</span>");
7751
7757
  $si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
@@ -7755,7 +7761,7 @@ var skill_chip_default = _template("C", (input) => {
7755
7761
  _if(() => {
7756
7762
  if (input.actions) {
7757
7763
  const $scope8_id = _scope_id();
7758
- _html(`<div${_attr_class("_cB")}>`);
7764
+ _html(`<div${_attr_class("_fn")}>`);
7759
7765
  _dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
7760
7766
  _html("</div>");
7761
7767
  $si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
@@ -7866,7 +7872,7 @@ var icon_moon_default = _template("jb", (input) => {
7866
7872
  });
7867
7873
  //#endregion
7868
7874
  //#region src/tags/prompt-dialog.css.ts
7869
- var promptDlg = "_g2 _gY";
7875
+ var promptDlg = "_hT _hP";
7870
7876
  //#endregion
7871
7877
  //#region src/tags/dialog-close.marko
7872
7878
  var dialog_close_default = _template("f", (input) => {
@@ -7890,7 +7896,7 @@ var modal_view_default = _template("s", (input) => {
7890
7896
  const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
7891
7897
  const dismissable = input.dismissable !== false;
7892
7898
  let open = input.open;
7893
- _html(`<dialog${_attr_class(["_gX", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
7899
+ _html(`<dialog${_attr_class(["_hO", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
7894
7900
  ...htmlInput,
7895
7901
  open: null
7896
7902
  }, {
@@ -7900,20 +7906,20 @@ var modal_view_default = _template("s", (input) => {
7900
7906
  closedby: 1,
7901
7907
  "on-cancel": 1,
7902
7908
  "on-close": 1
7903
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_g0")}>`);
7909
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_hR")}>`);
7904
7910
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
7905
7911
  _html("</div>");
7906
7912
  _if(() => {
7907
7913
  if (footer) {
7908
7914
  const $scope1_id = _scope_id();
7909
- _html(`<form method=dialog${_attr_class("_g1")}>`);
7915
+ _html(`<form method=dialog${_attr_class("_hS")}>`);
7910
7916
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
7911
7917
  _html("</form>");
7912
7918
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
7913
7919
  return 0;
7914
7920
  } else if (input.openChange) {
7915
7921
  const $scope2_id = _scope_id();
7916
- _html(`<form method=dialog${_attr_class("_g1")}>`);
7922
+ _html(`<form method=dialog${_attr_class("_hS")}>`);
7917
7923
  dialog_close_default({
7918
7924
  class: ["_q", "_r"],
7919
7925
  content: _content("s0", () => {
@@ -7997,7 +8003,7 @@ var prompt_dialog_default = _template("v", (input) => {
7997
8003
  content: _content("v7", () => {
7998
8004
  _scope_reason();
7999
8005
  const $scope2_id = _scope_id();
8000
- _html(`<h2${_attr_class("_gZ")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
8006
+ _html(`<h2${_attr_class("_hQ")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
8001
8007
  value = _new_value;
8002
8008
  }, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
8003
8009
  _script($scope2_id, "v5");
@@ -8027,7 +8033,7 @@ var prompt_dialog_default = _template("v", (input) => {
8027
8033
  });
8028
8034
  //#endregion
8029
8035
  //#region src/tags/settings-page.marko
8030
- var api$9;
8036
+ var api$8;
8031
8037
  var isTransientApiError$2;
8032
8038
  var watchProgress$2;
8033
8039
  var MISSING_LABEL = {
@@ -8123,7 +8129,7 @@ var settings_page_default = _template("y", (input$3) => {
8123
8129
  }, "y9", $scope0_id);
8124
8130
  const syncAgents = _resume(async () => {
8125
8131
  try {
8126
- const snap = await api$9("/api/settings");
8132
+ const snap = await api$8("/api/settings");
8127
8133
  input$3.agentsChange?.(snap.agents);
8128
8134
  if (snap.preferredAgent !== input$3.preferred) input$3.preferredChange?.(snap.preferredAgent);
8129
8135
  } catch {}
@@ -8131,7 +8137,7 @@ var settings_page_default = _template("y", (input$3) => {
8131
8137
  let retryWhenBack = false;
8132
8138
  const loadSetup = _resume(async (refresh) => {
8133
8139
  try {
8134
- applySetup(await api$9(`/api/setup${refresh ? "?refresh" : ""}`));
8140
+ applySetup(await api$8(`/api/setup${refresh ? "?refresh" : ""}`));
8135
8141
  retryWhenBack = false;
8136
8142
  } catch (err) {
8137
8143
  if (isTransientApiError$2(err)) retryWhenBack = true;
@@ -8140,7 +8146,7 @@ var settings_page_default = _template("y", (input$3) => {
8140
8146
  }, "y11", $scope0_id);
8141
8147
  const loadSelf = _resume(async (refresh) => {
8142
8148
  try {
8143
- const info = await api$9(`/api/setup/self${refresh ? "?refresh" : ""}`);
8149
+ const info = await api$8(`/api/setup/self${refresh ? "?refresh" : ""}`);
8144
8150
  self = info;
8145
8151
  if (info.updating) selfUpdating = true;
8146
8152
  } catch {}
@@ -8150,7 +8156,7 @@ var settings_page_default = _template("y", (input$3) => {
8150
8156
  selfUpdating = true;
8151
8157
  const from = self.version;
8152
8158
  try {
8153
- await api$9("/api/setup/self", { method: "POST" });
8159
+ await api$8("/api/setup/self", { method: "POST" });
8154
8160
  } catch (err) {
8155
8161
  selfUpdating = false;
8156
8162
  error = String(err.message || err);
@@ -8159,7 +8165,7 @@ var settings_page_default = _template("y", (input$3) => {
8159
8165
  const started = Date.now();
8160
8166
  const tick = async () => {
8161
8167
  try {
8162
- if ((await api$9("/api/setup/self")).version !== from) {
8168
+ if ((await api$8("/api/setup/self")).version !== from) {
8163
8169
  location.reload();
8164
8170
  return;
8165
8171
  }
@@ -8201,7 +8207,7 @@ var settings_page_default = _template("y", (input$3) => {
8201
8207
  });
8202
8208
  await watcher.ready;
8203
8209
  try {
8204
- applySetup(await api$9(`/api/setup/${encodeURIComponent(id)}`, {
8210
+ applySetup(await api$8(`/api/setup/${encodeURIComponent(id)}`, {
8205
8211
  method: "POST",
8206
8212
  headers: { "content-type": "application/json" },
8207
8213
  body: JSON.stringify({
@@ -8235,7 +8241,7 @@ var settings_page_default = _template("y", (input$3) => {
8235
8241
  const loadSkills = _resume(async () => {
8236
8242
  const seq = ++skillSeq.issued;
8237
8243
  try {
8238
- applySkills(await api$9("/api/skills"), seq);
8244
+ applySkills(await api$8("/api/skills"), seq);
8239
8245
  } catch {}
8240
8246
  }, "y20", $scope0_id);
8241
8247
  const runSkill = _resume(async (key, body) => {
@@ -8246,7 +8252,7 @@ var settings_page_default = _template("y", (input$3) => {
8246
8252
  await watcher.ready;
8247
8253
  const seq = ++skillSeq.issued;
8248
8254
  try {
8249
- applySkills(await api$9("/api/skills", {
8255
+ applySkills(await api$8("/api/skills", {
8250
8256
  method: "POST",
8251
8257
  headers: { "content-type": "application/json" },
8252
8258
  body: JSON.stringify(body)
@@ -8289,7 +8295,7 @@ var settings_page_default = _template("y", (input$3) => {
8289
8295
  backupBusy = "preflight";
8290
8296
  backupLine = "";
8291
8297
  try {
8292
- const found = await api$9("/api/backup/preflight", { method: "POST" });
8298
+ const found = await api$8("/api/backup/preflight", { method: "POST" });
8293
8299
  if (found.workspaces.length) preflight = found;
8294
8300
  else downloadManifest();
8295
8301
  } catch (err) {
@@ -8312,7 +8318,7 @@ var settings_page_default = _template("y", (input$3) => {
8312
8318
  return;
8313
8319
  }
8314
8320
  try {
8315
- const preview = await api$9("/api/backup/preview", {
8321
+ const preview = await api$8("/api/backup/preview", {
8316
8322
  method: "POST",
8317
8323
  headers: { "content-type": "application/json" },
8318
8324
  body: JSON.stringify(manifest)
@@ -8348,7 +8354,7 @@ var settings_page_default = _template("y", (input$3) => {
8348
8354
  });
8349
8355
  await watcher.ready;
8350
8356
  try {
8351
- const n = (await api$9("/api/backup/restore", {
8357
+ const n = (await api$8("/api/backup/restore", {
8352
8358
  method: "POST",
8353
8359
  headers: { "content-type": "application/json" },
8354
8360
  body: JSON.stringify({
@@ -8384,7 +8390,7 @@ var settings_page_default = _template("y", (input$3) => {
8384
8390
  skillSearching = true;
8385
8391
  skillTimer.id = setTimeout(async () => {
8386
8392
  try {
8387
- const res = await api$9(`/api/skills/search?q=${encodeURIComponent(q.trim())}`);
8393
+ const res = await api$8(`/api/skills/search?q=${encodeURIComponent(q.trim())}`);
8388
8394
  if (skillQuery === q) skillHits = res;
8389
8395
  } catch (err) {
8390
8396
  error = String(err.message || err);
@@ -8397,7 +8403,7 @@ var settings_page_default = _template("y", (input$3) => {
8397
8403
  hostBusy = true;
8398
8404
  error = null;
8399
8405
  try {
8400
- applySetup(await api$9("/api/github/hosts", {
8406
+ applySetup(await api$8("/api/github/hosts", {
8401
8407
  method: "POST",
8402
8408
  headers: { "content-type": "application/json" },
8403
8409
  body: JSON.stringify({
@@ -8421,7 +8427,7 @@ var settings_page_default = _template("y", (input$3) => {
8421
8427
  const setPreferred = _resume(async (agent) => {
8422
8428
  input$3.preferredChange?.(agent);
8423
8429
  try {
8424
- await api$9("/api/settings", {
8430
+ await api$8("/api/settings", {
8425
8431
  method: "PUT",
8426
8432
  headers: { "content-type": "application/json" },
8427
8433
  body: JSON.stringify({ preferredAgent: agent })
@@ -8441,7 +8447,7 @@ var settings_page_default = _template("y", (input$3) => {
8441
8447
  clearTimeout(saveTimer.id);
8442
8448
  saveTimer.id = setTimeout(async () => {
8443
8449
  try {
8444
- const snap = await api$9("/api/settings", {
8450
+ const snap = await api$8("/api/settings", {
8445
8451
  method: "PUT",
8446
8452
  headers: { "content-type": "application/json" },
8447
8453
  body: JSON.stringify({ instance: next })
@@ -8461,7 +8467,7 @@ var settings_page_default = _template("y", (input$3) => {
8461
8467
  if (on) off.delete(id);
8462
8468
  else off.add(id);
8463
8469
  try {
8464
- const snap = await api$9("/api/settings", {
8470
+ const snap = await api$8("/api/settings", {
8465
8471
  method: "PUT",
8466
8472
  headers: { "content-type": "application/json" },
8467
8473
  body: JSON.stringify({ disabledAgents: [...off] })
@@ -8493,7 +8499,7 @@ var settings_page_default = _template("y", (input$3) => {
8493
8499
  searching = true;
8494
8500
  searchTimer.id = setTimeout(async () => {
8495
8501
  try {
8496
- const res = await api$9(`/api/setup/search?q=${encodeURIComponent(q.trim())}`);
8502
+ const res = await api$8(`/api/setup/search?q=${encodeURIComponent(q.trim())}`);
8497
8503
  if (query === q) hits = res;
8498
8504
  } catch (err) {
8499
8505
  error = String(err.message || err);
@@ -8519,7 +8525,7 @@ var settings_page_default = _template("y", (input$3) => {
8519
8525
  const githubId = _id();
8520
8526
  const backupId = _id();
8521
8527
  const machineId = _id();
8522
- _html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
8528
+ _html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
8523
8529
  _set_serialize_reason({
8524
8530
  0: _serialize_guard($scope0_reason, 4),
8525
8531
  1: $sg__input_backHref__OR__input_onExit,
@@ -8531,7 +8537,7 @@ var settings_page_default = _template("y", (input$3) => {
8531
8537
  if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
8532
8538
  _scope_reason();
8533
8539
  const $scope4_id = _scope_id();
8534
- _html(`<span${_attr_class("_c2")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
8540
+ _html(`<span${_attr_class("_fz")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
8535
8541
  _subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
8536
8542
  _resume_branch($scope4_id);
8537
8543
  }, $scope0_id) });
@@ -8584,16 +8590,16 @@ var settings_page_default = _template("y", (input$3) => {
8584
8590
  _if(() => {
8585
8591
  if (selfUpdatePending || selfUpdating) {
8586
8592
  const $scope44_id = _scope_id();
8587
- _html(`<div${_attr_class("_dD")} role=status><div${_attr_class("_dE")}>`);
8593
+ _html(`<div${_attr_class("_ga")} role=status><div${_attr_class("_gb")}>`);
8588
8594
  _if(() => {
8589
8595
  if (selfUpdating) {
8590
8596
  const $scope79_id = _scope_id();
8591
- _html(`<span${_attr_class("_dF")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dG")}>The app restarts and reloads when it is done.</span>`);
8597
+ _html(`<span${_attr_class("_gc")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_gd")}>The app restarts and reloads when it is done.</span>`);
8592
8598
  writeScope($scope79_id, {});
8593
8599
  return 0;
8594
8600
  } else {
8595
8601
  const $scope45_id = _scope_id();
8596
- _html(`<span${_attr_class("_dF")}>Update available</span><span${_attr_class("_dG")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
8602
+ _html(`<span${_attr_class("_gc")}>Update available</span><span${_attr_class("_gd")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
8597
8603
  _subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
8598
8604
  return 1;
8599
8605
  }
@@ -8612,11 +8618,11 @@ var settings_page_default = _template("y", (input$3) => {
8612
8618
  return 0;
8613
8619
  }
8614
8620
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
8615
- _html(`<section${_attr_class("_b_")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ca")}><h2${_attr("id", agentsId)}${_attr_class("_cn")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c4")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
8621
+ _html(`<section${_attr_class("_b9")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_b_")}><h2${_attr("id", agentsId)}${_attr_class("_cm")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_fB")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
8616
8622
  _attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
8617
8623
  setPreferred(v);
8618
8624
  }, "y2", $scope0_id), () => {
8619
- _html(`<select${_attr_class(["_p", "_c5"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
8625
+ _html(`<select${_attr_class(["_p", "_fC"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
8620
8626
  _for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
8621
8627
  const $scope80_id = _scope_id();
8622
8628
  _html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
@@ -8630,14 +8636,14 @@ var settings_page_default = _template("y", (input$3) => {
8630
8636
  const rows = lone ? [] : a.instances;
8631
8637
  const loneAccounts = lone ? accountsFor(lone.id) : [];
8632
8638
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
8633
- _html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c6", { ["_c8"]: lone && !lone.enabled }])}>`);
8639
+ _html(`<li${_attr_class(agentRow)}><div${_attr_class(["_fD", { ["_fF"]: lone && !lone.enabled }])}>`);
8634
8640
  _set_serialize_reason(12);
8635
8641
  const $childScope3 = _peek_scope_id();
8636
8642
  icon_agent_default({
8637
8643
  agent: a.id,
8638
8644
  size: 18
8639
8645
  });
8640
- _html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
8646
+ _html(`<div${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
8641
8647
  _if(() => {
8642
8648
  if (lone && input$3.preferred === lone.id) {
8643
8649
  const $scope81_id = _scope_id();
@@ -8650,12 +8656,12 @@ var settings_page_default = _template("y", (input$3) => {
8650
8656
  _if(() => {
8651
8657
  if (active.has(a.id)) {
8652
8658
  const $scope12_id = _scope_id();
8653
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
8659
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
8654
8660
  _subscribe($active__closures, writeScope($scope12_id, {}));
8655
8661
  return 0;
8656
8662
  } else if (!a.installed) {
8657
8663
  const $scope82_id = _scope_id();
8658
- _html(`<span${_attr_class("_ci")}>Not installed</span>`);
8664
+ _html(`<span${_attr_class("_ch")}>Not installed</span>`);
8659
8665
  writeScope($scope82_id, {});
8660
8666
  return 1;
8661
8667
  }
@@ -8683,15 +8689,15 @@ var settings_page_default = _template("y", (input$3) => {
8683
8689
  _if(() => {
8684
8690
  if (rows.length || loneAccounts.length || extraAccounts.length) {
8685
8691
  const $scope2_id = _scope_id();
8686
- _html(`<ul${_attr_class(["_c_", { ["_c8"]: lone && !lone.enabled }])}>`);
8692
+ _html(`<ul${_attr_class(["_fH", { ["_fF"]: lone && !lone.enabled }])}>`);
8687
8693
  _for_of(rows, (inst) => {
8688
8694
  const $scope3_id = _scope_id();
8689
8695
  const accounts = accountsFor(inst.id);
8690
- _html(`<li${_attr_class(["_c7", { ["_c8"]: !inst.enabled }])}><div${_attr_class("_c6")}>`);
8696
+ _html(`<li${_attr_class(["_fE", { ["_fF"]: !inst.enabled }])}><div${_attr_class("_fD")}>`);
8691
8697
  _set_serialize_reason(12);
8692
8698
  const $childScope4 = _peek_scope_id();
8693
8699
  icon_agent_default({ agent: inst.id });
8694
- _html(`<span${_attr_class(["_c9", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
8700
+ _html(`<span${_attr_class(["_fG", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
8695
8701
  _if(() => {
8696
8702
  if (input$3.preferred === inst.id) {
8697
8703
  const $scope83_id = _scope_id();
@@ -8773,21 +8779,21 @@ var settings_page_default = _template("y", (input$3) => {
8773
8779
  _if(() => {
8774
8780
  if (!usage && families.length) {
8775
8781
  const $scope88_id = _scope_id();
8776
- _html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
8782
+ _html(`<p${_attr_class("_cj")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
8777
8783
  writeScope($scope88_id, {});
8778
8784
  return 0;
8779
8785
  } else if (usage?.error) {
8780
8786
  const $scope8_id = _scope_id();
8781
- _html(`<p${_attr_class("_ck")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
8787
+ _html(`<p${_attr_class("_cj")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
8782
8788
  writeScope($scope8_id, {});
8783
8789
  return 1;
8784
8790
  }
8785
8791
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
8786
- _html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ca")}><h2${_attr("id", githubId)}${_attr_class("_cn")}>GitHub</h2>`);
8792
+ _html(`</section><section${_attr_class("_b9")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_b_")}><h2${_attr("id", githubId)}${_attr_class("_cm")}>GitHub</h2>`);
8787
8793
  _if(() => {
8788
8794
  if (setup && !addingHost) {
8789
8795
  const $scope42_id = _scope_id();
8790
- _html(`<button${_attr_class([iconBtnRow, "_di"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
8796
+ _html(`<button${_attr_class([iconBtnRow, "_fQ"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
8791
8797
  icon_plus_default({ size: 16 });
8792
8798
  _html(`</button>${_el_resume($scope42_id, "a")}`);
8793
8799
  _script($scope42_id, "y51");
@@ -8799,10 +8805,10 @@ var settings_page_default = _template("y", (input$3) => {
8799
8805
  if (setup) {
8800
8806
  const $scope41_id = _scope_id();
8801
8807
  _html(`<form${_attr_class([
8802
- "_cC",
8803
- "_di",
8804
- { ["_cD"]: !addingHost }
8805
- ])}><label${_attr_class(["_1", "_cF"])}>`);
8808
+ "_fo",
8809
+ "_fQ",
8810
+ { ["_fp"]: !addingHost }
8811
+ ])}><label${_attr_class(["_1", "_fr"])}>`);
8806
8812
  icon_github_default({
8807
8813
  size: 14,
8808
8814
  class: "_2"
@@ -8812,12 +8818,12 @@ var settings_page_default = _template("y", (input$3) => {
8812
8818
  }, "y3", $scope41_id))}${_attr_class([
8813
8819
  "_Z",
8814
8820
  "_3",
8815
- "_cG"
8821
+ "_fs"
8816
8822
  ])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
8817
8823
  btnSm,
8818
8824
  "_r",
8819
- "_dh"
8820
- ])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_cH"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
8825
+ "_fP"
8826
+ ])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
8821
8827
  icon_xmark_default({ size: 14 });
8822
8828
  _html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
8823
8829
  _script($scope41_id, "y52");
@@ -8825,19 +8831,19 @@ var settings_page_default = _template("y", (input$3) => {
8825
8831
  return 0;
8826
8832
  }
8827
8833
  }, $scope0_id, "w", 1, 1, 1, 0, 1);
8828
- _html(`</div><div${_attr_class(["_ce", "_cM"])}>`);
8834
+ _html(`</div><div${_attr_class(["_cd", "_d1"])}>`);
8829
8835
  _for_of(setup?.github || [], (h) => {
8830
8836
  const $scope6_id = _scope_id();
8831
8837
  const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
8832
8838
  const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
8833
8839
  const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
8834
8840
  const busy = active.has(h.host);
8835
- _html(`<div${_attr_class(["_cN", "_dj"])}><div${_attr_class("_dk")}>`);
8841
+ _html(`<div${_attr_class(["_d2", "_fR"])}><div${_attr_class("_fS")}>`);
8836
8842
  icon_github_default({
8837
8843
  size: 18,
8838
- class: "_dl"
8844
+ class: "_fT"
8839
8845
  });
8840
- _html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
8846
+ _html(`<div${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
8841
8847
  _if(() => {
8842
8848
  if (h.isEnterprise) {
8843
8849
  const $scope91_id = _scope_id();
@@ -8850,25 +8856,25 @@ var settings_page_default = _template("y", (input$3) => {
8850
8856
  _if(() => {
8851
8857
  if (busy) {
8852
8858
  const $scope13_id = _scope_id();
8853
- _html(`<span${_attr_class(["_ci", "_dm"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
8859
+ _html(`<span${_attr_class(["_ch", "_fU"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
8854
8860
  _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
8855
8861
  return 0;
8856
8862
  } else if (h.authed) {
8857
8863
  const $scope89_id = _scope_id();
8858
- _html(`<span${_attr_class(["_ci", "_dm"])}>`);
8864
+ _html(`<span${_attr_class(["_ch", "_fU"])}>`);
8859
8865
  icon_check_default({
8860
8866
  size: 12,
8861
- class: "_dn"
8867
+ class: "_fV"
8862
8868
  });
8863
- _html(` Signed in as <strong${_attr_class("_dp")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
8869
+ _html(` Signed in as <strong${_attr_class("_fX")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
8864
8870
  writeScope($scope89_id, {});
8865
8871
  return 1;
8866
8872
  } else if (h.error) {
8867
8873
  const $scope90_id = _scope_id();
8868
8874
  _html(`<span${_attr_class([
8869
- "_ci",
8870
- "_dm",
8871
- "_do"
8875
+ "_ch",
8876
+ "_fU",
8877
+ "_fW"
8872
8878
  ])}>`);
8873
8879
  icon_warning_default({ size: 12 });
8874
8880
  _html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
@@ -8876,7 +8882,7 @@ var settings_page_default = _template("y", (input$3) => {
8876
8882
  return 2;
8877
8883
  } else {
8878
8884
  const $scope92_id = _scope_id();
8879
- _html(`<span${_attr_class(["_ci", "_dm"])}>Not signed in</span>`);
8885
+ _html(`<span${_attr_class(["_ch", "_fU"])}>Not signed in</span>`);
8880
8886
  writeScope($scope92_id, {});
8881
8887
  return 3;
8882
8888
  }
@@ -8907,7 +8913,7 @@ var settings_page_default = _template("y", (input$3) => {
8907
8913
  if (h.isEnterprise) {
8908
8914
  const $scope33_id = _scope_id();
8909
8915
  _html(`<button${_attr_class([
8910
- "_cj",
8916
+ "_ci",
8911
8917
  "_8",
8912
8918
  "_9",
8913
8919
  { ["_s"]: confirmingRemove === h.host }
@@ -8941,7 +8947,7 @@ var settings_page_default = _template("y", (input$3) => {
8941
8947
  _if(() => {
8942
8948
  if (busy && authCodes.has(h.host)) {
8943
8949
  const $scope30_id = _scope_id();
8944
- _html(`<div${_attr_class("_dq")}><span${_attr_class("_dr")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dt")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_ds")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
8950
+ _html(`<div${_attr_class("_fY")}><span${_attr_class("_fZ")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_f1")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_f0")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
8945
8951
  _subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
8946
8952
  return 0;
8947
8953
  }
@@ -8953,7 +8959,7 @@ var settings_page_default = _template("y", (input$3) => {
8953
8959
  _set_serialize_reason(30);
8954
8960
  const $childScope9 = _peek_scope_id();
8955
8961
  sso_auth_default({
8956
- class: ["_cN", "_du"],
8962
+ class: ["_d2", "_f2"],
8957
8963
  items: hostSso$1,
8958
8964
  skipped: skippedSso,
8959
8965
  busy,
@@ -8987,23 +8993,23 @@ var settings_page_default = _template("y", (input$3) => {
8987
8993
  _if(() => {
8988
8994
  if (setup && !setup.github.length) {
8989
8995
  const $scope95_id = _scope_id();
8990
- _html(`<p${_attr_class("_ck")}>Install the GitHub CLI below to sign in.</p>`);
8996
+ _html(`<p${_attr_class("_cj")}>Install the GitHub CLI below to sign in.</p>`);
8991
8997
  writeScope($scope95_id, {});
8992
8998
  return 0;
8993
8999
  }
8994
9000
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
8995
- _html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ca")}><h2${_attr("id", machineId)}${_attr_class("_cn")}>Machine</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: skillsOpen }])}><button${_attr_class("_cR")} aria-expanded=true>`);
9001
+ _html(`</section><section${_attr_class("_b9")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_b_")}><h2${_attr("id", machineId)}${_attr_class("_cm")}>Machine</h2></div><div${_attr_class(["_cd", "_d1"])}><div${_attr_class(["_d2", "_d3"])}><div${_attr_class(["_d4", { ["_d5"]: skillsOpen }])}><button${_attr_class("_d6")} aria-expanded=true>`);
8996
9002
  _set_serialize_reason(1);
8997
9003
  const $childScope10 = _peek_scope_id();
8998
9004
  icon_chevron_right_default({
8999
9005
  size: 12,
9000
- class: ["_cV", { ["_cW"]: skillsOpen }]
9006
+ class: ["_d_", { ["_ea"]: skillsOpen }]
9001
9007
  });
9002
- _html(`<span${_attr_class("_cS")}>Skills</span>`);
9008
+ _html(`<span${_attr_class("_d7")}>Skills</span>`);
9003
9009
  _if(() => {
9004
9010
  if (skills?.global.length) {
9005
9011
  const $scope51_id = _scope_id();
9006
- _html(`<span${_attr_class("_cT")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
9012
+ _html(`<span${_attr_class("_d8")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
9007
9013
  writeScope($scope51_id, {});
9008
9014
  return 0;
9009
9015
  }
@@ -9023,7 +9029,7 @@ var settings_page_default = _template("y", (input$3) => {
9023
9029
  _if(() => {
9024
9030
  if (skills?.available && skills.agents.length) {
9025
9031
  const $scope14_id = _scope_id();
9026
- _html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
9032
+ _html(`<div${_attr_class(["_fo", { ["_fp"]: true }])}><label${_attr_class(["_1", "_fr"])}>`);
9027
9033
  _if(() => {
9028
9034
  if (skillSearching) {
9029
9035
  const $scope96_id = _scope_id();
@@ -9043,14 +9049,14 @@ var settings_page_default = _template("y", (input$3) => {
9043
9049
  _html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
9044
9050
  "_Z",
9045
9051
  "_3",
9046
- "_cG"
9047
- ])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
9052
+ "_fs"
9053
+ ])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
9048
9054
  icon_xmark_default({ size: 14 });
9049
- _html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
9055
+ _html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_fv"])}${_attr("hidden", true)}>`);
9050
9056
  _if(() => {
9051
9057
  if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
9052
9058
  const $scope98_id = _scope_id();
9053
- _html(`<li${_attr_class("_cK")}>Searching skills.sh…</li>`);
9059
+ _html(`<li${_attr_class("_fw")}>Searching skills.sh…</li>`);
9054
9060
  writeScope($scope98_id, {});
9055
9061
  return 0;
9056
9062
  }
@@ -9058,11 +9064,11 @@ var settings_page_default = _template("y", (input$3) => {
9058
9064
  _if(() => {
9059
9065
  if (looksLikeSource(skillQuery)) {
9060
9066
  const $scope15_id = _scope_id();
9061
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
9067
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
9062
9068
  _if(() => {
9063
9069
  if (active.has(skillQuery.trim())) {
9064
9070
  const $scope16_id = _scope_id();
9065
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
9071
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
9066
9072
  _subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
9067
9073
  Ch2: 3,
9068
9074
  Chr: 1
@@ -9070,7 +9076,7 @@ var settings_page_default = _template("y", (input$3) => {
9070
9076
  return 0;
9071
9077
  } else {
9072
9078
  const $scope99_id = _scope_id();
9073
- _html(`<span${_attr_class("_ci")}>Add straight from this source</span>`);
9079
+ _html(`<span${_attr_class("_ch")}>Add straight from this source</span>`);
9074
9080
  writeScope($scope99_id, {});
9075
9081
  return 1;
9076
9082
  }
@@ -9093,16 +9099,16 @@ var settings_page_default = _template("y", (input$3) => {
9093
9099
  _for_of(skillHits || [], (h) => {
9094
9100
  const $scope17_id = _scope_id();
9095
9101
  const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
9096
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
9102
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
9097
9103
  _if(() => {
9098
9104
  if (active.has(h.skillId)) {
9099
9105
  const $scope18_id = _scope_id();
9100
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
9106
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
9101
9107
  _subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
9102
9108
  return 0;
9103
9109
  } else {
9104
9110
  const $scope100_id = _scope_id();
9105
- _html(`<span${_attr_class("_ci")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
9111
+ _html(`<span${_attr_class("_ch")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
9106
9112
  writeScope($scope100_id, {});
9107
9113
  return 1;
9108
9114
  }
@@ -9150,7 +9156,7 @@ var settings_page_default = _template("y", (input$3) => {
9150
9156
  _if(() => {
9151
9157
  if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
9152
9158
  const $scope53_id = _scope_id();
9153
- _html(`<li${_attr_class("_cK")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
9159
+ _html(`<li${_attr_class("_fw")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
9154
9160
  _subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
9155
9161
  return 0;
9156
9162
  }
@@ -9165,22 +9171,22 @@ var settings_page_default = _template("y", (input$3) => {
9165
9171
  _if(() => {
9166
9172
  {
9167
9173
  const $scope19_id = _scope_id();
9168
- _html(`<div${_attr_class("_cU")}>`);
9174
+ _html(`<div${_attr_class("_d9")}>`);
9169
9175
  _if(() => {
9170
9176
  if (skills && !skills.agents.length) {
9171
9177
  const $scope103_id = _scope_id();
9172
- _html(`<p${_attr_class("_ck")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
9178
+ _html(`<p${_attr_class("_cj")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
9173
9179
  writeScope($scope103_id, {});
9174
9180
  return 0;
9175
9181
  } else if (skills && !skills.available) {
9176
9182
  const $scope20_id = _scope_id();
9177
- _html(`<p${_attr_class("_ck")}>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($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
9183
+ _html(`<p${_attr_class("_cj")}>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($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
9178
9184
  _script($scope20_id, "y60");
9179
9185
  _subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
9180
9186
  return 1;
9181
9187
  }
9182
9188
  }, $scope19_id, "b", 1, 1, 1, 0, 1);
9183
- _html(`<ul${_attr_class("_cv")}>`);
9189
+ _html(`<ul${_attr_class("_fh")}>`);
9184
9190
  _for_of(skills?.global || [], (s) => {
9185
9191
  const $scope21_id = _scope_id();
9186
9192
  const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
@@ -9256,7 +9262,7 @@ var settings_page_default = _template("y", (input$3) => {
9256
9262
  _if(() => {
9257
9263
  if (skills && !skills.global.length && skills.available && skills.agents.length) {
9258
9264
  const $scope108_id = _scope_id();
9259
- _html(`<p${_attr_class("_ck")}>No skills installed. Search below, or paste an owner/repo.</p>`);
9265
+ _html(`<p${_attr_class("_cj")}>No skills installed. Search below, or paste an owner/repo.</p>`);
9260
9266
  writeScope($scope108_id, {});
9261
9267
  return 0;
9262
9268
  }
@@ -9266,14 +9272,14 @@ var settings_page_default = _template("y", (input$3) => {
9266
9272
  return 0;
9267
9273
  }
9268
9274
  }, $scope0_id, "ab", 1, 1, 1, 0, 1);
9269
- _html(`</div><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: machineOpen }])}><button${_attr_class("_cR")} aria-expanded=${machineOpen ? "true" : "false"}>`);
9275
+ _html(`</div><div${_attr_class(["_d2", "_d3"])}><div${_attr_class(["_d4", { ["_d5"]: machineOpen }])}><button${_attr_class("_d6")} aria-expanded=${machineOpen ? "true" : "false"}>`);
9270
9276
  _set_serialize_reason(1);
9271
9277
  const $childScope12 = _peek_scope_id();
9272
9278
  icon_chevron_right_default({
9273
9279
  size: 12,
9274
- class: ["_cV", { ["_cW"]: machineOpen }]
9280
+ class: ["_d_", { ["_ea"]: machineOpen }]
9275
9281
  });
9276
- _html(`<span${_attr_class("_cS")}>Tools</span><span${_attr_class("_cT")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
9282
+ _html(`<span${_attr_class("_d7")}>Tools</span><span${_attr_class("_d8")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
9277
9283
  _if(() => {
9278
9284
  if (outdatedIds.length > 1) {
9279
9285
  const $scope22_id = _scope_id();
@@ -9306,7 +9312,7 @@ var settings_page_default = _template("y", (input$3) => {
9306
9312
  _if(() => {
9307
9313
  if (setup && setup.mise.installed) {
9308
9314
  const $scope24_id = _scope_id();
9309
- _html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
9315
+ _html(`<div${_attr_class(["_fo", { ["_fp"]: true }])}><label${_attr_class(["_1", "_fr"])}>`);
9310
9316
  _if(() => {
9311
9317
  if (searching) {
9312
9318
  const $scope109_id = _scope_id();
@@ -9326,14 +9332,14 @@ var settings_page_default = _template("y", (input$3) => {
9326
9332
  _html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
9327
9333
  "_Z",
9328
9334
  "_3",
9329
- "_cG"
9330
- ])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
9335
+ "_fs"
9336
+ ])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
9331
9337
  icon_xmark_default({ size: 14 });
9332
- _html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
9338
+ _html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_fv"])}${_attr("hidden", true)}>`);
9333
9339
  _if(() => {
9334
9340
  if (searching && !hits?.length) {
9335
9341
  const $scope111_id = _scope_id();
9336
- _html(`<li${_attr_class("_cK")}>Searching the mise registry…</li>`);
9342
+ _html(`<li${_attr_class("_fw")}>Searching the mise registry…</li>`);
9337
9343
  writeScope($scope111_id, {});
9338
9344
  return 0;
9339
9345
  }
@@ -9341,23 +9347,23 @@ var settings_page_default = _template("y", (input$3) => {
9341
9347
  _if(() => {
9342
9348
  if (hits && !hits.length && !searching) {
9343
9349
  const $scope43_id = _scope_id();
9344
- _html(`<li${_attr_class("_cK")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
9350
+ _html(`<li${_attr_class("_fw")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
9345
9351
  _subscribe($query__closures, writeScope($scope43_id, {}));
9346
9352
  return 0;
9347
9353
  }
9348
9354
  }, $scope24_id, "i", 1, 1, 1, 0, 1);
9349
9355
  _for_of(hits || [], (h) => {
9350
9356
  const $scope25_id = _scope_id();
9351
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
9357
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
9352
9358
  _if(() => {
9353
9359
  if (active.has(h.name)) {
9354
9360
  const $scope26_id = _scope_id();
9355
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
9361
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
9356
9362
  _subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
9357
9363
  return 0;
9358
9364
  } else if (h.description) {
9359
9365
  const $scope112_id = _scope_id();
9360
- _html(`<span${_attr_class("_ci")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
9366
+ _html(`<span${_attr_class("_ch")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
9361
9367
  writeScope($scope112_id, {});
9362
9368
  return 1;
9363
9369
  }
@@ -9402,11 +9408,11 @@ var settings_page_default = _template("y", (input$3) => {
9402
9408
  _if(() => {
9403
9409
  if (machineOpen) {
9404
9410
  const $scope5_id = _scope_id();
9405
- _html(`<div${_attr_class("_cU")}>`);
9411
+ _html(`<div${_attr_class("_d9")}>`);
9406
9412
  _if(() => {
9407
9413
  if (setup && !setup.mise.installed) {
9408
9414
  const $scope27_id = _scope_id();
9409
- _html(`<p${_attr_class("_ck")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
9415
+ _html(`<p${_attr_class("_cj")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
9410
9416
  _script($scope27_id, "y71");
9411
9417
  _subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
9412
9418
  return 0;
@@ -9416,11 +9422,11 @@ var settings_page_default = _template("y", (input$3) => {
9416
9422
  _if(() => {
9417
9423
  if (self) {
9418
9424
  const $scope47_id = _scope_id();
9419
- _html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dd", "_y"])}>work</span>`);
9425
+ _html(`<li${_attr_class(toolRow)}><span${_attr_class(["_fL", "_y"])}>work</span>`);
9420
9426
  _if(() => {
9421
9427
  if (selfUpdating) {
9422
9428
  const $scope114_id = _scope_id();
9423
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
9429
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
9424
9430
  writeScope($scope114_id, {});
9425
9431
  return 0;
9426
9432
  } else {
@@ -9434,7 +9440,7 @@ var settings_page_default = _template("y", (input$3) => {
9434
9440
  return 0;
9435
9441
  } else if (self.latest && self.latest !== self.version) {
9436
9442
  const $scope49_id = _scope_id();
9437
- _html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
9443
+ _html(`<button${_attr_class([btnSm, "_fO"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
9438
9444
  icon_arrow_up_default({ size: 12 });
9439
9445
  _html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
9440
9446
  _script($scope49_id, "y72");
@@ -9478,11 +9484,11 @@ var settings_page_default = _template("y", (input$3) => {
9478
9484
  const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
9479
9485
  const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
9480
9486
  const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
9481
- _html(`<li${_attr_class([toolRow, { ["_dc"]: !t.installed }])}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
9487
+ _html(`<li${_attr_class([toolRow, { ["_fK"]: !t.installed }])}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
9482
9488
  _if(() => {
9483
9489
  if (active.has(t.id)) {
9484
9490
  const $scope29_id = _scope_id();
9485
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
9491
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
9486
9492
  _subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
9487
9493
  return 0;
9488
9494
  } else if (t.installed) {
@@ -9490,11 +9496,11 @@ var settings_page_default = _template("y", (input$3) => {
9490
9496
  _if(() => {
9491
9497
  if (t.version) {
9492
9498
  const $scope40_id = _scope_id();
9493
- _html(`<button${_attr_class(["_df", "_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)}`);
9499
+ _html(`<button${_attr_class(["_fN", "_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)}`);
9494
9500
  _if(() => {
9495
9501
  if (aliasPin(t)) {
9496
9502
  const $scope118_id = _scope_id();
9497
- _html(`<span${_attr_class("_de")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
9503
+ _html(`<span${_attr_class("_fM")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
9498
9504
  _subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
9499
9505
  return 0;
9500
9506
  }
@@ -9513,7 +9519,7 @@ var settings_page_default = _template("y", (input$3) => {
9513
9519
  _if(() => {
9514
9520
  if (outdated(t)) {
9515
9521
  const $scope59_id = _scope_id();
9516
- _html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update to v${t.latest}`)}>`);
9522
+ _html(`<button${_attr_class([btnSm, "_fO"])}${_attr("title", `Update to v${t.latest}`)}>`);
9517
9523
  icon_arrow_up_default({ size: 12 });
9518
9524
  _html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
9519
9525
  _script($scope59_id, "y74");
@@ -9521,7 +9527,7 @@ var settings_page_default = _template("y", (input$3) => {
9521
9527
  return 0;
9522
9528
  } else if (t.newest) {
9523
9529
  const $scope60_id = _scope_id();
9524
- _html(`<button${_attr_class(["_df", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
9530
+ _html(`<button${_attr_class(["_fN", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
9525
9531
  _script($scope60_id, "y75");
9526
9532
  _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($scope60_id, {
9527
9533
  Cw: 1,
@@ -9637,14 +9643,14 @@ var settings_page_default = _template("y", (input$3) => {
9637
9643
  label: "Dark"
9638
9644
  }
9639
9645
  ];
9640
- _html(`</div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ca")}><h2${_attr("id", appearanceId)}${_attr_class("_cn")}>Appearance</h2></div><div${_attr_class(["_ce", "_dv"])}><div${_attr_class("_dH")}><img${_attr_class("_dI")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_dJ")}><span${_attr_class("_dK")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dL")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dw")}><span${_attr_class("_dx")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
9646
+ _html(`</div></div></section><section${_attr_class("_b9")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_b_")}><h2${_attr("id", appearanceId)}${_attr_class("_cm")}>Appearance</h2></div><div${_attr_class(["_cd", "_f3"])}><div${_attr_class("_ge")}><img${_attr_class("_gf")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_gg")}><span${_attr_class("_gh")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_gi")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_f4")}><span${_attr_class("_f5")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
9641
9647
  setInstance({ name: v });
9642
- }, "y4", $scope0_id))}${_attr_class(["_Z", "_dy"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Theme</span><span${_attr_class("_dA")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
9648
+ }, "y4", $scope0_id))}${_attr_class(["_Z", "_f6"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_f4")}><span${_attr_class("_f5")}>Theme</span><span${_attr_class("_f8")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
9643
9649
  _for_of(themeOpts, (opt) => {
9644
9650
  const $scope50_id = _scope_id();
9645
9651
  _html(`<button type=button${_attr_class([
9646
9652
  "_bg",
9647
- "_dM",
9653
+ "_gj",
9648
9654
  { ["_bf"]: themeMode === opt.id }
9649
9655
  ])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
9650
9656
  if (opt.id === "system") {
@@ -9664,28 +9670,28 @@ var settings_page_default = _template("y", (input$3) => {
9664
9670
  _: _scope_with_id($scope0_id)
9665
9671
  });
9666
9672
  }, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
9667
- _html(`</span><span${_attr_class(["_o", "_dB"])}>`);
9673
+ _html(`</span><span${_attr_class(["_o", "_f9"])}>`);
9668
9674
  _attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
9669
9675
  setThemeMode(v);
9670
9676
  }, "y5", $scope0_id), () => {
9671
- _html(`<select${_attr_class(["_p", "_dC"])} aria-label="Color theme">`);
9677
+ _html(`<select${_attr_class(["_p", "_f_"])} aria-label="Color theme">`);
9672
9678
  forOf(themeOpts, (opt) => {
9673
9679
  _scope_id();
9674
9680
  _html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
9675
9681
  });
9676
9682
  _html("</select>");
9677
9683
  });
9678
- _html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Accent</span><span${_attr_class("_dN")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
9679
- "_dO",
9680
- "_dR",
9681
- { ["_dP"]: !accent }
9684
+ _html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_f4")}><span${_attr_class("_f5")}>Accent</span><span${_attr_class("_gk")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
9685
+ "_gl",
9686
+ "_go",
9687
+ { ["_gm"]: !accent }
9682
9688
  ])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
9683
9689
  _if(() => {
9684
9690
  if (!accent) {
9685
9691
  const $scope129_id = _scope_id();
9686
9692
  icon_check_default({
9687
9693
  size: 12,
9688
- class: "_dQ"
9694
+ class: "_gn"
9689
9695
  });
9690
9696
  $si__input_instance_accent && writeScope($scope129_id, {});
9691
9697
  return 0;
@@ -9693,13 +9699,13 @@ var settings_page_default = _template("y", (input$3) => {
9693
9699
  }, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
9694
9700
  _for_of(ACCENT_PRESETS, (p) => {
9695
9701
  const $scope77_id = _scope_id();
9696
- _html(`<button type=button${_attr_class(["_dO", { ["_dP"]: 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)}>`);
9702
+ _html(`<button type=button${_attr_class(["_gl", { ["_gm"]: 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)}>`);
9697
9703
  _if(() => {
9698
9704
  if (accent === p.value) {
9699
9705
  const $scope130_id = _scope_id();
9700
9706
  icon_check_default({
9701
9707
  size: 12,
9702
- class: "_dQ"
9708
+ class: "_gn"
9703
9709
  });
9704
9710
  $si__input_instance_accent && writeScope($scope130_id, {});
9705
9711
  return 0;
@@ -9713,18 +9719,18 @@ var settings_page_default = _template("y", (input$3) => {
9713
9719
  }, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
9714
9720
  const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
9715
9721
  _html(`<label${_attr_class([
9716
- "_dO",
9717
- "_dS",
9718
- { ["_dP"]: customOn }
9722
+ "_gl",
9723
+ "_gp",
9724
+ { ["_gm"]: customOn }
9719
9725
  ])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
9720
9726
  setInstance({ accent: v });
9721
- }, "y6", $scope0_id))}${_attr_class("_dT")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
9727
+ }, "y6", $scope0_id))}${_attr_class("_gq")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
9722
9728
  _if(() => {
9723
9729
  if (customOn) {
9724
9730
  const $scope131_id = _scope_id();
9725
9731
  icon_check_default({
9726
9732
  size: 12,
9727
- class: "_dQ"
9733
+ class: "_gn"
9728
9734
  });
9729
9735
  $si__input_instance_accent && writeScope($scope131_id, {});
9730
9736
  return 0;
@@ -9735,16 +9741,16 @@ var settings_page_default = _template("y", (input$3) => {
9735
9741
  return 1;
9736
9742
  }
9737
9743
  }, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
9738
- _html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ca")}><h2${_attr("id", backupId)}${_attr_class("_cn")}>Backup</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
9744
+ _html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b9")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_b_")}><h2${_attr("id", backupId)}${_attr_class("_cm")}>Backup</h2></div><div${_attr_class(["_cd", "_d1"])}><div${_attr_class("_d2")}><div${_attr_class("_gr")}><div${_attr_class("_ce")}>`);
9739
9745
  _if(() => {
9740
9746
  if (backupBusy === "preflight") {
9741
9747
  const $scope65_id = _scope_id();
9742
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
9748
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
9743
9749
  writeScope($scope65_id, {});
9744
9750
  return 0;
9745
9751
  } else {
9746
9752
  const $scope133_id = _scope_id();
9747
- _html(`<span${_attr_class("_ci")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
9753
+ _html(`<span${_attr_class("_ch")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
9748
9754
  writeScope($scope133_id, {});
9749
9755
  return 1;
9750
9756
  }
@@ -9762,7 +9768,7 @@ var settings_page_default = _template("y", (input$3) => {
9762
9768
  _if(() => {
9763
9769
  if (preflight && !backupBusy) {
9764
9770
  const $scope67_id = _scope_id();
9765
- _html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dX")}>Not in the file: `);
9771
+ _html(`<div${_attr_class("_gt")}><p${_attr_class("_gu")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_gu")}>Not in the file: `);
9766
9772
  _if(() => {
9767
9773
  if (preflight.unpushed) {
9768
9774
  const $scope68_id = _scope_id();
@@ -9779,15 +9785,15 @@ var settings_page_default = _template("y", (input$3) => {
9779
9785
  return 0;
9780
9786
  }
9781
9787
  }, $scope67_id, "m");
9782
- _html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dY")}>`);
9788
+ _html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_gv")}>`);
9783
9789
  _for_of(preflight.workspaces, (w) => {
9784
9790
  const $scope135_id = _scope_id();
9785
9791
  const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
9786
- _html(`<li${_attr_class("_dZ")}><span${_attr_class("_cg")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dY")}>`);
9792
+ _html(`<li${_attr_class("_gw")}><span${_attr_class("_cf")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_gv")}>`);
9787
9793
  _for_of(w.repos, (r) => {
9788
9794
  const $scope136_id = _scope_id();
9789
9795
  const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
9790
- _html(`<li${_attr_class("_d0")}><span${_attr_class("_d1")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
9796
+ _html(`<li${_attr_class("_gx")}><span${_attr_class("_gy")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
9791
9797
  _for_of(r.unpushed, (b) => {
9792
9798
  const $scope137_id = _scope_id();
9793
9799
  _html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
@@ -9806,10 +9812,10 @@ var settings_page_default = _template("y", (input$3) => {
9806
9812
  _if(() => {
9807
9813
  if (r.modified.length || r.untracked.length || r.ignored.length) {
9808
9814
  const $scope138_id = _scope_id();
9809
- _html(`<ul${_attr_class("_d2")}>`);
9815
+ _html(`<ul${_attr_class("_gz")}>`);
9810
9816
  _for_of(r.modified, (f) => {
9811
9817
  const $scope141_id = _scope_id();
9812
- _html(`<li${_attr_class("_d3")}><span${_attr_class([
9818
+ _html(`<li${_attr_class("_gA")}><span${_attr_class([
9813
9819
  "_N",
9814
9820
  "_P",
9815
9821
  tone.warn
@@ -9818,18 +9824,18 @@ var settings_page_default = _template("y", (input$3) => {
9818
9824
  }, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
9819
9825
  _for_of(r.untracked, (f) => {
9820
9826
  const $scope142_id = _scope_id();
9821
- _html(`<li${_attr_class("_d3")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
9827
+ _html(`<li${_attr_class("_gA")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
9822
9828
  writeScope($scope142_id, {});
9823
9829
  }, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
9824
9830
  _for_of(r.ignored, (f) => {
9825
9831
  const $scope143_id = _scope_id();
9826
- _html(`<li${_attr_class("_d3")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
9832
+ _html(`<li${_attr_class("_gA")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
9827
9833
  writeScope($scope143_id, {});
9828
9834
  }, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
9829
9835
  _if(() => {
9830
9836
  if (r.more) {
9831
9837
  const $scope139_id = _scope_id();
9832
- _html(`<li${_attr_class(["_d3", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
9838
+ _html(`<li${_attr_class(["_gA", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
9833
9839
  _subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
9834
9840
  return 0;
9835
9841
  }
@@ -9854,27 +9860,27 @@ var settings_page_default = _template("y", (input$3) => {
9854
9860
  i: $for_content18__w_name__closures
9855
9861
  });
9856
9862
  }, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
9857
- _html(`<div${_attr_class("_d4")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
9863
+ _html(`<div${_attr_class("_gB")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
9858
9864
  _script($scope67_id, "y81");
9859
9865
  writeScope($scope67_id, {});
9860
9866
  return 0;
9861
9867
  }
9862
9868
  }, $scope0_id, "bp", 1, 1, 1, 0, 1);
9863
- _html(`</div><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
9869
+ _html(`</div><div${_attr_class("_d2")}><div${_attr_class("_gr")}><div${_attr_class("_ce")}>`);
9864
9870
  _if(() => {
9865
9871
  if (backupBusy === "restore") {
9866
9872
  const $scope66_id = _scope_id();
9867
- _html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
9873
+ _html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
9868
9874
  writeScope($scope66_id, {});
9869
9875
  return 0;
9870
9876
  } else if (restoreDone) {
9871
9877
  const $scope74_id = _scope_id();
9872
- _html(`<span${_attr_class("_ci")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
9878
+ _html(`<span${_attr_class("_ch")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
9873
9879
  writeScope($scope74_id, {});
9874
9880
  return 1;
9875
9881
  } else {
9876
9882
  const $scope144_id = _scope_id();
9877
- _html(`<span${_attr_class("_ci")}>Load a backup file. Repos clone in the background.</span>`);
9883
+ _html(`<span${_attr_class("_ch")}>Load a backup file. Repos clone in the background.</span>`);
9878
9884
  writeScope($scope144_id, {});
9879
9885
  return 2;
9880
9886
  }
@@ -9882,7 +9888,7 @@ var settings_page_default = _template("y", (input$3) => {
9882
9888
  _if(() => {
9883
9889
  if (!restorePreview && backupBusy !== "restore") {
9884
9890
  const $scope76_id = _scope_id();
9885
- _html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dV")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
9891
+ _html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_gs")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
9886
9892
  _script($scope76_id, "y82");
9887
9893
  writeScope($scope76_id, {});
9888
9894
  return 0;
@@ -9893,14 +9899,14 @@ var settings_page_default = _template("y", (input$3) => {
9893
9899
  if (restorePreview && backupBusy !== "restore") {
9894
9900
  const $scope69_id = _scope_id();
9895
9901
  const { preview } = restorePreview;
9896
- _html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
9902
+ _html(`<div${_attr_class("_gt")}><p${_attr_class("_gu")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
9897
9903
  _if(() => {
9898
9904
  if (preview.workspaces.length) {
9899
9905
  const $scope70_id = _scope_id();
9900
9906
  _html(`<ul${_attr_class(checkList)}>`);
9901
9907
  _for_of(preview.workspaces, (w) => {
9902
9908
  const $scope71_id = _scope_id();
9903
- _html(`<li><label${_attr_class(["_d6", { ["_d8"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d7")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
9909
+ _html(`<li><label${_attr_class(["_gD", { ["_gF"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_gE")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
9904
9910
  _if(() => {
9905
9911
  if (w.status === "archived") {
9906
9912
  const $scope148_id = _scope_id();
@@ -9922,7 +9928,7 @@ var settings_page_default = _template("y", (input$3) => {
9922
9928
  return 1;
9923
9929
  }
9924
9930
  }, $scope71_id, "h", 1, 1, 1, 0, 1);
9925
- _html(`</span><span${_attr_class("_ci")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
9931
+ _html(`</span><span${_attr_class("_ch")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
9926
9932
  _script($scope71_id, "y83");
9927
9933
  _subscribe($restoreWs__closures, writeScope($scope71_id, {
9928
9934
  n: w?.unknownHost,
@@ -9933,7 +9939,7 @@ var settings_page_default = _template("y", (input$3) => {
9933
9939
  return 0;
9934
9940
  } else {
9935
9941
  const $scope146_id = _scope_id();
9936
- _html(`<p${_attr_class("_ck")}>No workspaces in this file.</p>`);
9942
+ _html(`<p${_attr_class("_cj")}>No workspaces in this file.</p>`);
9937
9943
  writeScope($scope146_id, {});
9938
9944
  return 1;
9939
9945
  }
@@ -9973,7 +9979,7 @@ var settings_page_default = _template("y", (input$3) => {
9973
9979
  _if(() => {
9974
9980
  if (p.total) {
9975
9981
  const $scope73_id = _scope_id();
9976
- _html(`<li><label${_attr_class(["_d6", { ["_d8"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d7")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_ci")}>`);
9982
+ _html(`<li><label${_attr_class(["_gD", { ["_gF"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_gE")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_ce")}><span${_attr_class("_cf")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_ch")}>`);
9977
9983
  _if(() => {
9978
9984
  if (p.key === "settings") {
9979
9985
  const $scope145_id = _scope_id();
@@ -10020,7 +10026,7 @@ var settings_page_default = _template("y", (input$3) => {
10020
10026
  i: $for_content10__p_total__closures
10021
10027
  });
10022
10028
  }, "key", $scope69_id, "h");
10023
- _html(`</ul><div${_attr_class("_d4")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
10029
+ _html(`</ul><div${_attr_class("_gB")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
10024
10030
  _script($scope69_id, "y85");
10025
10031
  writeScope($scope69_id, {});
10026
10032
  return 0;
@@ -10222,13 +10228,13 @@ async function enablePush() {
10222
10228
  const reg = await registration();
10223
10229
  let sub = await reg.pushManager.getSubscription();
10224
10230
  if (!sub) {
10225
- const { publicKey } = await api$11("/api/push");
10231
+ const { publicKey } = await api$10("/api/push");
10226
10232
  sub = await reg.pushManager.subscribe({
10227
10233
  userVisibleOnly: true,
10228
10234
  applicationServerKey: vapidKey(publicKey)
10229
10235
  });
10230
10236
  }
10231
- await api$11("/api/push", {
10237
+ await api$10("/api/push", {
10232
10238
  method: "POST",
10233
10239
  headers: { "content-type": "application/json" },
10234
10240
  body: JSON.stringify(sub.toJSON())
@@ -10238,7 +10244,7 @@ async function enablePush() {
10238
10244
  async function disablePush() {
10239
10245
  const sub = await pushSubscription();
10240
10246
  if (!sub) return;
10241
- await api$11(`/api/push?endpoint=${encodeURIComponent(sub.endpoint)}`, { method: "DELETE" }).catch(() => {});
10247
+ await api$10(`/api/push?endpoint=${encodeURIComponent(sub.endpoint)}`, { method: "DELETE" }).catch(() => {});
10242
10248
  await sub.unsubscribe();
10243
10249
  }
10244
10250
  async function registration() {
@@ -10305,8 +10311,7 @@ function activeAgent(session) {
10305
10311
  const command = session.state?.command?.trim();
10306
10312
  return command && agentFromCommand(command) || session.agent;
10307
10313
  }
10308
- var rowState = "_e9 _N";
10309
- var rowArchive = "_fa _q _L";
10314
+ var rowState = "_c_ _N";
10310
10315
  //#endregion
10311
10316
  //#region src/client/arm.ts
10312
10317
  /** Two-step destructive controls: first click arms (label/colour flips),
@@ -10317,12 +10322,12 @@ var ARM_MS = 3500;
10317
10322
  function disarmLater(fn) {
10318
10323
  return setTimeout(fn, ARM_MS);
10319
10324
  }
10320
- var prChip = "_ib _u _ia";
10321
- var portChip = "_ic _u _ia";
10325
+ var prChip = "_iA _u _iz";
10326
+ var portChip = "_iB _u _iz";
10322
10327
  var prState = {
10323
- open: "_ig",
10324
- merged: "_ih",
10325
- closed: "_ii"
10328
+ open: "_iF",
10329
+ merged: "_iG",
10330
+ closed: "_iH"
10326
10331
  };
10327
10332
  //#endregion
10328
10333
  //#region src/tags/icons/icon-diff.marko
@@ -10413,7 +10418,7 @@ var side_nav_chips_default = _template("z", (input) => {
10413
10418
  const name = repo.full_name.split("/").at(-1);
10414
10419
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
10415
10420
  }, "z4", $scope1_id);
10416
- _html(`<div${_attr_class("_h_")}>`);
10421
+ _html(`<div${_attr_class("_iy")}>`);
10417
10422
  _for_of(repos, (repo) => {
10418
10423
  const $scope2_id = _scope_id();
10419
10424
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -10429,11 +10434,11 @@ var side_nav_chips_default = _template("z", (input) => {
10429
10434
  [prState.merged]: pr$1.state === "MERGED",
10430
10435
  [prState.closed]: pr$1.state === "CLOSED"
10431
10436
  }
10432
- ])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_id", { ["_il"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
10437
+ ])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iC", { ["_iK"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
10433
10438
  _if(() => {
10434
10439
  if (open) {
10435
10440
  const $scope4_id = _scope_id();
10436
- _html(`<a${_attr_class(["_id", "_ie"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
10441
+ _html(`<a${_attr_class(["_iC", "_iD"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
10437
10442
  icon_diff_default({ size: 12 });
10438
10443
  _html(`</a>${_el_resume($scope4_id, "a")}`);
10439
10444
  _subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
@@ -10441,9 +10446,9 @@ var side_nav_chips_default = _template("z", (input) => {
10441
10446
  } else {
10442
10447
  const $scope6_id = _scope_id();
10443
10448
  _html(`<button type=button${_attr_class([
10444
- "_id",
10445
- "_ie",
10446
- "_if"
10449
+ "_iC",
10450
+ "_iD",
10451
+ "_iE"
10447
10452
  ])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
10448
10453
  icon_xmark_default({ size: 12 });
10449
10454
  _html(`</button>${_el_resume($scope6_id, "a")}`);
@@ -10471,21 +10476,21 @@ var side_nav_chips_default = _template("z", (input) => {
10471
10476
  _if(() => {
10472
10477
  if (dead.has(p.port)) {
10473
10478
  const $scope7_id = _scope_id();
10474
- _html(`<span${_attr_class(["_id", "_ij"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
10479
+ _html(`<span${_attr_class(["_iC", "_iI"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
10475
10480
  _subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
10476
10481
  return 0;
10477
10482
  } else {
10478
10483
  const $scope8_id = _scope_id();
10479
- _html(`<button type=button${_attr_class(["_id", "_ik"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
10484
+ _html(`<button type=button${_attr_class(["_iC", "_iJ"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
10480
10485
  _script($scope8_id, "z6");
10481
10486
  writeScope($scope8_id, {});
10482
10487
  return 1;
10483
10488
  }
10484
10489
  }, $scope5_id, "b", 1, 1, 1, 0, 1);
10485
10490
  _html(`<button type=button${_attr_class([
10486
- "_id",
10487
- "_ie",
10488
- "_if",
10491
+ "_iC",
10492
+ "_iD",
10493
+ "_iE",
10489
10494
  { ["_s"]: armedPid === p.pid }
10490
10495
  ])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
10491
10496
  icon_xmark_default({ size: 12 });
@@ -10528,33 +10533,16 @@ var side_nav_chips_default = _template("z", (input) => {
10528
10533
  });
10529
10534
  _resume_branch($scope0_id);
10530
10535
  });
10531
- var railBtn = "_gh _l";
10532
- var wsBtn = "_gm _I";
10533
- var rowIcon = "_gp _4 _l";
10534
- var close = "_gq _7 _l _8";
10535
- var sessRename$1 = "_gB _J";
10536
- var sessBtn$1 = "_gD _I";
10536
+ var railBtn = "_dq _l";
10537
+ var wsBtn = "_dv _I";
10538
+ var rowIcon = "_dy _4 _l";
10539
+ var close = "_dz _7 _l _8";
10540
+ var sessRename$1 = "_dK _J";
10541
+ var sessBtn$1 = "_dM _I";
10537
10542
  //#endregion
10538
10543
  //#region src/styles/session-pop.css.ts
10539
- var sessionPop = "_fv __";
10540
- var sessionPopBtn = "_fw _I";
10541
- //#endregion
10542
- //#region src/tags/icons/icon-archive.marko
10543
- var icon_archive_default = _template("M", (input) => {
10544
- const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10545
- const $scope0_id = _scope_id();
10546
- _set_serialize_reason({
10547
- 0: $sg__input_size__OR__input_class,
10548
- 1: $sg__input_size__OR__input_class
10549
- });
10550
- const $childScope = _peek_scope_id();
10551
- icon_base_default({
10552
- d: "M7 6L17 6 M7 9L17 9 M9 17H15 M3 12H2.6C2.26863 12 2 12.2686 2 12.6V21.4C2 21.7314 2.26863 22 2.6 22H21.4C21.7314 22 22 21.7314 22 21.4V12.6C22 12.2686 21.7314 12 21.4 12H21M3 12V2.6C3 2.26863 3.26863 2 3.6 2H20.4C20.7314 2 21 2.26863 21 2.6V12M3 12H21",
10553
- size: input.size,
10554
- class: input.class
10555
- });
10556
- _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
10557
- });
10544
+ var sessionPop = "_dm __";
10545
+ var sessionPopBtn = "_dn _I";
10558
10546
  //#endregion
10559
10547
  //#region src/tags/icons/icon-manage.marko
10560
10548
  var icon_manage_default = _template("hb", (input) => {
@@ -10583,22 +10571,22 @@ var usage_pcts_default = _template("I", (input) => {
10583
10571
  if (windows.length) {
10584
10572
  const $scope1_id = _scope_id();
10585
10573
  _html(`<span${_attr_class([
10586
- "_hp",
10574
+ "_gG",
10587
10575
  input.class,
10588
- { ["_hq"]: agent.stale_seconds != null }
10576
+ { ["_gH"]: agent.stale_seconds != null }
10589
10577
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
10590
10578
  _for_of(windows, (win$1, i) => {
10591
10579
  const $scope2_id = _scope_id();
10592
- _html(`<span${_attr_class("_hr")}>`);
10580
+ _html(`<span${_attr_class("_gI")}>`);
10593
10581
  _if(() => {
10594
10582
  if (i) {
10595
10583
  const $scope3_id = _scope_id();
10596
- _html(`<span${_attr_class("_hu")} aria-hidden=true>·</span>`);
10584
+ _html(`<span${_attr_class("_gL")} aria-hidden=true>·</span>`);
10597
10585
  $si__input_agent && writeScope($scope3_id, {});
10598
10586
  return 0;
10599
10587
  }
10600
10588
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
10601
- _html(`<span${_attr_class("_hs")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_ht", win$1.used_percent >= 90 ? "_hl" : win$1.used_percent >= 70 ? "_hk" : win$1.used_percent >= 40 ? "_hj" : "_hi"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
10589
+ _html(`<span${_attr_class("_gJ")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_gK", win$1.used_percent >= 90 ? "_g6" : win$1.used_percent >= 70 ? "_g5" : win$1.used_percent >= 40 ? "_g4" : "_g3"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
10602
10590
  $si__input_agent && writeScope($scope2_id, {});
10603
10591
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
10604
10592
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -10631,9 +10619,9 @@ var icon_edit_default = _template("bb", (input) => {
10631
10619
  });
10632
10620
  //#endregion
10633
10621
  //#region src/tags/side-nav-item.marko
10634
- var api$8;
10622
+ var api$7;
10635
10623
  var side_nav_item_default = _template("A", (input) => {
10636
- const $scope0_reason = _scope_reason(), $si__input_workspace = _serialize_if($scope0_reason, 25), $sg__input_workspace = _serialize_guard($scope0_reason, 25), $sg__input_status = _serialize_guard($scope0_reason, 27), $sg__input_sessions = _serialize_guard($scope0_reason, 23), $sg__input_page__OR__input_sessions__OR__input_status = _serialize_guard($scope0_reason, 7), $si__input_onArchive = _serialize_if($scope0_reason, 30), $sg__input_onArchive = _serialize_guard($scope0_reason, 30), $si__input_agents = _serialize_if($scope0_reason, 32), $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 10), $sg__input_onNewSession = _serialize_guard($scope0_reason, 31), $sg__input_onReview = _serialize_guard($scope0_reason, 33), $sg__input_page = _serialize_guard($scope0_reason, 22), $si__input_sessions = _serialize_if($scope0_reason, 23), $si__input_current = _serialize_if($scope0_reason, 21), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 29), $si__input_page__OR__input_sessions__OR__input_status = _serialize_if($scope0_reason, 7), $sg__input_rail__OR__input_workspace = _serialize_guard($scope0_reason, 1), $si__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 1), $sg__input_rail__OR__input_workspace__OR__input_status = _serialize_guard($scope0_reason, 9), $si__input_page__OR__input_rail__OR__input_workspace__OR__input_onArchive = _serialize_if($scope0_reason, 12), $si__input_page__OR__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 6), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 14), $si__input_index = _serialize_if($scope0_reason, 28), $si__input_onNewSession = _serialize_if($scope0_reason, 31), $si__input_onReview = _serialize_if($scope0_reason, 33), $si__input_managing = _serialize_if($scope0_reason, 34), $si__input_currentTab = _serialize_if($scope0_reason, 24), $si__input_workspaceId = _serialize_if($scope0_reason, 26);
10624
+ const $scope0_reason = _scope_reason(), $si__input_workspace = _serialize_if($scope0_reason, 24), $sg__input_workspace = _serialize_guard($scope0_reason, 24), $sg__input_status = _serialize_guard($scope0_reason, 26), $sg__input_sessions = _serialize_guard($scope0_reason, 22), $sg__input_page__OR__input_sessions__OR__input_status = _serialize_guard($scope0_reason, 8), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 6), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_page = _serialize_guard($scope0_reason, 21), $si__input_sessions = _serialize_if($scope0_reason, 22), $si__input_current = _serialize_if($scope0_reason, 20), $si__input_page = _serialize_if($scope0_reason, 21), $si__input_railPop = _serialize_if($scope0_reason, 28), $si__input_page__OR__input_sessions__OR__input_status = _serialize_if($scope0_reason, 8), $sg__input_rail__OR__input_workspace = _serialize_guard($scope0_reason, 1), $si__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 1), $sg__input_rail__OR__input_workspace__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_page__OR__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 7), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 13), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 25);
10637
10625
  const $scope0_id = _scope_id();
10638
10626
  const $input_current__closures = /* @__PURE__ */ new Set();
10639
10627
  const $input_index__closures = /* @__PURE__ */ new Set();
@@ -10646,7 +10634,6 @@ var side_nav_item_default = _template("A", (input) => {
10646
10634
  const $ws_pending_error__closures = /* @__PURE__ */ new Set();
10647
10635
  const $restoreLine__closures = /* @__PURE__ */ new Set();
10648
10636
  const $retrying__closures = /* @__PURE__ */ new Set();
10649
- const $input_onArchive__closures = /* @__PURE__ */ new Set();
10650
10637
  const $input_agents__closures = /* @__PURE__ */ new Set();
10651
10638
  const $input_onNewSession__closures = /* @__PURE__ */ new Set();
10652
10639
  const $input_onReview__closures = /* @__PURE__ */ new Set();
@@ -10691,7 +10678,7 @@ var side_nav_item_default = _template("A", (input) => {
10691
10678
  retrying = action === "retry";
10692
10679
  armedDelete = false;
10693
10680
  try {
10694
- await api$8(`/api/workspaces/${input.workspaceId}`, {
10681
+ await api$7(`/api/workspaces/${input.workspaceId}`, {
10695
10682
  method: "POST",
10696
10683
  headers: { "content-type": "application/json" },
10697
10684
  body: JSON.stringify({ action })
@@ -10710,76 +10697,76 @@ var side_nav_item_default = _template("A", (input) => {
10710
10697
  _if(() => {
10711
10698
  if (input.rail) {
10712
10699
  const $scope2_id = _scope_id();
10713
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gf"]: 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, 28))}<span${_attr_class([
10700
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_do"]: 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, 27))}<span${_attr_class([
10714
10701
  "_A",
10715
10702
  phase[dot$1],
10716
10703
  "_bc"
10717
10704
  ])}></span>${_el_resume($scope2_id, "c", $sg__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 0))}`);
10718
- _serialize_if($scope0_reason, 18) && _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_workspace && $ws_pending__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))))));
10705
+ _serialize_if($scope0_reason, 17) && _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_workspace && $ws_pending__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))))));
10719
10706
  return 0;
10720
10707
  } else if (ws$1.pending) {
10721
10708
  const $scope3_id = _scope_id();
10722
10709
  _html(`<section${_attr_class([
10723
- "_gj",
10724
- "_gF",
10710
+ "_ds",
10711
+ "_dO",
10725
10712
  {
10726
- ["_gk"]: input.railPop,
10727
- ["_gi"]: input.page
10713
+ ["_dt"]: input.railPop,
10714
+ ["_dr"]: input.page
10728
10715
  }
10729
- ])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_gl")}><div${_attr_class(wsBtn)}>`);
10716
+ ])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_du")}><div${_attr_class(wsBtn)}>`);
10730
10717
  _if(() => {
10731
10718
  if (ws$1.pending_error) {
10732
- const $scope16_id = _scope_id();
10719
+ const $scope15_id = _scope_id();
10733
10720
  icon_warning_default({
10734
10721
  size: 12,
10735
- class: "_gH"
10722
+ class: "_dQ"
10736
10723
  });
10737
- $si__input_workspace && writeScope($scope16_id, {});
10724
+ $si__input_workspace && writeScope($scope15_id, {});
10738
10725
  return 0;
10739
10726
  } else {
10740
- const $scope17_id = _scope_id();
10741
- _html(`<span${_attr_class(["_G", "_gG"])}></span>`);
10742
- $si__input_workspace && writeScope($scope17_id, {});
10727
+ const $scope16_id = _scope_id();
10728
+ _html(`<span${_attr_class(["_G", "_dP"])}></span>`);
10729
+ $si__input_workspace && writeScope($scope16_id, {});
10743
10730
  return 1;
10744
10731
  }
10745
10732
  }, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
10746
- _html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gJ")}${_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>`);
10733
+ _html(`<span${_attr_class("_dB")}><span${_attr_class("_dC")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_dS")}${_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>`);
10747
10734
  _if(() => {
10748
10735
  if (ws$1.pending_error && !retrying) {
10749
- const $scope15_id = _scope_id();
10750
- _html(`<div${_attr_class("_gI")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
10736
+ const $scope14_id = _scope_id();
10737
+ _html(`<div${_attr_class("_dR")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
10751
10738
  "_q",
10752
10739
  btnSm,
10753
10740
  { ["_s"]: armedDelete }
10754
- ])} title=${armedDelete ? "\"Delete this workspace?\"" : "\"Delete workspace\""}>${_text_resume($scope15_id, "d", armedDelete ? "Delete?" : "Delete")}</button>${_el_resume($scope15_id, "c")}</div>`);
10755
- _script($scope15_id, "A4");
10756
- _subscribe($armedDelete__closures, writeScope($scope15_id, {}));
10741
+ ])} title=${armedDelete ? "\"Delete this workspace?\"" : "\"Delete workspace\""}>${_text_resume($scope14_id, "d", armedDelete ? "Delete?" : "Delete")}</button>${_el_resume($scope14_id, "c")}</div>`);
10742
+ _script($scope14_id, "A4");
10743
+ _subscribe($armedDelete__closures, writeScope($scope14_id, {}));
10757
10744
  return 0;
10758
10745
  }
10759
10746
  }, $scope3_id, "j", 1, 1, 1, 0, 1);
10760
- _html(`</section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 8))}`);
10747
+ _html(`</section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 9))}`);
10761
10748
  _subscribe($retrying__closures, _subscribe($restoreLine__closures, _subscribe($si__input_workspace && $ws_pending_error__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
10762
10749
  _: _scope_with_id($scope1_id),
10763
- Cb4: $si__input_workspace && 1
10750
+ Cb2: $si__input_workspace && 1
10764
10751
  })))))));
10765
10752
  return 1;
10766
10753
  } else {
10767
10754
  const $scope4_id = _scope_id();
10768
10755
  const sessions$1 = input.sessions || [];
10769
10756
  const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
10770
- _html(`<section${_attr_class(["_gj", {
10771
- ["_gf"]: input.current,
10757
+ _html(`<section${_attr_class(["_ds", {
10758
+ ["_do"]: input.current,
10772
10759
  ["_bd"]: input.current,
10773
- ["_gk"]: input.railPop,
10774
- ["_gi"]: input.page
10775
- }])}><div${_attr_class("_gl")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
10760
+ ["_dt"]: input.railPop,
10761
+ ["_dr"]: input.page
10762
+ }])}><div${_attr_class("_du")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
10776
10763
  "_A",
10777
10764
  phase[dot$1],
10778
- "_gx"
10765
+ "_dG"
10779
10766
  ])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
10780
10767
  _if(() => {
10781
10768
  if (sessions$1.length === 1) {
10782
- const $scope18_id = _scope_id();
10769
+ const $scope17_id = _scope_id();
10783
10770
  _set_serialize_reason({
10784
10771
  1: $sg__input_sessions,
10785
10772
  2: $sg__input_sessions
@@ -10788,9 +10775,9 @@ var side_nav_item_default = _template("A", (input) => {
10788
10775
  icon_agent_default({
10789
10776
  agent: activeAgent(sessions$1[0]),
10790
10777
  size: 12,
10791
- class: "_gr"
10778
+ class: "_dA"
10792
10779
  });
10793
- $si__input_sessions && writeScope($scope18_id, {
10780
+ $si__input_sessions && writeScope($scope17_id, {
10794
10781
  _: _scope_with_id($scope4_id),
10795
10782
  a: _existing_scope($childScope)
10796
10783
  });
@@ -10798,12 +10785,12 @@ var side_nav_item_default = _template("A", (input) => {
10798
10785
  }
10799
10786
  }, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
10800
10787
  const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
10801
- _html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
10788
+ _html(`<span${_attr_class("_dB")}><span${_attr_class("_dC")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
10802
10789
  _if(() => {
10803
10790
  if (input.page && metaText) {
10804
- const $scope19_id = _scope_id();
10805
- _html(`<span${_attr_class("_gw")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
10806
- $si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
10791
+ const $scope18_id = _scope_id();
10792
+ _html(`<span${_attr_class("_dF")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
10793
+ $si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
10807
10794
  return 0;
10808
10795
  }
10809
10796
  }, $scope4_id, "i", $sg__input_page__OR__input_sessions__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_status, 1, 0, 1);
@@ -10811,26 +10798,10 @@ var side_nav_item_default = _template("A", (input) => {
10811
10798
  _if(() => {
10812
10799
  if (!input.page) {
10813
10800
  const $scope5_id = _scope_id();
10814
- _html(`<div${_attr_class("_gn")}>`);
10815
- _if(() => {
10816
- if (input.onArchive) {
10817
- const $scope6_id = _scope_id();
10818
- const archiveRow = input.onArchive;
10819
- _html(`<button${_attr_class(rowIcon)} title="Every PR is finished. Archive this workspace">`);
10820
- icon_archive_default({ size: 12 });
10821
- _html(`</button>${_el_resume($scope6_id, "a")}`);
10822
- _script($scope6_id, "A5");
10823
- _subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope6_id, {
10824
- c: archiveRow,
10825
- _: $si__input_page__OR__input_rail__OR__input_workspace__OR__input_onArchive && _scope_with_id($scope5_id),
10826
- Cas: $si__input_onArchive && 1
10827
- }));
10828
- return 0;
10829
- }
10830
- }, $scope5_id, "b", $sg__input_onArchive, $sg__input_onArchive, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
10801
+ _html(`<div${_attr_class("_dw")}>`);
10831
10802
  _if(() => {
10832
10803
  if (input.onNewSession) {
10833
- const $scope7_id = _scope_id();
10804
+ const $scope6_id = _scope_id();
10834
10805
  const newPopId = _id();
10835
10806
  let pickerReady = false;
10836
10807
  _html(`<button${_attr_class(rowIcon)} title="New session"${_attr("popovertarget", newPopId)}>`);
@@ -10838,9 +10809,9 @@ var side_nav_item_default = _template("A", (input) => {
10838
10809
  agent: "shell",
10839
10810
  size: 12
10840
10811
  });
10841
- _html(`</button>${_el_resume($scope7_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
10812
+ _html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
10842
10813
  _for_of([], (agent) => {
10843
- const $scope8_id = _scope_id();
10814
+ const $scope7_id = _scope_id();
10844
10815
  _html(`<button${_attr_class(sessionPopBtn)}>`);
10845
10816
  _set_serialize_reason(12);
10846
10817
  const $childScope2 = _peek_scope_id();
@@ -10848,72 +10819,72 @@ var side_nav_item_default = _template("A", (input) => {
10848
10819
  agent,
10849
10820
  size: 14
10850
10821
  });
10851
- _html(`${_text_resume($scope8_id, "c", agent, 2)}</button>${_el_resume($scope8_id, "a")}`);
10852
- _script($scope8_id, "A6");
10853
- writeScope($scope8_id, {
10822
+ _html(`${_text_resume($scope7_id, "c", agent, 2)}</button>${_el_resume($scope7_id, "a")}`);
10823
+ _script($scope7_id, "A5");
10824
+ writeScope($scope7_id, {
10854
10825
  e: agent,
10855
10826
  b: _existing_scope($childScope2)
10856
10827
  });
10857
- }, (a) => a, $scope7_id, "c", 1, 1, 1, "</div>", 1);
10858
- _script($scope7_id, "A7");
10859
- _subscribe($si__input_agents && $input_agents__closures, writeScope($scope7_id, {
10828
+ }, (a) => a, $scope6_id, "c", 1, 1, 1, "</div>", 1);
10829
+ _script($scope6_id, "A6");
10830
+ _subscribe($si__input_agents && $input_agents__closures, writeScope($scope6_id, {
10860
10831
  e: $si__input_agents && pickerReady,
10861
10832
  _: _scope_with_id($scope5_id)
10862
10833
  }));
10863
10834
  return 0;
10864
10835
  }
10865
- }, $scope5_id, "c", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview);
10836
+ }, $scope5_id, "b", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onNewSession__OR__input_onReview);
10866
10837
  _if(() => {
10867
10838
  if (input.onReview) {
10868
- const $scope14_id = _scope_id();
10839
+ const $scope13_id = _scope_id();
10869
10840
  _html(`<a${_attr("href", `/w/${ws$1.id}/review`)}${_attr_class(rowIcon)} title="Review changes">`);
10870
10841
  icon_diff_default({ size: 12 });
10871
- _html(`</a>${_el_resume($scope14_id, "a", $sg__input_workspace)}`);
10872
- _serialize_if($scope0_reason, 13) && _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope14_id, {
10842
+ _html(`</a>${_el_resume($scope13_id, "a", $sg__input_workspace)}`);
10843
+ _serialize_if($scope0_reason, 12) && _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope13_id, {
10873
10844
  _: _scope_with_id($scope5_id),
10874
- Cb3: $si__input_workspace && 4
10845
+ Cb1: $si__input_workspace && 4
10875
10846
  }));
10876
10847
  return 0;
10877
10848
  }
10878
- }, $scope5_id, "d", $sg__input_onReview, $sg__input_onReview, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
10879
- _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gg"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
10849
+ }, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
10850
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_dp"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
10880
10851
  icon_manage_default({ size: 12 });
10881
- _html(`</a>${_el_resume($scope5_id, "e", _serialize_guard($scope0_reason, 4))}</div>`);
10882
- _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope5_id, {
10852
+ _html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
10853
+ _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
10883
10854
  _: _scope_with_id($scope4_id),
10884
- Cb3: $si__input_workspace && 2
10885
- }))))));
10855
+ Cb1: $si__input_workspace && 2
10856
+ })))));
10886
10857
  return 0;
10887
10858
  }
10888
10859
  }, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
10889
- _html(`</div><div${_attr_class("_gC")}>`);
10860
+ _html(`</div><div${_attr_class("_dL")}>`);
10890
10861
  _if(() => {
10891
10862
  if (sessions$1.length === 1 && openPlan) {
10892
- const $scope12_id = _scope_id();
10863
+ const $scope11_id = _scope_id();
10893
10864
  _set_serialize_reason(1);
10894
10865
  const $childScope3 = _peek_scope_id();
10895
10866
  usage_pcts_default({
10896
10867
  agent: openPlan,
10897
- class: "_gu"
10868
+ class: "_dD"
10898
10869
  });
10899
- _subscribe($openPlan__closures, writeScope($scope12_id, {
10870
+ _subscribe($openPlan__closures, writeScope($scope11_id, {
10900
10871
  a: _existing_scope($childScope3),
10901
- Cb1: 2
10872
+ Caz: 2
10902
10873
  }));
10903
10874
  return 0;
10904
10875
  }
10905
10876
  }, $scope4_id, "l");
10906
10877
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
10907
- const $scope9_id = _scope_id();
10908
- _html(`<div${_attr_class(["_go", { ["_gf"]: s.id === input.currentTab }])}>`);
10878
+ const $scope8_id = _scope_id();
10879
+ _html(`<div${_attr_class(["_dx", { ["_do"]: s.id === input.currentTab }])}>`);
10909
10880
  _if(() => {
10910
10881
  if (renamingId === s.id) {
10911
- const $scope11_id = _scope_id();
10882
+ const $scope10_id = _scope_id();
10912
10883
  _html(`<span${_attr_class([
10913
10884
  "_A",
10914
10885
  phase[sessionPhase(s.state)],
10915
- "_gA"
10916
- ])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
10886
+ "_dJ"
10887
+ ])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
10917
10888
  _set_serialize_reason({
10918
10889
  1: $sg__input_sessions,
10919
10890
  2: $sg__input_sessions
@@ -10922,17 +10893,17 @@ var side_nav_item_default = _template("A", (input) => {
10922
10893
  icon_agent_default({
10923
10894
  agent: activeAgent(s),
10924
10895
  size: 12,
10925
- class: "_gE"
10896
+ class: "_dN"
10926
10897
  });
10927
- _html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
10898
+ _html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
10928
10899
  renameValue = _new_renameValue;
10929
- }, "A0", $scope11_id))}${_attr_class(["_Z", sessRename$1])} aria-label="Session name">${_el_resume($scope11_id, "c")}`);
10930
- _script($scope11_id, "A8");
10931
- _subscribe($renameValue__closures, writeScope($scope11_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
10900
+ }, "A0", $scope10_id))}${_attr_class(["_Z", sessRename$1])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
10901
+ _script($scope10_id, "A7");
10902
+ _subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
10932
10903
  return 0;
10933
10904
  } else {
10934
- const $scope10_id = _scope_id();
10935
- _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class(sessBtn$1)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope10_id, "b", $sg__input_sessions)}`);
10905
+ const $scope9_id = _scope_id();
10906
+ _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class(sessBtn$1)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
10936
10907
  _set_serialize_reason({
10937
10908
  1: $sg__input_sessions,
10938
10909
  2: $sg__input_sessions
@@ -10941,39 +10912,39 @@ var side_nav_item_default = _template("A", (input) => {
10941
10912
  icon_agent_default({
10942
10913
  agent: activeAgent(s),
10943
10914
  size: 12,
10944
- class: "_gE"
10915
+ class: "_dN"
10945
10916
  });
10946
- _html(`<span${_attr_class("_gy")}>${_text_resume($scope10_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_gz")}><button${_attr_class(rowIcon)} title="Rename session">`);
10917
+ _html(`<span${_attr_class("_dH")}>${_text_resume($scope9_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_dI")}><button${_attr_class(rowIcon)} title="Rename session">`);
10947
10918
  icon_edit_default({ size: 12 });
10948
- _html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
10919
+ _html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
10949
10920
  icon_xmark_default({ size: 12 });
10950
- _html(`</button>${_el_resume($scope10_id, "i")}</div>`);
10921
+ _html(`</button>${_el_resume($scope9_id, "i")}</div>`);
10951
10922
  _if(() => {
10952
10923
  if (openPlan && s.id === openSess?.id) {
10953
- const $scope13_id = _scope_id();
10924
+ const $scope12_id = _scope_id();
10954
10925
  _set_serialize_reason(1);
10955
10926
  const $childScope6 = _peek_scope_id();
10956
10927
  usage_pcts_default({
10957
10928
  agent: openPlan,
10958
- class: "_gv"
10929
+ class: "_dE"
10959
10930
  });
10960
- _subscribe($openPlan__closures, writeScope($scope13_id, {
10931
+ _subscribe($openPlan__closures, writeScope($scope12_id, {
10961
10932
  a: _existing_scope($childScope6),
10962
- Cb1: 3
10933
+ Caz: 3
10963
10934
  }));
10964
10935
  return 0;
10965
10936
  }
10966
- }, $scope10_id, "k");
10967
- _script($scope10_id, "A9");
10968
- _subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope10_id, {
10937
+ }, $scope9_id, "k");
10938
+ _script($scope9_id, "A8");
10939
+ _subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
10969
10940
  c: $si__input_sessions && _existing_scope($childScope5),
10970
- Cb1: 1,
10971
- Cb3: $si__input_workspace && 3
10941
+ Caz: 1,
10942
+ Cb1: $si__input_workspace && 3
10972
10943
  })))));
10973
10944
  return 1;
10974
10945
  }
10975
- }, $scope9_id, "a", 1, 1, 1, "</div>");
10976
- _subscribe($renamingId__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($scope9_id, {
10946
+ }, $scope8_id, "a", 1, 1, 1, "</div>");
10947
+ _subscribe($renamingId__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($scope8_id, {
10977
10948
  c: s,
10978
10949
  d: s?.id,
10979
10950
  g: s?.state,
@@ -10982,14 +10953,14 @@ var side_nav_item_default = _template("A", (input) => {
10982
10953
  _: _scope_with_id($scope4_id)
10983
10954
  })));
10984
10955
  }, "id", $scope4_id, "m", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
10985
- _set_serialize_reason(_serialize_guard($scope0_reason, 26));
10956
+ _set_serialize_reason(_serialize_guard($scope0_reason, 25));
10986
10957
  const $childScope7 = _peek_scope_id();
10987
10958
  side_nav_chips_default({
10988
10959
  workspaceId: input.workspaceId,
10989
10960
  status: st
10990
10961
  });
10991
10962
  _html(`</div></section>${_el_resume($scope4_id, "a")}`);
10992
- _script($scope4_id, "A10");
10963
+ _script($scope4_id, "A9");
10993
10964
  _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
10994
10965
  q: sessions$1.length,
10995
10966
  s: $si__input_sessions && sessions$1[0],
@@ -10997,11 +10968,11 @@ var side_nav_item_default = _template("A", (input) => {
10997
10968
  v: $si__input_page__OR__input_sessions__OR__input_status && metaText,
10998
10969
  _: _scope_with_id($scope1_id),
10999
10970
  n: _serialize_if($scope0_reason, 5) && _existing_scope($childScope7),
11000
- Caj: $si__input_current && 1,
11001
- Cak: $si__input_page && 1,
11002
- Car: $si__input_railPop && 1,
11003
- Cb3: $si__input_workspace && 1,
11004
- Cb4: $si__input_workspace && 2
10971
+ Cai: $si__input_current && 1,
10972
+ Caj: $si__input_page && 1,
10973
+ Caq: $si__input_railPop && 1,
10974
+ Cb1: $si__input_workspace && 1,
10975
+ Cb2: $si__input_workspace && 2
11005
10976
  })))))))));
11006
10977
  return 2;
11007
10978
  }
@@ -11014,76 +10985,74 @@ var side_nav_item_default = _template("A", (input) => {
11014
10985
  return 0;
11015
10986
  }
11016
10987
  }, $scope0_id, "a", $sg__input_rail__OR__input_workspace__OR__input_status, $sg__input_workspace, $sg__input_workspace);
10988
+ _script($scope0_id, "A10");
11017
10989
  _script($scope0_id, "A11");
11018
10990
  _script($scope0_id, "A12");
11019
- _script($scope0_id, "A13");
11020
10991
  writeScope($scope0_id, {
11021
10992
  d: input.onRenameSession,
11022
- e: _serialize_if($scope0_reason, 19) && input.current,
11023
- f: _serialize_if($scope0_reason, 20) && input.page,
11024
- g: _serialize_if($scope0_reason, 17) && input.rail,
11025
- h: _serialize_if($scope0_reason, 16) && input.sessions,
11026
- i: _serialize_if($scope0_reason, 15) && input.currentTab,
10993
+ e: _serialize_if($scope0_reason, 18) && input.current,
10994
+ f: _serialize_if($scope0_reason, 19) && input.page,
10995
+ g: _serialize_if($scope0_reason, 16) && input.rail,
10996
+ h: _serialize_if($scope0_reason, 15) && input.sessions,
10997
+ i: _serialize_if($scope0_reason, 14) && input.currentTab,
11027
10998
  l: input.workspaceId,
11028
10999
  m: $si__input_workspace && input.status,
11029
11000
  n: $si__input_rail__OR__input_workspace && input.index,
11030
11001
  o: _serialize_if($scope0_reason, 11) && input.railPop,
11031
11002
  p: input.onSelect,
11032
- q: $si__input_page__OR__input_rail__OR__input_workspace__OR__input_onArchive && input.onArchive,
11033
- r: input.onNewSession,
11034
- s: input.agents,
11035
- t: $si__input_page__OR__input_rail__OR__input_workspace && input.onReview,
11036
- u: $si__input_page__OR__input_rail__OR__input_workspace && input.managing,
11037
- v: input.onCloseSession,
11038
- w: armedKill,
11039
- y: armBox.timer,
11040
- z: arm,
11041
- a0: renamingId,
11042
- a1: renameValue,
11043
- a3: commitRename,
11044
- a4: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && usage,
11045
- a5: openSess,
11046
- a7: openSess?.id,
11047
- a8: openPlan,
11048
- aa: ws$1?.pending,
11049
- ac: ws$1?.id,
11050
- ad: $si__input_rail__OR__input_workspace && ws$1?.name,
11051
- ae: ws$1?.pending_error,
11052
- af: $si__input_rail__OR__input_workspace && restoreLine,
11053
- ag: armedDelete,
11054
- ah: $si__input_rail__OR__input_workspace && retrying,
11055
- ai: restoreAction,
11056
- aj: $si__input_current && $input_current__closures,
11057
- aq: $si__input_index && $input_index__closures,
11058
- b2: $si__input_workspace && $ws_pending__closures,
11059
- b3: $si__input_workspace && $ws_id__closures,
11060
- b4: $si__input_workspace && $ws_name__closures,
11061
- b7: $armedDelete__closures,
11062
- ak: $si__input_page && $input_page__closures,
11063
- ar: $si__input_railPop && $input_railPop__closures,
11064
- b5: $si__input_workspace && $ws_pending_error__closures,
11065
- b6: $restoreLine__closures,
11066
- b8: $retrying__closures,
11067
- as: $si__input_onArchive && $input_onArchive__closures,
11068
- au: $si__input_agents && $input_agents__closures,
11069
- at: $si__input_onNewSession && $input_onNewSession__closures,
11070
- av: $si__input_onReview && $input_onReview__closures,
11071
- aw: $si__input_managing && $input_managing__closures,
11072
- b1: $openPlan__closures,
11073
- az: $renameValue__closures,
11074
- ax: $armedKill__closures,
11075
- b0: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures,
11076
- an: $si__input_currentTab && $input_currentTab__closures,
11077
- ay: $renamingId__closures,
11078
- am: $si__input_sessions && $input_sessions__closures,
11079
- ao: $si__input_workspaceId && $input_workspaceId__closures
11003
+ q: input.onNewSession,
11004
+ r: input.agents,
11005
+ s: $si__input_page__OR__input_rail__OR__input_workspace && input.onReview,
11006
+ t: $si__input_page__OR__input_rail__OR__input_workspace && input.managing,
11007
+ u: input.onCloseSession,
11008
+ v: armedKill,
11009
+ x: armBox.timer,
11010
+ y: arm,
11011
+ z: renamingId,
11012
+ a0: renameValue,
11013
+ a2: commitRename,
11014
+ a3: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && usage,
11015
+ a4: openSess,
11016
+ a6: openSess?.id,
11017
+ a7: openPlan,
11018
+ a9: ws$1?.pending,
11019
+ ab: ws$1?.id,
11020
+ ac: $si__input_rail__OR__input_workspace && ws$1?.name,
11021
+ ad: ws$1?.pending_error,
11022
+ ae: $si__input_rail__OR__input_workspace && restoreLine,
11023
+ af: armedDelete,
11024
+ ag: $si__input_rail__OR__input_workspace && retrying,
11025
+ ah: restoreAction,
11026
+ ai: $si__input_current && $input_current__closures,
11027
+ ap: $si__input_index && $input_index__closures,
11028
+ b0: $si__input_workspace && $ws_pending__closures,
11029
+ b1: $si__input_workspace && $ws_id__closures,
11030
+ b2: $si__input_workspace && $ws_name__closures,
11031
+ b5: $armedDelete__closures,
11032
+ aj: $si__input_page && $input_page__closures,
11033
+ aq: $si__input_railPop && $input_railPop__closures,
11034
+ b3: $si__input_workspace && $ws_pending_error__closures,
11035
+ b4: $restoreLine__closures,
11036
+ b6: $retrying__closures,
11037
+ as: $si__input_agents && $input_agents__closures,
11038
+ ar: $si__input_onNewSession && $input_onNewSession__closures,
11039
+ at: $si__input_onReview && $input_onReview__closures,
11040
+ au: $si__input_managing && $input_managing__closures,
11041
+ az: $openPlan__closures,
11042
+ ax: $renameValue__closures,
11043
+ av: $armedKill__closures,
11044
+ ay: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures,
11045
+ am: $si__input_currentTab && $input_currentTab__closures,
11046
+ aw: $renamingId__closures,
11047
+ al: $si__input_sessions && $input_sessions__closures,
11048
+ an: $si__input_workspaceId && $input_workspaceId__closures
11080
11049
  });
11081
11050
  _resume_branch($scope0_id);
11082
11051
  });
11083
11052
  //#endregion
11084
11053
  //#region src/tags/workspace-switcher.marko
11085
11054
  var workspace_switcher_default = _template("K", (input) => {
11086
- const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 2), $sg__input_workspace = _serialize_guard($scope0_reason, 9), $si__input_tab = _serialize_if($scope0_reason, 12), $si__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_if($scope0_reason, 2), $si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab = _serialize_if($scope0_reason, 5), $sg__input_openIds__OR__input_doneIds = _serialize_guard($scope0_reason, 1), $sg__input_openIds__OR__input_doneIds__OR__input_byId = _serialize_guard($scope0_reason, 4), $sg__input_allStatus__OR__input_openIds__OR__input_doneIds = _serialize_guard($scope0_reason, 3), $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId = _serialize_guard($scope0_reason, 7), $si__input_allStatus__OR__input_openIds__OR__input_doneIds = _serialize_if($scope0_reason, 3), $si__input_openIds__OR__input_doneIds = _serialize_if($scope0_reason, 1), $si__input_allStatus = _serialize_if($scope0_reason, 10), $si__input_openIds__OR__input_doneIds__OR__input_byId = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allStatus = _serialize_if($scope0_reason, 0), $si__input_workspace = _serialize_if($scope0_reason, 9), $si__input_byId = _serialize_if($scope0_reason, 15);
11055
+ const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 4), $sg__input_workspace = _serialize_guard($scope0_reason, 10), $si__input_tab = _serialize_if($scope0_reason, 13), $si__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab = _serialize_if($scope0_reason, 7), $sg__input_ids__OR__input_byId = _serialize_guard($scope0_reason, 3), $sg__input_allStatus__OR__input_ids = _serialize_guard($scope0_reason, 2), $sg__input_allStatus__OR__input_ids__OR__input_byId = _serialize_guard($scope0_reason, 6), $si__input_allStatus__OR__input_ids = _serialize_if($scope0_reason, 2), $sg__input_ids = _serialize_guard($scope0_reason, 14), $si__input_allStatus = _serialize_if($scope0_reason, 11), $si__input_allStatus__OR__input_ids__OR__input_byId = _serialize_if($scope0_reason, 6), $si__input_ids__OR__input_byId = _serialize_if($scope0_reason, 3), $sg__input_workspace__OR__input_ids_length = _serialize_guard($scope0_reason, 1), $si__input_workspace__OR__input_allStatus = _serialize_if($scope0_reason, 0), $si__input_workspace = _serialize_if($scope0_reason, 10), $si__input_byId = _serialize_if($scope0_reason, 16);
11087
11056
  const $scope0_id = _scope_id();
11088
11057
  const $sessions___closures = /* @__PURE__ */ new Set();
11089
11058
  const $input_tab__closures = /* @__PURE__ */ new Set();
@@ -11097,14 +11066,14 @@ var workspace_switcher_default = _template("K", (input) => {
11097
11066
  const sessions = input.sessions || st?.sessions || [];
11098
11067
  const manySessions = sessions.length > 1;
11099
11068
  const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
11100
- _html(`<div${_attr_class("_eS")}>`);
11069
+ _html(`<div${_attr_class("_cV")}>`);
11101
11070
  _if(() => {
11102
11071
  if (ws) {
11103
11072
  const $scope1_id = _scope_id();
11104
- _html(`<section${_attr_class("_eT")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eU")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
11073
+ _html(`<section${_attr_class("_cW")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_cX")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
11105
11074
  _if(() => {
11106
11075
  if (sessions.length === 1) {
11107
- const $scope10_id = _scope_id();
11076
+ const $scope8_id = _scope_id();
11108
11077
  _set_serialize_reason({
11109
11078
  1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
11110
11079
  2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
@@ -11113,23 +11082,23 @@ var workspace_switcher_default = _template("K", (input) => {
11113
11082
  icon_agent_default({
11114
11083
  agent: activeAgent(sessions[0]),
11115
11084
  size: 16,
11116
- class: "_eX"
11085
+ class: "_c0"
11117
11086
  });
11118
- $si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope10_id, {
11087
+ $si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
11119
11088
  _: _scope_with_id($scope1_id),
11120
11089
  a: _existing_scope($childScope)
11121
11090
  }));
11122
11091
  return 0;
11123
11092
  }
11124
11093
  }, $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);
11125
- _html(`<span${_attr_class("_eV")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eW")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
11094
+ _html(`<span${_attr_class("_cY")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_cZ")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
11126
11095
  _if(() => {
11127
11096
  if (manySessions) {
11128
11097
  const $scope2_id = _scope_id();
11129
- _html(`<div${_attr_class("_eY")}>`);
11098
+ _html(`<div${_attr_class("_c1")}>`);
11130
11099
  _for_of(sessions, (s) => {
11131
11100
  const $scope3_id = _scope_id();
11132
- _html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e0", { ["_eZ"]: 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)}`);
11101
+ _html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_c3", { ["_c2"]: 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)}`);
11133
11102
  _set_serialize_reason({
11134
11103
  1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
11135
11104
  2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
@@ -11139,7 +11108,7 @@ var workspace_switcher_default = _template("K", (input) => {
11139
11108
  agent: activeAgent(s),
11140
11109
  size: 14
11141
11110
  });
11142
- _html(`<span${_attr_class("_e1")}>${_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, 5))}`);
11111
+ _html(`<span${_attr_class("_c4")}>${_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))}`);
11143
11112
  $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, {
11144
11113
  h: $si__input_tab && s?.id,
11145
11114
  _: _scope_with_id($scope2_id),
@@ -11164,189 +11133,147 @@ var workspace_switcher_default = _template("K", (input) => {
11164
11133
  });
11165
11134
  return 0;
11166
11135
  }
11167
- }, $scope0_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace, $sg__input_workspace, 0, 1);
11168
- _for_of([input.openIds, input.doneIds], (ids, i) => {
11169
- const $scope4_id = _scope_id();
11170
- _if(() => {
11171
- if (ids.length) {
11136
+ }, $scope0_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace, $sg__input_workspace__OR__input_ids_length, 0, 1);
11137
+ _if(() => {
11138
+ if (input.ids.length) {
11139
+ const $scope4_id = _scope_id();
11140
+ _html(`<div${_attr_class("_c5")}>`);
11141
+ _for_of(input.ids, (id) => {
11172
11142
  const $scope5_id = _scope_id();
11173
- const $if_content3__done__closures = /* @__PURE__ */ new Set();
11174
- const done = i === 1;
11175
- _html(`<section${_attr_class("_e2")}>`);
11143
+ const w = input.byId.get(id);
11176
11144
  _if(() => {
11177
- if (done) {
11178
- const $scope11_id = _scope_id();
11179
- _html(`<h2${_attr_class(["_cn", "_e3"])}>Done</h2>`);
11180
- $si__input_openIds__OR__input_doneIds && writeScope($scope11_id, {});
11145
+ if (w?.pending) {
11146
+ const $scope6_id = _scope_id();
11147
+ _set_serialize_reason({
11148
+ 0: $sg__input_ids__OR__input_byId,
11149
+ 1: $sg__input_ids__OR__input_byId,
11150
+ 2: $sg__input_ids__OR__input_byId,
11151
+ 3: $sg__input_allStatus__OR__input_ids,
11152
+ 4: $sg__input_ids__OR__input_byId,
11153
+ 5: $sg__input_allStatus__OR__input_ids,
11154
+ 7: $sg__input_ids__OR__input_byId,
11155
+ 8: $sg__input_allStatus__OR__input_ids,
11156
+ 9: $sg__input_ids__OR__input_byId,
11157
+ 10: $sg__input_allStatus__OR__input_ids__OR__input_byId,
11158
+ 11: $sg__input_ids__OR__input_byId,
11159
+ 12: $sg__input_ids__OR__input_byId,
11160
+ 14: $sg__input_ids__OR__input_byId,
11161
+ 15: $sg__input_ids__OR__input_byId,
11162
+ 16: $sg__input_ids__OR__input_byId,
11163
+ 17: $sg__input_allStatus__OR__input_ids__OR__input_byId,
11164
+ 18: $sg__input_ids__OR__input_byId,
11165
+ 19: $sg__input_allStatus__OR__input_ids__OR__input_byId,
11166
+ 24: $sg__input_ids__OR__input_byId,
11167
+ 25: $sg__input_ids,
11168
+ 26: $sg__input_allStatus__OR__input_ids
11169
+ });
11170
+ const $childScope4 = _peek_scope_id();
11171
+ side_nav_item_default({
11172
+ page: true,
11173
+ workspaceId: id,
11174
+ workspace: w,
11175
+ status: input.allStatus[id],
11176
+ current: false,
11177
+ onSelect: _resume(function() {}, "K0")
11178
+ });
11179
+ $si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope6_id, {
11180
+ _: _scope_with_id($scope5_id),
11181
+ a: _existing_scope($childScope4)
11182
+ }));
11181
11183
  return 0;
11184
+ } else if (w) {
11185
+ const $scope7_id = _scope_id();
11186
+ const rs = input.allStatus[id];
11187
+ const rp = phaseOf(rs);
11188
+ const rowSessions = rs?.sessions || [];
11189
+ const many = rowSessions.length > 1;
11190
+ _html(`<div${_attr_class("_c6")}><a${_attr("href", `/w/${id}`)}${_attr_class("_c7")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
11191
+ _if(() => {
11192
+ if (rowSessions.length === 1) {
11193
+ const $scope9_id = _scope_id();
11194
+ _set_serialize_reason({
11195
+ 1: $sg__input_allStatus__OR__input_ids,
11196
+ 2: $sg__input_allStatus__OR__input_ids
11197
+ });
11198
+ const $childScope5 = _peek_scope_id();
11199
+ icon_agent_default({
11200
+ agent: activeAgent(rowSessions[0]),
11201
+ size: 16,
11202
+ class: "_c9"
11203
+ });
11204
+ $si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
11205
+ _: _scope_with_id($scope7_id),
11206
+ a: _existing_scope($childScope5)
11207
+ });
11208
+ return 0;
11209
+ }
11210
+ }, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
11211
+ _html(`<span${_attr_class("_c8")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
11212
+ _if(() => {
11213
+ if (many) {
11214
+ const $scope10_id = _scope_id();
11215
+ _html(`<span${_attr_class(rowState)}>${_text_resume($scope10_id, "b", rowSessions.length, $sg__input_allStatus__OR__input_ids)} sessions</span>`);
11216
+ $si__input_allStatus__OR__input_ids && writeScope($scope10_id, { _: _scope_with_id($scope7_id) });
11217
+ return 0;
11218
+ }
11219
+ }, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
11220
+ icon_chevron_right_default({
11221
+ size: 14,
11222
+ class: "_da"
11223
+ });
11224
+ _html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
11225
+ _set_serialize_reason($sg__input_ids);
11226
+ const $childScope6 = _peek_scope_id();
11227
+ side_nav_chips_default({
11228
+ workspaceId: id,
11229
+ status: rs
11230
+ });
11231
+ _html("</div>");
11232
+ $si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope7_id, {
11233
+ o: $si__input_allStatus__OR__input_ids && rowSessions.length,
11234
+ p: $si__input_allStatus__OR__input_ids && rowSessions[0],
11235
+ _: _scope_with_id($scope5_id),
11236
+ i: $si__input_allStatus__OR__input_ids && _existing_scope($childScope6),
11237
+ Ca0: $si__input_allStatus && 1
11238
+ }));
11239
+ return 1;
11182
11240
  }
11183
- }, $scope5_id, "b", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
11184
- _html(`<div${_attr_class("_e4")}>`);
11185
- _for_of(ids, (id) => {
11186
- const $scope6_id = _scope_id();
11187
- const w = input.byId.get(id);
11188
- _if(() => {
11189
- if (w?.pending) {
11190
- const $scope7_id = _scope_id();
11191
- _set_serialize_reason({
11192
- 0: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11193
- 1: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11194
- 2: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11195
- 3: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
11196
- 4: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11197
- 5: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
11198
- 6: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11199
- 7: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
11200
- 8: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11201
- 9: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
11202
- 11: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11203
- 12: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11204
- 13: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11205
- 15: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11206
- 16: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11207
- 17: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11208
- 18: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
11209
- 19: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11210
- 20: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
11211
- 25: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
11212
- 26: $sg__input_openIds__OR__input_doneIds,
11213
- 27: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds
11214
- });
11215
- const $childScope4 = _peek_scope_id();
11216
- side_nav_item_default({
11217
- page: true,
11218
- workspaceId: id,
11219
- workspace: w,
11220
- status: input.allStatus[id],
11221
- current: false,
11222
- onSelect: _resume(function() {}, "K0")
11223
- });
11224
- _serialize_if($scope0_reason, 7) && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope7_id, {
11225
- _: _scope_with_id($scope6_id),
11226
- a: _existing_scope($childScope4)
11227
- }));
11228
- return 0;
11229
- } else if (w) {
11230
- const $scope8_id = _scope_id();
11231
- const rs = input.allStatus[id];
11232
- const rp = phaseOf(rs);
11233
- const rowSessions = rs?.sessions || [];
11234
- const many = rowSessions.length > 1;
11235
- _html(`<div${_attr_class("_e5")}><a${_attr("href", `/w/${id}`)}${_attr_class("_e6")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope8_id, "c", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)}`);
11236
- _if(() => {
11237
- if (rowSessions.length === 1) {
11238
- const $scope12_id = _scope_id();
11239
- _set_serialize_reason({
11240
- 1: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
11241
- 2: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds
11242
- });
11243
- const $childScope5 = _peek_scope_id();
11244
- icon_agent_default({
11245
- agent: activeAgent(rowSessions[0]),
11246
- size: 16,
11247
- class: "_e8"
11248
- });
11249
- $si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope12_id, {
11250
- _: _scope_with_id($scope8_id),
11251
- a: _existing_scope($childScope5)
11252
- });
11253
- return 0;
11254
- }
11255
- }, $scope8_id, "d", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds);
11256
- _html(`<span${_attr_class("_e7")}>${_text_resume($scope8_id, "f", w.name, $sg__input_openIds__OR__input_doneIds__OR__input_byId)}</span>`);
11257
- _if(() => {
11258
- if (many) {
11259
- const $scope13_id = _scope_id();
11260
- _html(`<span${_attr_class(rowState)}>${_text_resume($scope13_id, "b", rowSessions.length, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)} sessions</span>`);
11261
- $si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope13_id, { _: _scope_with_id($scope8_id) });
11262
- return 0;
11263
- }
11264
- }, $scope8_id, "g", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, 0, 1);
11265
- _if(() => {
11266
- if (done) {
11267
- const $scope9_id = _scope_id();
11268
- _html(`<button${_attr_class(rowArchive)} title="Every PR is finished. Archive this workspace">`);
11269
- icon_archive_default({ size: 12 });
11270
- _html(` Archive</button>${_el_resume($scope9_id, "a")}`);
11271
- _script($scope9_id, "K2");
11272
- writeScope($scope9_id, { _: _scope_with_id($scope8_id) });
11273
- return 0;
11274
- } else {
11275
- const $scope14_id = _scope_id();
11276
- icon_chevron_right_default({
11277
- size: 14,
11278
- class: "_e_"
11279
- });
11280
- $si__input_openIds__OR__input_doneIds && writeScope($scope14_id, {});
11281
- return 1;
11282
- }
11283
- }, $scope8_id, "h", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, 0, 1);
11284
- _html(`</a>${_el_resume($scope8_id, "b", $sg__input_openIds__OR__input_doneIds)}`);
11285
- _set_serialize_reason($sg__input_openIds__OR__input_doneIds);
11286
- const $childScope6 = _peek_scope_id();
11287
- side_nav_chips_default({
11288
- workspaceId: id,
11289
- status: rs
11290
- });
11291
- _html("</div>");
11292
- _subscribe($si__input_openIds__OR__input_doneIds && $if_content3__done__closures, _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope8_id, {
11293
- o: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && rowSessions.length,
11294
- p: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && rowSessions[0],
11295
- _: _scope_with_id($scope6_id),
11296
- i: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && _existing_scope($childScope6),
11297
- Ca2: $si__input_allStatus && 1
11298
- })));
11299
- return 1;
11300
- }
11301
- }, $scope6_id, "a", $sg__input_openIds__OR__input_doneIds__OR__input_byId, $sg__input_openIds__OR__input_doneIds__OR__input_byId, $sg__input_openIds__OR__input_doneIds__OR__input_byId);
11302
- _subscribe($si__input_byId && $input_byId__closures, writeScope($scope6_id, {
11303
- c: id,
11304
- e: $si__input_openIds__OR__input_doneIds__OR__input_byId && w,
11305
- f: $si__input_openIds__OR__input_doneIds__OR__input_byId && w?.name,
11306
- _: _scope_with_id($scope5_id)
11307
- }));
11308
- }, (id) => id, $scope5_id, "c", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, "</div>");
11309
- _html("</section>");
11310
- writeScope($scope5_id, {
11311
- d: $si__input_openIds__OR__input_doneIds__OR__input_byId && done,
11312
- _: _scope_with_id($scope4_id),
11313
- e: $si__input_openIds__OR__input_doneIds && $if_content3__done__closures
11314
- });
11315
- return 0;
11316
- }
11317
- }, $scope4_id, "a", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
11318
- writeScope($scope4_id, {
11319
- c: $si__input_openIds__OR__input_doneIds && ids,
11320
- e: $si__input_openIds__OR__input_doneIds && i,
11321
- _: _scope_with_id($scope0_id)
11322
- });
11323
- }, (_, i) => String(i), $scope0_id, "c", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds);
11241
+ }, $scope5_id, "a", $sg__input_ids__OR__input_byId, $sg__input_ids__OR__input_byId, $sg__input_ids__OR__input_byId);
11242
+ $si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_byId && $input_byId__closures, writeScope($scope5_id, {
11243
+ c: id,
11244
+ e: $si__input_ids__OR__input_byId && w,
11245
+ f: $si__input_ids__OR__input_byId && w?.name,
11246
+ _: _scope_with_id($scope4_id)
11247
+ }));
11248
+ }, (id) => id, $scope4_id, "a", $sg__input_ids, $sg__input_ids, $sg__input_ids, "</div>");
11249
+ $si__input_allStatus__OR__input_ids__OR__input_byId && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
11250
+ return 0;
11251
+ }
11252
+ }, $scope0_id, "c", $sg__input_ids, _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_ids_length, 0, 1);
11324
11253
  _html("</div>");
11325
- writeScope($scope0_id, {
11326
- g: _serialize_if($scope0_reason, 6) && input.allStatus,
11254
+ _serialize_if($scope0_reason, 9) && writeScope($scope0_id, {
11255
+ g: _serialize_if($scope0_reason, 5) && input.allStatus,
11327
11256
  h: $si__input_workspace__OR__input_allStatus && input.sessions,
11328
11257
  i: $si__input_workspace__OR__input_allStatus__OR__input_sessions && input.tab,
11329
- j: _serialize_if($scope0_reason, 14) && input.openIds,
11330
- k: _serialize_if($scope0_reason, 13) && input.doneIds,
11331
- m: $si__input_openIds__OR__input_doneIds && input.byId,
11332
- n: input.onArchive,
11333
- o: $si__input_allStatus && ws,
11334
- q: $si__input_workspace__OR__input_allStatus__OR__input_sessions && ws?.id,
11335
- r: $si__input_workspace && ws?.name,
11336
- s: $si__input_workspace && st,
11337
- t: _serialize_if($scope0_reason, 11) && st?.sessions,
11338
- v: $si__input_workspace && phase$1,
11339
- w: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions,
11340
- x: $si__input_workspace && sessions.length,
11341
- y: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions[0],
11342
- z: $si__input_workspace && manySessions,
11343
- a1: $si__input_workspace && heroMeta$1,
11344
- ab: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions___closures,
11345
- a3: $si__input_tab && $input_tab__closures,
11346
- a5: $si__input_workspace && $ws_id__closures,
11347
- a9: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions__closures,
11348
- a2: $si__input_allStatus && $input_allStatus__closures,
11349
- a4: $si__input_byId && $input_byId__closures
11258
+ j: _serialize_if($scope0_reason, 15) && input.ids,
11259
+ l: _serialize_if($scope0_reason, 14) && input.byId,
11260
+ m: $si__input_allStatus && ws,
11261
+ o: $si__input_workspace__OR__input_allStatus__OR__input_sessions && ws?.id,
11262
+ p: $si__input_workspace && ws?.name,
11263
+ q: $si__input_workspace && st,
11264
+ r: _serialize_if($scope0_reason, 12) && st?.sessions,
11265
+ t: $si__input_workspace && phase$1,
11266
+ u: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions,
11267
+ v: $si__input_workspace && sessions.length,
11268
+ w: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions[0],
11269
+ x: $si__input_workspace && manySessions,
11270
+ z: $si__input_workspace && heroMeta$1,
11271
+ aa: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions___closures,
11272
+ a1: $si__input_tab && $input_tab__closures,
11273
+ a4: $si__input_workspace && $ws_id__closures,
11274
+ a8: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions__closures,
11275
+ a0: $si__input_allStatus && $input_allStatus__closures,
11276
+ a3: $si__input_byId && $input_byId__closures
11350
11277
  });
11351
11278
  });
11352
11279
  //#endregion
@@ -11402,50 +11329,15 @@ var icon_sidebar_default = _template("pb", (input) => {
11402
11329
  });
11403
11330
  //#endregion
11404
11331
  //#region src/tags/side-nav.marko
11405
- var api$7;
11406
- var GROUP_ORDER = ["open", "done"];
11407
- var GROUP_LABEL = {
11408
- open: "",
11409
- done: "Done"
11410
- };
11411
- function groupOf(w, st) {
11412
- if (!st || w.pending || st.working > 0 || st.waiting > 0) return "open";
11413
- const prs = st.repos.flatMap((r) => r.prs);
11414
- return prs.length && !prs.some((p) => p.state === "OPEN") ? "done" : "open";
11415
- }
11416
- function groupIdsOf(ids, byId, allStatus) {
11417
- const groups = new Map(GROUP_ORDER.map((g) => [g, []]));
11418
- const of = /* @__PURE__ */ new Map();
11419
- for (const id of ids) {
11420
- const w = byId.get(id);
11421
- if (!w) continue;
11422
- const g = groupOf(w, allStatus[id]);
11423
- of.set(id, g);
11424
- groups.get(g).push(id);
11425
- }
11426
- for (const list of groups.values()) list.sort((a, b) => byId.get(a).name.localeCompare(byId.get(b).name));
11427
- const start = /* @__PURE__ */ new Map();
11428
- let sections = 0;
11429
- for (const g of GROUP_ORDER) {
11430
- const list = groups.get(g);
11431
- if (!list.length) continue;
11432
- sections++;
11433
- start.set(list[0], g);
11434
- }
11435
- return {
11436
- ids: GROUP_ORDER.flatMap((g) => groups.get(g)),
11437
- of,
11438
- done: new Set(groups.get("done")),
11439
- start: sections > 1 ? start : /* @__PURE__ */ new Map()
11440
- };
11332
+ function sortedIds(ids, byId) {
11333
+ return ids.filter((id) => byId.has(id)).sort((a, b) => byId.get(a).name.localeCompare(byId.get(b).name));
11441
11334
  }
11442
11335
  var side_nav_default = _template("B", (input) => {
11443
- const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 18), $sg__input_setupReady = _serialize_guard($scope0_reason, 19), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 17), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_if($scope0_reason, 4), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 7), $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 6), $si__input_workspace = _serialize_if($scope0_reason, 10), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 16), $sg__input_agents = _serialize_guard($scope0_reason, 21), $si__input_sessions = _serialize_if($scope0_reason, 20), $si__input_agents = _serialize_if($scope0_reason, 21), $si__input_onNewSession = _serialize_if($scope0_reason, 22), $si__input_onReviewOpened = _serialize_if($scope0_reason, 23), $si__input_onReviewOther = _serialize_if($scope0_reason, 24), $si__input_onRenameSession = _serialize_if($scope0_reason, 25), $si__input_onCloseSession = _serialize_if($scope0_reason, 26), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 2), $si__input_onError = _serialize_if($scope0_reason, 15), $si__input_setupReady = _serialize_if($scope0_reason, 19), $si__input_instanceName = _serialize_if($scope0_reason, 18), $si__input_instanceAccent = _serialize_if($scope0_reason, 17);
11336
+ const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 16), $sg__input_setupReady = _serialize_guard($scope0_reason, 17), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 4), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 6), $si__input_workspace = _serialize_if($scope0_reason, 9), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 14), $sg__input_agents = _serialize_guard($scope0_reason, 19), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_agents = _serialize_if($scope0_reason, 19), $si__input_onNewSession = _serialize_if($scope0_reason, 20), $si__input_onReviewOpened = _serialize_if($scope0_reason, 21), $si__input_onReviewOther = _serialize_if($scope0_reason, 22), $si__input_onRenameSession = _serialize_if($scope0_reason, 23), $si__input_onCloseSession = _serialize_if($scope0_reason, 24), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 2), $si__input_setupReady = _serialize_if($scope0_reason, 17), $si__input_instanceName = _serialize_if($scope0_reason, 16), $si__input_instanceAccent = _serialize_if($scope0_reason, 15);
11444
11337
  const $scope0_id = _scope_id();
11445
11338
  const $input_instanceName__closures = /* @__PURE__ */ new Set();
11446
11339
  const $iconSrc__closures = /* @__PURE__ */ new Set();
11447
11340
  const $notifyOn__closures = /* @__PURE__ */ new Set();
11448
- const $grouped_start__closures = /* @__PURE__ */ new Set();
11449
11341
  const $input_sessions__closures = /* @__PURE__ */ new Set();
11450
11342
  const $input_agents__closures = /* @__PURE__ */ new Set();
11451
11343
  const $input_onNewSession__closures = /* @__PURE__ */ new Set();
@@ -11459,8 +11351,6 @@ var side_nav_default = _template("B", (input) => {
11459
11351
  const $leaveNav2__closures = /* @__PURE__ */ new Set();
11460
11352
  const $byId__closures = /* @__PURE__ */ new Set();
11461
11353
  const $allStatus__closures = /* @__PURE__ */ new Set();
11462
- const $grouped_done__closures = /* @__PURE__ */ new Set();
11463
- const $archive2__closures = /* @__PURE__ */ new Set();
11464
11354
  const $keyIndex__closures = /* @__PURE__ */ new Set();
11465
11355
  const ws = input.workspace || null;
11466
11356
  let tab = input.tab;
@@ -11489,29 +11379,17 @@ var side_nav_default = _template("B", (input) => {
11489
11379
  const workspaces = input.allWorkspaces || (ws ? [ws] : []);
11490
11380
  const byId = new Map(workspaces.map((w) => [w.id, w]));
11491
11381
  const allStatus = input.allStatus || {};
11492
- const grouped = groupIdsOf(itemIds, byId, allStatus);
11382
+ const orderedIds = sortedIds(itemIds, byId);
11493
11383
  const keyIndex = (() => {
11494
11384
  const m = /* @__PURE__ */ new Map();
11495
11385
  let n = 0;
11496
- for (const id of grouped.ids) if (!byId.get(id)?.pending) m.set(id, n++);
11386
+ for (const id of orderedIds) if (!byId.get(id)?.pending) m.set(id, n++);
11497
11387
  return m;
11498
11388
  })();
11499
- const archive = _resume(async (id) => {
11500
- try {
11501
- await api$7(`/api/workspaces/${id}`, {
11502
- method: "POST",
11503
- headers: { "content-type": "application/json" },
11504
- body: JSON.stringify({ action: "archive" })
11505
- });
11506
- } catch (err) {
11507
- input.onError?.(`Archive failed: ${String(err.message || err)}`);
11508
- }
11509
- }, "B2", $scope0_id);
11510
11389
  const isPage = view === "nav";
11511
11390
  const backHref = ws ? `/w/${ws.id}` : "/new";
11512
11391
  const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
11513
- const pageOpen = grouped.ids.filter((id) => id !== ws?.id && !grouped.done.has(id));
11514
- const pageDone = grouped.ids.filter((id) => id !== ws?.id && grouped.done.has(id));
11392
+ const pageIds = orderedIds.filter((id) => id !== ws?.id);
11515
11393
  _html(`<aside${_attr_class(["_bR", {
11516
11394
  ["_bP"]: !navOpen,
11517
11395
  ["_bQ"]: isPage
@@ -11519,11 +11397,11 @@ var side_nav_default = _template("B", (input) => {
11519
11397
  _if(() => {
11520
11398
  if (isPage) {
11521
11399
  const $scope1_id = _scope_id();
11522
- _html(`<header${_attr_class("_bU")}><div${_attr_class("_b3")}>`);
11400
+ _html(`<header${_attr_class("_bU")}><div${_attr_class("_b2")}>`);
11523
11401
  _if(() => {
11524
11402
  if (input.instanceName) {
11525
11403
  const $scope2_id = _scope_id();
11526
- _html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
11404
+ _html(`<div${_attr_class("_bZ")} title="This work server (Settings → Appearance)"><img${_attr_class("_b0")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b1")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
11527
11405
  _subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
11528
11406
  return 0;
11529
11407
  }
@@ -11538,9 +11416,9 @@ var side_nav_default = _template("B", (input) => {
11538
11416
  icon_settings_default({ size: 16 });
11539
11417
  _if(() => {
11540
11418
  if (input.setupReady === false) {
11541
- const $scope15_id = _scope_id();
11419
+ const $scope14_id = _scope_id();
11542
11420
  _html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
11543
- $si__input_setupReady && writeScope($scope15_id, {});
11421
+ $si__input_setupReady && writeScope($scope14_id, {});
11544
11422
  return 0;
11545
11423
  }
11546
11424
  }, $scope1_id, "i", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
@@ -11552,7 +11430,7 @@ var side_nav_default = _template("B", (input) => {
11552
11430
  _if(() => {
11553
11431
  if (!isPage && input.instanceName) {
11554
11432
  const $scope3_id = _scope_id();
11555
- _html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
11433
+ _html(`<div${_attr_class("_bZ")} title="This work server (Settings → Appearance)"><img${_attr_class("_b0")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b1")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
11556
11434
  writeScope($scope3_id, {});
11557
11435
  return 0;
11558
11436
  }
@@ -11562,84 +11440,70 @@ var side_nav_default = _template("B", (input) => {
11562
11440
  const $scope4_id = _scope_id();
11563
11441
  _set_serialize_reason({
11564
11442
  0: _serialize_guard($scope0_reason, 1),
11565
- 1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11566
- 2: _serialize_guard($scope0_reason, 5),
11567
- 3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11568
- 4: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11569
- 5: _serialize_guard($scope0_reason, 8),
11443
+ 1: $sg__input_workspace__OR__input_allWorkspaces,
11444
+ 2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11445
+ 3: $sg__input_workspace__OR__input_allWorkspaces,
11446
+ 4: _serialize_guard($scope0_reason, 5),
11447
+ 5: $sg__input_workspace__OR__input_allWorkspaces,
11570
11448
  6: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11571
- 7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11449
+ 7: _serialize_guard($scope0_reason, 7),
11572
11450
  8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11573
- 9: _serialize_guard($scope0_reason, 10),
11574
- 10: _serialize_guard($scope0_reason, 16),
11575
- 11: _serialize_guard($scope0_reason, 20),
11576
- 12: _serialize_guard($scope0_reason, 2),
11577
- 13: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11578
- 14: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11579
- 15: _serialize_guard($scope0_reason, 0)
11451
+ 9: _serialize_guard($scope0_reason, 8),
11452
+ 10: _serialize_guard($scope0_reason, 9),
11453
+ 11: _serialize_guard($scope0_reason, 14),
11454
+ 12: _serialize_guard($scope0_reason, 18),
11455
+ 13: _serialize_guard($scope0_reason, 2),
11456
+ 14: $sg__input_workspace__OR__input_allWorkspaces,
11457
+ 15: $sg__input_workspace__OR__input_allWorkspaces,
11458
+ 16: $sg__input_workspace__OR__input_allWorkspaces
11580
11459
  });
11581
11460
  const $childScope = _peek_scope_id();
11582
11461
  workspace_switcher_default({
11583
11462
  workspace: ws,
11584
11463
  sessions: input.sessions,
11585
11464
  tab,
11586
- openIds: pageOpen,
11587
- doneIds: pageDone,
11465
+ ids: pageIds,
11588
11466
  byId,
11589
- allStatus,
11590
- onArchive: archive
11467
+ allStatus
11591
11468
  });
11592
- writeScope($scope4_id, { a: _serialize_if($scope0_reason, 9) && _existing_scope($childScope) });
11469
+ writeScope($scope4_id, { a: _serialize_if($scope0_reason, 8) && _existing_scope($childScope) });
11593
11470
  return 0;
11594
11471
  } else if (navOpen) {
11595
11472
  const $scope5_id = _scope_id();
11596
- _html(`<div${_attr_class("_b4")}>`);
11597
- _for_of(grouped.ids, (wsId) => {
11473
+ _html(`<div${_attr_class("_b3")}>`);
11474
+ _for_of(orderedIds, (wsId) => {
11598
11475
  const $scope6_id = _scope_id();
11599
- _if(() => {
11600
- if (grouped.start.has(wsId) && GROUP_LABEL[grouped.start.get(wsId)]) {
11601
- const $scope14_id = _scope_id();
11602
- _html(`<h2${_attr_class(["_cn", "_bY"])}>${_text_resume($scope14_id, "b", GROUP_LABEL[grouped.start.get(wsId)], $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus)}</h2>`);
11603
- _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, writeScope($scope14_id, {
11604
- _: _scope_with_id($scope6_id),
11605
- Cbm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1
11606
- }));
11607
- return 0;
11608
- }
11609
- }, $scope6_id, "a", $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, 0, 1);
11610
11476
  _set_serialize_reason({
11611
- 0: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11612
- 1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11477
+ 0: $sg__input_workspace__OR__input_allWorkspaces,
11478
+ 1: $sg__input_workspace__OR__input_allWorkspaces,
11613
11479
  2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11614
11480
  3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11615
11481
  4: 1,
11616
11482
  5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11617
- 6: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11618
- 7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11619
- 8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11620
- 9: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11621
- 10: 1,
11622
- 11: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11623
- 12: $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus,
11483
+ 6: 1,
11484
+ 7: $sg__input_workspace__OR__input_allWorkspaces,
11485
+ 8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11486
+ 9: $sg__input_workspace__OR__input_allWorkspaces,
11487
+ 10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11488
+ 11: $sg__input_workspace__OR__input_allWorkspaces,
11489
+ 12: 1,
11624
11490
  13: 1,
11625
- 14: 1,
11626
- 15: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11491
+ 14: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11492
+ 15: 1,
11627
11493
  16: 1,
11628
- 17: 1,
11629
- 18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11494
+ 17: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11495
+ 18: 1,
11630
11496
  19: 1,
11631
- 20: 1,
11632
- 21: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11633
- 23: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11634
- 24: 1,
11635
- 25: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11497
+ 20: $sg__input_workspace__OR__input_allWorkspaces,
11498
+ 22: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
11499
+ 23: 1,
11500
+ 24: $sg__input_workspace__OR__input_allWorkspaces,
11501
+ 25: $sg__input_workspace__OR__input_allWorkspaces,
11636
11502
  26: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11637
- 27: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11638
- 30: $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus,
11503
+ 29: 1,
11504
+ 30: $sg__input_agents,
11639
11505
  31: 1,
11640
- 32: $sg__input_agents,
11641
- 33: 1,
11642
- 34: 1
11506
+ 32: 1
11643
11507
  });
11644
11508
  const $childScope2 = _peek_scope_id();
11645
11509
  side_nav_item_default({
@@ -11654,30 +11518,29 @@ var side_nav_default = _template("B", (input) => {
11654
11518
  leaveNav();
11655
11519
  input.onSelectWorkspace?.(wsId);
11656
11520
  } else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
11657
- }, "B3", $scope6_id),
11658
- onArchive: grouped.done.has(wsId) && _resume(() => archive(wsId), "B4", $scope6_id),
11521
+ }, "B2", $scope6_id),
11659
11522
  agents: input.agents,
11660
11523
  onNewSession: _resume(function(agent) {
11661
11524
  leaveNav();
11662
11525
  input.onNewSession(wsId, agent);
11663
- }, "B5", $scope6_id),
11526
+ }, "B3", $scope6_id),
11664
11527
  onReview: _resume(function() {
11665
11528
  if (wsId === ws?.id) {
11666
11529
  if (view === "diff") view = "term";
11667
11530
  else input.onReviewOpened?.();
11668
11531
  } else input.onReviewOther?.(wsId);
11669
- }, "B6", $scope6_id),
11532
+ }, "B4", $scope6_id),
11670
11533
  sessions: wsId === ws?.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
11671
11534
  currentTab: wsId === ws?.id && view === "term" ? tab : null,
11672
11535
  onRenameSession: input.onRenameSession,
11673
11536
  onCloseSession: input.onCloseSession
11674
11537
  });
11675
- _subscribe($si__input_onError && $archive2__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($leaveNav2__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope6_id, {
11676
- d: wsId,
11538
+ _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($leaveNav2__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope6_id, {
11539
+ c: wsId,
11677
11540
  _: _scope_with_id($scope5_id),
11678
- b: _existing_scope($childScope2)
11679
- })))))))))))))))));
11680
- }, (id) => id, $scope5_id, "a", $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, "</div>");
11541
+ a: _existing_scope($childScope2)
11542
+ }))))))))))))));
11543
+ }, (id) => id, $scope5_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>");
11681
11544
  writeScope($scope5_id, {});
11682
11545
  return 1;
11683
11546
  }
@@ -11687,43 +11550,42 @@ var side_nav_default = _template("B", (input) => {
11687
11550
  const $scope7_id = _scope_id();
11688
11551
  let railHover = null;
11689
11552
  const railHoverBox = { timer: 0 };
11690
- const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "B7", $scope7_id);
11553
+ const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "B5", $scope7_id);
11691
11554
  const railHide = _resume(() => {
11692
11555
  clearTimeout(railHoverBox.timer);
11693
11556
  railHoverBox.timer = setTimeout(() => {
11694
11557
  railHover = null;
11695
11558
  }, 150);
11696
- }, "B8", $scope7_id);
11697
- _html(`<div${_attr_class("_b5")}>`);
11698
- _for_of(grouped.ids, (wsId, i) => {
11559
+ }, "B6", $scope7_id);
11560
+ _html(`<div${_attr_class("_b4")}>`);
11561
+ _for_of(orderedIds, (wsId, i) => {
11699
11562
  const $scope8_id = _scope_id();
11700
11563
  _html("<span>");
11701
11564
  _set_serialize_reason({
11702
- 0: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11703
- 1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11704
- 2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11565
+ 0: $sg__input_workspace__OR__input_allWorkspaces,
11566
+ 1: $sg__input_workspace__OR__input_allWorkspaces,
11567
+ 2: $sg__input_workspace__OR__input_allWorkspaces,
11705
11568
  3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11706
- 4: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11569
+ 4: $sg__input_workspace__OR__input_allWorkspaces,
11707
11570
  5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11708
- 6: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11709
- 7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11571
+ 7: $sg__input_workspace__OR__input_allWorkspaces,
11710
11572
  8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11711
- 9: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11712
- 11: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11713
- 12: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11714
- 13: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11715
- 14: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11716
- 15: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11717
- 16: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11573
+ 9: $sg__input_workspace__OR__input_allWorkspaces,
11574
+ 10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11575
+ 11: $sg__input_workspace__OR__input_allWorkspaces,
11576
+ 12: $sg__input_workspace__OR__input_allWorkspaces,
11577
+ 13: $sg__input_workspace__OR__input_allWorkspaces,
11578
+ 14: $sg__input_workspace__OR__input_allWorkspaces,
11579
+ 15: $sg__input_workspace__OR__input_allWorkspaces,
11580
+ 16: $sg__input_workspace__OR__input_allWorkspaces,
11718
11581
  17: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11719
- 18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11582
+ 18: $sg__input_workspace__OR__input_allWorkspaces,
11720
11583
  19: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11721
- 20: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11722
- 21: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11723
- 25: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11584
+ 20: $sg__input_workspace__OR__input_allWorkspaces,
11585
+ 24: $sg__input_workspace__OR__input_allWorkspaces,
11586
+ 25: $sg__input_workspace__OR__input_allWorkspaces,
11724
11587
  26: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11725
- 27: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
11726
- 28: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus
11588
+ 27: $sg__input_workspace__OR__input_allWorkspaces
11727
11589
  });
11728
11590
  const $childScope3 = _peek_scope_id();
11729
11591
  side_nav_item_default({
@@ -11736,24 +11598,24 @@ var side_nav_default = _template("B", (input) => {
11736
11598
  onSelect: _resume(function() {
11737
11599
  if (wsId !== ws?.id) input.onSelectWorkspace?.(wsId);
11738
11600
  else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
11739
- }, "B9", $scope8_id)
11601
+ }, "B7", $scope8_id)
11740
11602
  });
11741
11603
  _html(`</span>${_el_resume($scope8_id, "a")}`);
11742
- _script($scope8_id, "B15");
11743
- _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $keyIndex__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope8_id, {
11604
+ _script($scope8_id, "B12");
11605
+ _subscribe($si__input_workspace__OR__input_allWorkspaces && $keyIndex__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope8_id, {
11744
11606
  d: wsId,
11745
11607
  _: _scope_with_id($scope7_id),
11746
- b: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && _existing_scope($childScope3),
11747
- Cbb: $si__input_workspace && 1,
11748
- Cbi: $si__input_workspace__OR__input_allWorkspaces && 1,
11749
- Cbj: $si__input_allStatus && 1
11608
+ b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope3),
11609
+ Cb6: $si__input_workspace && 1,
11610
+ Cbd: $si__input_workspace__OR__input_allWorkspaces && 1,
11611
+ Cbe: $si__input_allStatus && 1
11750
11612
  })))));
11751
- }, (id) => id, $scope7_id, "a", $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, "</div>", 1);
11613
+ }, (id) => id, $scope7_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>", 1);
11752
11614
  _if(() => {
11753
11615
  if (railHover) {
11754
11616
  const $scope9_id = _scope_id();
11755
11617
  const hoverId = railHover.id;
11756
- _html(`<div${_attr_class(["__", "_b8"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
11618
+ _html(`<div${_attr_class(["__", "_b7"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
11757
11619
  _set_serialize_reason({
11758
11620
  0: 1,
11759
11621
  1: 1,
@@ -11776,17 +11638,15 @@ var side_nav_default = _template("B", (input) => {
11776
11638
  18: 1,
11777
11639
  19: 1,
11778
11640
  20: 1,
11779
- 21: 1,
11641
+ 22: 1,
11780
11642
  23: 1,
11781
11643
  24: 1,
11782
11644
  25: 1,
11783
11645
  26: 1,
11784
- 27: 1,
11785
- 30: 1,
11646
+ 29: 1,
11647
+ 30: $sg__input_agents,
11786
11648
  31: 1,
11787
- 32: $sg__input_agents,
11788
- 33: 1,
11789
- 34: 1
11649
+ 32: 1
11790
11650
  });
11791
11651
  const $childScope4 = _peek_scope_id();
11792
11652
  side_nav_item_default({
@@ -11796,49 +11656,46 @@ var side_nav_default = _template("B", (input) => {
11796
11656
  current: hoverId === ws?.id,
11797
11657
  managing: view === "manage" && hoverId === ws?.id,
11798
11658
  railPop: true,
11799
- onArchive: grouped.done.has(hoverId) && _resume(() => archive(hoverId), "B10", $scope9_id),
11800
11659
  onSelect: _resume(function() {
11801
11660
  railHover = null;
11802
11661
  if (hoverId !== ws?.id) input.onSelectWorkspace?.(hoverId);
11803
11662
  else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
11804
- }, "B11", $scope9_id),
11663
+ }, "B8", $scope9_id),
11805
11664
  agents: input.agents,
11806
11665
  onNewSession: _resume(function(agent) {
11807
11666
  railHover = null;
11808
11667
  input.onNewSession(hoverId, agent);
11809
- }, "B12", $scope9_id),
11668
+ }, "B9", $scope9_id),
11810
11669
  onReview: _resume(function() {
11811
11670
  railHover = null;
11812
11671
  if (hoverId === ws?.id) {
11813
11672
  if (view === "diff") view = "term";
11814
11673
  else input.onReviewOpened?.();
11815
11674
  } else input.onReviewOther?.(hoverId);
11816
- }, "B13", $scope9_id),
11675
+ }, "B10", $scope9_id),
11817
11676
  sessions: hoverId === ws?.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
11818
11677
  currentTab: hoverId === ws?.id && view === "term" ? tab : null,
11819
11678
  onRenameSession: input.onRenameSession,
11820
11679
  onCloseSession: input.onCloseSession
11821
11680
  });
11822
11681
  _html(`</div>${_el_resume($scope9_id, "a")}`);
11823
- _script($scope9_id, "B16");
11824
- _subscribe($si__input_onError && $archive2__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope9_id, {
11682
+ _script($scope9_id, "B13");
11683
+ _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope9_id, {
11825
11684
  d: hoverId,
11826
11685
  b: _existing_scope($childScope4),
11827
- Cb3: $si__input_sessions && 1,
11828
- Cb4: $si__input_agents && 1,
11829
- Cb5: $si__input_onNewSession && 1,
11830
- Cb6: $si__input_onReviewOpened && 1,
11831
- Cb7: $si__input_onReviewOther && 1,
11832
- Cb8: $si__input_onRenameSession && 1,
11833
- Cb9: $si__input_onCloseSession && 1,
11834
- Cbb: $si__input_workspace && 2,
11835
- Cbc: $si__input_tab__OR__input_tabChange && 1,
11836
- Cbd: 1,
11837
- Cbi: $si__input_workspace__OR__input_allWorkspaces && 2,
11838
- Cbj: $si__input_allStatus && 2,
11839
- Cbl: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1,
11840
- Cbo: $si__input_onError && 1
11841
- })))))))))))))));
11686
+ Cay: $si__input_sessions && 1,
11687
+ Caz: $si__input_agents && 1,
11688
+ Cb0: $si__input_onNewSession && 1,
11689
+ Cb1: $si__input_onReviewOpened && 1,
11690
+ Cb2: $si__input_onReviewOther && 1,
11691
+ Cb3: $si__input_onRenameSession && 1,
11692
+ Cb4: $si__input_onCloseSession && 1,
11693
+ Cb6: $si__input_workspace && 2,
11694
+ Cb7: $si__input_tab__OR__input_tabChange && 1,
11695
+ Cb8: 1,
11696
+ Cbd: $si__input_workspace__OR__input_allWorkspaces && 2,
11697
+ Cbe: $si__input_allStatus && 2
11698
+ })))))))))))));
11842
11699
  return 0;
11843
11700
  }
11844
11701
  }, $scope7_id, "b", 1, 1, 1, 0, 1);
@@ -11853,7 +11710,7 @@ var side_nav_default = _template("B", (input) => {
11853
11710
  return 0;
11854
11711
  }
11855
11712
  }, $scope0_id, "e");
11856
- _html(`<div${_attr_class("_b6")}>`);
11713
+ _html(`<div${_attr_class("_b5")}>`);
11857
11714
  _if(() => {
11858
11715
  if (isPage) {
11859
11716
  const $scope11_id = _scope_id();
@@ -11861,7 +11718,7 @@ var side_nav_default = _template("B", (input) => {
11861
11718
  "_q",
11862
11719
  "_r",
11863
11720
  btnLg,
11864
- "_bZ"
11721
+ "_bY"
11865
11722
  ])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
11866
11723
  icon_folder_plus_default({ size: 16 });
11867
11724
  _html(` New workspace</a>${_el_resume($scope11_id, "a")}`);
@@ -11872,45 +11729,45 @@ var side_nav_default = _template("B", (input) => {
11872
11729
  _html(`<button${_attr_class(navToggle)} title=${navOpen ? "\"Collapse sidebar\"" : "\"Expand sidebar\""}>`);
11873
11730
  _if(() => {
11874
11731
  if (navOpen) {
11875
- const $scope16_id = _scope_id();
11732
+ const $scope15_id = _scope_id();
11876
11733
  icon_sidebar_collapse_default({});
11877
- writeScope($scope16_id, {});
11734
+ writeScope($scope15_id, {});
11878
11735
  return 0;
11879
11736
  } else {
11880
- const $scope17_id = _scope_id();
11737
+ const $scope16_id = _scope_id();
11881
11738
  icon_sidebar_default({});
11882
- writeScope($scope17_id, {});
11739
+ writeScope($scope16_id, {});
11883
11740
  return 1;
11884
11741
  }
11885
11742
  }, $scope10_id, "a", 1, 1, 1, "</button>", 1);
11886
- _html(`<div${_attr_class(["_z", "_b7"])}></div>`);
11743
+ _html(`<div${_attr_class(["_z", "_b6"])}></div>`);
11887
11744
  _if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
11888
11745
  _html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bM"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
11889
11746
  icon_settings_default({});
11890
11747
  _if(() => {
11891
11748
  if (input.setupReady === false) {
11892
- const $scope18_id = _scope_id();
11749
+ const $scope17_id = _scope_id();
11893
11750
  _html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
11894
- $si__input_setupReady && writeScope($scope18_id, {});
11751
+ $si__input_setupReady && writeScope($scope17_id, {});
11895
11752
  return 0;
11896
11753
  }
11897
11754
  }, $scope10_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
11898
11755
  _html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bM"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
11899
11756
  icon_folder_plus_default({ size: 16 });
11900
11757
  _html(`</a>${_el_resume($scope10_id, "g")}`);
11901
- _script($scope10_id, "B18");
11758
+ _script($scope10_id, "B15");
11902
11759
  writeScope($scope10_id, {});
11903
11760
  return 1;
11904
11761
  }
11905
11762
  }, $scope0_id, "f", 1, 1, 1, "</div>");
11906
11763
  _html(`</aside>${_el_resume($scope0_id, "a")}`);
11907
- _script($scope0_id, "B19");
11908
- _script($scope0_id, "B20");
11764
+ _script($scope0_id, "B16");
11765
+ _script($scope0_id, "B17");
11909
11766
  writeScope($scope0_id, {
11910
- j: _serialize_if($scope0_reason, 12) && input.tab,
11911
- k: _serialize_if($scope0_reason, 11) && input.tabChange,
11912
- m: _serialize_if($scope0_reason, 14) && input.view,
11913
- n: _serialize_if($scope0_reason, 13) && input.viewChange,
11767
+ j: _serialize_if($scope0_reason, 11) && input.tab,
11768
+ k: _serialize_if($scope0_reason, 10) && input.tabChange,
11769
+ m: _serialize_if($scope0_reason, 13) && input.view,
11770
+ n: _serialize_if($scope0_reason, 12) && input.viewChange,
11914
11771
  p: input.onError,
11915
11772
  q: input.active,
11916
11773
  r: $si__input_workspace && input.allWorkspaces,
@@ -11933,40 +11790,32 @@ var side_nav_default = _template("B", (input) => {
11933
11790
  ae: canPush,
11934
11791
  af: leaveNav,
11935
11792
  ag: toggleNotify,
11936
- ah: $si__input_allStatus && itemIds,
11937
11793
  aj: byId,
11938
- ak: allStatus,
11939
- an: grouped?.ids,
11940
- ap: grouped?.done,
11941
- ar: grouped?.start,
11942
- as: keyIndex,
11943
- at: archive,
11944
- au: isPage,
11945
- ax: backHref,
11946
- ay: iconSrc,
11947
- az: pageOpen,
11948
- b0: pageDone,
11794
+ al: allStatus,
11795
+ am: orderedIds,
11796
+ ap: keyIndex,
11797
+ aq: isPage,
11798
+ at: backHref,
11799
+ au: iconSrc,
11800
+ av: pageIds,
11949
11801
  aa: input.viewChange || void 0,
11950
- b1: $si__input_instanceName && $input_instanceName__closures,
11951
- bq: $si__input_instanceAccent && $iconSrc__closures,
11952
- bf: $notifyOn__closures,
11953
- bm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures,
11954
- b3: $si__input_sessions && $input_sessions__closures,
11955
- b4: $si__input_agents && $input_agents__closures,
11956
- b5: $si__input_onNewSession && $input_onNewSession__closures,
11957
- b6: $si__input_onReviewOpened && $input_onReviewOpened__closures,
11958
- b7: $si__input_onReviewOther && $input_onReviewOther__closures,
11959
- b8: $si__input_onRenameSession && $input_onRenameSession__closures,
11960
- b9: $si__input_onCloseSession && $input_onCloseSession__closures,
11961
- bb: $si__input_workspace && $ws_id__closures,
11962
- bc: $si__input_tab__OR__input_tabChange && $tab__closures,
11963
- bd: $view__closures,
11964
- bh: $leaveNav2__closures,
11965
- bi: $si__input_workspace__OR__input_allWorkspaces && $byId__closures,
11966
- bj: $si__input_allStatus && $allStatus__closures,
11967
- bl: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures,
11968
- bo: $si__input_onError && $archive2__closures,
11969
- bn: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $keyIndex__closures
11802
+ aw: $si__input_instanceName && $input_instanceName__closures,
11803
+ bi: $si__input_instanceAccent && $iconSrc__closures,
11804
+ ba: $notifyOn__closures,
11805
+ ay: $si__input_sessions && $input_sessions__closures,
11806
+ az: $si__input_agents && $input_agents__closures,
11807
+ b0: $si__input_onNewSession && $input_onNewSession__closures,
11808
+ b1: $si__input_onReviewOpened && $input_onReviewOpened__closures,
11809
+ b2: $si__input_onReviewOther && $input_onReviewOther__closures,
11810
+ b3: $si__input_onRenameSession && $input_onRenameSession__closures,
11811
+ b4: $si__input_onCloseSession && $input_onCloseSession__closures,
11812
+ b6: $si__input_workspace && $ws_id__closures,
11813
+ b7: $si__input_tab__OR__input_tabChange && $tab__closures,
11814
+ b8: $view__closures,
11815
+ bc: $leaveNav2__closures,
11816
+ bd: $si__input_workspace__OR__input_allWorkspaces && $byId__closures,
11817
+ be: $si__input_allStatus && $allStatus__closures,
11818
+ bg: $si__input_workspace__OR__input_allWorkspaces && $keyIndex__closures
11970
11819
  });
11971
11820
  _resume_branch($scope0_id);
11972
11821
  });
@@ -12238,8 +12087,8 @@ function treeDirs(files) {
12238
12087
  };
12239
12088
  return build(root, "", "", -1);
12240
12089
  }
12241
- var treeToggle = "_fT _5 _l";
12242
- var pageTitle = "_f0 _ec";
12090
+ var treeToggle = "_eV _5 _l";
12091
+ var pageTitle = "_e2 _dX";
12243
12092
  //#endregion
12244
12093
  //#region src/tags/diff-send.marko
12245
12094
  var diff_send_default = _template("j", (input) => {
@@ -12249,7 +12098,7 @@ var diff_send_default = _template("j", (input) => {
12249
12098
  let sendTarget = null;
12250
12099
  const sessions = input.sessions || [];
12251
12100
  const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
12252
- _html(`<span${_attr_class("_hv")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
12101
+ _html(`<span${_attr_class("_ht")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
12253
12102
  _if(() => {
12254
12103
  if (sessions.length === 1) {
12255
12104
  const $scope1_id = _scope_id();
@@ -12259,11 +12108,11 @@ var diff_send_default = _template("j", (input) => {
12259
12108
  return 0;
12260
12109
  } else if (sessions.length) {
12261
12110
  const $scope2_id = _scope_id();
12262
- _html(`<span${_attr_class("_hw")}><button type=button${_attr_class(["_r", "_hx"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
12111
+ _html(`<span${_attr_class("_hu")}><button type=button${_attr_class(["_r", "_hv"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
12263
12112
  _attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
12264
12113
  sendTarget = _new_sendTarget;
12265
12114
  }, "j0", $scope2_id), () => {
12266
- _html(`<select${_attr_class("_hy")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
12115
+ _html(`<select${_attr_class("_hw")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
12267
12116
  _for_of(sessions, (s) => {
12268
12117
  const $scope3_id = _scope_id();
12269
12118
  _html(`<option${_attr_option_value(s.id)}>${_text_resume($scope3_id, "b", s.title || s.agent, $sg__input_sessions)}</option>${_el_resume($scope3_id, "a", $sg__input_sessions)}`);
@@ -13775,8 +13624,8 @@ function clip(line, at, len) {
13775
13624
  const end = Math.min(line.length, at + len + pad);
13776
13625
  return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
13777
13626
  }
13778
- var findInput = "_ei _n";
13779
- var findIconBtn = "_el _l";
13627
+ var findInput = "_cw _n";
13628
+ var findIconBtn = "_cz _l";
13780
13629
  //#endregion
13781
13630
  //#region src/tags/icons/icon-arrow-down.marko
13782
13631
  var icon_arrow_down_default = _template("N", (input) => {
@@ -13864,9 +13713,9 @@ var diff_find_default = _template("i", (input) => {
13864
13713
  el.select();
13865
13714
  }, 0);
13866
13715
  }, "i0", $scope0_id);
13867
- _html(`<div${_attr_class(["_eh", !open && "_eg"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
13716
+ _html(`<div${_attr_class(["_cv", !open && "_cu"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
13868
13717
  type(v);
13869
- }, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_ek")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13718
+ }, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_cy")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13870
13719
  icon_arrow_up_default({ size: 14 });
13871
13720
  _html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13872
13721
  icon_arrow_down_default({ size: 14 });
@@ -13968,9 +13817,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
13968
13817
  }
13969
13818
  return shortHeadFallback(head);
13970
13819
  }
13971
- var repoWorktree = "_iV _y";
13972
- var repoTitle = "_i1 _x";
13973
- var path$1 = "_jh _bb";
13820
+ var repoWorktree = "_iR _y";
13821
+ var repoTitle = "_iX _x";
13822
+ var path$1 = "_jd _bb";
13974
13823
  //#endregion
13975
13824
  //#region src/tags/icons/icon-chevron-down.marko
13976
13825
  var icon_chevron_down_default = _template("W", (input) => {
@@ -14010,7 +13859,7 @@ var diff_file_default = _template("h", (input) => {
14010
13859
  _scope_reason();
14011
13860
  const $scope0_id = _scope_id();
14012
13861
  _el($scope0_id, "h0");
14013
- _html(`<div${_attr_class(["_jj", input.class])}></div>${_el_resume($scope0_id, "a")}`);
13862
+ _html(`<div${_attr_class(["_jh", input.class])}></div>${_el_resume($scope0_id, "a")}`);
14014
13863
  _script($scope0_id, "h1");
14015
13864
  writeScope($scope0_id, {
14016
13865
  e: input.file,
@@ -14069,14 +13918,14 @@ var review_section_default = _template("x", (input) => {
14069
13918
  const newCount = input.files.filter((f) => f.changedSince).length;
14070
13919
  const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
14071
13920
  const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
14072
- _html(`<section${_attr_class("_iR")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iS", { ["_iT"]: input.collapsible && input.collapsed }])}>`);
13921
+ _html(`<section${_attr_class("_iN")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iO", { ["_iP"]: input.collapsible && input.collapsed }])}>`);
14073
13922
  _if(() => {
14074
13923
  if (input.collapsible) {
14075
13924
  const $scope1_id = _scope_id();
14076
- _html(`<button type=button${_attr_class("_iU")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
14077
- "_je",
14078
- !input.collapsed && "_jf",
14079
- input.expanding && "_jg"
13925
+ _html(`<button type=button${_attr_class("_iQ")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
13926
+ "_ja",
13927
+ !input.collapsed && "_jb",
13928
+ input.expanding && "_jc"
14080
13929
  ])} aria-hidden=true>`);
14081
13930
  _if(() => {
14082
13931
  if (input.collapsed) {
@@ -14115,14 +13964,14 @@ var review_section_default = _template("x", (input) => {
14115
13964
  return 1;
14116
13965
  }
14117
13966
  }, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
14118
- _html(`<span${_attr_class("_i2")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i3"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i5"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i4"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
13967
+ _html(`<span${_attr_class("_iY")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_iZ"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i1"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i0"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
14119
13968
  _if(() => {
14120
13969
  if (compare$1.topic) {
14121
13970
  const $scope15_id = _scope_id();
14122
13971
  _html(`<span${_attr_class([
14123
13972
  "_N",
14124
13973
  tone.accent,
14125
- "_i6"
13974
+ "_i2"
14126
13975
  ])}>${_text_resume($scope15_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
14127
13976
  $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
14128
13977
  return 0;
@@ -14135,7 +13984,7 @@ var review_section_default = _template("x", (input) => {
14135
13984
  _html(`<button type=button${_attr_class([
14136
13985
  "_N",
14137
13986
  tone.warn,
14138
- "_i7"
13987
+ "_i3"
14139
13988
  ])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
14140
13989
  _script($scope2_id, "x10");
14141
13990
  writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
@@ -14145,7 +13994,7 @@ var review_section_default = _template("x", (input) => {
14145
13994
  _if(() => {
14146
13995
  if (repo.contained && input.files.length) {
14147
13996
  const $scope13_id = _scope_id();
14148
- _html(`<span${_attr_class(["_N", "_i7"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
13997
+ _html(`<span${_attr_class(["_N", "_i3"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
14149
13998
  _serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
14150
13999
  return 0;
14151
14000
  }
@@ -14153,16 +14002,16 @@ var review_section_default = _template("x", (input) => {
14153
14002
  _if(() => {
14154
14003
  if (input.localDiffers) {
14155
14004
  const $scope3_id = _scope_id();
14156
- _html(`<span${_attr_class(["_N", "_i7"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
14005
+ _html(`<span${_attr_class(["_N", "_i3"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
14157
14006
  $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
14158
14007
  return 0;
14159
14008
  }
14160
14009
  }, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
14161
- _html(`<span${_attr_class("_iW")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
14010
+ _html(`<span${_attr_class("_iS")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
14162
14011
  _if(() => {
14163
14012
  if (stats.additions || stats.deletions) {
14164
14013
  const $scope14_id = _scope_id();
14165
- _html(`<span${_attr_class("_iX")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iY")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
14014
+ _html(`<span${_attr_class("_iT")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iU")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
14166
14015
  $si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
14167
14016
  return 0;
14168
14017
  }
@@ -14170,7 +14019,7 @@ var review_section_default = _template("x", (input) => {
14170
14019
  _if(() => {
14171
14020
  if (newCount || input.onlyNew) {
14172
14021
  const $scope4_id = _scope_id();
14173
- _html(`<button type=button${_attr_class(["_i0", { ["_iZ"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
14022
+ _html(`<button type=button${_attr_class(["_iW", { ["_iV"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
14174
14023
  _script($scope4_id, "x11");
14175
14024
  writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
14176
14025
  return 0;
@@ -14180,7 +14029,7 @@ var review_section_default = _template("x", (input) => {
14180
14029
  _if(() => {
14181
14030
  if (!input.collapsible || !input.collapsed || input.opened) {
14182
14031
  const $scope5_id = _scope_id();
14183
- _html(`<div${_attr_class("_i9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
14032
+ _html(`<div${_attr_class("_i5")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
14184
14033
  _for_of(input.files, (file$2) => {
14185
14034
  const $scope6_id = _scope_id();
14186
14035
  const $for_content__file__closures = /* @__PURE__ */ new Set();
@@ -14193,14 +14042,14 @@ var review_section_default = _template("x", (input) => {
14193
14042
  _html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
14194
14043
  input.onFileToggle(file$2.key, open);
14195
14044
  }, "x0", $scope6_id))}${_attr_class([
14196
- "_i_",
14197
- forceNear && "_ja",
14198
- input.findHit?.key === file$2.key && "_iP"
14199
- ])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_jc")}><span${_attr_class("_ba")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_iQ"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
14045
+ "_i6",
14046
+ forceNear && "_i7",
14047
+ input.findHit?.key === file$2.key && "_iL"
14048
+ ])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_i9")}><span${_attr_class("_ba")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_iM"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
14200
14049
  _if(() => {
14201
14050
  if (file$2.changedSince) {
14202
14051
  const $scope19_id = _scope_id();
14203
- _html(`<span${_attr_class(["_A", "_i8"])} title="Changed since your last visit"></span>`);
14052
+ _html(`<span${_attr_class(["_A", "_i4"])} title="Changed since your last visit"></span>`);
14204
14053
  $si__input_files && writeScope($scope19_id, {});
14205
14054
  return 0;
14206
14055
  }
@@ -14219,17 +14068,17 @@ var review_section_default = _template("x", (input) => {
14219
14068
  _if(() => {
14220
14069
  if (file$2.binary) {
14221
14070
  const $scope20_id = _scope_id();
14222
- _html(`<p${_attr_class(["_ji", "_jb"])}>binary file</p>`);
14071
+ _html(`<p${_attr_class(["_je", "_i8"])}>binary file</p>`);
14223
14072
  $si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
14224
14073
  return 0;
14225
14074
  } else if (file$2.tooLarge) {
14226
14075
  const $scope21_id = _scope_id();
14227
- _html(`<p${_attr_class(["_ji", "_jb"])}>file too large to display</p>`);
14076
+ _html(`<p${_attr_class(["_je", "_i8"])}>file too large to display</p>`);
14228
14077
  $si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
14229
14078
  return 1;
14230
14079
  } else if (file$2.old == null && file$2.new == null) {
14231
14080
  const $scope22_id = _scope_id();
14232
- _html(`<p${_attr_class(["_ji", "_jb"])}>file could not be read</p>`);
14081
+ _html(`<p${_attr_class(["_je", "_i8"])}>file could not be read</p>`);
14233
14082
  $si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
14234
14083
  return 2;
14235
14084
  } else if (expanded) {
@@ -14237,7 +14086,7 @@ var review_section_default = _template("x", (input) => {
14237
14086
  _if(() => {
14238
14087
  if (!forceNear) {
14239
14088
  const $scope8_id = _scope_id();
14240
- _html(`<div${_attr_class("_jd")}></div>${_el_resume($scope8_id, "a")}`);
14089
+ _html(`<div${_attr_class("_i_")}></div>${_el_resume($scope8_id, "a")}`);
14241
14090
  _script($scope8_id, "x12");
14242
14091
  _subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
14243
14092
  return 0;
@@ -14245,7 +14094,7 @@ var review_section_default = _template("x", (input) => {
14245
14094
  const $scope9_id = _scope_id();
14246
14095
  const $childScope = _peek_scope_id();
14247
14096
  diff_file_default({
14248
- class: "_jb",
14097
+ class: "_i8",
14249
14098
  file: file$2,
14250
14099
  comments: fileComments,
14251
14100
  draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
@@ -14382,7 +14231,7 @@ var review_section_default = _template("x", (input) => {
14382
14231
  cd: $si__input_findHit_line && $input_findHit_line__closures
14383
14232
  });
14384
14233
  });
14385
- var fileFilter = "_jl _n";
14234
+ var fileFilter = "_jg _n";
14386
14235
  //#endregion
14387
14236
  //#region src/tags/file-filter.marko
14388
14237
  var file_filter_default = _template("n", (input) => {
@@ -14412,7 +14261,7 @@ var file_filter_default = _template("n", (input) => {
14412
14261
  pending = v;
14413
14262
  box.timer = setTimeout(flush, 150);
14414
14263
  }, "n2", $scope0_id);
14415
- _html(`<div${_attr_class("_jk")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
14264
+ _html(`<div${_attr_class("_jf")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
14416
14265
  type(v);
14417
14266
  }, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
14418
14267
  _script($scope0_id, "n3");
@@ -14445,7 +14294,7 @@ var $content = (input) => {
14445
14294
  _for_of(dir.dirs, (child) => {
14446
14295
  const $scope1_id = _scope_id();
14447
14296
  const shut = input.collapsed.has(input.collapsedKey(child.path));
14448
- _html(`<div${_attr_class("_h1")}><button type=button${_attr_class(["_h2", { ["_hT"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_h9")}>`);
14297
+ _html(`<div${_attr_class("_hF")}><button type=button${_attr_class(["_hG", { ["_hx"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_hN")}>`);
14449
14298
  _if(() => {
14450
14299
  if (shut) {
14451
14300
  const $scope4_id = _scope_id();
@@ -14459,7 +14308,7 @@ var $content = (input) => {
14459
14308
  return 1;
14460
14309
  }
14461
14310
  }, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
14462
- _html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
14311
+ _html(`<span${_attr_class("_hH")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
14463
14312
  _if(() => {
14464
14313
  if (!shut) {
14465
14314
  const $scope2_id = _scope_id();
@@ -14506,11 +14355,11 @@ var $content = (input) => {
14506
14355
  }, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
14507
14356
  _for_of(dir.files, ({ file, name }) => {
14508
14357
  const $scope3_id = _scope_id();
14509
- _html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_h5", { ["_h4"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_h6")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
14358
+ _html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_hJ", { ["_hI"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_hK")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
14510
14359
  _if(() => {
14511
14360
  if (input.newKeys.has(file.key)) {
14512
14361
  const $scope6_id = _scope_id();
14513
- _html(`<span${_attr_class(["_A", "_h7"])} title="Changed since your last visit"></span>`);
14362
+ _html(`<span${_attr_class(["_A", "_hL"])} title="Changed since your last visit"></span>`);
14514
14363
  _serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
14515
14364
  return 0;
14516
14365
  }
@@ -14518,7 +14367,7 @@ var $content = (input) => {
14518
14367
  _if(() => {
14519
14368
  if (input.commentKeys.has(file.key)) {
14520
14369
  const $scope7_id = _scope_id();
14521
- _html(`<span${_attr_class("_h8")}>`);
14370
+ _html(`<span${_attr_class("_hM")}>`);
14522
14371
  icon_comment_default({ size: 12 });
14523
14372
  _html("</span>");
14524
14373
  _serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
@@ -14576,7 +14425,7 @@ var diff_tree_default = _template("l", (input) => {
14576
14425
  scope: input.scope ?? null,
14577
14426
  file: key
14578
14427
  }), "l0", $scope0_id);
14579
- _html(`<aside${_attr_class(["_hU", { ["_hT"]: input.open === false }])}><div${_attr_class("_hV")}>`);
14428
+ _html(`<aside${_attr_class(["_hy", { ["_hx"]: input.open === false }])}><div${_attr_class("_hz")}>`);
14580
14429
  _set_serialize_reason(2);
14581
14430
  const $childScope = _peek_scope_id();
14582
14431
  file_filter_default({
@@ -14585,18 +14434,18 @@ var diff_tree_default = _template("l", (input) => {
14585
14434
  filter = _new_filter;
14586
14435
  }, "l1", $scope0_id)
14587
14436
  });
14588
- _html(`</div><div${_attr_class("_hW")}>`);
14437
+ _html(`</div><div${_attr_class("_hA")}>`);
14589
14438
  _if(() => {
14590
14439
  if (!input.sections.length && filter) {
14591
14440
  const $scope3_id = _scope_id();
14592
- _html(`<p${_attr_class("_hX")}>No files match.</p>`);
14441
+ _html(`<p${_attr_class("_hB")}>No files match.</p>`);
14593
14442
  writeScope($scope3_id, {});
14594
14443
  return 0;
14595
14444
  }
14596
14445
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
14597
14446
  _for_of(input.sections, (section) => {
14598
14447
  const $scope1_id = _scope_id();
14599
- _html(`<div${_attr_class("_hY")}><button type=button${_attr_class(["_hZ", { ["_hT"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_h9")}>`);
14448
+ _html(`<div${_attr_class("_hC")}><button type=button${_attr_class(["_hD", { ["_hx"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_hN")}>`);
14600
14449
  _if(() => {
14601
14450
  if (collapsedRepos.has(section.id)) {
14602
14451
  const $scope4_id = _scope_id();
@@ -14610,12 +14459,12 @@ var diff_tree_default = _template("l", (input) => {
14610
14459
  return 1;
14611
14460
  }
14612
14461
  }, $scope1_id, "c", 1, 1, 1, "</span>", 1);
14613
- _html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
14462
+ _html(`<span${_attr_class("_hH")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
14614
14463
  _if(() => {
14615
14464
  if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
14616
14465
  const $scope2_id = _scope_id();
14617
14466
  const root = treeDirs(section.files);
14618
- _html(`<div${_attr_class("_h0")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
14467
+ _html(`<div${_attr_class("_hE")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
14619
14468
  _set_serialize_reason(1);
14620
14469
  const $childScope2 = _peek_scope_id();
14621
14470
  diff_tree_dir_default({
@@ -14685,7 +14534,7 @@ var diff_tree_default = _template("l", (input) => {
14685
14534
  });
14686
14535
  _resume_branch($scope0_id);
14687
14536
  });
14688
- var sheetDir = "_iJ _bb";
14537
+ var sheetDir = "_ig _bb";
14689
14538
  //#endregion
14690
14539
  //#region src/tags/diff-file-sheet.marko
14691
14540
  var diff_file_sheet_default = _template("g", (input) => {
@@ -14741,9 +14590,9 @@ var diff_file_sheet_default = _template("g", (input) => {
14741
14590
  _if(() => {
14742
14591
  if (open) {
14743
14592
  const $scope1_id = _scope_id();
14744
- _html(`<div${_attr_class("_iA")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iB")} role=dialog aria-label="Jump to file"><div${_attr_class("_iC")}><strong${_attr_class("_iz")}>Files</strong><span${_attr_class("_iD")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_iy"])} title=Close aria-label=Close>`);
14593
+ _html(`<div${_attr_class("_h8")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_h9")} role=dialog aria-label="Jump to file"><div${_attr_class("_h_")}><strong${_attr_class("_h7")}>Files</strong><span${_attr_class("_ia")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_h6"])} title=Close aria-label=Close>`);
14745
14594
  icon_xmark_default({ size: 16 });
14746
- _html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iL")}>`);
14595
+ _html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ii")}>`);
14747
14596
  _set_serialize_reason(2);
14748
14597
  const $childScope = _peek_scope_id();
14749
14598
  file_filter_default({
@@ -14752,13 +14601,13 @@ var diff_file_sheet_default = _template("g", (input) => {
14752
14601
  filter = _new_filter;
14753
14602
  }, "g1", $scope1_id)
14754
14603
  });
14755
- _html(`</div><div${_attr_class("_iE")}>`);
14604
+ _html(`</div><div${_attr_class("_ib")}>`);
14756
14605
  _for_of(groups, (group) => {
14757
14606
  const $scope2_id = _scope_id();
14758
- _html(`<div${_attr_class("_iF")}><div${_attr_class("_iG")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
14607
+ _html(`<div${_attr_class("_ic")}><div${_attr_class("_id")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
14759
14608
  _for_of(group.dirs, ({ dir, files }) => {
14760
14609
  const $scope3_id = _scope_id();
14761
- _html(`<div${_attr_class("_iH")}>`);
14610
+ _html(`<div${_attr_class("_ie")}>`);
14762
14611
  _if(() => {
14763
14612
  if (dir) {
14764
14613
  const $scope5_id = _scope_id();
@@ -14769,11 +14618,11 @@ var diff_file_sheet_default = _template("g", (input) => {
14769
14618
  }, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
14770
14619
  _for_of(files, ({ file, name }) => {
14771
14620
  const $scope4_id = _scope_id();
14772
- _html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iI", "_y"])}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_iK")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
14621
+ _html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_if", "_y"])}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_ih")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
14773
14622
  _if(() => {
14774
14623
  if (newKeys.has(file.key)) {
14775
14624
  const $scope6_id = _scope_id();
14776
- _html(`<span${_attr_class(["_A", "_iN"])} title="Changed since your last visit"></span>`);
14625
+ _html(`<span${_attr_class(["_A", "_ik"])} title="Changed since your last visit"></span>`);
14777
14626
  _serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
14778
14627
  return 0;
14779
14628
  }
@@ -14783,7 +14632,7 @@ var diff_file_sheet_default = _template("g", (input) => {
14783
14632
  const $scope7_id = _scope_id();
14784
14633
  icon_comment_default({
14785
14634
  size: 12,
14786
- class: "_iO"
14635
+ class: "_il"
14787
14636
  });
14788
14637
  _serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
14789
14638
  return 0;
@@ -14808,7 +14657,7 @@ var diff_file_sheet_default = _template("g", (input) => {
14808
14657
  _if(() => {
14809
14658
  if (!input.files.length) {
14810
14659
  const $scope8_id = _scope_id();
14811
- _html(`<p${_attr_class("_iM")}>No files match.</p>`);
14660
+ _html(`<p${_attr_class("_ij")}>No files match.</p>`);
14812
14661
  $si__input_files_length && writeScope($scope8_id, {});
14813
14662
  return 0;
14814
14663
  }
@@ -15348,11 +15197,11 @@ var diff_view_default = _template("m", (input) => {
15348
15197
  collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
15349
15198
  }
15350
15199
  }, "m33", $scope0_id);
15351
- _html(`<div${_attr_class("_fQ")}><div${_attr_class("_fV")}><div${_attr_class("_fW")}><div${_attr_class(["_f6", { ["_f5"]: !comments.length }])}>`);
15200
+ _html(`<div${_attr_class("_eS")}><div${_attr_class("_eX")}><div${_attr_class("_eY")}><div${_attr_class(["_e8", { ["_e7"]: !comments.length }])}>`);
15352
15201
  _if(() => {
15353
15202
  if (input.onExit) {
15354
15203
  const $scope1_id = _scope_id();
15355
- _html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_fX"])} title="Back to terminal (Esc)">`);
15204
+ _html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_eZ"])} title="Back to terminal (Esc)">`);
15356
15205
  icon_back_default({ size: 14 });
15357
15206
  _html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
15358
15207
  _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
@@ -15363,7 +15212,7 @@ var diff_view_default = _template("m", (input) => {
15363
15212
  _if(() => {
15364
15213
  if (comments.length) {
15365
15214
  const $scope5_id = _scope_id();
15366
- _html(`<span${_attr_class("_fZ")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
15215
+ _html(`<span${_attr_class("_e1")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
15367
15216
  writeScope($scope5_id, {});
15368
15217
  return 0;
15369
15218
  }
@@ -15371,7 +15220,7 @@ var diff_view_default = _template("m", (input) => {
15371
15220
  _if(() => {
15372
15221
  if (comments.length) {
15373
15222
  const $scope2_id = _scope_id();
15374
- _html(`<span${_attr_class("_fY")}>`);
15223
+ _html(`<span${_attr_class("_e0")}>`);
15375
15224
  _set_serialize_reason(_serialize_guard($scope0_reason, 7));
15376
15225
  const $childScope = _peek_scope_id();
15377
15226
  diff_send_default({
@@ -15384,14 +15233,14 @@ var diff_view_default = _template("m", (input) => {
15384
15233
  return 0;
15385
15234
  }
15386
15235
  }, $scope0_id, "h", 1, 1, 1, 0, 1);
15387
- _html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fU")}>`);
15236
+ _html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_eW")}>`);
15388
15237
  _if(() => {
15389
15238
  if (hasFiles) {
15390
15239
  const $scope12_id = _scope_id();
15391
15240
  _html(`<button${_attr_class([
15392
15241
  treeToggle,
15393
- "_fS",
15394
- { ["_fR"]: treeOpen }
15242
+ "_eU",
15243
+ { ["_eT"]: treeOpen }
15395
15244
  ])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
15396
15245
  icon_sidebar_default({ size: 14 });
15397
15246
  _html(`</button>${_el_resume($scope12_id, "a")}`);
@@ -15400,7 +15249,7 @@ var diff_view_default = _template("m", (input) => {
15400
15249
  return 0;
15401
15250
  }
15402
15251
  }, $scope0_id, "j", 1, 1, 1, 0, 1);
15403
- _html(`<button${_attr_class([iconBtnRow, "_fS"])} title="Refresh diff"${_attr("disabled", loading)}>`);
15252
+ _html(`<button${_attr_class([iconBtnRow, "_eU"])} title="Refresh diff"${_attr("disabled", loading)}>`);
15404
15253
  _set_serialize_reason(1);
15405
15254
  const $childScope2 = _peek_scope_id();
15406
15255
  icon_refresh_default({
@@ -15411,19 +15260,19 @@ var diff_view_default = _template("m", (input) => {
15411
15260
  _if(() => {
15412
15261
  if (hasFiles) {
15413
15262
  const $scope13_id = _scope_id();
15414
- _html(`<button${_attr_class(["_q", "_ge"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
15263
+ _html(`<button${_attr_class(["_q", "_fg"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
15415
15264
  _script($scope13_id, "m53");
15416
15265
  writeScope($scope13_id, {});
15417
15266
  return 0;
15418
15267
  }
15419
15268
  }, $scope0_id, "m", 1, 1, 1, 0, 1);
15420
- _html(`<span${_attr_class(["_o", "_f7"])}>`);
15269
+ _html(`<span${_attr_class(["_o", "_e9"])}>`);
15421
15270
  _attr_select_value($scope0_id, "o", scope, _resume(function(v) {
15422
15271
  setScope(v);
15423
15272
  }, "m0", $scope0_id), () => {
15424
- _html(`<select${_attr_class(["_p", "_f8"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
15273
+ _html(`<select${_attr_class(["_p", "_e_"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
15425
15274
  });
15426
- _html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_f3", { ["_f2"]: !findOpen }])}>`);
15275
+ _html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_e5", { ["_e4"]: !findOpen }])}>`);
15427
15276
  _set_serialize_reason(2);
15428
15277
  const $childScope3 = _peek_scope_id();
15429
15278
  let findFocus = diff_find_default({
@@ -15444,8 +15293,8 @@ var diff_view_default = _template("m", (input) => {
15444
15293
  const $scope14_id = _scope_id();
15445
15294
  _html(`<button${_attr_class([
15446
15295
  iconBtnRow,
15447
- "_f1",
15448
- "_fS"
15296
+ "_e3",
15297
+ "_eU"
15449
15298
  ])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
15450
15299
  icon_search_default({ size: 14 });
15451
15300
  _html(`</button>${_el_resume($scope14_id, "a")}`);
@@ -15454,7 +15303,7 @@ var diff_view_default = _template("m", (input) => {
15454
15303
  return 0;
15455
15304
  }
15456
15305
  }, $scope0_id, "s", 1, 1, 1, 0, 1);
15457
- _html(`</div></div><div${_attr_class("_f4")} data-diff-main>`);
15306
+ _html(`</div></div><div${_attr_class("_e6")} data-diff-main>`);
15458
15307
  _if(() => {
15459
15308
  if (error) {
15460
15309
  const $scope6_id = _scope_id();
@@ -15477,7 +15326,7 @@ var diff_view_default = _template("m", (input) => {
15477
15326
  _if(() => {
15478
15327
  if (!repos && loading) {
15479
15328
  const $scope15_id = _scope_id();
15480
- _html(`<div${_attr_class("_f_")} aria-hidden=true><div${_attr_class(["_ga", "_gb"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div></div>`);
15329
+ _html(`<div${_attr_class("_fb")} aria-hidden=true><div${_attr_class(["_fc", "_fd"])}></div><div${_attr_class(["_fc", "_fe"])}></div><div${_attr_class(["_fc", "_ff"])}></div><div${_attr_class(["_fc", "_fe"])}></div><div${_attr_class(["_fc", "_ff"])}></div></div>`);
15481
15330
  writeScope($scope15_id, {});
15482
15331
  return 0;
15483
15332
  }
@@ -15507,12 +15356,12 @@ var diff_view_default = _template("m", (input) => {
15507
15356
  _if(() => {
15508
15357
  if (repos && !allFiles.length) {
15509
15358
  const $scope11_id = _scope_id();
15510
- _html(`<p${_attr_class("_cl")}>${_text_resume($scope11_id, "b", 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>`);
15359
+ _html(`<p${_attr_class("_ck")}>${_text_resume($scope11_id, "b", 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>`);
15511
15360
  writeScope($scope11_id, {});
15512
15361
  return 0;
15513
15362
  } else if (repos && !shownFiles.length && !findState.hit) {
15514
15363
  const $scope8_id = _scope_id();
15515
- _html(`<p${_attr_class("_cl")}>${_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>`);
15364
+ _html(`<p${_attr_class("_ck")}>${_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>`);
15516
15365
  writeScope($scope8_id, {});
15517
15366
  return 1;
15518
15367
  }
@@ -15879,12 +15728,12 @@ function parseInvite(text) {
15879
15728
  }
15880
15729
  //#endregion
15881
15730
  //#region src/tags/manage-workspace.css.ts
15882
- var pageMeta = "_fx _ee";
15883
- var pathMeta = "_fA _y";
15884
- var skillRow = "_fG _fB";
15885
- var skillName = "_fI _fC";
15886
- var skillDesc = "_fL _fD";
15887
- var skillEnd = "_fM _fE";
15731
+ var pageMeta = "_ez _dZ";
15732
+ var pathMeta = "_eC _y";
15733
+ var skillRow = "_eI _eD";
15734
+ var skillName = "_eK _eE";
15735
+ var skillDesc = "_eN _eF";
15736
+ var skillEnd = "_eO _eG";
15888
15737
  //#endregion
15889
15738
  //#region src/tags/icons/icon-clipboard.marko
15890
15739
  var icon_clipboard_default = _template("Y", (input) => {
@@ -15902,8 +15751,8 @@ var icon_clipboard_default = _template("Y", (input) => {
15902
15751
  });
15903
15752
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
15904
15753
  });
15905
- var resultRow = "_hH _I";
15906
- var resultBranch = "_hJ _4 _l";
15754
+ var resultRow = "_hh _I";
15755
+ var resultBranch = "_hj _4 _l";
15907
15756
  //#endregion
15908
15757
  //#region src/tags/icons/icon-branch.marko
15909
15758
  var icon_branch_default = _template("U", (input) => {
@@ -15933,11 +15782,11 @@ var branch_pick_default = _template("d", (input) => {
15933
15782
  let branchFilter = "";
15934
15783
  let reloadTick = 0;
15935
15784
  let refreshing = false;
15936
- _html(`<div${_attr_class("_hL")}>`);
15785
+ _html(`<div${_attr_class("_hl")}>`);
15937
15786
  _if(() => {
15938
15787
  {
15939
15788
  const $scope4_id = _scope_id();
15940
- _html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
15789
+ _html(`<p${_attr_class("_cj")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
15941
15790
  writeScope($scope4_id, {});
15942
15791
  return 0;
15943
15792
  }
@@ -16038,21 +15887,21 @@ var repo_picker_default = _template("w", (input$2) => {
16038
15887
  _resume_branch($scope9_id);
16039
15888
  }, $scope0_id) };
16040
15889
  const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
16041
- _html(`<div${_attr_class([compact ? "_cC" : "_hz", {
16042
- ["_cD"]: compact && !input$2.open,
16043
- ["_cE"]: input$2.pinned
15890
+ _html(`<div${_attr_class([compact ? "_fo" : "_g_", {
15891
+ ["_fp"]: compact && !input$2.open,
15892
+ ["_fq"]: input$2.pinned
16044
15893
  }])}>`);
16045
15894
  _if(() => {
16046
15895
  if (!compact && ssoPending.length) {
16047
15896
  const $scope11_id = _scope_id();
16048
- _html(`<div${_attr_class("_hC")}>`);
15897
+ _html(`<div${_attr_class("_hc")}>`);
16049
15898
  ssoBlock.content({});
16050
15899
  _html("</div>");
16051
15900
  writeScope($scope11_id, {});
16052
15901
  return 0;
16053
15902
  }
16054
15903
  }, $scope0_id, "b", 1, 1, 1, 0, 1);
16055
- _html(`<div${!compact && input$2.action ? _attr_class("_hA") : _attr_class("_hB")}><label${_attr_class(["_1", compact && "_cF"])}>`);
15904
+ _html(`<div${!compact && input$2.action ? _attr_class("_ha") : _attr_class("_hb")}><label${_attr_class(["_1", compact && "_fr"])}>`);
16056
15905
  icon_search_default({
16057
15906
  size: 14,
16058
15907
  class: "_2"
@@ -16064,7 +15913,7 @@ var repo_picker_default = _template("w", (input$2) => {
16064
15913
  }, "w0", $scope0_id))}${_attr_class([
16065
15914
  compact ? "_Z" : inputLg,
16066
15915
  "_3",
16067
- compact && "_cG"
15916
+ compact && "_fs"
16068
15917
  ])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
16069
15918
  _if(() => {
16070
15919
  if (!compact && input$2.action) {
@@ -16078,7 +15927,7 @@ var repo_picker_default = _template("w", (input$2) => {
16078
15927
  _if(() => {
16079
15928
  if (compact) {
16080
15929
  const $scope2_id = _scope_id();
16081
- _html(`<button${_attr_class([iconBtnRow, "_cH"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
15930
+ _html(`<button${_attr_class([iconBtnRow, "_ft"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
16082
15931
  icon_xmark_default({ size: 14 });
16083
15932
  _html(`</button>${_el_resume($scope2_id, "a")}`);
16084
15933
  _script($scope2_id, "w14");
@@ -16086,11 +15935,11 @@ var repo_picker_default = _template("w", (input$2) => {
16086
15935
  return 0;
16087
15936
  }
16088
15937
  }, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
16089
- _html(`<div${_attr_class([compact ? pop$1 : "_hD"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
15938
+ _html(`<div${_attr_class([compact ? pop$1 : "_hd"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
16090
15939
  _if(() => {
16091
15940
  if (compact && ssoPending.length) {
16092
15941
  const $scope12_id = _scope_id();
16093
- _html(`<div${_attr_class("_hC")}>`);
15942
+ _html(`<div${_attr_class("_hc")}>`);
16094
15943
  ssoBlock.content({});
16095
15944
  _html("</div>");
16096
15945
  writeScope($scope12_id, {});
@@ -16100,16 +15949,16 @@ var repo_picker_default = _template("w", (input$2) => {
16100
15949
  _if(() => {
16101
15950
  if (pasted) {
16102
15951
  const $scope3_id = _scope_id();
16103
- _html(`<ul${_attr_class("_hE")}><li><div${_attr_class(["_hG", "_hF"])}><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)`)}>`);
15952
+ _html(`<ul${_attr_class("_he")}><li><div${_attr_class(["_hg", "_hf"])}><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)`)}>`);
16104
15953
  icon_plus_default({
16105
15954
  size: 12,
16106
- class: "_hN"
15955
+ class: "_hn"
16107
15956
  });
16108
- _html(`<span${_attr_class("_hO")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
15957
+ _html(`<span${_attr_class("_ho")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
16109
15958
  _if(() => {
16110
15959
  if (pastedForkable) {
16111
15960
  const $scope10_id = _scope_id();
16112
- _html(`<button${_attr_class(["_hK", { ["_hI"]: 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"}>`);
15961
+ _html(`<button${_attr_class(["_hk", { ["_hi"]: 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"}>`);
16113
15962
  _if(() => {
16114
15963
  if (pasteWillFork) {
16115
15964
  const $scope14_id = _scope_id();
@@ -16129,7 +15978,7 @@ var repo_picker_default = _template("w", (input$2) => {
16129
15978
  return 0;
16130
15979
  }
16131
15980
  }, $scope3_id, "g", 1, 1, 1, 0, 1);
16132
- _html(`<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
15981
+ _html(`<button${_attr_class([resultBranch, { ["_hi"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
16133
15982
  icon_branch_default({ size: 12 });
16134
15983
  _html(`</button>${_el_resume($scope3_id, "h")}</div>`);
16135
15984
  _if(() => {
@@ -16156,7 +16005,7 @@ var repo_picker_default = _template("w", (input$2) => {
16156
16005
  return 0;
16157
16006
  } else if (filter && !catalog) {
16158
16007
  const $scope13_id = _scope_id();
16159
- _html(`<p${_attr_class("_ck")}>Loading repos…</p>`);
16008
+ _html(`<p${_attr_class("_cj")}>Loading repos…</p>`);
16160
16009
  writeScope($scope13_id, {});
16161
16010
  return 1;
16162
16011
  }
@@ -16164,15 +16013,15 @@ var repo_picker_default = _template("w", (input$2) => {
16164
16013
  _if(() => {
16165
16014
  if (results.length) {
16166
16015
  const $scope5_id = _scope_id();
16167
- _html(`<ul${_attr_class("_hE")}>`);
16016
+ _html(`<ul${_attr_class("_he")}>`);
16168
16017
  _for_of(results, (repo, i) => {
16169
16018
  const $scope6_id = _scope_id();
16170
- _html(`<li><div${_attr_class(["_hG", { ["_hF"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
16019
+ _html(`<li><div${_attr_class(["_hg", { ["_hf"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
16171
16020
  icon_plus_default({
16172
16021
  size: 12,
16173
- class: "_hN"
16022
+ class: "_hn"
16174
16023
  });
16175
- _html(`<span${_attr_class("_hO")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
16024
+ _html(`<span${_attr_class("_ho")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hi"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
16176
16025
  icon_branch_default({ size: 12 });
16177
16026
  _html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
16178
16027
  _if(() => {
@@ -16207,7 +16056,7 @@ var repo_picker_default = _template("w", (input$2) => {
16207
16056
  return 0;
16208
16057
  } else if (filter && catalog && !pasted) {
16209
16058
  const $scope8_id = _scope_id();
16210
- _html(`<p${_attr_class("_ck")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
16059
+ _html(`<p${_attr_class("_cj")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
16211
16060
  writeScope($scope8_id, {});
16212
16061
  return 1;
16213
16062
  }
@@ -16427,7 +16276,7 @@ var manage_workspace_default = _template("r", (input) => {
16427
16276
  setTimeout(() => loadProcs(void 0), 500);
16428
16277
  }, "r10", $scope0_id);
16429
16278
  const titleId = _id();
16430
- _html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
16279
+ _html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
16431
16280
  _set_serialize_reason(30);
16432
16281
  const $childScope = _peek_scope_id();
16433
16282
  page_head_default({
@@ -16440,7 +16289,7 @@ var manage_workspace_default = _template("r", (input) => {
16440
16289
  meta: attrTag({ content: _content("r20", () => {
16441
16290
  _scope_reason();
16442
16291
  const $scope13_id = _scope_id();
16443
- _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fy")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
16292
+ _html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_eA")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
16444
16293
  _if(() => {
16445
16294
  if (ws.status !== "active") {
16446
16295
  const $scope17_id = _scope_id();
@@ -16449,7 +16298,7 @@ var manage_workspace_default = _template("r", (input) => {
16449
16298
  return 0;
16450
16299
  }
16451
16300
  }, $scope13_id, "d", 1, 1, 1, 0, 1);
16452
- _html(`<span${_attr_class("_fz")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
16301
+ _html(`<span${_attr_class("_eB")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
16453
16302
  _subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
16454
16303
  _: _scope_with_id($scope0_id),
16455
16304
  Ccf: 1
@@ -16529,12 +16378,12 @@ var manage_workspace_default = _template("r", (input) => {
16529
16378
  _if(() => {
16530
16379
  if (pendingAction && actionStep) {
16531
16380
  const $scope10_id = _scope_id();
16532
- _html(`<p${_attr_class("_b9")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
16381
+ _html(`<p${_attr_class("_b8")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
16533
16382
  writeScope($scope10_id, {});
16534
16383
  return 0;
16535
16384
  }
16536
16385
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
16537
- _html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_fP"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
16386
+ _html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_eR"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
16538
16387
  icon_plus_default({ size: 16 });
16539
16388
  _html(`</button>${_el_resume($scope0_id, "m")}`);
16540
16389
  _set_serialize_reason(26);
@@ -16568,7 +16417,7 @@ var manage_workspace_default = _template("r", (input) => {
16568
16417
  _html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
16569
16418
  _for_of(ws.repos, (row) => {
16570
16419
  const $scope1_id = _scope_id();
16571
- _html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cf")}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_ch")}><a${_attr_class(["_ci", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
16420
+ _html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_ce")}><span${_attr_class(["_cf", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_cg")}><a${_attr_class(["_ch", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
16572
16421
  _if(() => {
16573
16422
  if (row.base_branch !== row.default_branch) {
16574
16423
  const $scope20_id = _scope_id();
@@ -16589,7 +16438,7 @@ var manage_workspace_default = _template("r", (input) => {
16589
16438
  } else {
16590
16439
  const $scope9_id = _scope_id();
16591
16440
  _html(`<button${_attr_class([
16592
- "_cj",
16441
+ "_ci",
16593
16442
  "_8",
16594
16443
  "_9",
16595
16444
  { ["_s"]: confirmingRemove === row.full_name }
@@ -16622,13 +16471,13 @@ var manage_workspace_default = _template("r", (input) => {
16622
16471
  }, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
16623
16472
  _for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
16624
16473
  const $scope24_id = _scope_id();
16625
- _html(`<li${_attr_class([flatCardRow, "_cd"])}><span${_attr_class("_G")}></span><div${_attr_class("_cf")}><span${_attr_class("_ci")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
16474
+ _html(`<li${_attr_class([flatCardRow, "_cc"])}><span${_attr_class("_G")}></span><div${_attr_class("_ce")}><span${_attr_class("_ch")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
16626
16475
  writeScope($scope24_id, {});
16627
16476
  }, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
16628
16477
  _if(() => {
16629
16478
  if (!ws.repos.length && !busy.size) {
16630
16479
  const $scope25_id = _scope_id();
16631
- _html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_ci")}>No repos yet. Add one to start.</span></li>`);
16480
+ _html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_ch")}>No repos yet. Add one to start.</span></li>`);
16632
16481
  writeScope($scope25_id, {});
16633
16482
  return 0;
16634
16483
  }
@@ -16646,18 +16495,18 @@ var manage_workspace_default = _template("r", (input) => {
16646
16495
  _if(() => {
16647
16496
  if (allSkills.length) {
16648
16497
  const $scope2_id = _scope_id();
16649
- _html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Skills</h2><span${_attr_class(sectionCount)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class(list$2)}>`);
16498
+ _html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>Skills</h2><span${_attr_class(sectionCount)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class(list$2)}>`);
16650
16499
  _for_of(allSkills, ({ s, linked }) => {
16651
16500
  const $scope3_id = _scope_id();
16652
16501
  const isBusy = skillBusy.has(s.id);
16653
- _html(`<li${_attr_class([skillRow, { ["_fH"]: !linked }])}><span${_attr_class("_fJ")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
16502
+ _html(`<li${_attr_class([skillRow, { ["_eJ"]: !linked }])}><span${_attr_class("_eL")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
16654
16503
  _if(() => {
16655
16504
  if (s.worktree && !s.broken) {
16656
16505
  const $scope26_id = _scope_id();
16657
16506
  _html(`<span${_attr_class([
16658
16507
  "_N",
16659
16508
  "_y",
16660
- "_fK"
16509
+ "_eM"
16661
16510
  ])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
16662
16511
  writeScope($scope26_id, {});
16663
16512
  return 0;
@@ -16709,10 +16558,10 @@ var manage_workspace_default = _template("r", (input) => {
16709
16558
  if (linked) {
16710
16559
  const $scope11_id = _scope_id();
16711
16560
  _html(`<button${_attr_class([
16712
- "_cj",
16561
+ "_ci",
16713
16562
  "_8",
16714
16563
  "_9",
16715
- "_fN",
16564
+ "_eP",
16716
16565
  { ["_s"]: confirmingSkill === s.id }
16717
16566
  ])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
16718
16567
  _if(() => {
@@ -16762,20 +16611,20 @@ var manage_workspace_default = _template("r", (input) => {
16762
16611
  _if(() => {
16763
16612
  if (running.length) {
16764
16613
  const $scope15_id = _scope_id();
16765
- _html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
16614
+ _html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
16766
16615
  _for_of(running, (p) => {
16767
16616
  const $scope16_id = _scope_id();
16768
- _html(`<li${_attr_class("_fB")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_fC"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_fD"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_fE")}>`);
16617
+ _html(`<li${_attr_class("_eD")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_eE"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_eF"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_eG")}>`);
16769
16618
  _for_of(p.ports, (port) => {
16770
16619
  const $scope34_id = _scope_id();
16771
16620
  _html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
16772
16621
  _script($scope34_id, "r27");
16773
16622
  writeScope($scope34_id, { d: port });
16774
16623
  }, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
16775
- _html(`<span${_attr_class(["_y", "_fF"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
16776
- "_cj",
16624
+ _html(`<span${_attr_class(["_y", "_eH"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
16625
+ "_ci",
16777
16626
  "_8",
16778
- "_fO"
16627
+ "_eQ"
16779
16628
  ])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
16780
16629
  icon_xmark_default({ size: 14 });
16781
16630
  _html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
@@ -16856,14 +16705,14 @@ var manage_workspace_default = _template("r", (input) => {
16856
16705
  });
16857
16706
  _resume_branch($scope0_id);
16858
16707
  });
16859
- var curRepos = "_cZ _ce _cM _cX";
16860
- var curRow = "_fh _c0 _cY";
16861
- var curEmpty = "_fj _ck";
16862
- var curBase = "_fm _Y _X";
16863
- var archived = "_fr _b_";
16864
- var archivedHint = "_fs _X";
16865
- var archivedList = "_cZ _ce _cM _cX";
16866
- var archivedRow = "_ft _c0 _cY";
16708
+ var curRepos = "_ed _cd _d1 _eb";
16709
+ var curRow = "_el _ee _ec";
16710
+ var curEmpty = "_en _cj";
16711
+ var curBase = "_eq _Y _X";
16712
+ var archived = "_ev _b9";
16713
+ var archivedHint = "_ew _X";
16714
+ var archivedList = "_ed _cd _d1 _eb";
16715
+ var archivedRow = "_ex _ee _ec";
16867
16716
  //#endregion
16868
16717
  //#region src/tags/icons/icon-group.marko
16869
16718
  var icon_group_default = _template("fb", (input) => {
@@ -16883,7 +16732,7 @@ var icon_group_default = _template("fb", (input) => {
16883
16732
  });
16884
16733
  //#endregion
16885
16734
  //#region src/tags/join-dialog.css.ts
16886
- var dlg = "_im _gY";
16735
+ var dlg = "_im _hP";
16887
16736
  var hint = "_in _X";
16888
16737
  //#endregion
16889
16738
  //#region src/tags/join-dialog.marko
@@ -17013,7 +16862,7 @@ var join_dialog_default = _template("o", (input) => {
17013
16862
  content: _content("o12", () => {
17014
16863
  _scope_reason();
17015
16864
  const $scope1_id = _scope_id();
17016
- _html(`<h2${_attr_class("_gZ")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
16865
+ _html(`<h2${_attr_class("_hQ")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
17017
16866
  "_Z",
17018
16867
  "_y",
17019
16868
  "_ip"
@@ -17032,7 +16881,7 @@ var join_dialog_default = _template("o", (input) => {
17032
16881
  _html(`<li${_attr_class("_ir")}><span${_attr_class("_is")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
17033
16882
  writeScope($scope9_id, {});
17034
16883
  }, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
17035
- _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("_it")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
16884
+ _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("_it")}><span${_attr_class("_cm")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
17036
16885
  name = _new_name;
17037
16886
  }, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
17038
16887
  _script($scope3_id, "o8");
@@ -17239,7 +17088,7 @@ var new_workspace_default = _template("t", (input) => {
17239
17088
  }
17240
17089
  }, "t6", $scope0_id);
17241
17090
  const titleId = _id();
17242
- _html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
17091
+ _html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
17243
17092
  _set_serialize_reason({
17244
17093
  0: _serialize_guard($scope0_reason, 2),
17245
17094
  1: $sg__input_backHref__OR__input_onExit,
@@ -17288,16 +17137,16 @@ var new_workspace_default = _template("t", (input) => {
17288
17137
  return 0;
17289
17138
  }
17290
17139
  }, $scope0_id, "e", 1, 1, 1, 0, 1);
17291
- _html(`<label${_attr_class("_fd")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
17140
+ _html(`<label${_attr_class("_eh")}><span${_attr_class("_cm")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
17292
17141
  name = _new_name;
17293
- }, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_b_")}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
17142
+ }, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_b9")}><div${_attr_class("_ej")}><h2${_attr_class("_cm")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
17294
17143
  _for_of(selected, (repo) => {
17295
17144
  const $scope4_id = _scope_id();
17296
- _html(`<li${_attr_class("_fg")}><div${_attr_class(curRow)}><span${_attr_class("_fk")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
17145
+ _html(`<li${_attr_class("_ek")}><div${_attr_class(curRow)}><span${_attr_class("_eo")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
17297
17146
  _if(() => {
17298
17147
  if (repo.fork !== void 0) {
17299
17148
  const $scope5_id = _scope_id();
17300
- _html(`<button${_attr_class(["_fn", { ["_fl"]: repo.fork }])}${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)}>`);
17149
+ _html(`<button${_attr_class(["_er", { ["_ep"]: repo.fork }])}${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)}>`);
17301
17150
  _if(() => {
17302
17151
  if (repo.fork) {
17303
17152
  const $scope14_id = _scope_id();
@@ -17320,7 +17169,7 @@ var new_workspace_default = _template("t", (input) => {
17320
17169
  _html(`<button${_attr_class([
17321
17170
  curBase,
17322
17171
  "_y",
17323
- { ["_fl"]: branchesFor === repo.fullName }
17172
+ { ["_ep"]: branchesFor === repo.fullName }
17324
17173
  ])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
17325
17174
  icon_branch_default({ size: 12 });
17326
17175
  _html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
@@ -17329,7 +17178,7 @@ var new_workspace_default = _template("t", (input) => {
17329
17178
  _if(() => {
17330
17179
  if (branchesFor === repo.fullName) {
17331
17180
  const $scope10_id = _scope_id();
17332
- _html(`<div${_attr_class("_fi")}>`);
17181
+ _html(`<div${_attr_class("_em")}>`);
17333
17182
  const $childScope2 = _peek_scope_id();
17334
17183
  branch_pick_default({
17335
17184
  repo: repo.fullName,
@@ -17380,7 +17229,7 @@ var new_workspace_default = _template("t", (input) => {
17380
17229
  action: attrTag({ content: _content("t21", () => {
17381
17230
  _scope_reason();
17382
17231
  const $scope2_id = _scope_id();
17383
- _html(`<button${_attr_class([iconBtnRow, "_fe"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
17232
+ _html(`<button${_attr_class([iconBtnRow, "_ei"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
17384
17233
  _set_serialize_reason(1);
17385
17234
  const $childScope3 = _peek_scope_id();
17386
17235
  icon_refresh_default({
@@ -17401,10 +17250,10 @@ var new_workspace_default = _template("t", (input) => {
17401
17250
  _if(() => {
17402
17251
  if (busy && steps.length) {
17403
17252
  const $scope11_id = _scope_id();
17404
- _html(`<ul${_attr_class("_fo")}>`);
17253
+ _html(`<ul${_attr_class("_es")}>`);
17405
17254
  _for_of(steps, (step, i) => {
17406
17255
  const $scope12_id = _scope_id();
17407
- _html(`<li${_attr_class(["_fu", { ["_fp"]: i === steps.length - 1 }])}>`);
17256
+ _html(`<li${_attr_class(["_ey", { ["_et"]: i === steps.length - 1 }])}>`);
17408
17257
  _if(() => {
17409
17258
  if (i === steps.length - 1) {
17410
17259
  const $scope17_id = _scope_id();
@@ -17413,7 +17262,7 @@ var new_workspace_default = _template("t", (input) => {
17413
17262
  return 0;
17414
17263
  } else {
17415
17264
  const $scope18_id = _scope_id();
17416
- _html(`<span${_attr_class("_fq")}>`);
17265
+ _html(`<span${_attr_class("_eu")}>`);
17417
17266
  icon_check_default({ size: 14 });
17418
17267
  _html("</span>");
17419
17268
  writeScope($scope18_id, {});
@@ -17427,18 +17276,18 @@ var new_workspace_default = _template("t", (input) => {
17427
17276
  return 0;
17428
17277
  }
17429
17278
  }, $scope0_id, "q", 1, 1, 1, 0, 1);
17430
- _html(`<div${_attr_class("_fb")}><button type=button${_attr_class([
17279
+ _html(`<div${_attr_class("_ef")}><button type=button${_attr_class([
17431
17280
  btnLg,
17432
17281
  "_r",
17433
- "_fc"
17282
+ "_eg"
17434
17283
  ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
17435
17284
  _if(() => {
17436
17285
  if (archived$1.length) {
17437
17286
  const $scope6_id = _scope_id();
17438
- _html(`<section${_attr_class(archived)}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>Archived</h2><span${_attr_class(sectionCount)}>${_text_resume($scope6_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(archivedList)}>`);
17287
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_ej")}><h2${_attr_class("_cm")}>Archived</h2><span${_attr_class(sectionCount)}>${_text_resume($scope6_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(archivedList)}>`);
17439
17288
  _for_of(archived$1, (ws) => {
17440
17289
  const $scope7_id = _scope_id();
17441
- _html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
17290
+ _html(`<li${_attr_class(archivedRow)}><div${_attr_class("_ce")}><span${_attr_class("_cf")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
17442
17291
  _if(() => {
17443
17292
  if (restoring === ws.id) {
17444
17293
  const $scope19_id = _scope_id();
@@ -17554,19 +17403,19 @@ var term_find_default = _template("E", (input) => {
17554
17403
  const canStep = hasQuery && open;
17555
17404
  const keybar = input.placement === "keybar";
17556
17405
  _html(`<div${_attr_class([
17557
- "_em",
17558
- keybar ? "_eo" : "_en",
17559
- !open && "_eq"
17560
- ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eh", keybar ? "_ep" : "_ej"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
17406
+ "_cA",
17407
+ keybar ? "_cC" : "_cB",
17408
+ !open && "_cE"
17409
+ ])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_cv", keybar ? "_cD" : "_cx"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
17561
17410
  if (!open) return;
17562
17411
  query = v;
17563
17412
  live.query = v;
17564
17413
  run(0);
17565
- }, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_er"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
17414
+ }, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_cF"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
17566
17415
  icon_arrow_up_default({ size: 14 });
17567
- _html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
17416
+ _html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
17568
17417
  icon_arrow_down_default({ size: 14 });
17569
- _html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
17418
+ _html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
17570
17419
  icon_xmark_default({ size: 14 });
17571
17420
  _html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
17572
17421
  const $return = focusInput;
@@ -17717,7 +17566,7 @@ var term_default = _template("F", (input) => {
17717
17566
  }
17718
17567
  }, "F9", $scope0_id);
17719
17568
  input.keys;
17720
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eH")}><div${_attr_class("_eI")}></div>${_el_resume($scope0_id, "b")}`);
17569
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_db")}><div${_attr_class("_dc")}></div>${_el_resume($scope0_id, "b")}`);
17721
17570
  _if(() => {
17722
17571
  if (findOpen) {
17723
17572
  const $scope4_id = _scope_id();
@@ -17744,7 +17593,7 @@ var term_default = _template("F", (input) => {
17744
17593
  _if(() => {
17745
17594
  if (uploading) {
17746
17595
  const $scope5_id = _scope_id();
17747
- _html(`<div${_attr_class("_eO")}>uploading…</div>`);
17596
+ _html(`<div${_attr_class("_di")}>uploading…</div>`);
17748
17597
  writeScope($scope5_id, {});
17749
17598
  return 0;
17750
17599
  }
@@ -17752,7 +17601,7 @@ var term_default = _template("F", (input) => {
17752
17601
  _if(() => {
17753
17602
  if (copiedFlash) {
17754
17603
  const $scope6_id = _scope_id();
17755
- _html(`<div${_attr_class("_eN")}>Copied</div>`);
17604
+ _html(`<div${_attr_class("_dh")}>Copied</div>`);
17756
17605
  writeScope($scope6_id, {});
17757
17606
  return 0;
17758
17607
  }
@@ -17761,7 +17610,7 @@ var term_default = _template("F", (input) => {
17761
17610
  _if(() => {
17762
17611
  if (trapOpen) {
17763
17612
  const $scope3_id = _scope_id();
17764
- _html(`<div${_attr_class("_eP")}><div${_attr_class("_eQ")}><p${_attr_class("_eR")}>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")}`);
17613
+ _html(`<div${_attr_class("_dj")}><div${_attr_class("_dk")}><p${_attr_class("_dl")}>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")}`);
17765
17614
  _script($scope3_id, "F16");
17766
17615
  _script($scope3_id, "F17");
17767
17616
  writeScope($scope3_id, {});
@@ -18022,10 +17871,10 @@ var work_view_default = _template("J", (input) => {
18022
17871
  }
18023
17872
  }, "J14", $scope0_id);
18024
17873
  const navShown = view === "nav" && input.navState?.view === "nav";
18025
- _html(`<div${_attr_class(["_cq", {
18026
- ["_co"]: navShown,
18027
- ["_cp"]: !input.active
18028
- }])}><div${_attr_class("_cr")}>`);
17874
+ _html(`<div${_attr_class(["_cp", {
17875
+ ["_cn"]: navShown,
17876
+ ["_co"]: !input.active
17877
+ }])}><div${_attr_class("_cq")}>`);
18029
17878
  _if(() => {
18030
17879
  if (error) {
18031
17880
  const $scope8_id = _scope_id();
@@ -18048,7 +17897,7 @@ var work_view_default = _template("J", (input) => {
18048
17897
  _if(() => {
18049
17898
  if (diffMounted && ws) {
18050
17899
  const $scope1_id = _scope_id();
18051
- _html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
17900
+ _html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
18052
17901
  _set_serialize_reason({
18053
17902
  0: $sg__input_workspace,
18054
17903
  1: $sg__input_workspace,
@@ -18105,7 +17954,7 @@ var work_view_default = _template("J", (input) => {
18105
17954
  _if(() => {
18106
17955
  if (manageMounted && ws) {
18107
17956
  const $scope2_id = _scope_id();
18108
- _html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
17957
+ _html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
18109
17958
  _set_serialize_reason({
18110
17959
  0: $sg__input_workspace,
18111
17960
  1: _serialize_guard($scope0_reason, 9)
@@ -18131,7 +17980,7 @@ var work_view_default = _template("J", (input) => {
18131
17980
  _if(() => {
18132
17981
  if (settingsMounted) {
18133
17982
  const $scope3_id = _scope_id();
18134
- _html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
17983
+ _html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
18135
17984
  _set_serialize_reason({
18136
17985
  0: _serialize_guard($scope0_reason, 0),
18137
17986
  1: $sg__input_workspace,
@@ -18173,7 +18022,7 @@ var work_view_default = _template("J", (input) => {
18173
18022
  _if(() => {
18174
18023
  if (newMounted) {
18175
18024
  const $scope4_id = _scope_id();
18176
- _html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
18025
+ _html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
18177
18026
  _set_serialize_reason({
18178
18027
  0: 1,
18179
18028
  1: _serialize_guard($scope0_reason, 13),
@@ -18198,13 +18047,13 @@ var work_view_default = _template("J", (input) => {
18198
18047
  return 0;
18199
18048
  }
18200
18049
  }, $scope0_id, "g", 1, 1, 1, 0, 1);
18201
- _html(`<div${_attr_class("_ct")}${_attr("inert", view !== "term")}>`);
18050
+ _html(`<div${_attr_class("_cs")}${_attr("inert", view !== "term")}>`);
18202
18051
  _if(() => {
18203
18052
  if (ws && shownSessions) {
18204
18053
  const $scope5_id = _scope_id();
18205
18054
  _for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
18206
18055
  const $scope6_id = _scope_id();
18207
- _html(`<div${_attr_class("_cu")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
18056
+ _html(`<div${_attr_class("_ct")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
18208
18057
  _set_serialize_reason(2);
18209
18058
  const $childScope5 = _peek_scope_id();
18210
18059
  term_default({
@@ -18230,7 +18079,7 @@ var work_view_default = _template("J", (input) => {
18230
18079
  _if(() => {
18231
18080
  if (!shownSessions.length && view === "term") {
18232
18081
  const $scope7_id = _scope_id();
18233
- _html(`<div${_attr_class("_cl")}><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>`);
18082
+ _html(`<div${_attr_class("_ck")}><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>`);
18234
18083
  _script($scope7_id, "J38");
18235
18084
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
18236
18085
  return 0;
@@ -18240,7 +18089,7 @@ var work_view_default = _template("J", (input) => {
18240
18089
  return 0;
18241
18090
  } else if (ws) {
18242
18091
  const $scope10_id = _scope_id();
18243
- _html(`<p${_attr_class("_cl")}>Loading sessions…</p>`);
18092
+ _html(`<p${_attr_class("_ck")}>Loading sessions…</p>`);
18244
18093
  writeScope($scope10_id, {});
18245
18094
  return 1;
18246
18095
  }
@@ -18360,8 +18209,8 @@ _template("tb", (input) => {
18360
18209
  });
18361
18210
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
18362
18211
  });
18363
- var sessOpen = "_ex _I";
18364
- var sessRename = "_eB _J";
18212
+ var sessOpen = "_cL _I";
18213
+ var sessRename = "_cP _J";
18365
18214
  //#endregion
18366
18215
  //#region src/tags/key-bar-sessions.marko
18367
18216
  var usageFor;
@@ -18392,7 +18241,7 @@ _template("p", (input) => {
18392
18241
  popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
18393
18242
  popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
18394
18243
  }, "p2", $scope0_id);
18395
- _html(`<button${_attr_class([kbtn, "_et"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
18244
+ _html(`<button${_attr_class([kbtn, "_cH"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
18396
18245
  _set_serialize_reason({
18397
18246
  1: $sg__input_sessions__OR__input_sessionId,
18398
18247
  2: $sg__input_sessions__OR__input_sessionId
@@ -18406,12 +18255,12 @@ _template("p", (input) => {
18406
18255
  "_A",
18407
18256
  "_bc",
18408
18257
  phase[sessionPhase(current$2?.state)]
18409
- ])}></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(["__", "_eu"])}>`);
18258
+ ])}></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(["__", "_cI"])}>`);
18410
18259
  _for_of(input.sessions, (s) => {
18411
18260
  const $scope1_id = _scope_id();
18412
18261
  const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
18413
18262
  const $for_content__s_id__closures = /* @__PURE__ */ new Set();
18414
- _html(`<div${_attr_class(["_ew", { ["_ev"]: s.id === input.sessionId }])}>`);
18263
+ _html(`<div${_attr_class(["_cK", { ["_cJ"]: s.id === input.sessionId }])}>`);
18415
18264
  _if(() => {
18416
18265
  if (renamingId === s.id) {
18417
18266
  const $scope5_id = _scope_id();
@@ -18443,7 +18292,7 @@ _template("p", (input) => {
18443
18292
  agent: activeAgent(s),
18444
18293
  size: 14
18445
18294
  });
18446
- _html(`<span${_attr_class("_ey")}><span${_attr_class("_eA")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
18295
+ _html(`<span${_attr_class("_cM")}><span${_attr_class("_cO")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
18447
18296
  _if(() => {
18448
18297
  if (s.id === input.sessionId) {
18449
18298
  const $scope7_id = _scope_id();
@@ -18455,7 +18304,7 @@ _template("p", (input) => {
18455
18304
  const $childScope4 = _peek_scope_id();
18456
18305
  usage_pcts_default({
18457
18306
  agent: plan,
18458
- class: "_ez"
18307
+ class: "_cN"
18459
18308
  });
18460
18309
  writeScope($scope8_id, { a: _existing_scope($childScope4) });
18461
18310
  return 0;
@@ -18472,7 +18321,7 @@ _template("p", (input) => {
18472
18321
  _if(() => {
18473
18322
  if (input.onRenameSession) {
18474
18323
  const $scope6_id = _scope_id();
18475
- _html(`<button${_attr_class(["_eC", "_eD"])} title="Rename session">`);
18324
+ _html(`<button${_attr_class(["_cQ", "_cR"])} title="Rename session">`);
18476
18325
  icon_edit_default({ size: 12 });
18477
18326
  _html(`</button>${_el_resume($scope6_id, "a")}`);
18478
18327
  _script($scope6_id, "p4");
@@ -18484,7 +18333,7 @@ _template("p", (input) => {
18484
18333
  if (input.onCloseSession) {
18485
18334
  const $scope3_id = _scope_id();
18486
18335
  _html(`<button${_attr_class([
18487
- "_eC",
18336
+ "_cQ",
18488
18337
  "_8",
18489
18338
  { ["_s"]: armedClose === s.id }
18490
18339
  ])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
@@ -18511,7 +18360,7 @@ _template("p", (input) => {
18511
18360
  k: $si__input_sessions && $for_content__s_id__closures
18512
18361
  });
18513
18362
  }, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
18514
- _html(`<div${_attr_class("_eE")}><span${_attr_class("_eF")}>New session</span><div${_attr_class("_eG")}>`);
18363
+ _html(`<div${_attr_class("_cS")}><span${_attr_class("_cT")}>New session</span><div${_attr_class("_cU")}>`);
18515
18364
  _for_of(["shell", ...input.agents], (agent) => {
18516
18365
  const $scope4_id = _scope_id();
18517
18366
  _html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
@@ -18987,7 +18836,7 @@ var app_shell_default = _template("c", (input) => {
18987
18836
  ["_g"]: !selectedId && showSetup,
18988
18837
  ["_e"]: navView === "nav"
18989
18838
  }])}>`);
18990
- _set_serialize_reason(134152190);
18839
+ _set_serialize_reason(33554430);
18991
18840
  const $childScope2 = _peek_scope_id();
18992
18841
  side_nav_default({
18993
18842
  workspace: navWs,
@@ -21325,7 +21174,17 @@ var GET$5 = Run.GET(() => {
21325
21174
  //#region __marko-run__api.workspaces.js
21326
21175
  var postHandler$7 = normalizeHandler(Run.POST({ json: CreateWorkspace }, async (ctx) => {
21327
21176
  const body = await readBody(ctx);
21328
- return Response.json(await withProgressOp(body.opId ?? "", () => createWorkspace(body.name, body.repos, { join: body.join })));
21177
+ const t0 = Date.now();
21178
+ const repos = body.repos.map((r) => r.fullName).join(", ");
21179
+ console.log(`[work] create "${body.name}" (${repos})`);
21180
+ try {
21181
+ const ws = await withProgressOp(body.opId ?? "", () => createWorkspace(body.name, body.repos, { join: body.join }));
21182
+ console.log(`[work] created "${body.name}" as ${ws.id} in ${Date.now() - t0}ms`);
21183
+ return Response.json(ws);
21184
+ } catch (err) {
21185
+ console.warn(`[work] create "${body.name}" failed after ${Date.now() - t0}ms:`, err instanceof Error ? err.message : err);
21186
+ throw err;
21187
+ }
21329
21188
  }), "POST");
21330
21189
  var getHandler$5 = normalizeHandler(GET$5, "GET");
21331
21190
  var get36_options = normalizeOptions("GET", mware11, getHandler$5);
@@ -27511,4 +27370,4 @@ server.listen(port, () => {
27511
27370
  //#endregion
27512
27371
  export {};
27513
27372
 
27514
- ;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C_aFgj9M.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C_aFgj9M.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/new-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C_aFgj9M.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/settings-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C_aFgj9M.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-BmFMmeGE.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BmFMmeGE.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CyfjTVs-.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CyfjTVs-.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">"],"defer":[2,"/assets/diff-view-Cr-PefQe.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-Cr-PefQe.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
27373
+ ;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/settings-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/new-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w._-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w._-CaFh5fWn.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CaFh5fWn.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CDR_rQOe.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CDR_rQOe.css\"",">",2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">"],"defer":[2,"/assets/diff-view-CyDQspSd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-CyDQspSd.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};