@songsid/agend 2.4.0-alpha.4 → 2.4.0-beta.2

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 (109) hide show
  1. package/dist/agent-whats-new.js +1 -1
  2. package/dist/agent-whats-new.js.map +1 -1
  3. package/dist/auth-api.js +1 -0
  4. package/dist/auth-api.js.map +1 -1
  5. package/dist/build-provenance.json +1 -1
  6. package/dist/daemon.js +2 -1
  7. package/dist/daemon.js.map +1 -1
  8. package/dist/delivery-consumed-watch.d.ts +2 -0
  9. package/dist/delivery-consumed-watch.js +1 -1
  10. package/dist/delivery-consumed-watch.js.map +1 -1
  11. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +8 -2
  12. package/dist/general-knowledge/skills/hub/SKILL.md +53 -16
  13. package/dist/hub/catalog.d.ts +1 -1
  14. package/dist/hub/catalog.js +34 -10
  15. package/dist/hub/catalog.js.map +1 -1
  16. package/dist/hub/compose/server.d.ts +1 -0
  17. package/dist/hub/compose/server.js +6 -0
  18. package/dist/hub/compose/server.js.map +1 -1
  19. package/dist/hub/grant-access.js +23 -3
  20. package/dist/hub/grant-access.js.map +1 -1
  21. package/dist/hub/grant-search.js +13 -1
  22. package/dist/hub/grant-search.js.map +1 -1
  23. package/dist/hub/group-policy/impact-inventory.js +18 -2
  24. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  25. package/dist/hub/http/compose.js +76 -5
  26. package/dist/hub/http/compose.js.map +1 -1
  27. package/dist/hub/http/deps.d.ts +2 -0
  28. package/dist/hub/http/schema.js +2 -0
  29. package/dist/hub/http/schema.js.map +1 -1
  30. package/dist/hub/join/store.d.ts +5 -0
  31. package/dist/hub/join/store.js +12 -2
  32. package/dist/hub/join/store.js.map +1 -1
  33. package/dist/hub/person-prefs.d.ts +22 -0
  34. package/dist/hub/person-prefs.js +34 -0
  35. package/dist/hub/person-prefs.js.map +1 -0
  36. package/dist/hub/rooms/service.js +1 -1
  37. package/dist/hub/rooms/service.js.map +1 -1
  38. package/dist/hub/settings-member-address-decision.js +3 -1
  39. package/dist/hub/settings-member-address-decision.js.map +1 -1
  40. package/dist/hub/settings-member-address-http.js +3 -2
  41. package/dist/hub/settings-member-address-http.js.map +1 -1
  42. package/dist/hub/settings-member-address-policy.d.ts +3 -2
  43. package/dist/hub/settings-member-address-policy.js +3 -1
  44. package/dist/hub/settings-member-address-policy.js.map +1 -1
  45. package/dist/hub/settings-web-address-decision.js +3 -1
  46. package/dist/hub/settings-web-address-decision.js.map +1 -1
  47. package/dist/hub/settings-web-address-http.js +3 -2
  48. package/dist/hub/settings-web-address-http.js.map +1 -1
  49. package/dist/hub/settings-web-address-policy.d.ts +3 -2
  50. package/dist/hub/settings-web-address-policy.js +3 -1
  51. package/dist/hub/settings-web-address-policy.js.map +1 -1
  52. package/dist/hub/teams/grant-schema.d.ts +2 -0
  53. package/dist/hub/teams/grant-schema.js +13 -0
  54. package/dist/hub/teams/grant-schema.js.map +1 -0
  55. package/dist/hub/teams/index.d.ts +7 -0
  56. package/dist/hub/teams/index.js +273 -0
  57. package/dist/hub/teams/index.js.map +1 -0
  58. package/dist/hub/teams/store.d.ts +34 -0
  59. package/dist/hub/teams/store.js +57 -0
  60. package/dist/hub/teams/store.js.map +1 -0
  61. package/dist/hub/teams/types.d.ts +58 -1
  62. package/dist/hub/types.d.ts +3 -0
  63. package/dist/hub-pilot-trust-settings.d.ts +1 -1
  64. package/dist/hub-pilot-trust-settings.js +2 -2
  65. package/dist/hub-pilot-trust-settings.js.map +1 -1
  66. package/dist/locale.js +2 -0
  67. package/dist/locale.js.map +1 -1
  68. package/dist/transcript-needles.d.ts +4 -2
  69. package/dist/transcript-needles.js +35 -4
  70. package/dist/transcript-needles.js.map +1 -1
  71. package/dist/ui/hub-client.js +18 -5
  72. package/dist/ui/hub-grant-picker.js +14 -5
  73. package/dist/ui/hub-group-strings.js +3 -3
  74. package/dist/ui/hub-room-composer.js +12 -2
  75. package/dist/ui/hub-room-favorites.js +63 -5
  76. package/dist/ui/hub-room-strings.js +2 -0
  77. package/dist/ui/hub-room-thread.js +39 -13
  78. package/dist/ui/hub-strings.js +2 -0
  79. package/dist/ui/hub-teams-strings.js +34 -0
  80. package/dist/ui/hub-teams.js +169 -0
  81. package/dist/ui/panel-hub.js +34 -16
  82. package/dist/ui/settings-hub-member-address.js +21 -6
  83. package/dist/ui/settings-hub-section.js +2 -2
  84. package/dist/ui/settings-hub-web-address.js +21 -5
  85. package/dist/ui/settings-layout.js +5 -1
  86. package/dist/ui/shared/app-shell.js +40 -6
  87. package/dist/ui/shared/app.css +3 -0
  88. package/dist/ui/shared/chat-thread.js +2 -1
  89. package/dist/ui/shared/hub-chat.css +5 -0
  90. package/dist/ui/shared/hub-signin.css +2 -0
  91. package/dist/ui/shared/hub-teams.css +31 -0
  92. package/dist/ui/shared/page-head.js +3 -2
  93. package/dist/ui/shared/usage-dialog.js +2 -1
  94. package/dist/ui/shared/view-strings.js +2 -0
  95. package/dist/usage/agent-output.js +1 -0
  96. package/dist/usage/agent-output.js.map +1 -1
  97. package/dist/usage/i18n-keys.d.ts +1 -1
  98. package/dist/usage/i18n-keys.js +1 -1
  99. package/dist/usage/i18n-keys.js.map +1 -1
  100. package/dist/usage/i18n.d.ts +1 -1
  101. package/dist/usage/i18n.js +2 -1
  102. package/dist/usage/i18n.js.map +1 -1
  103. package/dist/usage/providers.d.ts +4 -1
  104. package/dist/usage/providers.js +25 -10
  105. package/dist/usage/providers.js.map +1 -1
  106. package/dist/usage/usage-api.d.ts +1 -1
  107. package/dist/usage/usage-api.js +4 -4
  108. package/dist/usage/usage-api.js.map +1 -1
  109. package/package.json +1 -1
@@ -341,8 +341,8 @@ export function signInHref() {
341
341
 
342
342
  // ── AgEnD Hub P1 (docs/design/hub-ui-client.md): the page's mark, set by the listener that served it ──
343
343
  register("hubShell", {
344
- en: { brand: "AgEnD Hub", ask: "Ask", exposures: "My shared agents", admin: "Administration" },
345
- "zh-TW": { brand: "AgEnD Hub", ask: "提問", exposures: "我分享的 Agent", admin: "管理" },
344
+ en: { brand: "AgEnD Hub", ask: "Ask", exposures: "My shared agents", admin: "Administration", preview: "Preview" },
345
+ "zh-TW": { brand: "AgEnD Hub", ask: "提問", exposures: "我分享的 Agent", admin: "管理", preview: "預覽版" },
346
346
  });
347
347
  function hubMarks() {
348
348
  const tokens = String((typeof document !== "undefined" && document.body?.dataset?.hub) || "").split(/\s+/);
@@ -361,7 +361,7 @@ function HubSidebar({ route }) {
361
361
  aria-current=${tab === key ? "page" : undefined} onClick=${closeDrawer}><${Icon} name=${icon} /><span class="grow">${t(`hubShell.${key}`)}</span></a>`;
362
362
  return html`<aside id="sidebar" class="sidebar" aria-label=${t("app.menu")}>
363
363
  <div class="side-head" data-trust="navigation">
364
- <a class="brand" href="/ui/hub" title=${name || undefined} onClick=${closeDrawer}>${t("hubShell.brand")}</a>
364
+ <a class="brand" href="/ui/hub" title=${name || undefined} onClick=${closeDrawer}>${t("hubShell.brand")}</a><span class="tag warn hub-preview-tag">${t("hubShell.preview")}</span>
365
365
  <button type="button" class="icon-btn side-collapse" onClick=${toggleSidebar} aria-label=${narrow() ? t("app.closeMenu") : t("app.collapse")} title=${narrow() ? t("app.closeMenu") : t("app.collapse")} aria-controls="sidebar"><${Icon} name=${narrow() ? "close" : "sidebar"} /></button>
366
366
  </div>
367
367
  <${HubSideSlot} fallback=${html`<nav data-trust="navigation" class="side-nav" aria-label=${t("app.menu")}>${row("ask", "/ui/hub", "chat")}${row("exposures", "/ui/hub/exposures", "globe")}${row("admin", "/ui/hub/admin", "key")}</nav>`} />
@@ -1215,6 +1215,35 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
1215
1215
  // in has lost focus or left the page (a composition can end without its compositionend: #2517 review).
1216
1216
  let width = -1, tallest = 0, held = false, lowest = 0, upLowest = 0, composing = null;
1217
1217
  const coarse = () => typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches;
1218
+ // M-3111 (iPhone, alpha.4): with the keyboard up, and while it rises or falls, the shell is the visible view itself —
1219
+ // its height and where the browser has panned it, set on the shell itself only then (its stylesheet height otherwise:
1220
+ // no transform the rest of the time, so nothing fixed inside it moves; a browser without dvh is untouched). The page's own height
1221
+ // (100dvh) is not that view then: iOS (under this page's interactive-widget=resizes-content) sized it a toolbar short of
1222
+ // the keyboard, so the page's background showed between the composer and the keyboard, and on the way down it stayed
1223
+ // short until the keyboard had gone, then snapped. Pinch-zoomed, the view is not the screen: nothing is set then.
1224
+ // The keyboard rises and falls over a few hundred ms, and the view's resize comes when it has settled (iOS): for that
1225
+ // long after a field gains or loses focus the shell follows the view every frame — both ways — instead of jumping.
1226
+ const FOLLOW_MS = 800;
1227
+ let raf = 0, followUntil = 0;
1228
+ const now = () => (typeof performance !== "undefined" ? performance.now() : Date.now());
1229
+ const frame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : null;
1230
+ const unfit = (el) => { if (el?.style) { el.style.removeProperty("height"); el.style.removeProperty("transform"); } };
1231
+ const fit = () => {
1232
+ const el = root.current;
1233
+ if (!el?.style) return;
1234
+ const on = coarse() && (shellStore.get().keyboard || now() < followUntil) && Math.abs((Number(vv.scale) || 1) - 1) < 0.01;
1235
+ if (!on) { unfit(el); return; }
1236
+ el.style.setProperty("height", `${Math.round(vv.height)}px`);
1237
+ const top = Math.max(0, Math.round(Number(vv.offsetTop) || 0));
1238
+ if (top) el.style.setProperty("transform", `translateY(${top}px)`); else el.style.removeProperty("transform");
1239
+ };
1240
+ const follow = () => {
1241
+ if (!frame || !coarse()) return;
1242
+ followUntil = now() + FOLLOW_MS;
1243
+ if (raf) return;
1244
+ const step = () => { raf = 0; check(); if (now() < followUntil) raf = frame(step); };
1245
+ raf = frame(step);
1246
+ };
1218
1247
  const check = () => {
1219
1248
  if (composing && composing.isConnected !== false && document.activeElement === composing) return;
1220
1249
  composing = null;
@@ -1234,17 +1263,22 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
1234
1263
  if (!up && was && typing && h - upLowest <= KEYBOARD_MIN_PX) up = true; // a bar's height, not the keyboard
1235
1264
  upLowest = up ? (was ? Math.min(upLowest, h) : h) : 0;
1236
1265
  if (up !== was) shellStore.set({ keyboard: up });
1266
+ fit();
1237
1267
  };
1268
+ const focusChanged = () => { check(); follow(); };
1238
1269
  const start = (e) => { composing = (e && e.target) || document.activeElement || null; };
1239
1270
  const end = () => { composing = null; check(); };
1240
1271
  check();
1241
1272
  vv.addEventListener("resize", check);
1242
- document.addEventListener("focusin", check);
1243
- document.addEventListener("focusout", check);
1273
+ vv.addEventListener("scroll", fit);
1274
+ document.addEventListener("focusin", focusChanged);
1275
+ document.addEventListener("focusout", focusChanged);
1244
1276
  document.addEventListener("compositionstart", start, true);
1245
1277
  document.addEventListener("compositionend", end, true);
1246
1278
  return () => {
1247
- vv.removeEventListener("resize", check); document.removeEventListener("focusin", check); document.removeEventListener("focusout", check);
1279
+ vv.removeEventListener("resize", check); vv.removeEventListener("scroll", fit); document.removeEventListener("focusin", focusChanged); document.removeEventListener("focusout", focusChanged);
1280
+ if (raf && typeof cancelAnimationFrame === "function") cancelAnimationFrame(raf);
1281
+ unfit(root.current);
1248
1282
  document.removeEventListener("compositionstart", start, true); document.removeEventListener("compositionend", end, true);
1249
1283
  };
1250
1284
  }, []);
@@ -76,6 +76,9 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
76
76
  .side-head { display: flex; align-items: center; gap: var(--s-1); box-sizing: content-box; min-height: calc(var(--header-h) - 2 * var(--s-1));
77
77
  padding: max(var(--s-1), env(safe-area-inset-top)) var(--s-2) var(--s-1) var(--s-4); }
78
78
  .brand { flex: 1; font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
79
+ /* M-3108: the Hub sidebar's "Preview" tag sits right after the one-line brand (outside it), before the collapse button. */
80
+ .side-head:has(> .hub-preview-tag) > .brand { flex: 0 1 auto; white-space: nowrap; }
81
+ .side-head > .hub-preview-tag { margin-inline-end: auto; flex: none; }
79
82
  .side-nav { display: flex; flex-direction: column; padding: var(--s-1) var(--s-2); gap: 1px; }
80
83
  .side-row {
81
84
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 36px; padding: 0 var(--s-3);
@@ -200,7 +200,8 @@ export function createThread(list, scroller, opts) {
200
200
  // #2272: reply to it — a hover strip at its top right (phones: swipe left or long-press; R on a focused message).
201
201
  const key = msgKey(x);
202
202
  const act = opts.canReply?.() === false ? "" : `<div data-trust="thread-control" class="msg-actions"><button type="button" class="chip-btn icon-only" data-act="reply" data-arg="${escAttr(key)}" title="${escAttr(tr("chat.reply"))}" aria-label="${escAttr(tr("chat.reply"))}">${REPLY}</button></div>`;
203
- return `<div class="msg ${u ? "user" : "agent"}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender">${escAttr(x.sender)}</span>${time}${ticks}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.())}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr("chat.attGone"), goneLabel: tr("chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}</div>`;
203
+ // M-3092 (Hub rooms): another person's message, a bubble on the left (`msg-person`); the fleet never sets x.person.
204
+ return `<div class="msg ${u ? "user" : "agent"}${x.person ? " msg-person" : ""}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender">${escAttr(x.sender)}</span>${time}${ticks}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.())}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr("chat.attGone"), goneLabel: tr("chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}</div>`;
204
205
  }
205
206
  /**
206
207
  * A message this page is sending (chat-store.js): its own bubble at once, dimmed with "Sending…" until the server
@@ -37,6 +37,9 @@
37
37
  .hub-room-page .msg.status-line:has(.st-action) .body { justify-content: flex-start; }
38
38
  .hub-room-page .status-line .st-action { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; }
39
39
  .hub-room-page .status-line .st-action:hover { text-decoration: underline; }
40
+ /* Lumen (spec §3): another person's message — your own bubble, mirrored to the left; agent answers stay unbubbled. */
41
+ .hub-room-page .msg.msg-person { max-width: min(80%, 620px); }
42
+ .hub-room-page .msg.msg-person .body { background: var(--user-bubble); border-radius: var(--r-xl); padding: 10px var(--s-4); width: fit-content; max-width: 100%; }
40
43
 
41
44
  /* a name's letter on a tone (the same tones in both themes) */
42
45
  .hub-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; flex: none; }
@@ -64,6 +67,8 @@
64
67
  .hub-chat-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
65
68
  .hub-chat-title .s { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
66
69
  .hub-back { flex: none; }
70
+ /* S-150: the phone's back to the list is a full tap target, as the header's other buttons are. */
71
+ @media (max-width: 899px), (pointer: coarse) { .hub-chat-head .hub-back { min-width: var(--tap); min-height: var(--tap); } }
67
72
  .hub-scroller { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
68
73
  .hub-scroller .thread { max-width: var(--col); margin: 0 auto; padding: var(--s-4) var(--s-5); }
69
74
  .hub-room-empty { padding: var(--s-6) var(--s-4); }
@@ -11,6 +11,8 @@ body.hub-signed-out #sidebar, body.hub-signed-out nav.tabs { visibility: hidden;
11
11
  .hub-signin-brand span { color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
12
12
  .hub-signin-card h1 { margin: 0 0 6px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
13
13
  .hub-signin-lead { margin: 0 0 18px; color: var(--text-2); }
14
+ /* M-3108: the Preview line under the lead, with the same gap before the form. */
15
+ .hub-signin-preview { margin: -8px 0 18px; }
14
16
  .hub-signin-form { display: flex; flex-direction: column; }
15
17
  .hub-signin-form label { display: block; margin: 0 0 6px; font-size: var(--fs-sm); color: var(--text-2); font-weight: var(--fw-medium); }
16
18
  .hub-signin-form input { width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 11px 12px; font: inherit; background: var(--bg); color: var(--text);
@@ -0,0 +1,31 @@
1
+ /* Fresh lazy feature rules: retained app.css still gets usable touch controls. */
2
+ .hub-teams .hub-team-button { min-height: var(--tap); min-width: var(--tap); white-space: normal; }
3
+ .hub-team-head, .hub-team-actions, .hub-team-search-line, .hub-team-list > li, .hub-team-hits > li { display: flex; align-items: center; gap: var(--s-3); }
4
+ .hub-team-head { justify-content: space-between; flex-wrap: wrap; }
5
+ .hub-team-actions { flex-wrap: wrap; margin-top: var(--s-4); }
6
+ .hub-team-search-line { align-items: flex-end; }
7
+ .hub-team-search-line .field { margin: 0; min-width: 0; }
8
+ .hub-team-list, .hub-team-hits { list-style: none; padding: 0; margin: 0; }
9
+ .hub-team-list > li, .hub-team-hits > li { padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
10
+ .hub-team-detail { display: block; }
11
+ .hub-team-picker, .hub-team-delete { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); margin: var(--s-3) 0; }
12
+ .hub-team-table-wrap { overflow-x: auto; }
13
+ .hub-team-table { width: 100%; border-collapse: collapse; }
14
+ .hub-team-table :is(th, td) { padding: var(--s-3); text-align: start; vertical-align: middle; border-bottom: 1px solid var(--border); }
15
+ .hub-team-table th { color: var(--text-2); font-weight: var(--fw-medium); }
16
+ .hub-team-table td:first-child { min-width: 8rem; }
17
+ .hub-team-editor :is(input, select) { min-height: var(--tap); min-width: var(--tap); }
18
+ @media (max-width: 899px), (pointer: coarse) {
19
+ .hub-teams :is(input, select) { min-height: var(--tap); min-width: var(--tap); font-size: var(--fs-md); }
20
+ .hub-team-head { align-items: flex-start; }
21
+ .hub-team-search-line { flex-wrap: wrap; }
22
+ .hub-team-search-line .field { flex-basis: 100%; }
23
+ .hub-team-table-wrap { overflow: visible; }
24
+ .hub-team-table, .hub-team-table tbody { display: block; }
25
+ .hub-team-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
26
+ .hub-team-table tr { display: flex; flex-direction: column; padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
27
+ .hub-team-table td { display: block; min-width: 0; padding: var(--s-1) 0; border: 0; overflow-wrap: anywhere; }
28
+ .hub-team-table td:first-child { min-width: 0; }
29
+ .hub-team-table td[data-label]::before { content: attr(data-label); color: var(--text-2); margin-inline-end: var(--s-2); }
30
+ .hub-team-table td:last-child { align-self: flex-end; }
31
+ }
@@ -3,6 +3,7 @@
3
3
  // Drawing only: the words are the caller's (Settings' SettingsPageHead passes its own).
4
4
  import { html } from "./app-html.js";
5
5
 
6
- export function PageHead({ title, scope, lead, children }) {
7
- return html`<header class="s-page-head"><div><div class="s-page-title"><h2>${title}</h2><span class="s-scope">${scope}</span></div><p class="s-page-lead">${lead}</p></div>${children ? html`<div class="s-page-actions">${children}</div>` : null}</header>`;
6
+ // M-3108: an optional `tag` beside the title (the Hub's "Preview") and a `note` line under the lead.
7
+ export function PageHead({ title, scope, lead, tag, note, children }) {
8
+ return html`<header class="s-page-head"><div><div class="s-page-title"><h2>${title}</h2>${tag ? html`<span class="tag warn s-page-tag">${tag}</span>` : null}<span class="s-scope">${scope}</span></div><p class="s-page-lead">${lead}</p>${note ? html`<p class="note s-page-note">${note}</p>` : null}</div>${children ? html`<div class="s-page-actions">${children}</div>` : null}</header>`;
8
9
  }
@@ -219,7 +219,7 @@ export function CompactRow({ p, onExpand }) {
219
219
  const name = title.profile || title.base;
220
220
  const models = !pools && metrics.some((m) => m.scope === "model");
221
221
  return html`<button type="button" class=${`u-crow${p.stale ? " is-stale" : ""}${pools ? " is-pooled" : ""}${models ? " has-models" : ""}`} aria-expanded="false" title=${`${p.name} — ${tn("usageExpand")}`} onClick=${onExpand}>
222
- <span class="u-crow-head"><span class="u-crow-name">${name}</span>
222
+ <span class="u-crow-head"><span class="u-crow-name">${name}</span>${p.noAgents ? html`<span class="note">${tn("usage.no_agents")}</span>` : null}
223
223
  ${p.plan ? html`<span class="pill u-plan" title=${p.plan}><span aria-hidden="true">${planBadge(p.plan)}</span><span class="sr-only">${p.plan}</span></span>` : null}
224
224
  ${stale && metrics.length ? html`<span class="u-crow-stale" title=${detail}>${p.cachedAt ? tn("usageCachedAt", { at: usageClock(p.cachedAt) }) : stale.mark}<span class="sr-only"> (${detail})</span></span>` : null}</span>
225
225
  ${pools ? pools.map((x) => html`<${CompactMeter} key=${x.pool.label} m=${x.worst} tag=${usageText(x.pool.label, x.pool.labelI18n)}
@@ -308,6 +308,7 @@ export function UsageBody({ owner }) {
308
308
  <button type="button" class="icon-btn" disabled=${i === providers.length - 1} aria-label=${tn("usageMoveDown")} title=${tn("usageMoveDown")} onClick=${() => move(key(p), 1, data.providers)}><${Icon} name="down" size=${14} /></button>
309
309
  </span></div>
310
310
  ${providerTitle(p).profile ? html`<div class="u-profile" title=${p.name}>${providerTitle(p).profile}</div>` : null}
311
+ ${p.noAgents ? html`<p class="note">${tn("usage.no_agents")}</p>` : null}
311
312
  ${p.stale ? html`<p class="note u-stale" title=${staleNote(p).detail || null}>${staleNote(p).mark}</p>${staleNote(p).detail ? html`<p class="note u-stale-detail">${staleNote(p).detail}</p>` : null}` : null}
312
313
  ${p.status === "error" && !p.transient ? html`<p class="u-err">${usageText(p.error || tn("usage.error_fallback"), p.errorI18n)}</p>`
313
314
  : p.status === "error" && p.transient ? html`<p class="note">${usageText(p.error || tn("usage.error_fallback"), p.errorI18n)}</p>`
@@ -91,6 +91,7 @@ register("view", {
91
91
  "usage.empty_active": "No active backends with usage tracking",
92
92
  "usage.not_logged_in": "not logged in",
93
93
  "usage.default_login": "default",
94
+ "usage.no_agents": "No agents on this profile",
94
95
  "usage.error_fallback": "error",
95
96
  "usage.no_data": "no data",
96
97
  "usage.reset.in": "resets in {0}",
@@ -364,6 +365,7 @@ register("view", {
364
365
  "usage.empty_active": "沒有使用中且支援用量追蹤的 Backend",
365
366
  "usage.not_logged_in": "未登入",
366
367
  "usage.default_login": "預設",
368
+ "usage.no_agents": "此帳號目前沒有 Agent",
367
369
  "usage.error_fallback": "錯誤",
368
370
  "usage.no_data": "無資料",
369
371
  "usage.reset.in": "{0} 後重置",
@@ -32,6 +32,7 @@ function account(p, now) {
32
32
  const binding = p.metrics.filter(m => /^binding\b/.test(m.note ?? "")).map(label);
33
33
  const status = [
34
34
  p.status !== "ok" ? p.status : "",
35
+ p.noAgents ? "no agents on this profile" : "",
35
36
  p.stale ? `stale${p.staleCause ? ` (${p.staleCause})` : ""}` : p.transient ? "temporarily unavailable" : "",
36
37
  p.cachedAt ? `cached ${p.cachedAt}` : "",
37
38
  ...new Set([p.error, p.hint].filter(Boolean)),
@@ -1 +1 @@
1
- {"version":3,"file":"agent-output.js","sourceRoot":"","sources":["../../src/usage/agent-output.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvG,MAAM,KAAK,GAAG,CAAC,CAAc,EAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,C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iI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpK,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,gBAAgB,CAAC,CAAc,EAAE,GAAG,GAAG,EAAE,EAAE,MAAM,GAAG,KAAK;IACvE,MAAM,GAAG,GAAG,CAAC,KAA4B,EAAE,EAAE;QAC3C,IAAI,MAAM;YAAE,OAAO,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QAChD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;QAC5C,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;IACF,OAAO;QACL,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK;QACxF,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;QAC3E,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ;KAC1F,CAAC;AACJ,CAAC"}
@@ -3,5 +3,5 @@
3
3
  * Keep this list explicit: the parity test rejects a key missing from either
4
4
  * locale surface before a mixed-language release can ship.
5
5
  */
6
- export declare const USAGE_I18N_KEYS: readonly ["usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login", "usage.error_fallback", "usage.no_data", "usage.reset.in", "usage.reset.soon", "usage.duration.days_hours", "usage.duration.hours_minutes", "usage.duration.minutes", "usage.metric.session", "usage.metric.weekly", "usage.metric.monthly", "usage.metric.days_window", "usage.metric.named", "usage.metric.named_session", "usage.metric.named_weekly", "usage.metric.named_monthly", "usage.metric.named_days", "usage.metric.extra_usage", "usage.metric.rate_limit_resets", "usage.ticket_expiry", "usage.metric.credits", "usage.metric.weekly_limit", "usage.metric.pay_as_you_go", "usage.metric.bonus_credits", "usage.metric.overage_charges", "usage.metric.pay_per_use", "usage.unit.available", "usage.unit.credits", "usage.metric.usage_monthly", "usage.note.used_limit_unit", "usage.note.bonus_codes", "usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.note.binding", "usage.note.binding_severity", "usage.note.busiest_model", "usage.note.busiest_models", "usage.metric.agy_claude_others", "usage.metric.agy_claude_others_session", "usage.metric.agy_claude_others_weekly", "usage.hint.statusline_now", "usage.hint.statusline_minutes", "usage.hint.claude_api_key", "usage.hint.login_claude", "usage.hint.login_agy", "usage.hint.no_quota", "usage.hint.login_codex", "usage.hint.codex_no_oauth", "usage.hint.login_grok", "usage.hint.grok_no_login", "usage.hint.login_kiro", "usage.hint.kiro_signed_out", "usage.hint.claude_profile_signed_out", "usage.hint.claude_profile_signed_out_chat", "usage.hint.token_refreshing", "usage.hint.subscription_no_credit", "usage.hint.no_quota_account", "usage.error.unreachable", "usage.error.token_rejected", "usage.error.rate_limited", "usage.error.rate_limited_transient", "usage.stale_rate_limited", "usage.stale.expired", "usage.stale.transient", "usage.stale.error", "usage.metric.reset_since", "usage.error.http", "usage.error.billing_http", "usage.error.invalid_response", "usage.error.invalid_billing_response", "usage.error.invalid_kiro_response", "usage.error.claude_token_expired", "usage.error.codex_token_expired", "usage.error.grok_expired", "usage.error.grok_response_changed", "usage.error.agy_cap", "usage.error.agy_no_refresh", "usage.error.agy_token_expired", "usage.error.agy_login_expired", "usage.error.agy_refresh_empty", "usage.error.grok_auth_readonly", "usage.error.grok_no_refresh", "usage.error.grok_refresh_unreachable", "usage.error.grok_invalid_refresh", "usage.error.grok_persist", "usage.capacity.line", "usage.capacity.line_tokens", "usage.capacity.not_enough", "usage.capacity.only_agend", "usage.capacity.mixed", "usage.capacity.best_fit_api", "usage.capacity.best_fit_output", "usage.capacity.best_fit_all"];
6
+ export declare const USAGE_I18N_KEYS: readonly ["usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login", "usage.no_agents", "usage.error_fallback", "usage.no_data", "usage.reset.in", "usage.reset.soon", "usage.duration.days_hours", "usage.duration.hours_minutes", "usage.duration.minutes", "usage.metric.session", "usage.metric.weekly", "usage.metric.monthly", "usage.metric.days_window", "usage.metric.named", "usage.metric.named_session", "usage.metric.named_weekly", "usage.metric.named_monthly", "usage.metric.named_days", "usage.metric.extra_usage", "usage.metric.rate_limit_resets", "usage.ticket_expiry", "usage.metric.credits", "usage.metric.weekly_limit", "usage.metric.pay_as_you_go", "usage.metric.bonus_credits", "usage.metric.overage_charges", "usage.metric.pay_per_use", "usage.unit.available", "usage.unit.credits", "usage.metric.usage_monthly", "usage.note.used_limit_unit", "usage.note.bonus_codes", "usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.note.binding", "usage.note.binding_severity", "usage.note.busiest_model", "usage.note.busiest_models", "usage.metric.agy_claude_others", "usage.metric.agy_claude_others_session", "usage.metric.agy_claude_others_weekly", "usage.hint.statusline_now", "usage.hint.statusline_minutes", "usage.hint.claude_api_key", "usage.hint.login_claude", "usage.hint.login_agy", "usage.hint.no_quota", "usage.hint.login_codex", "usage.hint.codex_no_oauth", "usage.hint.login_grok", "usage.hint.grok_no_login", "usage.hint.login_kiro", "usage.hint.kiro_signed_out", "usage.hint.claude_profile_signed_out", "usage.hint.claude_profile_signed_out_chat", "usage.hint.token_refreshing", "usage.hint.subscription_no_credit", "usage.hint.no_quota_account", "usage.error.unreachable", "usage.error.token_rejected", "usage.error.rate_limited", "usage.error.rate_limited_transient", "usage.stale_rate_limited", "usage.stale.expired", "usage.stale.transient", "usage.stale.error", "usage.metric.reset_since", "usage.error.http", "usage.error.billing_http", "usage.error.invalid_response", "usage.error.invalid_billing_response", "usage.error.invalid_kiro_response", "usage.error.claude_token_expired", "usage.error.codex_token_expired", "usage.error.grok_expired", "usage.error.grok_response_changed", "usage.error.agy_cap", "usage.error.agy_no_refresh", "usage.error.agy_token_expired", "usage.error.agy_login_expired", "usage.error.agy_refresh_empty", "usage.error.grok_auth_readonly", "usage.error.grok_no_refresh", "usage.error.grok_refresh_unreachable", "usage.error.grok_invalid_refresh", "usage.error.grok_persist", "usage.capacity.line", "usage.capacity.line_tokens", "usage.capacity.not_enough", "usage.capacity.only_agend", "usage.capacity.mixed", "usage.capacity.best_fit_api", "usage.capacity.best_fit_output", "usage.capacity.best_fit_all"];
7
7
  export type UsageI18nKey = typeof USAGE_I18N_KEYS[number];
@@ -4,7 +4,7 @@
4
4
  * locale surface before a mixed-language release can ship.
5
5
  */
6
6
  export const USAGE_I18N_KEYS = [
7
- "usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login",
7
+ "usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login", "usage.no_agents",
8
8
  "usage.error_fallback", "usage.no_data", "usage.reset.in", "usage.reset.soon",
9
9
  "usage.duration.days_hours", "usage.duration.hours_minutes", "usage.duration.minutes",
10
10
  "usage.metric.session", "usage.metric.weekly", "usage.metric.monthly", "usage.metric.days_window",
@@ -1 +1 @@
1
- {"version":3,"file":"i18n-keys.js","sourceRoot":"","sources":["../../src/usage/i18n-keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB;IACtG,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB;IAC7E,2BAA2B,EAAE,8BAA8B,EAAE,wBAAwB;IACrF,sBAAsB,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AA0B,EAAE,8BAA8B;IAC9E,sCAAsC,EAAE,mCAAmC;IAC3E,kCAAkC,EAAE,iCAAiC;IACrE,0BAA0B,EAAE,mCAAmC,EAAE,qBAAqB;IACtF,4BAA4B,EAAE,+BAA+B,EAAE,+BAA+B;IAC9F,+BAA+B,EAAE,gCAAgC,EAAE,6BAA6B;IAChG,sCAAsC,EAAE,kCAAkC,EAAE,0BAA0B;IACtG,4CAA4C;IAC5C,qBAAqB,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,sBAAsB;IACrI,6BAA6B,EAAE,gCAAgC,EAAE,6BAA6B;CACtF,CAAC"}
@@ -12,7 +12,7 @@ export declare function usageStaleText(p: Pick<ProviderUsage, "stale" | "cachedA
12
12
  /** A metric whose window has reset since its last known numbers were read: "reset since 14:05". */
13
13
  export declare function usageResetSinceText(resetsAt?: string | null): string;
14
14
  /** A row's name in the chat and MCP text: the default login's "Claude (default)" says "default" in the fleet's language. */
15
- export declare function usageRowName(p: Pick<ProviderUsage, "name" | "defaultLogin">): string;
15
+ export declare function usageRowName(p: Pick<ProviderUsage, "name" | "defaultLogin" | "noAgents">): string;
16
16
  /** Minute-precision duration shared by the chat and MCP usage renderers. */
17
17
  export declare function usageResetText(resetsAt?: string | null): string;
18
18
  /**
@@ -30,7 +30,8 @@ export function usageResetSinceText(resetsAt) {
30
30
  /** A row's name in the chat and MCP text: the default login's "Claude (default)" says "default" in the fleet's language. */
31
31
  export function usageRowName(p) {
32
32
  const suffix = " (default)";
33
- return p.defaultLogin && p.name.endsWith(suffix) ? `${p.name.slice(0, -suffix.length)} (${t("usage.default_login")})` : p.name;
33
+ const name = p.defaultLogin && p.name.endsWith(suffix) ? `${p.name.slice(0, -suffix.length)} (${t("usage.default_login")})` : p.name;
34
+ return p.noAgents ? `${name} · ${t("usage.no_agents")}` : name;
34
35
  }
35
36
  /** Minute-precision duration shared by the chat and MCP usage renderers. */
36
37
  export function usageResetText(resetsAt) {
@@ -1 +1 @@
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ACxC,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,YAAY,GAAG,EAAE,CAAC;IAClC,MAAM,QAAQ,GAAG,YAAY,IAAI,KAAK;QACpC,CAAC,CAAC,CAAC,CAAC,2BAA2B,EAAE,IAAI,EAAE,KAAK,CAAC;QAC7C,CAAC,CAAC,YAAY,IAAI,EAAE;YAClB,CAAC,CAAC,CAAC,CAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC;YAC3E,CAAC,CAAC,CAAC,CAAC,wBAAwB,EAAE,YAAY,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -56,6 +56,8 @@ export interface ProviderUsage {
56
56
  name: string;
57
57
  /** #2014: the credential profile this row reads (its `name` ends in ` (<profile>)`); the page shows it on its own line. */
58
58
  profile?: string;
59
+ /** No configured Fleet or Classic instance currently uses this credential profile. */
60
+ noAgents?: true;
59
61
  /**
60
62
  * The default (shared) login's row beside profiles: its `name` ends in ` (default)`. The page shows "default", in the
61
63
  * page's language, on its own line, as a profile row shows its profile; the chat text says it in the fleet's.
@@ -314,6 +316,7 @@ type UsageProvider = {
314
316
  id: string;
315
317
  name: string;
316
318
  profile?: string;
319
+ noAgents?: true;
317
320
  defaultLogin?: true;
318
321
  fetch: (storeHome?: string, scope?: ClaudeUsageScope) => Promise<Omit<ProviderUsage, "id" | "name">>;
319
322
  };
@@ -333,7 +336,7 @@ export declare function fetchMuseUsage(): Promise<Omit<ProviderUsage, "id" | "na
333
336
  * auth files point at these same logical sources.
334
337
  */
335
338
  export declare function providersForConfig(config: UsageFleetConfig, base?: UsageProvider[]): UsageProvider[];
336
- /** #2236: a Claude login's row — kept on screen whether or not a running instance uses it. (Antigravity's accounts are read for Settings → Accounts without that filter; the usage panel still shows only the ones an agent uses.) */
339
+ /** Host profile rows survive the dashboard/chat/tool active-instance filter. */
337
340
  export declare function isHostLoginUsageProvider(id: string): boolean;
338
341
  /**
339
342
  * ClassicBot channels are bindings too (#1220): a channel on a credential
@@ -26,7 +26,7 @@ import { execFile } from "../child-process.js";
26
26
  import { getAgendHome } from "../paths.js";
27
27
  import { loadFleetConfig } from "../config.js";
28
28
  import { classicProfile, profileName, readClassicBindings } from "../classic-bindings.js";
29
- import { CHAT_PROFILE_LOGIN_BACKENDS, credentialHomeSpec, credentialProfileHome, credentialProfileStoreHome, instanceCredentialProfile, isCredentialProfileName, } from "../backend/credential-profile.js";
29
+ import { CHAT_PROFILE_LOGIN_BACKENDS, credentialHomeSpec, credentialProfileHome, credentialProfileLogin, credentialProfileStoreHome, instanceCredentialProfile, isCredentialProfileName, } from "../backend/credential-profile.js";
30
30
  import { claudeKeychainService } from "../backend/claude-code.js";
31
31
  import { readKiroAuthTokens } from "../backend/kiro-auth-store.js";
32
32
  import { homedir, userInfo } from "node:os";
@@ -1633,14 +1633,15 @@ export function providersForConfig(config, base = DEFAULT_PROVIDERS) {
1633
1633
  return claudeHostRows(config, provider, backendName);
1634
1634
  if (hostFacts(backendName, "usage")?.hostRows)
1635
1635
  return hostLoginRows(config, provider, backendName);
1636
- const profiles = effectiveCredentialProfiles(config, backendName);
1636
+ const hostProfiles = profilesOnHost(backendName).filter(profile => credentialProfileLogin(getAgendHome(), backendName, profile).state === "logged-in");
1637
+ const profiles = [...new Set([...effectiveCredentialProfiles(config, backendName), ...hostProfiles])].sort();
1637
1638
  if (profiles.length === 0)
1638
1639
  return [provider];
1639
1640
  // A fleet can mix profiled and legacy instances. The old expansion
1640
1641
  // returned only profile rows whenever *any* profile existed, which hid the
1641
1642
  // shared subscription from a running legacy instance. Include the shared
1642
- // source only when an effective binding actually uses it; active-provider
1643
- // filtering then removes sources that are stopped or otherwise unused.
1643
+ // source only when an effective binding actually uses it. Named host
1644
+ // logins remain visible even after their last instance moves away.
1644
1645
  const rows = [];
1645
1646
  // Keep the shared Codex row available so active-provider filtering can
1646
1647
  // retain a shared binding the config cannot see (a classic channel added
@@ -1659,6 +1660,7 @@ export function providersForConfig(config, base = DEFAULT_PROVIDERS) {
1659
1660
  id: `${provider.id}:${profile}`,
1660
1661
  name: `${provider.name} (${profile})`,
1661
1662
  profile,
1663
+ ...profileActivity(config, backendName, profile),
1662
1664
  fetch: () => provider.fetch(credentialProfileStoreHome(getAgendHome(), backendName, profile), { profile }),
1663
1665
  })));
1664
1666
  return rows;
@@ -1688,14 +1690,14 @@ function claudeHostRows(config, provider, backendName) {
1688
1690
  id: `${provider.id}:${profile}`,
1689
1691
  name: `${provider.name} (${profile})`,
1690
1692
  profile,
1693
+ ...profileActivity(config, backendName, profile),
1691
1694
  fetch: () => provider.fetch(homes[i], inUse.includes(profile) ? { profile, hasChat } : { profile, hostOnly: true, hasChat }),
1692
1695
  })),
1693
1696
  ];
1694
1697
  }
1695
1698
  /**
1696
1699
  * AGEND-119: one row per login on the host for a CLI whose spec says `host.usage.hostRows` (Antigravity): the default sign-in, and every named account in its folder, used by an agent or not, so
1697
- * Settings → Accounts has the numbers of an account nothing runs on yet. Each reads its own token file; a folder with none says "log in" and shows no numbers. (The usage panel's own filter, which
1698
- * keeps only the rows an agent uses, is unchanged: `isHostLoginUsageProvider` is Claude's alone.)
1700
+ * Settings → Accounts has the numbers of an account nothing runs on yet. Each reads its own token file; a folder with none says "log in" and shows no numbers. The usage filter also retains these named login rows; absent credentials are still hidden by fetchAllUsage.
1699
1701
  */
1700
1702
  function hostLoginRows(config, provider, backendName) {
1701
1703
  const profiles = [...new Set([...effectiveCredentialProfiles(config, backendName), ...profilesOnHost(backendName)])].sort();
@@ -1705,15 +1707,16 @@ function hostLoginRows(config, provider, backendName) {
1705
1707
  { id: provider.id, name: `${provider.name} (default)`, defaultLogin: true, fetch: () => provider.fetch(undefined) },
1706
1708
  ...profiles.map(profile => ({
1707
1709
  id: `${provider.id}:${profile}`, name: `${provider.name} (${profile})`, profile,
1710
+ ...profileActivity(config, backendName, profile),
1708
1711
  fetch: () => provider.fetch(credentialProfileStoreHome(getAgendHome(), backendName, profile), { profile }),
1709
1712
  })),
1710
1713
  ];
1711
1714
  }
1712
1715
  /** What a row says about whose login it reads: its profile (#2014), or that it is the default login beside profiles. */
1713
1716
  function rowTags(p) {
1714
- return { ...(p.profile ? { profile: p.profile } : {}), ...(p.defaultLogin ? { defaultLogin: true } : {}) };
1717
+ return { ...(p.profile ? { profile: p.profile } : {}), ...(p.noAgents ? { noAgents: true } : {}), ...(p.defaultLogin ? { defaultLogin: true } : {}) };
1715
1718
  }
1716
- /** #2236: a backend's credential profiles on this host (their directories), whether or not an instance uses them. */
1719
+ /** Named profile directories only; never scan instance-private homes or follow directory links. */
1717
1720
  function profilesOnHost(backendName) {
1718
1721
  try {
1719
1722
  return readdirSync(dirname(credentialProfileHome(getAgendHome(), backendName, "x")), { withFileTypes: true })
@@ -1724,9 +1727,21 @@ function profilesOnHost(backendName) {
1724
1727
  return [];
1725
1728
  }
1726
1729
  }
1727
- /** #2236: a Claude login's row — kept on screen whether or not a running instance uses it. (Antigravity's accounts are read for Settings → Accounts without that filter; the usage panel still shows only the ones an agent uses.) */
1730
+ /** Host profile rows survive the dashboard/chat/tool active-instance filter. */
1728
1731
  export function isHostLoginUsageProvider(id) {
1729
- return id === "claude" || id.startsWith("claude:");
1732
+ if (id === "claude")
1733
+ return true;
1734
+ const colon = id.indexOf(":");
1735
+ const backend = colon > 0 ? usageBackendForProviderId(id.slice(0, colon)) : null;
1736
+ return !!backend && !!credentialHomeSpec(backend);
1737
+ }
1738
+ /** Configured bindings, including Classic bindings merged by readFleetConfigForUsage. */
1739
+ function profileActivity(config, backendName, profile) {
1740
+ if (!config)
1741
+ return {}; // Unknown config is not proof of no agents.
1742
+ const used = Object.values(config.instances ?? {}).some(instance => (instance.backend ?? defaultBackend(config.defaults)) === backendName
1743
+ && bindingProfile(instance, config.defaults, backendName) === profile);
1744
+ return used ? {} : { noAgents: true };
1730
1745
  }
1731
1746
  /**
1732
1747
  * Whether at least one effective fleet binding uses the legacy shared login.