@songsid/agend 2.3.5-alpha.6 → 2.3.5-alpha.7

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 (150) hide show
  1. package/dist/auth-api.js +11 -0
  2. package/dist/auth-api.js.map +1 -1
  3. package/dist/authority/web-authority.d.ts +13 -0
  4. package/dist/authority/web-authority.js +12 -0
  5. package/dist/authority/web-authority.js.map +1 -1
  6. package/dist/backend/claude-code.js +47 -9
  7. package/dist/backend/claude-code.js.map +1 -1
  8. package/dist/backend/kiro.js +1 -1
  9. package/dist/backend/kiro.js.map +1 -1
  10. package/dist/build-provenance.json +1 -1
  11. package/dist/channel/access-manager.d.ts +1 -6
  12. package/dist/channel/access-manager.js +4 -94
  13. package/dist/channel/access-manager.js.map +1 -1
  14. package/dist/channel/adapters/discord.d.ts +0 -2
  15. package/dist/channel/adapters/discord.js +0 -8
  16. package/dist/channel/adapters/discord.js.map +1 -1
  17. package/dist/channel/adapters/telegram.d.ts +0 -3
  18. package/dist/channel/adapters/telegram.js +1 -30
  19. package/dist/channel/adapters/telegram.js.map +1 -1
  20. package/dist/channel/types.d.ts +0 -2
  21. package/dist/cli.js +1 -19
  22. package/dist/cli.js.map +1 -1
  23. package/dist/fleet-manager.d.ts +59 -1
  24. package/dist/fleet-manager.js +336 -28
  25. package/dist/fleet-manager.js.map +1 -1
  26. package/dist/general-knowledge/skills/concepts/SKILL.md +22 -7
  27. package/dist/general-knowledge/steering/core-rules.md +6 -4
  28. package/dist/hub/buttons.js +4 -2
  29. package/dist/hub/buttons.js.map +1 -1
  30. package/dist/hub/catalog.d.ts +1 -1
  31. package/dist/hub/catalog.js +82 -15
  32. package/dist/hub/catalog.js.map +1 -1
  33. package/dist/hub/compose/server.d.ts +4 -1
  34. package/dist/hub/compose/server.js +29 -3
  35. package/dist/hub/compose/server.js.map +1 -1
  36. package/dist/hub/directory/directory.d.ts +1 -1
  37. package/dist/hub/directory/directory.js +32 -23
  38. package/dist/hub/directory/directory.js.map +1 -1
  39. package/dist/hub/directory/index.d.ts +1 -1
  40. package/dist/hub/directory/types.d.ts +8 -2
  41. package/dist/hub/directory/types.js.map +1 -1
  42. package/dist/hub/group-policy/admin-context.d.ts +23 -0
  43. package/dist/hub/group-policy/admin-context.js +52 -0
  44. package/dist/hub/group-policy/admin-context.js.map +1 -0
  45. package/dist/hub/group-policy/admin-dto.d.ts +235 -0
  46. package/dist/hub/group-policy/admin-dto.js +55 -0
  47. package/dist/hub/group-policy/admin-dto.js.map +1 -0
  48. package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
  49. package/dist/hub/group-policy/admin-inventory.js +72 -0
  50. package/dist/hub/group-policy/admin-inventory.js.map +1 -0
  51. package/dist/hub/group-policy/admin-read.d.ts +21 -0
  52. package/dist/hub/group-policy/admin-read.js +90 -0
  53. package/dist/hub/group-policy/admin-read.js.map +1 -0
  54. package/dist/hub/group-policy/authorization.d.ts +43 -0
  55. package/dist/hub/group-policy/authorization.js +170 -0
  56. package/dist/hub/group-policy/authorization.js.map +1 -0
  57. package/dist/hub/group-policy/resources.d.ts +9 -1
  58. package/dist/hub/group-policy/resources.js +30 -5
  59. package/dist/hub/group-policy/resources.js.map +1 -1
  60. package/dist/hub/group-policy/store.d.ts +8 -2
  61. package/dist/hub/group-policy/store.js +9 -3
  62. package/dist/hub/group-policy/store.js.map +1 -1
  63. package/dist/hub/http/compose.js +6 -7
  64. package/dist/hub/http/compose.js.map +1 -1
  65. package/dist/hub/http/core.d.ts +23 -3
  66. package/dist/hub/http/core.js +138 -5
  67. package/dist/hub/http/core.js.map +1 -1
  68. package/dist/hub/http/deps.d.ts +3 -0
  69. package/dist/hub/policy.d.ts +3 -1
  70. package/dist/hub/policy.js +13 -6
  71. package/dist/hub/policy.js.map +1 -1
  72. package/dist/hub/rooms.d.ts +1 -0
  73. package/dist/hub/rooms.js +76 -26
  74. package/dist/hub/rooms.js.map +1 -1
  75. package/dist/hub/sessions.js +2 -1
  76. package/dist/hub/sessions.js.map +1 -1
  77. package/dist/hub/types.d.ts +2 -0
  78. package/dist/locale.js +26 -20
  79. package/dist/locale.js.map +1 -1
  80. package/dist/runtime-api.js +10 -2
  81. package/dist/runtime-api.js.map +1 -1
  82. package/dist/settings-api.js +3 -2
  83. package/dist/settings-api.js.map +1 -1
  84. package/dist/settings-change.d.ts +10 -0
  85. package/dist/settings-change.js +17 -1
  86. package/dist/settings-change.js.map +1 -1
  87. package/dist/settings-confirmation.d.ts +25 -1
  88. package/dist/settings-confirmation.js +11 -3
  89. package/dist/settings-confirmation.js.map +1 -1
  90. package/dist/settings-effect.js +18 -6
  91. package/dist/settings-effect.js.map +1 -1
  92. package/dist/settings-http-confirmation.d.ts +21 -0
  93. package/dist/settings-http-confirmation.js +74 -3
  94. package/dist/settings-http-confirmation.js.map +1 -1
  95. package/dist/structured-signin.js +3 -1
  96. package/dist/structured-signin.js.map +1 -1
  97. package/dist/tips.js +4 -4
  98. package/dist/tips.js.map +1 -1
  99. package/dist/types.d.ts +2 -0
  100. package/dist/types.js.map +1 -1
  101. package/dist/ui/accounts-keepalive.js +4 -3
  102. package/dist/ui/accounts-manage.js +2 -2
  103. package/dist/ui/accounts-view.js +18 -7
  104. package/dist/ui/backend-signin.js +12 -3
  105. package/dist/ui/general-location.js +28 -14
  106. package/dist/ui/hub-chat-store.js +2 -1
  107. package/dist/ui/hub-grant-strings.js +13 -0
  108. package/dist/ui/hub-owner-strings.js +6 -2
  109. package/dist/ui/hub-strings.js +4 -2
  110. package/dist/ui/panel-hub.js +68 -23
  111. package/dist/ui/panel-log.js +2 -2
  112. package/dist/ui/panel-runtimes.js +14 -6
  113. package/dist/ui/panel-settings.js +7 -19
  114. package/dist/ui/runtime-cli-install.js +24 -4
  115. package/dist/ui/settings-confirm.js +28 -0
  116. package/dist/ui/settings-devices.js +6 -10
  117. package/dist/ui/settings-hub-membership.js +6 -6
  118. package/dist/ui/settings-hub-section.js +35 -0
  119. package/dist/ui/settings-hub.js +6 -2
  120. package/dist/ui/settings-layout.js +6 -2
  121. package/dist/ui/settings-named-test.js +2 -2
  122. package/dist/ui/settings-outside.js +1 -1
  123. package/dist/ui/settings-quota-notice.js +8 -6
  124. package/dist/ui/settings-registry.js +3 -0
  125. package/dist/ui/settings-strings.js +6 -6
  126. package/dist/ui/shared/app-i18n.js +4 -2
  127. package/dist/ui/shared/app-route.js +1 -1
  128. package/dist/ui/shared/app-shell.js +102 -5
  129. package/dist/ui/shared/app.css +16 -0
  130. package/dist/ui/shared/chat-strings.js +8 -8
  131. package/dist/ui/shared/hub-owner.css +2 -2
  132. package/dist/ui/shared/hub-signin.css +24 -0
  133. package/dist/ui/shared/view-strings.js +4 -4
  134. package/dist/ui/structured-signin.js +16 -8
  135. package/dist/usage/providers.d.ts +1 -0
  136. package/dist/usage/providers.js +13 -9
  137. package/dist/usage/providers.js.map +1 -1
  138. package/dist/web-api.d.ts +5 -0
  139. package/dist/web-api.js +15 -6
  140. package/dist/web-api.js.map +1 -1
  141. package/dist/web-remote-access.d.ts +6 -0
  142. package/dist/web-remote-access.js +10 -1
  143. package/dist/web-remote-access.js.map +1 -1
  144. package/dist/web-shell-routes.d.ts +1 -1
  145. package/dist/web-shell-routes.js +1 -1
  146. package/dist/web-shell-routes.js.map +1 -1
  147. package/dist/windows-cli-api.d.ts +8 -0
  148. package/dist/windows-cli-api.js +10 -0
  149. package/dist/windows-cli-api.js.map +1 -1
  150. package/package.json +2 -1
@@ -101,7 +101,8 @@ register("app", {
101
101
  opFailed: "Settings were not applied", openSettings: "Open Settings",
102
102
  restartWaiting: "{0} saved change(s) take effect after AgEnD restarts", restartNow: "Restart now", restartLater: "Later",
103
103
  restartConfirm: "Restart AgEnD now?\n\nEvery agent stops and starts again, work in progress is interrupted, and the panel is unreachable for up to a minute. A notice is posted to your chat channel.",
104
- restartOnHost: "Run agend restart on the host to use them.",
104
+ restartOnHost: "Restart AgEnD to use them.",
105
+ restartOnHostChat: "Send /restart in General to use them.",
105
106
  restartRefused: "Restart refused: {0}",
106
107
  pendingSent: "Sent for confirmation — a fleet admin confirms it in chat.",
107
108
  pendingSelfSent: "Confirmed by your account (this browser is web-verified) — applying.",
@@ -148,7 +149,8 @@ register("app", {
148
149
  opFailed: "設定沒有套用", openSettings: "開啟設定",
149
150
  restartWaiting: "{0} 項已儲存的變更要在 AgEnD 重新啟動後才會生效", restartNow: "立即重新啟動", restartLater: "稍後",
150
151
  restartConfirm: "現在重新啟動 AgEnD?\n\n所有 agent 都會停止再啟動,進行中的工作會被中斷,面板會有最多約一分鐘無法連線。聊天頻道會收到一則通知。",
151
- restartOnHost: "請在主機上執行 agend restart 讓它們生效。",
152
+ restartOnHost: "請重新啟動 AgEnD 讓它們生效。",
153
+ restartOnHostChat: "請在 General 傳 /restart 讓它們生效。",
152
154
  restartRefused: "重新啟動被拒絕:{0}",
153
155
  pendingSent: "已送出確認——由 fleet 管理員在聊天中確認。",
154
156
  pendingSelfSent: "已由你的帳號確認(這個瀏覽器已通過網頁驗證)——套用中。",
@@ -6,7 +6,7 @@ export const FLEET_TABS = ["tasks", "schedules", "teams", "org", "cache", "usage
6
6
  // #2347: two groups — "You" changes only you or this browser; "Fleet" changes AgEnD for everyone.
7
7
  export const SETTINGS_GROUPS = Object.freeze([
8
8
  Object.freeze({ id: "you", sections: Object.freeze(["preferences", "look"]) }),
9
- Object.freeze({ id: "fleet", sections: Object.freeze(["agents", "runtimes", "agent-defaults", "notifications", "chat", "web-dashboard", "access", "advanced"]) }),
9
+ Object.freeze({ id: "fleet", sections: Object.freeze(["agents", "runtimes", "agent-defaults", "notifications", "chat", "web-dashboard", "access", "hub", "advanced"]) }),
10
10
  ]);
11
11
  export const SETTINGS_SECTIONS = Object.freeze(SETTINGS_GROUPS.flatMap((g) => g.sections));
12
12
  /** #2347: the sections' names before the regrouping (links and bookmarks keep working) and where each one went. */
@@ -670,17 +670,108 @@ function whereText(where) {
670
670
  * "Authorize this browser" (the same DM card as the composer's). The host's command otherwise sits folded under
671
671
  * "Advanced".
672
672
  */
673
+ // alpha.6 feedback #2c (the user's decision hmsg-77256f66): a change no General could take says WHY, in plain words, and what
674
+ // would let it through — never "type this command on the host". The host's command stays folded under Advanced, a last resort.
675
+ register("pendingHost", {
676
+ en: {
677
+ no_chat: "This fleet has no chat app connected, so there is no General to send the confirm card to.",
678
+ no_chat_do: "This computer's owner confirms it here with Apply now. To confirm from Discord or Telegram, connect one in Settings → Chat & connections.",
679
+ cross_platform: "This change affects chat apps on more than one platform, so no single General can confirm it.",
680
+ cross_platform_do: "Make the change for one platform at a time.",
681
+ no_general: "No agent is the General in a connected chat app, so there is nowhere to send the confirm card.",
682
+ no_general_do: "Make an agent the General in Settings → Agents, then make the change again.",
683
+ chat_disconnected: "General's chat app is not connected right now, so the confirm card could not be sent.",
684
+ chat_disconnected_do: "Check the connection in Settings → Chat & connections, then make the change again.",
685
+ no_topic: "General has no topic in its chat yet, so the confirm card had nowhere to go.",
686
+ no_topic_do: "Send General a message in its chat once, then make the change again.",
687
+ post_failed: "The confirm card could not be posted in General.",
688
+ post_failed_do: "Check General's chat connection in Settings → Chat & connections, then make the change again.",
689
+ unknown: "No General could take the confirm card for this change.",
690
+ go: "Open",
691
+ codeLead: "Or confirm it here with the code from your authenticator app.",
692
+ codeLabel: "Authenticator code", codeGo: "Confirm",
693
+ codeWrong: "That code is not right. Use the current code in your authenticator app.",
694
+ codePaused: "Too many wrong codes. Try again in {0} minutes.",
695
+ codeNotHere: "This page can no longer confirm it with a code.",
696
+ codeUnavailable: "The code could not be checked. Try again.",
697
+ codeChanged: "This change is no longer the one shown here. Reload the page and check it again.",
698
+ onHost: "This change can't be confirmed over a link. Confirm it in the browser on the computer running AgEnD, or in General.",
699
+ hostBrowser: "This change opens a link to this fleet, so only the browser on the computer running AgEnD can confirm it. Do it there.",
700
+ codeSetUp: "To confirm changes here with a code, set up an authenticator app in Access & security.",
701
+ },
702
+ "zh-TW": {
703
+ no_chat: "這個 Fleet 沒有連接聊天平台,所以沒有 General 可以接收確認卡。",
704
+ no_chat_do: "這台電腦的擁有者可以在這裡按「立即套用」確認。若要從 Discord 或 Telegram 確認,請到「設定 → 聊天與連線」連接其中一個。",
705
+ cross_platform: "這項變更涉及多個聊天平台,沒有單一的 General 可以確認。",
706
+ cross_platform_do: "請一次只變更一個平台。",
707
+ no_general: "已連接的聊天平台中沒有任何 Agent 是 General,所以確認卡無處可送。",
708
+ no_general_do: "請到「設定 → Agent」把一個 Agent 設為 General,再重新做一次這項變更。",
709
+ chat_disconnected: "General 的聊天平台目前沒有連線,確認卡無法送出。",
710
+ chat_disconnected_do: "請到「設定 → 聊天與連線」檢查連線,再重新做一次這項變更。",
711
+ no_topic: "General 在聊天平台上還沒有主題,確認卡無處可送。",
712
+ no_topic_do: "請先在 General 的聊天中傳一則訊息,再重新做一次這項變更。",
713
+ post_failed: "確認卡無法傳到 General。",
714
+ post_failed_do: "請到「設定 → 聊天與連線」檢查 General 的連線,再重新做一次這項變更。",
715
+ unknown: "這項變更沒有 General 可以接收確認卡。",
716
+ go: "前往",
717
+ codeLead: "也可以在這裡輸入驗證器 App 的代碼確認。",
718
+ codeLabel: "驗證器代碼", codeGo: "確認",
719
+ codeWrong: "代碼不正確,請使用驗證器 App 目前顯示的代碼。",
720
+ codePaused: "錯誤次數太多,請 {0} 分鐘後再試。",
721
+ codeNotHere: "這個頁面已無法用代碼確認這項變更。",
722
+ codeUnavailable: "無法檢查代碼,請再試一次。",
723
+ codeChanged: "這項變更已不是這裡顯示的內容,請重新整理頁面再確認一次。",
724
+ onHost: "這項變更無法透過連結確認。請在執行 AgEnD 的那台電腦的瀏覽器中確認,或在 General 確認。",
725
+ hostBrowser: "這項變更會開放一條連到這個 fleet 的連結,只有執行 AgEnD 的那台電腦上的瀏覽器能確認。請到那裡操作。",
726
+ codeSetUp: "若要在這裡用代碼確認變更,請先到「存取與安全」設定驗證器 App。",
727
+ },
728
+ });
729
+ const PENDING_HOST_REASONS = ["no_chat", "cross_platform", "no_general", "chat_disconnected", "no_topic", "post_failed"];
730
+ const PENDING_HOST_GO = { no_chat: "chat", no_general: "agents", chat_disconnected: "chat", post_failed: "chat" };
731
+ /**
732
+ * alpha.6 feedback #2c (the user's decision hmsg-468cc290): on a web-only fleet's own page, a local admin who is not the host
733
+ * operator confirms a pending change with the owner's authenticator code. The server decides who may (p.confirmWithCode, from
734
+ * the view's `totp`) and checks the code; this only asks for it and says the answer.
735
+ */
736
+ function PendingCode({ p }) {
737
+ const [code, setCode] = useState(""), [busy, setBusy] = useState(false), [msg, setMsg] = useState("");
738
+ const go = async (e) => {
739
+ e.preventDefault();
740
+ if (busy || !/^\d{6}$/.test(code.replace(/\s+/g, ""))) return;
741
+ setBusy(true); setMsg("");
742
+ const r = await p.confirmWithCode(code);
743
+ setBusy(false); setCode("");
744
+ if (r && r.ok) return;
745
+ const why = r && r.error;
746
+ setMsg(why === "wrong" ? t("pendingHost.codeWrong") : why === "paused" ? t("pendingHost.codePaused", Math.max(1, Math.ceil((r.retryAfterMs || 60000) / 60000)))
747
+ : why === "not_here" ? t("pendingHost.codeNotHere") : why === "changed" ? t("pendingHost.codeChanged") : t("pendingHost.codeUnavailable"));
748
+ };
749
+ return html`<form class="pending-self pending-code" onSubmit=${go}>
750
+ <span class="note">${t("pendingHost.codeLead")}</span>
751
+ <label class="field-row"><span class="sr-only">${t("pendingHost.codeLabel")}</span>
752
+ <input class="pending-code-input" inputmode="numeric" autocomplete="one-time-code" maxlength="7" placeholder="000000" aria-label=${t("pendingHost.codeLabel")}
753
+ value=${code} disabled=${busy} onInput=${(e) => setCode(e.target.value)} />
754
+ <button type="submit" class="btn btn-sm btn-primary" disabled=${busy || !/^\d{6}$/.test(code.replace(/\s+/g, ""))}>${t("pendingHost.codeGo")}</button></label>
755
+ </form>${msg ? html`<p class="note" role="alert">${msg}</p>` : null}`;
756
+ }
673
757
  function PendingHow({ p }) {
674
758
  const a = useWebAuthorization();
675
759
  const [refused, setRefused] = useState(false);
676
760
  const c = p.confirmation || {}, cmd = `agend settings confirm ${p.id}`;
677
- const lead = c.kind === "posting" ? t("app.pendingPosting") : c.kind === "host_cli" ? t("app.pendingHostOnly", cmd) : t("app.pendingChatWhere", whereText(c.where));
761
+ const why = c.kind === "host_cli" && PENDING_HOST_REASONS.includes(c.reason) ? c.reason : null;
762
+ const lead = c.kind === "posting" ? t("app.pendingPosting") : c.kind === "host_cli" ? t(`pendingHost.${why || "unknown"}`) : t("app.pendingChatWhere", whereText(c.where));
763
+ const go = why && Object.hasOwn(PENDING_HOST_GO, why) ? PENDING_HOST_GO[why] : null;
678
764
  // A browser that isn't verified but could be: authorizing it makes this one (and later ones) "Apply now".
679
765
  const route = c.kind !== "host_cli" && !p.applyNow && a.st;
680
766
  const canAsk = route && a.st.state === "none" && (a.st.reason === "not_authorized" || a.st.reason === "authorization_expired");
681
767
  const asking = route && a.st.state === "pending";
682
768
  const apply = async () => { setRefused(false); const r = await p.applyNow(); if (!r || !r.ok) setRefused(true); };
683
769
  return html`<p class="note">${lead}</p>
770
+ ${why ? html`<p class="note pending-why">${t(`pendingHost.${why}_do`)}${go ? html` <a class="btn btn-sm" href=${settingsPath(go)}>${t("pendingHost.go")}</a>` : null}</p>` : null}
771
+ ${p.confirmWithCode && !p.applyNow ? html`<${PendingCode} p=${p} />` : null}
772
+ ${p.onHost && !p.applyNow ? html`<p class="note pending-on-host">${t("pendingHost.onHost")}</p>` : null}
773
+ ${p.hostBrowser && !p.applyNow ? html`<p class="note pending-host-browser">${t("pendingHost.hostBrowser")}</p>` : null}
774
+ ${p.totpNotSetUp && !p.applyNow ? html`<p class="note pending-code-setup">${t("pendingHost.codeSetUp")} <a class="btn btn-sm" href=${settingsPath("access")}>${t("pendingHost.go")}</a></p>` : null}
684
775
  ${p.applyNow ? html`<div class="pending-self"><span class="note">${t("app.pendingSelf")}</span>
685
776
  <button type="button" class="btn btn-sm btn-primary" onClick=${apply}>${t("app.pendingApplyNow")}</button></div>` : null}
686
777
  ${refused && !p.applyNow ? html`<p class="note" role="status">${t("app.pendingApplyRefused")}</p>` : null}
@@ -688,7 +779,7 @@ function PendingHow({ p }) {
688
779
  <button type="button" class="btn btn-sm" onClick=${a.ask}>${t("webauth.authorize")}</button></div>` : null}
689
780
  ${asking ? html`<p class="note">${t("webauth.waiting", mmss(a.left))}</p>` : null}
690
781
  ${a.notice && (canAsk || asking) ? html`<p class="note" role="status">${a.notice}</p>` : null}
691
- ${c.kind !== "host_cli" ? html`<details class="pending-host"><summary>${t("app.pendingAdvanced")}</summary><code>${cmd}</code></details>` : null}`;
782
+ <details class="pending-host"><summary>${t("app.pendingAdvanced")}</summary><code>${cmd}</code></details>`;
692
783
  }
693
784
 
694
785
  /** Settings' Apply, followed from another panel: one line, and the way back to it (§5: progress shows in any panel). */
@@ -728,10 +819,12 @@ export async function refreshRestartPending() {
728
819
  * Restart now asks first and is never automatic (the leader's default: a Save that restarted on its own once took 33
729
820
  * agents down at once). Asked again whenever a Save or a restart settles. Left to the Save in hand while it runs or offers
730
821
  * its own restart (Settings' card, or the line above in another panel). Over a temporary public link it says so and
731
- * offers nothing; with no Settings job to carry the restart (a hand edit), it says how to restart on the host.
822
+ * offers nothing. Restart now is a separate button when a Settings job exists. This muted hint is the no-job case
823
+ * only (a hand edit of fleet.yaml): chat fleets send /restart in General; web-only fleets are told to restart AgEnD,
824
+ * with no command. web-claude will add a button for that case separately.
732
825
  */
733
826
  function RestartLine() {
734
- const { restartPending: pending, settingsOp: op, restartRunner } = useStore(appStore);
827
+ const { restartPending: pending, settingsOp: op, restartRunner, connections } = useStore(appStore);
735
828
  const [later, setLater] = useState(null);
736
829
  const [busy, setBusy] = useState(false);
737
830
  const settled = !op || (!["writing", "posting", "watching"].includes(op.phase) && op.restart !== "busy");
@@ -741,6 +834,10 @@ function RestartLine() {
741
834
  const seen = `${pending.jobId}|${pending.keys.join(",")}`;
742
835
  if (later === seen) return null;
743
836
  const canRestart = !!pending.jobId && typeof restartRunner === "function";
837
+ // connections === 0 is web-only; null is unknown — do not name General.
838
+ const hint = !pending.jobId
839
+ ? t(connections > 0 ? "app.restartOnHostChat" : "app.restartOnHost")
840
+ : null;
744
841
  const restart = async () => {
745
842
  if (!(await confirmDialog({ title: t("app.restartNow"), message: t("app.restartConfirm"), confirmLabel: t("app.restartNow"), danger: true }))) return;
746
843
  setBusy(true);
@@ -756,7 +853,7 @@ function RestartLine() {
756
853
  return html`<div data-trust="status" class="conn restart-line lbar" role="status">
757
854
  <span>${t("app.restartWaiting", Math.max(1, pending.keys.length))}</span>
758
855
  ${pending.keys.length ? html`<span class="muted restart-keys">${pending.keys.join(", ")}</span>` : null}
759
- ${!pending.jobId ? html`<span class="muted">${t("app.restartOnHost")}</span>` : null}
856
+ ${hint ? html`<span class="muted">${hint}</span>` : null}
760
857
  ${canRestart ? html`<button type="button" class="btn btn-sm btn-primary" disabled=${busy} onClick=${restart}>${t("app.restartNow")}</button>` : null}
761
858
  <button type="button" class="btn btn-sm" onClick=${() => setLater(seen)}>${t("app.restartLater")}</button></div>`;
762
859
  }
@@ -4088,3 +4088,19 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
4088
4088
 
4089
4089
  /* Quota preferences obey the panel CSP: no inline styles. */
4090
4090
  .p-settings .s-quota-fields { border: 0; padding: 0; min-width: 0; }
4091
+
4092
+ /* alpha.6 feedback (#3): one Settings card. Every section's top-level card has the same frame: a 1px border, the --r-md
4093
+ corners the lists, drawers and disclosures beside it already have, and 24px inside (16px on a phone). The editor and the
4094
+ terminal cards stay full-bleed; a card inside a drawer or a disclosure is part of that box. Nothing in a card is wider
4095
+ than the card: a select is as wide as its longest option unless bounded (a paired PC's long name ran the General
4096
+ location card off the right edge). */
4097
+ .p-settings .s-section-layout :is(.card, details.s-ui-disclosure, .runtime-connect-guide, .s-look-advanced):not(:is(details, .drawer-body, .s-disclosure-body, .s-look-disclosure-body) *) { border: 1px solid var(--border); border-radius: var(--r-md); }
4098
+ .p-settings .s-section-layout .card:not(.s-dev, .s-access-terminal):not(:is(details, .drawer-body, .s-disclosure-body, .s-look-disclosure-body) *) { padding: 24px; }
4099
+ @media (max-width: 600px) {
4100
+ .p-settings .s-section-layout .card:not(.s-dev, .s-access-terminal):not(:is(details, .drawer-body, .s-disclosure-body, .s-look-disclosure-body) *) { padding: 16px; }
4101
+ }
4102
+ .p-settings .s-section-layout :is(select, textarea, input:not([type="checkbox"], [type="radio"])) { max-width: 100%; }
4103
+ .general-location-row { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
4104
+ .general-location-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
4105
+ .general-location-now > span { color: var(--text-2); }
4106
+ .general-location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); }
@@ -30,10 +30,10 @@ register("chat", {
30
30
  you: "You", sending: "Sending…", uploadingFile: "Uploading {0}", uploadWaiting: "waiting", uploadFailed: "failed",
31
31
  uploadNoConnection: "the upload was cut off — check the connection", sendNoConnection: "it did not reach AgEnD — check the connection", notSentBecause: "Not sent: {0}", deleteUnsent: "Delete",
32
32
  sendFailure_wake_capacity: "No slot is free to wake this instance. Retry when another instance is idle.",
33
- sendFailure_wake_credentials: "The instance could not sign in. Check its account on the host, then retry.",
34
- sendFailure_wake_timeout: "The instance did not become ready in time. Retry, or check its status on the host.",
35
- sendFailure_instance_stopped: "This instance was stopped or removed. Start it on the host before retrying.",
36
- sendFailure_delivery_unavailable: "The instance could not receive this message. Check its status on the host, then retry.",
33
+ sendFailure_wake_credentials: "The instance could not sign in. Sign it in from Settings → Agents → AI sign-ins and API keys → Accounts, or send /login in chat, then retry.",
34
+ sendFailure_wake_timeout: "The instance did not become ready in time. Retry, or check its status in Fleet.",
35
+ sendFailure_instance_stopped: "This instance was stopped or removed. Start it from the agent's chat menu → Start instance, then retry.",
36
+ sendFailure_delivery_unavailable: "The instance could not receive this message. Check its status in Fleet, then retry.",
37
37
  sendFailure_machine_limit: "This Windows computer already runs its limit of {0} agents: {1}. Stop one of them (or check and unlock one marked “outcome unknown”), then retry.",
38
38
  machineLimitUnknown: "{0} (outcome unknown)",
39
39
  sendFailure_delivery_changed: "The session or instance changed before this message was sent. Sign in again if needed, then retry.",
@@ -197,10 +197,10 @@ register("chat", {
197
197
  you: "你", sending: "傳送中…", uploadingFile: "正在上傳 {0}", uploadWaiting: "等待中", uploadFailed: "失敗",
198
198
  uploadNoConnection: "上傳中斷了,請檢查網路連線", sendNoConnection: "沒有送到 AgEnD,請檢查網路連線", notSentBecause: "沒有送出:{0}", deleteUnsent: "刪除",
199
199
  sendFailure_wake_capacity: "目前沒有空位可喚醒這個實例。請等其他實例閒置後重試。",
200
- sendFailure_wake_credentials: "實例無法登入。請先在主機檢查它的帳號,再重試。",
201
- sendFailure_wake_timeout: "實例未能及時就緒。請重試,或在主機檢查它的狀態。",
202
- sendFailure_instance_stopped: "這個實例已停止或移除。請先在主機啟動它,再重試。",
203
- sendFailure_delivery_unavailable: "實例目前無法接收這則訊息。請在主機檢查它的狀態,再重試。",
200
+ sendFailure_wake_credentials: "實例無法登入。請到設定 → Agents →「AI 登入與 API 金鑰」→「帳號」登入,或在聊天傳 /login,再重試。",
201
+ sendFailure_wake_timeout: "實例未能及時就緒。請重試,或到 Fleet 查看它的狀態。",
202
+ sendFailure_instance_stopped: "這個實例已停止或移除。請先從該 agent 的聊天選單按「啟動 instance」,再重試。",
203
+ sendFailure_delivery_unavailable: "實例目前無法接收這則訊息。請到 Fleet 查看它的狀態,再重試。",
204
204
  sendFailure_machine_limit: "這台 Windows 電腦同時執行的 agent 已達上限 {0} 個:{1}。請先停止其中一個(或檢查並解鎖標示「結果未知」的那個),再重試。",
205
205
  machineLimitUnknown: "{0}(結果未知)",
206
206
  sendFailure_delivery_changed: "訊息送出前,登入或實例狀態已改變。必要時請重新登入,再重試。",
@@ -14,8 +14,8 @@
14
14
  .hub-row-text .note { overflow-wrap: anywhere; }
15
15
  .hub-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
16
16
  .hub-card-head h3 { margin: 0; color: var(--text); font-size: var(--fs-lg); text-transform: none; letter-spacing: 0; }
17
- .hub-grant { display: flex; flex-direction: column; gap: var(--s-3); }
18
- .hub-grant .field { margin: 0; }
17
+ .hub-grant.form { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-3); }
18
+ .hub-grant.form .field { flex: none; margin: 0; }
19
19
  .hub-danger h3 { color: var(--danger); }
20
20
  .hub-steps { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); counter-reset: hub-step; }
21
21
  .hub-steps > li { display: flex; align-items: flex-start; gap: var(--s-3); counter-increment: hub-step; }
@@ -0,0 +1,24 @@
1
+ /* alpha.6 feedback: the Hub's signed-out page — AgEnD's sign-in style (signin.html): one centred card on the page's
2
+ background; while it shows, the shell's sidebar and tabs are hidden (focus and screen readers skip them too). Linked
3
+ by panel-hub.js's HubSignIn. Tokens only: both themes follow. */
4
+ body.hub-signed-out #sidebar, body.hub-signed-out nav.tabs { visibility: hidden; }
5
+ .hub-signin-page { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
6
+ overflow: auto; background: var(--bg); color: var(--text); }
7
+ .hub-signin-card { width: 100%; max-width: 380px; margin: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
8
+ padding: 28px 24px; box-sizing: border-box; }
9
+ .hub-signin-brand { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; }
10
+ .hub-signin-brand strong { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
11
+ .hub-signin-brand span { color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
12
+ .hub-signin-card h1 { margin: 0 0 6px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
13
+ .hub-signin-lead { margin: 0 0 18px; color: var(--text-2); }
14
+ .hub-signin-form { display: flex; flex-direction: column; }
15
+ .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
+ .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);
17
+ border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
18
+ .hub-signin-form input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-dim); }
19
+ .hub-signin-go { width: 100%; margin-top: 4px; padding: 12px; font: var(--fw-semibold) var(--fs-md) var(--font-ui); color: var(--on-accent);
20
+ background: var(--accent-fill); border: 0; border-radius: var(--r-full); cursor: pointer; }
21
+ .hub-signin-go:hover:not(:disabled) { opacity: .88; }
22
+ .hub-signin-go:disabled { opacity: .6; cursor: default; }
23
+ .hub-signin-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
24
+ .hub-signin-msg { min-height: 1.5em; margin: 14px 0 0; font-size: var(--fs-sm); color: var(--danger); }
@@ -143,8 +143,8 @@ register("view", {
143
143
  "usage.hint.grok_no_login": "auth.json has no usable login. Run `grok login`.",
144
144
  "usage.hint.login_kiro": "Log in with the Kiro CLI (`kiro-cli`).",
145
145
  "usage.hint.kiro_signed_out": "Signed out — run `kiro-cli` to log in.",
146
- "usage.hint.claude_profile_signed_out": "Not logged in — sign in with: {0}",
147
- "usage.hint.claude_profile_signed_out_chat": "Not logged in — sign in with `{0}` (or run `{1}` on the host).",
146
+ "usage.hint.claude_profile_signed_out": "Not logged in — sign in from Settings → Agents → AI sign-ins and API keys → Accounts.",
147
+ "usage.hint.claude_profile_signed_out_chat": "Not logged in — sign in from Settings → Agents → AI sign-ins and API keys → Accounts, or with `{0}`.",
148
148
  "usage.hint.token_refreshing": "Token refreshing — try again in a moment.",
149
149
  "usage.hint.subscription_no_credit": "Subscription — no credit usage to report.",
150
150
  "usage.hint.no_quota_account": "No quota information available for this account type.",
@@ -415,8 +415,8 @@ register("view", {
415
415
  "usage.hint.grok_no_login": "auth.json 沒有可用的登入資料。請執行 `grok login`。",
416
416
  "usage.hint.login_kiro": "請使用 Kiro CLI(`kiro-cli`)登入。",
417
417
  "usage.hint.kiro_signed_out": "目前已登出;請執行 `kiro-cli` 登入。",
418
- "usage.hint.claude_profile_signed_out": "尚未登入;請用這行指令登入:{0}",
419
- "usage.hint.claude_profile_signed_out_chat": "尚未登入;請用 `{0}` 登入(或在主機上執行 `{1}`)。",
418
+ "usage.hint.claude_profile_signed_out": "尚未登入;請到設定 → Agents →「AI 登入與 API 金鑰」→「帳號」。",
419
+ "usage.hint.claude_profile_signed_out_chat": "尚未登入;請到設定 → Agents →「AI 登入與 API 金鑰」→「帳號」,或用 `{0}` 登入。",
420
420
  "usage.hint.token_refreshing": "Token 更新中 — 請稍候再試。",
421
421
  "usage.hint.subscription_no_credit": "訂閱方案沒有可回報的額度用量。",
422
422
  "usage.hint.no_quota_account": "此帳號類型沒有可用的額度資訊。",
@@ -8,7 +8,7 @@ export const SIGNIN_STRINGS = {
8
8
  consoleOnly: "Use the explicit console fallback, or sign in later.", needed: "Sign-in needed", waiting: "Waiting for the CLI…", login: "Login: {0}",
9
9
  openProvider: "Open provider sign-in", deviceCode: "Device code:", answerSent: "Answer sent. Waiting for the next screen; it will not be sent twice.",
10
10
  cancel: "Cancel sign-in", signIn: "Sign in", signInAgain: "Sign in again", later: "Sign in later", submit: "Submit {0}",
11
- relogin: "Sign in again? Kiro will sign out its existing account first.", ready: "You can continue setup.",
11
+ relogin: "Sign in to {0} again? It signs out its current account first.", reloginReplace: "Sign in to {0} again? The new sign-in replaces the account it uses now.", ready: "You can continue setup.",
12
12
  field_code: "Paste the returned code", field_start_url: "Organization Start URL", field_region: "AWS region",
13
13
  phase_method: "method", phase_code: "code", phase_start_url: "start URL", phase_region: "region", phase_authorization: "authorization",
14
14
  choice_organization: "Your organization", choice_subscription: "Claude subscription",
@@ -42,7 +42,7 @@ export const SIGNIN_STRINGS = {
42
42
  consoleOnly: "請改用主控台備援,或稍後登入。", needed: "需要登入", waiting: "等待 CLI 回應…", login: "登入:{0}",
43
43
  openProvider: "開啟登入頁", deviceCode: "裝置代碼:", answerSent: "已送出。等待下一個畫面;不會重複送出。",
44
44
  cancel: "取消登入", signIn: "登入", signInAgain: "重新登入", later: "稍後登入", submit: "送出{0}",
45
- relogin: "要重新登入嗎?Kiro 會先登出目前的帳號。", ready: "可以繼續設定了。",
45
+ relogin: "要重新登入 {0} 嗎?會先登出目前的帳號。", reloginReplace: "要重新登入 {0} 嗎?新的登入會取代目前使用的帳號。", ready: "可以繼續設定了。",
46
46
  field_code: "貼上取得的代碼", field_start_url: "組織的 Start URL", field_region: "AWS 區域",
47
47
  phase_method: "選擇方式", phase_code: "代碼", phase_start_url: "Start URL", phase_region: "區域", phase_authorization: "授權",
48
48
  choice_organization: "你的組織", choice_subscription: "Claude 訂閱",
@@ -80,7 +80,7 @@ const pageLang = doc => /^zh/i.test(doc?.documentElement?.lang || "") ? "zh-TW"
80
80
  * so, so the setup page's heading and lead are not repeated; there is no "sign in later" (this is an explicit request); and a sign-in again asks nothing about
81
81
  * Kiro (Claude Code's own sign-in replaces the login; it signs nothing out first).
82
82
  */
83
- export function mountStructuredSignIns(root, { endpoint, fetcher = fetch, changed = () => {}, lang, machine = false } = {}) {
83
+ export function mountStructuredSignIns(root, { endpoint, fetcher = fetch, changed = () => {}, lang, machine = false, ask, dashboard = false } = {}) {
84
84
  const doc = root.ownerDocument;
85
85
  let view = null, busy = false, disposed = false, timer = null, generation = 0, message = "", rendered = "";
86
86
  const language = () => (lang ? lang() : pageLang(doc)) === "zh-TW" ? "zh-TW" : "en";
@@ -110,7 +110,9 @@ export function mountStructuredSignIns(root, { endpoint, fetcher = fetch, change
110
110
  const signature = JSON.stringify([view, busy, message, language()]);
111
111
  if (disposed || rendered === signature) return;
112
112
  rendered = signature; root.replaceChildren();
113
- if (!machine) { el("h2", tr("heading")); el("p", tr("lead")); }
113
+ // Ridge #3321 S12: inside the dashboard (`dashboard`) the dialog's own title names the CLI — the setup page's heading, lead and
114
+ // "continue setup" are not repeated there.
115
+ if (!machine && !dashboard) { el("h2", tr("heading")); el("p", tr("lead")); }
114
116
  if (message) { const alert = el("p", errorText(message)); alert.setAttribute("role", "alert"); }
115
117
  if (!view) { button(root, tr("check"), () => perform({ operation: "refresh" })); return; }
116
118
  for (const backend of view.selected) {
@@ -144,16 +146,22 @@ export function mountStructuredSignIns(root, { endpoint, fetcher = fetch, change
144
146
  } else {
145
147
  if (login?.reason && login.reason !== "cancelled") el("p", errorText(login.reason), card);
146
148
  const usable = !["antigravity"].includes(backend) && state !== "not_installed";
147
- if (usable) button(card, tr(state === "valid" ? "signInAgain" : "signIn"), () => {
149
+ // Ridge #3321 S01: the question names THIS card's CLI, and says what a sign-in again does to it — only Kiro signs out
150
+ // first (logoutArgv); Claude Code and Codex sign in again over the account they have. The dashboard passes its own
151
+ // in-app confirmation (`ask`); the setup page, which loads nothing else, keeps the browser's.
152
+ if (usable) button(card, tr(state === "valid" ? "signInAgain" : "signIn"), async () => {
148
153
  const relogin = state === "valid";
149
- if (relogin && !machine && !globalThis.confirm(tr("relogin"))) return;
150
- void perform({ operation: "start", backend, relogin });
154
+ if (relogin && !machine) {
155
+ const question = tr(backend === "kiro-cli" ? "relogin" : "reloginReplace", name(backend));
156
+ if (!(await (ask ? ask(question, name(backend)) : globalThis.confirm(question)))) return;
157
+ }
158
+ await perform({ operation: "start", backend, relogin });
151
159
  });
152
160
  }
153
161
  if (pending && !skipped && !machine) button(card, tr("later"), () => perform({ operation: "skip", backend }));
154
162
  }
155
163
  button(root, tr("check"), () => perform({ operation: "refresh" }));
156
- if (view.ready && !machine) el("p", tr("ready"));
164
+ if (view.ready && !machine && !dashboard) el("p", tr("ready"));
157
165
  }
158
166
  async function poll() {
159
167
  if (disposed) return;
@@ -175,6 +175,7 @@ export interface ClaudeUsageScope {
175
175
  profile?: string;
176
176
  besideProfiles?: boolean;
177
177
  hostOnly?: boolean;
178
+ hasChat?: boolean;
178
179
  }
179
180
  /**
180
181
  * Exported for tests — the statusline/API preference order is the subject.
@@ -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, credentialProfileLoginCommand, credentialProfileStoreHome, instanceCredentialProfile, isCredentialProfileName, } from "../backend/credential-profile.js";
29
+ import { CHAT_PROFILE_LOGIN_BACKENDS, credentialHomeSpec, credentialProfileHome, 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";
@@ -370,15 +370,14 @@ export async function fetchClaudeUsage(storeHome, scope = {}) {
370
370
  if (profileHome !== null && scope.hostOnly)
371
371
  return { status: "no-credentials", hint: "Not logged in.", metrics: [] };
372
372
  if (profileHome !== null) {
373
- // On screen (`ok`, as kiro's signed-out row), with what signs this profile in — never a fallback: from chat
374
- // (`/login claude-code <profile>`, #1699 part 2), or the exact line on the host — the same words as the auth alert.
375
- const host = (scope.profile && credentialProfileLoginCommand(getAgendHome(), "claude-code", scope.profile))
376
- || `CLAUDE_CONFIG_DIR=${JSON.stringify(profileHome)} claude auth login`;
377
- if (scope.profile && CHAT_PROFILE_LOGIN_BACKENDS.has("claude-code")) {
373
+ // On screen (`ok`, as kiro's signed-out row): Settings is always on the
374
+ // dashboard. Chat `/login` only when this fleet has a chat channel — CHAT_PROFILE_LOGIN_BACKENDS is a backend
375
+ // capability, not this fleet's chat availability.
376
+ if (scope.profile && scope.hasChat && CHAT_PROFILE_LOGIN_BACKENDS.has("claude-code")) {
378
377
  const chat = `/login claude-code ${scope.profile}`;
379
- return { status: "ok", hint: `Not logged in — sign in with \`${chat}\` (or run \`${host}\` on the host).`, hintI18n: i18n("usage.hint.claude_profile_signed_out_chat", chat, host), metrics: [] };
378
+ return { status: "ok", hint: `Not logged in — sign in from Settings → Agents → AI sign-ins and API keys → Accounts, or with \`${chat}\`.`, hintI18n: i18n("usage.hint.claude_profile_signed_out_chat", chat), metrics: [] };
380
379
  }
381
- return { status: "ok", hint: `Not logged in — sign in with: ${host}`, hintI18n: i18n("usage.hint.claude_profile_signed_out", host), metrics: [] };
380
+ return { status: "ok", hint: "Not logged in — sign in from Settings → Agents → AI sign-ins and API keys → Accounts.", hintI18n: i18n("usage.hint.claude_profile_signed_out"), metrics: [] };
382
381
  }
383
382
  const hint = process.env.ANTHROPIC_API_KEY
384
383
  ? "API-key login has no subscription usage. Use `claude /login` or set CLAUDE_CODE_OAUTH_TOKEN (from `claude setup-token`)."
@@ -1641,19 +1640,24 @@ export function providersForConfig(config, base = DEFAULT_PROVIDERS) {
1641
1640
  * The shared row is "Claude (default)" beside profiles (shown whenever that login exists); a profile no instance uses
1642
1641
  * shows only when signed in. isHostLoginUsageProvider keeps these rows through the snapshot's running-instances filter.
1643
1642
  */
1643
+ function fleetHasChat(config) {
1644
+ const channels = config?.channels;
1645
+ return Array.isArray(channels) && channels.length > 0;
1646
+ }
1644
1647
  function claudeHostRows(config, provider, backendName) {
1645
1648
  const inUse = effectiveCredentialProfiles(config, backendName);
1646
1649
  const profiles = [...new Set([...inUse, ...claudeProfilesOnHost()])].sort();
1647
1650
  if (profiles.length === 0)
1648
1651
  return [provider];
1649
1652
  const homes = profiles.map(profile => credentialProfileStoreHome(getAgendHome(), backendName, profile));
1653
+ const hasChat = fleetHasChat(config);
1650
1654
  return [
1651
1655
  { id: provider.id, name: `${provider.name} (default)`, defaultLogin: true, fetch: () => provider.fetch(undefined, { besideProfiles: true }) },
1652
1656
  ...profiles.map((profile, i) => ({
1653
1657
  id: `${provider.id}:${profile}`,
1654
1658
  name: `${provider.name} (${profile})`,
1655
1659
  profile,
1656
- fetch: () => provider.fetch(homes[i], inUse.includes(profile) ? { profile } : { profile, hostOnly: true }),
1660
+ fetch: () => provider.fetch(homes[i], inUse.includes(profile) ? { profile, hasChat } : { profile, hostOnly: true, hasChat }),
1657
1661
  })),
1658
1662
  ];
1659
1663
  }