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

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 (258) hide show
  1. package/dist/accounts-view.d.ts +17 -0
  2. package/dist/accounts-view.js +33 -6
  3. package/dist/accounts-view.js.map +1 -1
  4. package/dist/apply-job.d.ts +5 -0
  5. package/dist/apply-job.js +10 -3
  6. package/dist/apply-job.js.map +1 -1
  7. package/dist/auth-api.d.ts +1 -1
  8. package/dist/auth-api.js +15 -2
  9. package/dist/auth-api.js.map +1 -1
  10. package/dist/authority/web-authority.d.ts +13 -0
  11. package/dist/authority/web-authority.js +12 -0
  12. package/dist/authority/web-authority.js.map +1 -1
  13. package/dist/backend/claude-code.js +47 -9
  14. package/dist/backend/claude-code.js.map +1 -1
  15. package/dist/backend/kiro.js +1 -1
  16. package/dist/backend/kiro.js.map +1 -1
  17. package/dist/build-provenance.json +1 -1
  18. package/dist/channel/access-manager.d.ts +1 -6
  19. package/dist/channel/access-manager.js +4 -94
  20. package/dist/channel/access-manager.js.map +1 -1
  21. package/dist/channel/adapters/discord.d.ts +0 -2
  22. package/dist/channel/adapters/discord.js +0 -8
  23. package/dist/channel/adapters/discord.js.map +1 -1
  24. package/dist/channel/adapters/telegram.d.ts +0 -3
  25. package/dist/channel/adapters/telegram.js +1 -30
  26. package/dist/channel/adapters/telegram.js.map +1 -1
  27. package/dist/channel/types.d.ts +0 -2
  28. package/dist/cli.js +1 -19
  29. package/dist/cli.js.map +1 -1
  30. package/dist/config-validator.js +2 -1
  31. package/dist/config-validator.js.map +1 -1
  32. package/dist/fleet-manager.d.ts +84 -3
  33. package/dist/fleet-manager.js +494 -51
  34. package/dist/fleet-manager.js.map +1 -1
  35. package/dist/general-knowledge/skills/concepts/SKILL.md +22 -7
  36. package/dist/general-knowledge/steering/core-rules.md +7 -5
  37. package/dist/hub/buttons.js +4 -2
  38. package/dist/hub/buttons.js.map +1 -1
  39. package/dist/hub/catalog.d.ts +2 -2
  40. package/dist/hub/catalog.js +233 -48
  41. package/dist/hub/catalog.js.map +1 -1
  42. package/dist/hub/client.js +2 -0
  43. package/dist/hub/client.js.map +1 -1
  44. package/dist/hub/compose/member.d.ts +6 -0
  45. package/dist/hub/compose/member.js +9 -1
  46. package/dist/hub/compose/member.js.map +1 -1
  47. package/dist/hub/compose/server.d.ts +11 -1
  48. package/dist/hub/compose/server.js +70 -3
  49. package/dist/hub/compose/server.js.map +1 -1
  50. package/dist/hub/directory/directory.d.ts +1 -1
  51. package/dist/hub/directory/directory.js +32 -23
  52. package/dist/hub/directory/directory.js.map +1 -1
  53. package/dist/hub/directory/index.d.ts +1 -1
  54. package/dist/hub/directory/types.d.ts +8 -2
  55. package/dist/hub/directory/types.js.map +1 -1
  56. package/dist/hub/group-policy/admin-api.d.ts +30 -0
  57. package/dist/hub/group-policy/admin-api.js +83 -0
  58. package/dist/hub/group-policy/admin-api.js.map +1 -0
  59. package/dist/hub/group-policy/admin-context.d.ts +23 -0
  60. package/dist/hub/group-policy/admin-context.js +52 -0
  61. package/dist/hub/group-policy/admin-context.js.map +1 -0
  62. package/dist/hub/group-policy/admin-control.d.ts +34 -0
  63. package/dist/hub/group-policy/admin-control.js +258 -0
  64. package/dist/hub/group-policy/admin-control.js.map +1 -0
  65. package/dist/hub/group-policy/admin-dto.d.ts +243 -0
  66. package/dist/hub/group-policy/admin-dto.js +55 -0
  67. package/dist/hub/group-policy/admin-dto.js.map +1 -0
  68. package/dist/hub/group-policy/admin-facts.d.ts +17 -0
  69. package/dist/hub/group-policy/admin-facts.js +33 -0
  70. package/dist/hub/group-policy/admin-facts.js.map +1 -0
  71. package/dist/hub/group-policy/admin-impact.d.ts +51 -0
  72. package/dist/hub/group-policy/admin-impact.js +88 -0
  73. package/dist/hub/group-policy/admin-impact.js.map +1 -0
  74. package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
  75. package/dist/hub/group-policy/admin-inventory.js +72 -0
  76. package/dist/hub/group-policy/admin-inventory.js.map +1 -0
  77. package/dist/hub/group-policy/admin-read.d.ts +21 -0
  78. package/dist/hub/group-policy/admin-read.js +90 -0
  79. package/dist/hub/group-policy/admin-read.js.map +1 -0
  80. package/dist/hub/group-policy/authorization.d.ts +60 -0
  81. package/dist/hub/group-policy/authorization.js +292 -0
  82. package/dist/hub/group-policy/authorization.js.map +1 -0
  83. package/dist/hub/group-policy/impact-inventory.d.ts +21 -0
  84. package/dist/hub/group-policy/impact-inventory.js +75 -0
  85. package/dist/hub/group-policy/impact-inventory.js.map +1 -0
  86. package/dist/hub/group-policy/resources.d.ts +22 -2
  87. package/dist/hub/group-policy/resources.js +119 -25
  88. package/dist/hub/group-policy/resources.js.map +1 -1
  89. package/dist/hub/group-policy/store.d.ts +19 -2
  90. package/dist/hub/group-policy/store.js +66 -5
  91. package/dist/hub/group-policy/store.js.map +1 -1
  92. package/dist/hub/group-policy/welcome.d.ts +36 -0
  93. package/dist/hub/group-policy/welcome.js +55 -0
  94. package/dist/hub/group-policy/welcome.js.map +1 -0
  95. package/dist/hub/http/compose.d.ts +2 -0
  96. package/dist/hub/http/compose.js +133 -12
  97. package/dist/hub/http/compose.js.map +1 -1
  98. package/dist/hub/http/core.d.ts +23 -3
  99. package/dist/hub/http/core.js +138 -5
  100. package/dist/hub/http/core.js.map +1 -1
  101. package/dist/hub/http/deps.d.ts +10 -0
  102. package/dist/hub/member/pairing-api.d.ts +2 -0
  103. package/dist/hub/member/pairing-api.js +1 -0
  104. package/dist/hub/member/pairing-api.js.map +1 -1
  105. package/dist/hub/member/pairing-notices.d.ts +18 -0
  106. package/dist/hub/member/pairing-notices.js +58 -0
  107. package/dist/hub/member/pairing-notices.js.map +1 -0
  108. package/dist/hub/pairing-notices.d.ts +47 -0
  109. package/dist/hub/pairing-notices.js +241 -0
  110. package/dist/hub/pairing-notices.js.map +1 -0
  111. package/dist/hub/pairing.d.ts +33 -1
  112. package/dist/hub/pairing.js +315 -15
  113. package/dist/hub/pairing.js.map +1 -1
  114. package/dist/hub/policy.d.ts +3 -1
  115. package/dist/hub/policy.js +13 -6
  116. package/dist/hub/policy.js.map +1 -1
  117. package/dist/hub/protocol.d.ts +32 -0
  118. package/dist/hub/protocol.js +6 -1
  119. package/dist/hub/protocol.js.map +1 -1
  120. package/dist/hub/rooms.d.ts +1 -0
  121. package/dist/hub/rooms.js +76 -26
  122. package/dist/hub/rooms.js.map +1 -1
  123. package/dist/hub/runtime.d.ts +4 -1
  124. package/dist/hub/runtime.js +11 -0
  125. package/dist/hub/runtime.js.map +1 -1
  126. package/dist/hub/server.js +4 -0
  127. package/dist/hub/server.js.map +1 -1
  128. package/dist/hub/sessions.js +2 -1
  129. package/dist/hub/sessions.js.map +1 -1
  130. package/dist/hub/store.d.ts +10 -1
  131. package/dist/hub/store.js +7 -4
  132. package/dist/hub/store.js.map +1 -1
  133. package/dist/hub/types.d.ts +15 -2
  134. package/dist/locale.js +48 -36
  135. package/dist/locale.js.map +1 -1
  136. package/dist/login-controller.d.ts +9 -1
  137. package/dist/login-controller.js +20 -1
  138. package/dist/login-controller.js.map +1 -1
  139. package/dist/login-flows.js +4 -2
  140. package/dist/login-flows.js.map +1 -1
  141. package/dist/office-share-page.js +1 -1
  142. package/dist/office-share-page.js.map +1 -1
  143. package/dist/outbound-handlers.js +1 -1
  144. package/dist/outbound-handlers.js.map +1 -1
  145. package/dist/quickstart-api.js +2 -2
  146. package/dist/quickstart-api.js.map +1 -1
  147. package/dist/reply-buttons-controller.d.ts +5 -1
  148. package/dist/reply-buttons-controller.js +8 -4
  149. package/dist/reply-buttons-controller.js.map +1 -1
  150. package/dist/reply-buttons.d.ts +6 -2
  151. package/dist/reply-buttons.js +7 -3
  152. package/dist/reply-buttons.js.map +1 -1
  153. package/dist/runtime-api.js +10 -2
  154. package/dist/runtime-api.js.map +1 -1
  155. package/dist/settings-api.d.ts +2 -1
  156. package/dist/settings-api.js +7 -5
  157. package/dist/settings-api.js.map +1 -1
  158. package/dist/settings-change.d.ts +10 -0
  159. package/dist/settings-change.js +17 -1
  160. package/dist/settings-change.js.map +1 -1
  161. package/dist/settings-confirmation.d.ts +25 -1
  162. package/dist/settings-confirmation.js +11 -3
  163. package/dist/settings-confirmation.js.map +1 -1
  164. package/dist/settings-effect.js +18 -6
  165. package/dist/settings-effect.js.map +1 -1
  166. package/dist/settings-http-confirmation.d.ts +21 -0
  167. package/dist/settings-http-confirmation.js +74 -3
  168. package/dist/settings-http-confirmation.js.map +1 -1
  169. package/dist/signin-keepalive.d.ts +2 -0
  170. package/dist/signin-keepalive.js +30 -2
  171. package/dist/signin-keepalive.js.map +1 -1
  172. package/dist/structured-signin.js +3 -1
  173. package/dist/structured-signin.js.map +1 -1
  174. package/dist/tips.js +4 -4
  175. package/dist/tips.js.map +1 -1
  176. package/dist/types.d.ts +2 -0
  177. package/dist/types.js.map +1 -1
  178. package/dist/ui/accounts-keepalive.js +14 -8
  179. package/dist/ui/accounts-manage.js +31 -13
  180. package/dist/ui/accounts-view.js +93 -35
  181. package/dist/ui/backend-signin.js +22 -4
  182. package/dist/ui/general-location.js +28 -14
  183. package/dist/ui/hub-chat-store.js +2 -1
  184. package/dist/ui/hub-client.js +43 -3
  185. package/dist/ui/hub-grant-strings.js +13 -0
  186. package/dist/ui/hub-group-policy.js +170 -0
  187. package/dist/ui/hub-group-strings.js +97 -0
  188. package/dist/ui/hub-owner-strings.js +6 -2
  189. package/dist/ui/hub-pairing-progress-strings.js +15 -0
  190. package/dist/ui/hub-quick-pairing.js +202 -0
  191. package/dist/ui/hub-quick-strings.js +43 -0
  192. package/dist/ui/hub-read-strings.js +7 -0
  193. package/dist/ui/hub-strings.js +4 -2
  194. package/dist/ui/hub-welcome.js +99 -0
  195. package/dist/ui/panel-hub.js +115 -33
  196. package/dist/ui/panel-log.js +2 -2
  197. package/dist/ui/panel-runtimes.js +14 -6
  198. package/dist/ui/panel-settings.js +12 -21
  199. package/dist/ui/runtime-cli-install.js +24 -4
  200. package/dist/ui/settings-apply.js +12 -5
  201. package/dist/ui/settings-confirm.js +28 -0
  202. package/dist/ui/settings-devices.js +8 -12
  203. package/dist/ui/settings-dialogs.js +3 -1
  204. package/dist/ui/settings-hub-membership.js +24 -10
  205. package/dist/ui/settings-hub-section.js +60 -0
  206. package/dist/ui/settings-hub.js +58 -13
  207. package/dist/ui/settings-layout.js +6 -2
  208. package/dist/ui/settings-named-test.js +2 -2
  209. package/dist/ui/settings-outside.js +1 -1
  210. package/dist/ui/settings-quota-notice.js +8 -6
  211. package/dist/ui/settings-registry.js +3 -0
  212. package/dist/ui/settings-restart-strings.js +17 -0
  213. package/dist/ui/settings-strings.js +12 -10
  214. package/dist/ui/shared/accounts-keepalive.css +11 -6
  215. package/dist/ui/shared/accounts.css +68 -18
  216. package/dist/ui/shared/app-i18n.js +7 -2
  217. package/dist/ui/shared/app-route.js +1 -1
  218. package/dist/ui/shared/app-shell.js +114 -7
  219. package/dist/ui/shared/app.css +16 -0
  220. package/dist/ui/shared/chat-strings.js +8 -8
  221. package/dist/ui/shared/hub-groups.css +26 -0
  222. package/dist/ui/shared/hub-owner.css +2 -2
  223. package/dist/ui/shared/hub-signin.css +24 -0
  224. package/dist/ui/shared/hub.css +1 -0
  225. package/dist/ui/shared/setup-host-text.js +4 -1
  226. package/dist/ui/shared/signin.js +3 -1
  227. package/dist/ui/shared/usage-dialog.js +3 -72
  228. package/dist/ui/shared/usage-meter.js +84 -0
  229. package/dist/ui/shared/view-strings.js +4 -4
  230. package/dist/ui/shared/web-authorize.js +4 -4
  231. package/dist/ui/structured-signin.js +16 -8
  232. package/dist/update-marker.d.ts +2 -0
  233. package/dist/update-marker.js.map +1 -1
  234. package/dist/usage/providers.d.ts +1 -0
  235. package/dist/usage/providers.js +13 -9
  236. package/dist/usage/providers.js.map +1 -1
  237. package/dist/web-api.d.ts +10 -1
  238. package/dist/web-api.js +40 -11
  239. package/dist/web-api.js.map +1 -1
  240. package/dist/web-backend-login.d.ts +16 -2
  241. package/dist/web-backend-login.js +14 -0
  242. package/dist/web-backend-login.js.map +1 -1
  243. package/dist/web-notices.d.ts +9 -0
  244. package/dist/web-notices.js +19 -0
  245. package/dist/web-notices.js.map +1 -1
  246. package/dist/web-remote-access.d.ts +6 -0
  247. package/dist/web-remote-access.js +10 -1
  248. package/dist/web-remote-access.js.map +1 -1
  249. package/dist/web-shell-routes.d.ts +1 -1
  250. package/dist/web-shell-routes.js +1 -1
  251. package/dist/web-shell-routes.js.map +1 -1
  252. package/dist/web-terminal.d.ts +7 -0
  253. package/dist/web-terminal.js +14 -2
  254. package/dist/web-terminal.js.map +1 -1
  255. package/dist/windows-cli-api.d.ts +8 -0
  256. package/dist/windows-cli-api.js +10 -0
  257. package/dist/windows-cli-api.js.map +1 -1
  258. package/package.json +2 -1
@@ -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: "訊息送出前,登入或實例狀態已改變。必要時請重新登入,再重試。",
@@ -0,0 +1,26 @@
1
+ /* #3298 S-89: the Hub's signed-in welcome and Administration → Group permissions. Its own stylesheet (linked by
2
+ hub-group-strings.js) so a tab holding an older hub-chat.css or hub-owner.css still draws these pages. Built on the shared
3
+ card / s-row / field / btn / tag pieces; only the layout of the two entries and the group rows is here. */
4
+ .hub-home.has-welcome .hub-home-pick.hub-home-welcome { align-items: flex-start; justify-content: flex-start; overflow-y: auto; }
5
+ .hub-welcome-page { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
6
+ .hub-welcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
7
+ .hub-welcome-card { display: flex; flex-direction: column; gap: var(--s-2); min-height: 180px; }
8
+ .hub-welcome-card h3 { font-size: var(--fs-lg, 1.15rem); margin: 0; }
9
+ .hub-welcome-actions { margin-top: auto; display: flex; gap: var(--s-2); }
10
+ .hub-groups-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
11
+ .hub-welcome-card.is-off h3 { color: var(--text-2); }
12
+ .hub-welcome-fleets { margin: 0; padding-left: var(--s-4); }
13
+ @media (max-width: 899px) {
14
+ /* A phone shows the welcome first, then the chat list under it. */
15
+ .hub-home.has-welcome { flex-direction: column; overflow-y: auto; }
16
+ .hub-home.has-welcome .hub-home-pick.hub-home-welcome { display: block; flex: none; padding: var(--s-3); }
17
+ .hub-home.has-welcome .hub-home-list { flex: none; overflow: visible; }
18
+ }
19
+ /* A group's DN takes its own full line; its permissions, fleets and Remove wrap under it (hub-owner.css rows don't wrap). */
20
+ .hub-rows .s-row.hub-row.hub-group-row { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
21
+ .hub-rows .s-row.hub-row.hub-group-row > .hub-row-text { flex: 1 1 100%; }
22
+ .hub-group-dn { overflow-wrap: anywhere; }
23
+ .hub-group-cap { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
24
+ .hub-group-fleets { display: inline-flex; align-items: center; gap: var(--s-1); }
25
+ .hub-group-fleets input { width: 4.5em; }
26
+ .hub-groups-impact ul { margin: var(--s-1) 0 var(--s-2); padding-left: var(--s-4); }
@@ -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); }
@@ -17,6 +17,7 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
17
17
  .hub-fp-label { font-size: var(--fs-sm); color: var(--text-2); }
18
18
  .hub-fp-groups { font-family: var(--font-mono); font-size: var(--fs-md); letter-spacing: .04em; word-spacing: .3em; overflow-wrap: anywhere; }
19
19
  .hub-fp-full { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; color: var(--text-2); }
20
+ .hub-security-notices { flex: none; max-height: 38vh; overflow: auto; }
20
21
  .hub-fp .btn-link { justify-self: start; }
21
22
  .hub-steps-lead { margin: var(--s-1) 0 0; }
22
23
  .hub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
@@ -50,7 +50,7 @@ export const HOST_MESSAGES = [
50
50
  ["unknown probe", "不支援的檢查"],
51
51
  ["fleet not loaded", "設定尚未載入"],
52
52
  ["another secret operation is still running", "另一個寫入 token 的操作還在進行中"],
53
- ["setup cleanup failed; inspect configuration on the host", "設定的復原失敗;請在主機上檢查設定"],
53
+ ["setup cleanup failed; some saved changes may not have been undone. This page cannot repair the incomplete rollback", "設定的復原失敗;部分已儲存的變更可能未能撤銷。這個頁面無法修復未完成的復原"],
54
54
  ["setup was not committed", "設定沒有寫入"],
55
55
  ["Token verification is not permitted over a public link", "公開連結不能驗證 token"],
56
56
  ["This bot token is already being polled by the running fleet. Enter the group id by hand, or stop AgEnD first.", "執行中的 fleet 正在使用這個 bot token。請手動輸入群組 id,或先停止 AgEnD。"],
@@ -64,6 +64,8 @@ export const HOST_MESSAGES = [
64
64
  /** What the host answers with a code instead of words (the confirmation gate, settings-effect.ts; the finish step). */
65
65
  export const HOST_CODES = {
66
66
  en: {
67
+ // Cached servers may still return this older message; its recovery copy follows the current page.
68
+ "setup cleanup failed; inspect configuration on the host": "setup cleanup failed; some saved changes may not have been undone. This page cannot repair the incomplete rollback",
67
69
  invalid_quickstart: "This setup is not valid. Review it and try again.",
68
70
  connection_exists: "That connection already exists — a new connection never replaces one.",
69
71
  agent_conflict: "That agent name is taken, or that agent does not exist.",
@@ -76,6 +78,7 @@ export const HOST_CODES = {
76
78
  signin_cleanup_failed: "The login process could not be confirmed closed. Close it on the host and restart setup before retrying.",
77
79
  },
78
80
  "zh-TW": {
81
+ "setup cleanup failed; inspect configuration on the host": "設定的復原失敗;部分已儲存的變更可能未能撤銷。這個頁面無法修復未完成的復原",
79
82
  invalid_quickstart: "這份設定無效。請檢查後再試一次。",
80
83
  connection_exists: "這個連線已存在 —— 新的連線不會取代既有的連線。",
81
84
  agent_conflict: "這個 agent 名稱已被使用,或那個 agent 不存在。",
@@ -11,6 +11,7 @@
11
11
  const $ = (id) => document.getElementById(id);
12
12
  const T = {
13
13
  en: {
14
+ signout_unsaved: "Signed out for now, but the change could not be saved: a restart may bring the session back. This page cannot repair session storage.",
14
15
  checking: "Checking your session…", title: "Sign in to AgEnD", lead: "Enter your sign-in code.",
15
16
  label: "One-time code", submit: "Sign in", working: "Signing in…",
16
17
  hint: "No code? Send /web in General, then press a sign-in button to get one.",
@@ -46,6 +47,7 @@
46
47
  dev_qr: "Or scan this QR code with a device that is already signed in as the owner. It holds this page's address and the code above, nothing else.",
47
48
  },
48
49
  "zh-TW": {
50
+ signout_unsaved: "暫時登出了,但變更沒能儲存:重新啟動後這個工作階段可能會回來。這個頁面無法修復工作階段的儲存問題。",
49
51
  checking: "正在確認登入狀態…", title: "登入 AgEnD", lead: "輸入登入碼。",
50
52
  label: "一次性登入碼", submit: "登入", working: "登入中…",
51
53
  hint: "沒收到?在 General 傳 /web,再按登入按鈕取碼。",
@@ -197,7 +199,7 @@
197
199
  // A sign-out the server could not make durable says so here, once (agend-auth.js signOut).
198
200
  try {
199
201
  const note = sessionStorage.getItem("agend_signout_note");
200
- if (note) { sessionStorage.removeItem("agend_signout_note"); $("msg").textContent = note; }
202
+ if (note) { sessionStorage.removeItem("agend_signout_note"); $("msg").textContent = note.startsWith("Signed out for now, but the change could not be saved") ? t("signout_unsaved") : note; }
201
203
  } catch { /* private mode */ }
202
204
  $("code").focus();
203
205
  offerResend();
@@ -11,42 +11,15 @@ import { Dialog } from "./ui-dialog.js";
11
11
  import { ErrorState, Skeleton } from "./ui-states.js";
12
12
  import { Icon } from "./ui-icons.js";
13
13
  import "./view-strings.js";
14
+ import { CompactMeter, resetClock, resetText, tn, usageClock, usageDuration, usageText } from "./usage-meter.js";
15
+ // What this file exported before the meter moved out of it (#3321), for what imports it from here.
16
+ export { usageClock, windowTag, soonestReset } from "./usage-meter.js";
14
17
 
15
- function tn(key, values = {}) {
16
- let s = t(`view.${key}`);
17
- for (const [k, v] of Object.entries(values)) s = s.split(`{${k}}`).join(String(v));
18
- return s;
19
- }
20
18
  const stored = (k) => { try { return localStorage.getItem(k); } catch { return null; } };
21
19
  const store = (k, v) => { try { localStorage.setItem(k, v); } catch { /* this page only */ } };
22
20
 
23
21
  // ── AI usage ── Every provider the fleet's logins report; refreshed every 60 s while this dialog is open (passive).
24
22
  const USAGE_ORDER_KEY = "agend_view_usage_order";
25
- function usageText(fallback, ref) {
26
- if (!ref || typeof ref.key !== "string") return fallback == null ? "" : String(fallback);
27
- return (Array.isArray(ref.args) ? ref.args : []).reduce((text, value, i) => text.split(`{${i}}`).join(String(value)), t(`view.${ref.key}`));
28
- }
29
- function usageDuration(ms) {
30
- const total = Math.max(1, Math.ceil(ms / 60000));
31
- const d = Math.floor(total / 1440), h = Math.floor((total % 1440) / 60), m = total % 60;
32
- if (total >= 2880) return usageText("", { key: "usage.duration.days_hours", args: [d, h] });
33
- if (total >= 60) return usageText("", { key: "usage.duration.hours_minutes", args: [Math.floor(total / 60), m] });
34
- return usageText("", { key: "usage.duration.minutes", args: [total] });
35
- }
36
- function resetText(iso) {
37
- if (!iso) return "";
38
- const ms = new Date(iso).getTime() - Date.now();
39
- if (Number.isNaN(ms)) return "";
40
- if (ms <= 0) return tn("usage.reset.soon");
41
- return usageText("", { key: "usage.reset.in", args: [usageDuration(ms)] });
42
- }
43
- /** "14:05" today, "10/19 14:05" another day, in this browser's time: when last known numbers were read, a window reset. */
44
- export function usageClock(iso, now = Date.now()) {
45
- const at = new Date(iso || "");
46
- if (Number.isNaN(at.getTime())) return "";
47
- const hm = `${String(at.getHours()).padStart(2, "0")}:${String(at.getMinutes()).padStart(2, "0")}`;
48
- return new Date(now).toDateString() === at.toDateString() ? hm : `${at.getMonth() + 1}/${at.getDate()} ${hm}`;
49
- }
50
23
  /**
51
24
  * A row showing its last known numbers (the live read failed; #2236 follow-up): "已過期 · 快取於 14:05" and, for an expiry
52
25
  * or another failure, what to do on a second line (its full text is the mark's tooltip too). A row from an older
@@ -182,25 +155,6 @@ export function compactSlots(p) {
182
155
  }
183
156
  /** The windows a compact line shows, short first. */
184
157
  export const compactMetrics = (p) => { const { short, long } = compactSlots(p); return [short, long].filter(Boolean); };
185
- /** A window as a few characters ("5h", "7d"); one whose length is not known says its label. */
186
- export function windowTag(m) {
187
- const ms = Number(m && m.windowMs);
188
- if (!(ms > 0)) return usageText(m.label, m.labelI18n);
189
- const h = ms / 3_600_000;
190
- return h < 48 ? tn("usageWindowHours", { n: Math.round(h) }) : tn("usageWindowDays", { n: Math.round(h / 24) });
191
- }
192
- /** A time ahead in one unit, for the narrow column: "45m", "3h", "4d" (rounded down past an hour; the tooltip is exact). */
193
- function coarseDuration(ms) {
194
- const min = Math.max(1, Math.ceil(ms / 60_000));
195
- if (min < 60) return tn("usageWindowMinutes", { n: min });
196
- const h = Math.floor(min / 60);
197
- return h < 48 ? tn("usageWindowHours", { n: h }) : tn("usageWindowDays", { n: Math.floor(h / 24) });
198
- }
199
- /** The soonest reset still ahead among `metrics`: { short: "↻ 2h", full: "resets in 2h 5m" }, or null when none is known. */
200
- export function soonestReset(metrics, now = Date.now()) {
201
- const at = metrics.map((m) => new Date(m.resetsAt || "").getTime()).filter((t) => Number.isFinite(t) && t > now).sort((a, b) => a - b)[0];
202
- return at === undefined ? null : { short: `↻ ${coarseDuration(at - now)}`, full: resetText(new Date(at).toISOString()) };
203
- }
204
158
  /**
205
159
  * The logins grouped by provider for the compact view (nine logins, five of them Claude's: the provider once, then a
206
160
  * line per login), in the order the person set (↑↓): a group where its first login is, its logins in their order.
@@ -214,7 +168,6 @@ export function compactGroups(providers) {
214
168
  });
215
169
  return [...groups.values()];
216
170
  }
217
- const level = (pct) => (pct >= 90 ? "crit" : pct >= 70 ? "warn" : "");
218
171
  /**
219
172
  * #2240: an account whose percent windows come from several pools (agy: Gemini, Claude & others, Gemini 4 Argon) — each
220
173
  * pool with its windows and the tighter one (the most used); null for an account of one pool (its 5h / 7d lines).
@@ -231,28 +184,6 @@ export function compactPools(p) {
231
184
  return [...pools.values()].map((x) => ({ ...x, worst: x.metrics.reduce((a, b) => ((b.used ?? 0) > (a.used ?? 0) ? b : a)) }));
232
185
  }
233
186
  const pctOf = (m) => Math.min(100, Math.max(0, m.used ?? 0));
234
- /** When a window resets, at the clock ("14:05", "10/19 14:05"), for a tooltip; "" when unknown or already past. */
235
- function resetClock(m, now = Date.now()) {
236
- const at = new Date((m && m.resetsAt) || "").getTime();
237
- return Number.isFinite(at) && at > now ? `↻ ${usageClock(m.resetsAt, now)}` : "";
238
- }
239
- /**
240
- * One window on its own line: its few characters ("5h"), a full-width bar, the percent coloured as the full card, and
241
- * when this window resets ("↻ 8m"; the user's ask, 2026-10-23: a week's reset was hidden behind the 5 h one's). A pool's
242
- * line (#2240): the pool's name in place of the window, the reset of the window its percent is, every window (with its
243
- * reset time) in the tooltip.
244
- */
245
- function CompactMeter({ m, tag, title }) {
246
- const bar = useRef(null);
247
- const pct = Math.min(100, Math.max(0, m.used ?? 0)), cls = level(pct);
248
- useLayoutEffect(() => { if (bar.current) bar.current.style.width = `${pct}%`; }, [pct]); // CSSOM (#1300)
249
- const word = cls === "crit" ? tn("usageNear") : cls === "warn" ? tn("usageHigh") : "";
250
- const reset = soonestReset([m]), clock = resetClock(m);
251
- return html`<span class="u-cm" title=${title || `${usageText(m.label, m.labelI18n)}: ${pct.toFixed(0)}%${word ? ` (${word})` : ""}${clock ? ` · ${clock}` : ""}`}>
252
- <span class="u-cm-tag">${tag || windowTag(m)}</span><span class="u-cm-bar"><span ref=${bar} class=${`u-cm-fill ${cls}`}></span></span>
253
- <span class=${`u-cm-pct ${cls}`}>${pct.toFixed(0)}%</span>
254
- <span class="u-cm-reset">${reset ? html`${reset.short}<span class="sr-only"> (${reset.full})</span>` : null}</span></span>`;
255
- }
256
187
  /** What a login says instead of numbers (not logged in, an error), or "" when it has numbers. */
257
188
  function rowNote(p) {
258
189
  if (p.status === "error") return usageText(p.error || tn("usage.error_fallback"), p.errorI18n);
@@ -0,0 +1,84 @@
1
+ // The usage meter, in a module of its own: one window as a few characters ("5h"), a bar, the percent and its reset ("↻ 8m"). The Usage panel's
2
+ // compact rows (usage-dialog.js) and Settings → Accounts (accounts-view.js) draw it, so both show the same thing.
3
+ // A module of its own (#3321): a tab opened before an upgrade keeps the usage-dialog.js it had (header-tools.js loads it with the shell), and a
4
+ // named import of something that file never exported breaks the link of whatever imports it — here the whole Settings page. This file has a new
5
+ // address, so a tab that has never loaded it fetches it, and usage-dialog.js (old or new) never needs it to be there. Everything it uses from the
6
+ // shared modules is what those modules have always exported.
7
+ import { html, useLayoutEffect, useRef } from "./app-html.js";
8
+ import { t } from "./app-i18n.js";
9
+ import "./view-strings.js";
10
+
11
+ export function tn(key, values = {}) {
12
+ let s = t(`view.${key}`);
13
+ for (const [k, v] of Object.entries(values)) s = s.split(`{${k}}`).join(String(v));
14
+ return s;
15
+ }
16
+ export function usageText(fallback, ref) {
17
+ if (!ref || typeof ref.key !== "string") return fallback == null ? "" : String(fallback);
18
+ return (Array.isArray(ref.args) ? ref.args : []).reduce((text, value, i) => text.split(`{${i}}`).join(String(value)), t(`view.${ref.key}`));
19
+ }
20
+ export function usageDuration(ms) {
21
+ const total = Math.max(1, Math.ceil(ms / 60000));
22
+ const d = Math.floor(total / 1440), h = Math.floor((total % 1440) / 60), m = total % 60;
23
+ if (total >= 2880) return usageText("", { key: "usage.duration.days_hours", args: [d, h] });
24
+ if (total >= 60) return usageText("", { key: "usage.duration.hours_minutes", args: [Math.floor(total / 60), m] });
25
+ return usageText("", { key: "usage.duration.minutes", args: [total] });
26
+ }
27
+ export function resetText(iso) {
28
+ if (!iso) return "";
29
+ const ms = new Date(iso).getTime() - Date.now();
30
+ if (Number.isNaN(ms)) return "";
31
+ if (ms <= 0) return tn("usage.reset.soon");
32
+ return usageText("", { key: "usage.reset.in", args: [usageDuration(ms)] });
33
+ }
34
+ /** "14:05" today, "10/19 14:05" another day, in this browser's time: when last known numbers were read, a window reset. */
35
+ export function usageClock(iso, now = Date.now()) {
36
+ const at = new Date(iso || "");
37
+ if (Number.isNaN(at.getTime())) return "";
38
+ const hm = `${String(at.getHours()).padStart(2, "0")}:${String(at.getMinutes()).padStart(2, "0")}`;
39
+ return new Date(now).toDateString() === at.toDateString() ? hm : `${at.getMonth() + 1}/${at.getDate()} ${hm}`;
40
+ }
41
+ /** A window as a few characters ("5h", "7d"); one whose length is not known says its label. */
42
+ export function windowTag(m) {
43
+ const ms = Number(m && m.windowMs);
44
+ if (!(ms > 0)) return usageText(m.label, m.labelI18n);
45
+ const h = ms / 3_600_000;
46
+ return h < 48 ? tn("usageWindowHours", { n: Math.round(h) }) : tn("usageWindowDays", { n: Math.round(h / 24) });
47
+ }
48
+ /** A time ahead in one unit, for the narrow column: "45m", "3h", "4d" (rounded down past an hour; the tooltip is exact). */
49
+ function coarseDuration(ms) {
50
+ const min = Math.max(1, Math.ceil(ms / 60_000));
51
+ if (min < 60) return tn("usageWindowMinutes", { n: min });
52
+ const h = Math.floor(min / 60);
53
+ return h < 48 ? tn("usageWindowHours", { n: h }) : tn("usageWindowDays", { n: Math.floor(h / 24) });
54
+ }
55
+ /** The soonest reset still ahead among `metrics`: { short: "↻ 2h", full: "resets in 2h 5m" }, or null when none is known. */
56
+ export function soonestReset(metrics, now = Date.now()) {
57
+ const at = metrics.map((m) => new Date(m.resetsAt || "").getTime()).filter((t) => Number.isFinite(t) && t > now).sort((a, b) => a - b)[0];
58
+ return at === undefined ? null : { short: `↻ ${coarseDuration(at - now)}`, full: resetText(new Date(at).toISOString()) };
59
+ }
60
+ export const level = (pct) => (pct >= 90 ? "crit" : pct >= 70 ? "warn" : "");
61
+ /** When a window resets, at the clock ("14:05", "10/19 14:05"), for a tooltip; "" when unknown or already past. */
62
+ export function resetClock(m, now = Date.now()) {
63
+ const at = new Date((m && m.resetsAt) || "").getTime();
64
+ return Number.isFinite(at) && at > now ? `↻ ${usageClock(m.resetsAt, now)}` : "";
65
+ }
66
+ /**
67
+ * One window on its own line: its few characters ("5h"), a full-width bar, the percent coloured as the full card, and
68
+ * when this window resets ("↻ 8m"; the user's ask, 2026-10-23: a week's reset was hidden behind the 5 h one's). A pool's
69
+ * line (#2240): the pool's name in place of the window, the reset of the window its percent is, every window (with its
70
+ * reset time) in the tooltip.
71
+ * Exported (#3321) so Settings → Accounts draws its 5h / week windows with this same meter and thresholds (70% / 90%): `m` needs
72
+ * `used` (0–100), `resetsAt` and either `windowMs` or `label`; `tag` overrides the window's few characters.
73
+ */
74
+ export function CompactMeter({ m, tag, title }) {
75
+ const bar = useRef(null);
76
+ const pct = Math.min(100, Math.max(0, m.used ?? 0)), cls = level(pct);
77
+ useLayoutEffect(() => { if (bar.current) bar.current.style.width = `${pct}%`; }, [pct]); // CSSOM (#1300)
78
+ const word = cls === "crit" ? tn("usageNear") : cls === "warn" ? tn("usageHigh") : "";
79
+ const reset = soonestReset([m]), clock = resetClock(m);
80
+ return html`<span class="u-cm" title=${title || `${usageText(m.label, m.labelI18n)}: ${pct.toFixed(0)}%${word ? ` (${word})` : ""}${clock ? ` · ${clock}` : ""}`}>
81
+ <span class="u-cm-tag">${tag || windowTag(m)}</span><span class="u-cm-bar"><span ref=${bar} class=${`u-cm-fill ${cls}`}></span></span>
82
+ <span class=${`u-cm-pct ${cls}`}>${pct.toFixed(0)}%</span>
83
+ <span class="u-cm-reset">${reset ? html`${reset.short}<span class="sr-only"> (${reset.full})</span>` : null}</span></span>`;
84
+ }
@@ -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": "此帳號類型沒有可用的額度資訊。",
@@ -14,8 +14,8 @@ register("webauth", {
14
14
  sent: "Sent — confirm it in your DM within 5 minutes.",
15
15
  reason_disabled: "Web authority is turned off.",
16
16
  reason_loopback_only: "Only this computer can authorize, and this browser is not on it.",
17
- reason_no_account: "This browser was not signed in as an account (agend web): sign in with /web to authorize.",
18
- reason_host_sign_in: "To speak as this computer's admin, sign in again on this computer with agend web --code.",
17
+ reason_no_account: "This browser has no chat-account identity. Open General in Telegram or Discord and send /web to sign in as your account.",
18
+ reason_host_sign_in: "This browser no longer has this computer's admin authority. This sign-in cannot be renewed on this page.",
19
19
  reason_not_admin: "Your account is not a fleet admin here.",
20
20
  reason_not_admin_session: "Guests can't authorize.",
21
21
  reason_token_rotated: "The dashboard's token changed: sign in again.",
@@ -43,8 +43,8 @@ register("webauth", {
43
43
  sent: "已送出——請在 5 分鐘內到私訊確認。",
44
44
  reason_disabled: "網頁授權已關閉。",
45
45
  reason_loopback_only: "只有這台電腦可以授權,而這個瀏覽器不在這台電腦上。",
46
- reason_no_account: "這個瀏覽器不是用帳號登入的(agend web):請用 /web 登入後再授權。",
47
- reason_host_sign_in: "要以這台電腦的管理者身分發言,請在這台電腦上執行 agend web --code 重新登入。",
46
+ reason_no_account: "這個瀏覽器沒有聊天帳號身分。請到 Telegram 或 Discord 的 General 傳送 /web,以你的帳號登入。",
47
+ reason_host_sign_in: "這個瀏覽器已沒有這台電腦的管理者授權。這個頁面無法重新取得這個登入的授權。",
48
48
  reason_not_admin: "你的帳號在這裡不是 fleet 管理者。",
49
49
  reason_not_admin_session: "訪客無法授權。",
50
50
  reason_token_rotated: "儀表板的 token 已變更:請重新登入。",
@@ -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;
@@ -8,6 +8,8 @@ export type UpdateProgressStage = "preparing" | "downloading" | "installed" | "s
8
8
  /** Missing on markers written before `/restart full`; those are updates. */
9
9
  export type UpdateProgressOperation = "update" | "full-restart";
10
10
  export interface UpdateProgressTarget {
11
+ /** S-92: "web" — a web-only fleet's Settings restart (no chat message; its notices are the dashboard's). */
12
+ surface?: "web";
11
13
  adapterId: string;
12
14
  chatId: string;
13
15
  threadId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-marker.js","sourceRoot":"","sources":["../src/update-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OA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AAM,UAAU,iBAAiB,CAAC,OAAe;IAC/C,IAAI,CAAC;QAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAC7E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAClE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,KAAK,UAAU;QAAE,OAAO,KAAK,CAAC;IAC/F,8EAA8E;IAC9E,MAAM,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC;IACnC,OAAO,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,wBAAwB,CAAC;AACpD,CAAC"}
@@ -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
  }