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

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 (95) 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/general-knowledge/skills/credential-profiles/SKILL.md +8 -2
  7. package/dist/general-knowledge/skills/hub/SKILL.md +50 -14
  8. package/dist/hub/catalog.d.ts +1 -1
  9. package/dist/hub/catalog.js +34 -10
  10. package/dist/hub/catalog.js.map +1 -1
  11. package/dist/hub/compose/server.d.ts +1 -0
  12. package/dist/hub/compose/server.js +6 -0
  13. package/dist/hub/compose/server.js.map +1 -1
  14. package/dist/hub/grant-access.js +23 -3
  15. package/dist/hub/grant-access.js.map +1 -1
  16. package/dist/hub/grant-search.js +13 -1
  17. package/dist/hub/grant-search.js.map +1 -1
  18. package/dist/hub/group-policy/impact-inventory.js +18 -2
  19. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  20. package/dist/hub/http/compose.js +56 -4
  21. package/dist/hub/http/compose.js.map +1 -1
  22. package/dist/hub/http/deps.d.ts +2 -0
  23. package/dist/hub/join/store.d.ts +5 -0
  24. package/dist/hub/join/store.js +12 -2
  25. package/dist/hub/join/store.js.map +1 -1
  26. package/dist/hub/rooms/service.js +1 -1
  27. package/dist/hub/rooms/service.js.map +1 -1
  28. package/dist/hub/settings-member-address-decision.js +3 -1
  29. package/dist/hub/settings-member-address-decision.js.map +1 -1
  30. package/dist/hub/settings-member-address-http.js +3 -2
  31. package/dist/hub/settings-member-address-http.js.map +1 -1
  32. package/dist/hub/settings-member-address-policy.d.ts +3 -2
  33. package/dist/hub/settings-member-address-policy.js +3 -1
  34. package/dist/hub/settings-member-address-policy.js.map +1 -1
  35. package/dist/hub/settings-web-address-decision.js +3 -1
  36. package/dist/hub/settings-web-address-decision.js.map +1 -1
  37. package/dist/hub/settings-web-address-http.js +3 -2
  38. package/dist/hub/settings-web-address-http.js.map +1 -1
  39. package/dist/hub/settings-web-address-policy.d.ts +3 -2
  40. package/dist/hub/settings-web-address-policy.js +3 -1
  41. package/dist/hub/settings-web-address-policy.js.map +1 -1
  42. package/dist/hub/teams/grant-schema.d.ts +2 -0
  43. package/dist/hub/teams/grant-schema.js +13 -0
  44. package/dist/hub/teams/grant-schema.js.map +1 -0
  45. package/dist/hub/teams/index.d.ts +7 -0
  46. package/dist/hub/teams/index.js +273 -0
  47. package/dist/hub/teams/index.js.map +1 -0
  48. package/dist/hub/teams/store.d.ts +34 -0
  49. package/dist/hub/teams/store.js +57 -0
  50. package/dist/hub/teams/store.js.map +1 -0
  51. package/dist/hub/teams/types.d.ts +58 -1
  52. package/dist/hub/types.d.ts +3 -0
  53. package/dist/hub-pilot-trust-settings.d.ts +1 -1
  54. package/dist/hub-pilot-trust-settings.js +2 -2
  55. package/dist/hub-pilot-trust-settings.js.map +1 -1
  56. package/dist/locale.js +2 -0
  57. package/dist/locale.js.map +1 -1
  58. package/dist/ui/hub-client.js +13 -5
  59. package/dist/ui/hub-grant-picker.js +14 -5
  60. package/dist/ui/hub-group-strings.js +3 -3
  61. package/dist/ui/hub-room-composer.js +12 -2
  62. package/dist/ui/hub-room-strings.js +2 -0
  63. package/dist/ui/hub-room-thread.js +39 -13
  64. package/dist/ui/hub-strings.js +2 -0
  65. package/dist/ui/hub-teams-strings.js +34 -0
  66. package/dist/ui/hub-teams.js +169 -0
  67. package/dist/ui/panel-hub.js +31 -15
  68. package/dist/ui/settings-hub-member-address.js +21 -6
  69. package/dist/ui/settings-hub-section.js +2 -2
  70. package/dist/ui/settings-hub-web-address.js +21 -5
  71. package/dist/ui/settings-layout.js +5 -1
  72. package/dist/ui/shared/app-shell.js +3 -3
  73. package/dist/ui/shared/app.css +3 -0
  74. package/dist/ui/shared/chat-thread.js +2 -1
  75. package/dist/ui/shared/hub-chat.css +5 -0
  76. package/dist/ui/shared/hub-signin.css +2 -0
  77. package/dist/ui/shared/hub-teams.css +31 -0
  78. package/dist/ui/shared/page-head.js +3 -2
  79. package/dist/ui/shared/usage-dialog.js +2 -1
  80. package/dist/ui/shared/view-strings.js +2 -0
  81. package/dist/usage/agent-output.js +1 -0
  82. package/dist/usage/agent-output.js.map +1 -1
  83. package/dist/usage/i18n-keys.d.ts +1 -1
  84. package/dist/usage/i18n-keys.js +1 -1
  85. package/dist/usage/i18n-keys.js.map +1 -1
  86. package/dist/usage/i18n.d.ts +1 -1
  87. package/dist/usage/i18n.js +2 -1
  88. package/dist/usage/i18n.js.map +1 -1
  89. package/dist/usage/providers.d.ts +4 -1
  90. package/dist/usage/providers.js +25 -10
  91. package/dist/usage/providers.js.map +1 -1
  92. package/dist/usage/usage-api.d.ts +1 -1
  93. package/dist/usage/usage-api.js +4 -4
  94. package/dist/usage/usage-api.js.map +1 -1
  95. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  // Own lazy module with its own words. Shared components: card, field, btn, note, err, s-web-ro, s-ui-disclosure, Skeleton.
7
7
  import { html, useEffect, useState } from "/assets/app-html.js";
8
8
  import { Skeleton, ErrorState } from "/assets/ui-states.js";
9
- import { register, t } from "/assets/app-i18n.js";
9
+ import { register, t, lang } from "/assets/app-i18n.js";
10
10
  import { api } from "./settings-confirm.js";
11
11
  import { typedOrigin, shownAddress, defaultListen } from "./settings-hub-web-address.js";
12
12
 
@@ -39,7 +39,9 @@ register("hubMemberAddress", {
39
39
  err_unchanged: "That is already the Fleet connection address.",
40
40
  err_stale: "Something changed meanwhile (a Fleet connected, left or was revoked). Check again.",
41
41
  err_expired: "That took too long. Check again.",
42
- err_busy: "Another change is still finishing, or a device is finishing its sign-in. Try again in a moment.",
42
+ err_busy: "Another settings change is still in progress. Try again in a moment.",
43
+ err_joining: "A colleague's Fleet is joining this Hub right now, so the Hub address can't be changed. Try again after {0}.",
44
+ err_joining_no_time: "A colleague's Fleet is joining this Hub right now, so the Hub address can't be changed. Try again in a few minutes.",
43
45
  err_denied: "Only this computer's own dashboard can change it. Reload this page and try again.",
44
46
  err_unavailable: "It can't be changed right now. Reload this page and try again.",
45
47
  err_recovery: "The change didn't finish. Reload this page to see the current address.",
@@ -73,7 +75,9 @@ register("hubMemberAddress", {
73
75
  err_unchanged: "這已經是目前的 Fleet 連接位址。",
74
76
  err_stale: "剛剛有變動(有 Fleet 連接、離開或被撤銷)。請再檢查一次。",
75
77
  err_expired: "等候太久了,請再檢查一次。",
76
- err_busy: "另一項變更還在完成中,或有裝置正在完成登入,請稍後再試。",
78
+ err_busy: "另一項設定變更還在進行,請稍候再試。",
79
+ err_joining: "有同仁的 Fleet 正在加入這個 Hub,這段時間不能變更 Hub 位址。請在 {0} 之後再試一次。",
80
+ err_joining_no_time: "有同仁的 Fleet 正在加入這個 Hub,這段時間不能變更 Hub 位址。請過幾分鐘再試一次。",
77
81
  err_denied: "只有這台電腦自己的儀表板可以變更。請重新載入這個頁面後再試。",
78
82
  err_unavailable: "目前無法變更。請重新載入這個頁面後再試。",
79
83
  err_recovery: "變更沒有完成。請重新載入這個頁面查看目前的位址。",
@@ -84,13 +88,24 @@ const copy = (key, ...a) => t(`hubMemberAddress.${key}`, ...a);
84
88
  const PREFIX = "/api/settings/hub/member-address";
85
89
  const ERR = new Set(["invalid", "port_conflict", "port_in_use", "certificate", "unchanged", "stale", "expired", "busy", "denied", "unavailable", "recovery"]);
86
90
  const errKey = (code) => `err_${ERR.has(code) ? code : "failed"}`;
91
+ const errorText = (r) => {
92
+ if (r.code !== "joining") return copy(errKey(r.code));
93
+ let time = "";
94
+ if (Number.isSafeInteger(r.retryAt) && r.retryAt > 0) {
95
+ try {
96
+ const at = new Date(Math.ceil(r.retryAt / 60_000) * 60_000);
97
+ if (!Number.isNaN(at.getTime())) time = new Intl.DateTimeFormat(lang(), { hour: "2-digit", minute: "2-digit" }).format(at);
98
+ } catch { /* Fall back to the no-time wording. */ }
99
+ }
100
+ return copy(time ? "err_joining" : "err_joining_no_time", time);
101
+ };
87
102
  const names = (fleets) => (fleets || []).map((f) => f.label || copy("unnamed")).join(copy("sep"));
88
103
 
89
104
  export function createMemberAddressClient() {
90
105
  const call = async (action, body) => {
91
106
  try {
92
107
  const r = await api(PREFIX + action, { credentials: "same-origin", cache: "no-store", ...(body === undefined ? {} : { method: "POST", body: JSON.stringify(body) }) });
93
- return r.ok && r.body?.ok ? r.body : { ok: false, code: r.body?.code || "unavailable" };
108
+ return r.ok && r.body?.ok ? r.body : { ok: false, code: r.body?.code || "unavailable", ...(Number.isSafeInteger(r.body?.retryAt) ? { retryAt: r.body.retryAt } : {}) };
94
109
  } catch { return { ok: false, code: "unavailable" }; }
95
110
  };
96
111
  return { read: () => call(""), prepare: (candidate) => call("/prepare", candidate), commit: (ref) => call("/commit", { ref }) };
@@ -139,7 +154,7 @@ export function HubMemberAddressSettings({ client: given = null } = {}) {
139
154
  setBusy(true); setError("");
140
155
  const r = await client.prepare({ origin, listen });
141
156
  setBusy(false);
142
- if (!r.ok) { setError(copy(errKey(r.code))); return; }
157
+ if (!r.ok) { setError(errorText(r)); return; }
143
158
  setProposal(r); setStep("confirm");
144
159
  };
145
160
  const confirm = async () => {
@@ -147,7 +162,7 @@ export function HubMemberAddressSettings({ client: given = null } = {}) {
147
162
  setBusy(true); setError("");
148
163
  const r = await client.commit(proposal.ref);
149
164
  setBusy(false);
150
- if (!r.ok) { setError(copy(errKey(r.code))); if (r.code === "expired" || r.code === "stale") { setProposal(null); setStep("edit"); } return; }
165
+ if (!r.ok) { setError(errorText(r)); if (r.code === "expired" || r.code === "stale" || r.code === "joining") { setProposal(null); setStep("edit"); } return; }
151
166
  setOutcome(r); setStep("show");
152
167
  // Connected now: only the Fleets that followed (the rest were disconnected and must reconnect).
153
168
  const gone = new Set((Array.isArray(r.reconnect) ? r.reconnect : []).map((f) => f.id));
@@ -8,13 +8,13 @@ register("settingsHubSection", {
8
8
  publicLink: "Hub settings are only on this fleet's own dashboard, not over the public link.",
9
9
  relatedTitle: "Hub", relatedHint: "Connect this fleet to a team Hub and choose which agents to share.",
10
10
  groupsTitle: "Group permissions", groupsHint: "Let members of chosen directory groups chat with agents, share agents or connect their fleet. Set on the Hub, signed in as its administrator.",
11
- groupsOpen: "Open on the Hub", experimental: "Experimental", setupLink: "Set up a Hub",
11
+ groupsOpen: "Open on the Hub", experimental: "Preview", setupLink: "Set up a Hub",
12
12
  },
13
13
  "zh-TW": {
14
14
  publicLink: "Hub 設定只在這個 Fleet 自己的儀表板上提供,公開連結上沒有。",
15
15
  relatedTitle: "Hub", relatedHint: "將這個 Fleet 連接到團隊 Hub,並選擇要分享的 Agent。",
16
16
  groupsTitle: "群組權限", groupsHint: "讓指定目錄群組的成員與 Agent 對話、分享 Agent 或連接自己的 Fleet。在 Hub 上以管理員身分登入後設定。",
17
- groupsOpen: "在 Hub 上開啟", experimental: "實驗性", setupLink: "設定 Hub",
17
+ groupsOpen: "在 Hub 上開啟", experimental: "預覽版", setupLink: "設定 Hub",
18
18
  },
19
19
  });
20
20
  export const hubSectionText = (key) => t(`settingsHubSection.${key}`);
@@ -35,7 +35,9 @@ register("hubWebAddress", {
35
35
  err_unchanged: "That is already the Hub's address.",
36
36
  err_stale: "The Hub's settings changed meanwhile. Check the address and try again.",
37
37
  err_expired: "That took too long. Check again.",
38
- err_busy: "Another change is still finishing, or a device is finishing its sign-in. Try again in a moment.",
38
+ err_busy: "Another settings change is still in progress. Try again in a moment.",
39
+ err_joining: "A colleague's Fleet is joining this Hub right now, so the Hub address can't be changed. Try again after {0}.",
40
+ err_joining_no_time: "A colleague's Fleet is joining this Hub right now, so the Hub address can't be changed. Try again in a few minutes.",
39
41
  err_denied: "Only this computer's own dashboard can change the Hub's address. Reload this page and try again.",
40
42
  err_unavailable: "The Hub's address can't be changed right now. Reload this page and try again.",
41
43
  err_recovery: "The change didn't finish. Reload this page to see the Hub's current address.",
@@ -66,7 +68,9 @@ register("hubWebAddress", {
66
68
  err_unchanged: "這已經是 Hub 目前的位址。",
67
69
  err_stale: "Hub 的設定剛剛有變更。請確認位址後再試一次。",
68
70
  err_expired: "等候太久了,請再檢查一次。",
69
- err_busy: "另一項變更還在完成中,或有裝置正在完成登入,請稍後再試。",
71
+ err_busy: "另一項設定變更還在進行,請稍候再試。",
72
+ err_joining: "有同仁的 Fleet 正在加入這個 Hub,這段時間不能變更 Hub 位址。請在 {0} 之後再試一次。",
73
+ err_joining_no_time: "有同仁的 Fleet 正在加入這個 Hub,這段時間不能變更 Hub 位址。請過幾分鐘再試一次。",
70
74
  err_denied: "只有這台電腦自己的儀表板可以變更 Hub 的位址。請重新載入這個頁面後再試。",
71
75
  err_unavailable: "目前無法變更 Hub 的位址。請重新載入這個頁面後再試。",
72
76
  err_recovery: "變更沒有完成。請重新載入這個頁面查看 Hub 目前的位址。",
@@ -77,6 +81,18 @@ const copy = (key, ...a) => t(`hubWebAddress.${key}`, ...a);
77
81
  const PREFIX = "/api/settings/hub/web-address";
78
82
  const ERR = new Set(["invalid", "port_conflict", "port_in_use", "certificate", "unchanged", "stale", "expired", "busy", "denied", "unavailable", "recovery"]);
79
83
  const errKey = (code) => `err_${ERR.has(code) ? code : "failed"}`;
84
+ const errorText = (r) => {
85
+ if (r.code !== "joining") return copy(errKey(r.code));
86
+ let time = "";
87
+ if (Number.isSafeInteger(r.retryAt) && r.retryAt > 0) {
88
+ try {
89
+ // Round up: the displayed minute must not invite a retry before the exact deadline.
90
+ const at = new Date(Math.ceil(r.retryAt / 60_000) * 60_000);
91
+ if (!Number.isNaN(at.getTime())) time = new Intl.DateTimeFormat(lang(), { hour: "2-digit", minute: "2-digit" }).format(at);
92
+ } catch { /* The no-time wording also supports an older response or browser. */ }
93
+ }
94
+ return copy(time ? "err_joining" : "err_joining_no_time", time);
95
+ };
80
96
 
81
97
  /** What was typed, as the https origin the server is asked for ("hub.example.com" → "https://hub.example.com"); null if not one. */
82
98
  export function typedOrigin(text) {
@@ -105,7 +121,7 @@ export function createWebAddressClient() {
105
121
  const call = async (action, body) => {
106
122
  try {
107
123
  const r = await api(PREFIX + action, { credentials: "same-origin", cache: "no-store", ...(body === undefined ? {} : { method: "POST", body: JSON.stringify(body) }) });
108
- return r.ok && r.body?.ok ? r.body : { ok: false, code: r.body?.code || "unavailable" };
124
+ return r.ok && r.body?.ok ? r.body : { ok: false, code: r.body?.code || "unavailable", ...(Number.isSafeInteger(r.body?.retryAt) ? { retryAt: r.body.retryAt } : {}) };
109
125
  } catch { return { ok: false, code: "unavailable" }; }
110
126
  };
111
127
  return { read: () => call(""), prepare: (candidate) => call("/prepare", candidate), commit: (ref) => call("/commit", { ref }) };
@@ -160,7 +176,7 @@ export function HubWebAddressSettings({ client: given = null } = {}) {
160
176
  const certificate = mode === "import" ? { mode, certPem, keyPem } : { mode };
161
177
  const r = await client.prepare({ origin, listen, certificate });
162
178
  setBusy(false);
163
- if (!r.ok) { setError(copy(errKey(r.code))); return; }
179
+ if (!r.ok) { setError(errorText(r)); return; }
164
180
  setKeyPem(""); // sent once; never kept in the page
165
181
  setProposal(r); setStep("confirm");
166
182
  };
@@ -169,7 +185,7 @@ export function HubWebAddressSettings({ client: given = null } = {}) {
169
185
  setBusy(true); setError("");
170
186
  const r = await client.commit(proposal.ref);
171
187
  setBusy(false);
172
- if (!r.ok) { setError(copy(errKey(r.code))); if (r.code === "expired" || r.code === "stale") { setProposal(null); setStep("edit"); } return; }
188
+ if (!r.ok) { setError(errorText(r)); if (r.code === "expired" || r.code === "stale" || r.code === "joining") { setProposal(null); setStep("edit"); } return; }
173
189
  setOutcome(r); setProposal(null); setStep("done");
174
190
  setView((v) => ({ ...v, origin: r.origin || proposal.summary?.to, listen: proposal.summary?.listen || v.listen, certificate: proposal.certificate || v.certificate }));
175
191
  };
@@ -17,6 +17,7 @@ register("settingsLayout", {
17
17
  lead_access: "Manage sign-in, web authority, guests and sharing.",
18
18
  lead_advanced: "Inspect and edit fleet configuration, with effective values kept separate.",
19
19
  lead_hub: "Connect this fleet to a team Hub and choose which agents to share there.",
20
+ preview: "Preview", previewHub: "The Hub is a preview in this release. It stays off until you set one up or connect to one, and its screens and behaviour may still change.",
20
21
  lead_notifications: "Choose when account usage reminders are sent, and to whom.",
21
22
  editor: "Configuration editor", effective: "Effective settings (read only)",
22
23
  aiAccounts: "AI accounts and keys", aiAccountsHint: "Connected AI accounts and supported provider keys on the AgEnD host. Windows CLI status is shown under Runtime.",
@@ -33,6 +34,7 @@ register("settingsLayout", {
33
34
  lead_access: "管理登入、網頁授權、訪客與對外分享。",
34
35
  lead_advanced: "檢視與編輯 Fleet 設定,並區分目前生效的唯讀內容。",
35
36
  lead_hub: "將這個 Fleet 連接到團隊 Hub,並選擇要在那裡分享的 Agent。",
37
+ preview: "預覽版", previewHub: "Hub 在這個版本是預覽版。設定或連接之前不會啟用,畫面與行為之後可能還會變動。",
36
38
  lead_notifications: "設定帳號用量提醒的時機與傳送對象。",
37
39
  editor: "設定編輯器", effective: "生效設定(唯讀)",
38
40
  aiAccounts: "AI 帳號與金鑰", aiAccountsHint: "管理 AgEnD 主機上連接的 AI 帳號與支援的供應商金鑰;Windows CLI 狀態請到 Runtime 查看。",
@@ -94,7 +96,9 @@ register("settingsLayout", {
94
96
 
95
97
  export function SettingsPageHead({ section, children }) {
96
98
  const scope = section === "preferences" ? "account" : section === "look" ? "personal" : "fleet";
97
- return html`<${PageHead} title=${t(`settings.sec_${section}`)} scope=${layoutText(scope)} lead=${layoutText(`lead_${section}`)}>${children}</${PageHead}>`;
99
+ const hub = section === "hub"; // M-3108: the Hub is a preview in 2.4.0-beta.1
100
+ return html`<${PageHead} title=${t(`settings.sec_${section}`)} scope=${layoutText(scope)} lead=${layoutText(`lead_${section}`)}
101
+ tag=${hub ? layoutText("preview") : null} note=${hub ? layoutText("previewHub") : null}>${children}</${PageHead}>`;
98
102
  }
99
103
 
100
104
  // Settings search, validation links and legacy anchors reveal their owning tab before focusing a control.
@@ -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>`} />
@@ -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,M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,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,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,0BAA0B;IACjG,oBAAoB,EAAE,4BAA4B,EAAE,2BAA2B;IAC/E,4BAA4B,EAAE,yBAAyB,EAAE,0BAA0B;IACnF,gCAAgC,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,2BAA2B;IAC5G,4BAA4B,EAAE,4BAA4B,EAAE,8BAA8B;IAC1F,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB;IACxE,4BAA4B,EAAE,4BAA4B,EAAE,wBAAwB;IACpF,sBAAsB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,oBAAoB;IACxF,6BAA6B,EAAE,0BAA0B,EAAE,2BAA2B;IACtF,gCAAgC,EAAE,wCAAwC,EAAE,uCAAuC;IACnH,2BAA2B,EAAE,+BAA+B,EAAE,2BAA2B;IACzF,yBAAyB,EAAE,sBAAsB,EAAE,qBAAqB;IACxE,wBAAwB,EAAE,2BAA2B,EAAE,uBAAuB;IAC9E,0BAA0B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,sCAAsC,EAAE,2CAA2C;IACtK,6BAA6B,EAAE,mCAAmC,EAAE,6BAA6B;IACjG,yBAAyB,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,oCAAoC,EAAE,0BAA0B;IACrJ,qBAAqB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,0BAA0B;IAC/F,kBAAkB,EAAE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,2BAA2B;IACzF,yBAAyB,EAAE,sBAAsB,EAAE,qBAAqB;IACxE,wBAAwB,EAAE,2BAA2B,EAAE,uBAAuB;IAC9E,0BAA0B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,sCAAsC,EAAE,2CAA2C;IACtK,6BAA6B,EAAE,mCAAmC,EAAE,6BAA6B;IACjG,yBAAyB,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,oCAAoC,EAAE,0BAA0B;IACrJ,qBAAqB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,0BAA0B;IAC/F,kBAAkB,EAAE,0BAA0B,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 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/usage/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAGjC,mFAAmF;AACnF,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,GAAkB;IAC5D,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC1D,CAAC;AAED,kHAAkH;AAClH,MAAM,UAAU,UAAU,CAAC,GAA8B,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IACzE,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC/B,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC;QAAE,OAAO,EAAE,CAAC;IAC1C,MAAM,EAAE,GAAG,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IACnG,OAAO,IAAI,IAAI,CAAC,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AAM,WAAW,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9C,IAAI,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,OAAO,CAAC,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AACtG,CAAC;AAED,oGAAoG;AACpG,SAAS,aAAa,CAAC,WAAmB;IACxC,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.