@songsid/agend 2.4.0-beta.20 → 2.4.0-beta.22

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 (256) hide show
  1. package/dist/agent-cli-instructions.md +1 -1
  2. package/dist/backend/claude-carry.d.ts +11 -0
  3. package/dist/backend/claude-carry.js +88 -6
  4. package/dist/backend/claude-carry.js.map +1 -1
  5. package/dist/backend/claude-code.js +3 -0
  6. package/dist/backend/claude-code.js.map +1 -1
  7. package/dist/build-provenance.json +1 -1
  8. package/dist/cache-ledger.d.ts +23 -21
  9. package/dist/cache-ledger.js +70 -6
  10. package/dist/cache-ledger.js.map +1 -1
  11. package/dist/cache-prices.d.ts +8 -6
  12. package/dist/cache-prices.js +12 -5
  13. package/dist/cache-prices.js.map +1 -1
  14. package/dist/cache-service.d.ts +9 -5
  15. package/dist/cache-service.js +202 -50
  16. package/dist/cache-service.js.map +1 -1
  17. package/dist/channel/mcp-tools.js +6 -4
  18. package/dist/channel/mcp-tools.js.map +1 -1
  19. package/dist/cli-audited.js +2 -1
  20. package/dist/cli-audited.js.map +1 -1
  21. package/dist/cli.js +4 -1
  22. package/dist/cli.js.map +1 -1
  23. package/dist/contact-auth-policy.js +1 -1
  24. package/dist/contact-auth-policy.js.map +1 -1
  25. package/dist/contact-auth-service.js +8 -2
  26. package/dist/contact-auth-service.js.map +1 -1
  27. package/dist/contact-auth-store.d.ts +3 -0
  28. package/dist/contact-auth-store.js +34 -8
  29. package/dist/contact-auth-store.js.map +1 -1
  30. package/dist/contact-auth-types.d.ts +3 -2
  31. package/dist/contact-auth-types.js.map +1 -1
  32. package/dist/contact-change-proposals.d.ts +47 -0
  33. package/dist/contact-change-proposals.js +132 -0
  34. package/dist/contact-change-proposals.js.map +1 -0
  35. package/dist/daemon.d.ts +31 -0
  36. package/dist/daemon.js +149 -2
  37. package/dist/daemon.js.map +1 -1
  38. package/dist/delivery-outbox.d.ts +10 -0
  39. package/dist/delivery-outbox.js +21 -0
  40. package/dist/delivery-outbox.js.map +1 -1
  41. package/dist/fleet-manager.d.ts +65 -1
  42. package/dist/fleet-manager.js +338 -20
  43. package/dist/fleet-manager.js.map +1 -1
  44. package/dist/general-knowledge/skills/concepts/SKILL.md +2 -1
  45. package/dist/general-knowledge/skills/hub/SKILL.md +45 -5
  46. package/dist/general-knowledge/skills/task-board/SKILL.md +4 -0
  47. package/dist/general-knowledge/skills/web-appearance/SKILL.md +1 -1
  48. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -6
  49. package/dist/hub/agent-pictures-model.d.ts +275 -0
  50. package/dist/hub/agent-pictures-model.js +103 -0
  51. package/dist/hub/agent-pictures-model.js.map +1 -0
  52. package/dist/hub/agent-pictures.d.ts +64 -0
  53. package/dist/hub/agent-pictures.js +255 -0
  54. package/dist/hub/agent-pictures.js.map +1 -0
  55. package/dist/hub/client.d.ts +4 -0
  56. package/dist/hub/client.js +23 -2
  57. package/dist/hub/client.js.map +1 -1
  58. package/dist/hub/compose/member.d.ts +14 -3
  59. package/dist/hub/compose/member.js +46 -10
  60. package/dist/hub/compose/member.js.map +1 -1
  61. package/dist/hub/compose/server.d.ts +6 -5
  62. package/dist/hub/compose/server.js +7 -3
  63. package/dist/hub/compose/server.js.map +1 -1
  64. package/dist/hub/direct-posts-model.d.ts +1 -0
  65. package/dist/hub/direct-posts-model.js +2 -0
  66. package/dist/hub/direct-posts-model.js.map +1 -0
  67. package/dist/hub/direct-posts.d.ts +36 -0
  68. package/dist/hub/direct-posts.js +145 -0
  69. package/dist/hub/direct-posts.js.map +1 -0
  70. package/dist/hub/http/compose.d.ts +5 -0
  71. package/dist/hub/http/compose.js +158 -20
  72. package/dist/hub/http/compose.js.map +1 -1
  73. package/dist/hub/http/core.d.ts +9 -1
  74. package/dist/hub/http/core.js +21 -1
  75. package/dist/hub/http/core.js.map +1 -1
  76. package/dist/hub/http/deps.d.ts +1 -0
  77. package/dist/hub/http/schema.js +7 -0
  78. package/dist/hub/http/schema.js.map +1 -1
  79. package/dist/hub/init/text.js +1 -1
  80. package/dist/hub/join/service.d.ts +2 -0
  81. package/dist/hub/join/service.js +7 -3
  82. package/dist/hub/join/service.js.map +1 -1
  83. package/dist/hub/member/agent-pictures.d.ts +76 -0
  84. package/dist/hub/member/agent-pictures.js +196 -0
  85. package/dist/hub/member/agent-pictures.js.map +1 -0
  86. package/dist/hub/member/direct-rooms.d.ts +9 -0
  87. package/dist/hub/member/direct-rooms.js +14 -0
  88. package/dist/hub/member/direct-rooms.js.map +1 -0
  89. package/dist/hub/member/room-ask.d.ts +22 -1
  90. package/dist/hub/member/room-ask.js +99 -5
  91. package/dist/hub/member/room-ask.js.map +1 -1
  92. package/dist/hub/member/room-asker-store.d.ts +48 -0
  93. package/dist/hub/member/room-asker-store.js +181 -0
  94. package/dist/hub/member/room-asker-store.js.map +1 -0
  95. package/dist/hub/member/room-post.d.ts +11 -10
  96. package/dist/hub/member/room-post.js +51 -7
  97. package/dist/hub/member/room-post.js.map +1 -1
  98. package/dist/hub/policy.d.ts +11 -2
  99. package/dist/hub/policy.js +60 -7
  100. package/dist/hub/policy.js.map +1 -1
  101. package/dist/hub/protocol.d.ts +254 -1
  102. package/dist/hub/protocol.js +20 -8
  103. package/dist/hub/protocol.js.map +1 -1
  104. package/dist/hub/representative.d.ts +38 -0
  105. package/dist/hub/representative.js +140 -12
  106. package/dist/hub/representative.js.map +1 -1
  107. package/dist/hub/room-asker-identity-model.d.ts +53 -0
  108. package/dist/hub/room-asker-identity-model.js +14 -0
  109. package/dist/hub/room-asker-identity-model.js.map +1 -0
  110. package/dist/hub/room-asker-identity.d.ts +22 -0
  111. package/dist/hub/room-asker-identity.js +43 -0
  112. package/dist/hub/room-asker-identity.js.map +1 -0
  113. package/dist/hub/rooms/agents.d.ts +2 -0
  114. package/dist/hub/rooms/agents.js +30 -3
  115. package/dist/hub/rooms/agents.js.map +1 -1
  116. package/dist/hub/rooms/asker-identity.d.ts +21 -0
  117. package/dist/hub/rooms/asker-identity.js +86 -0
  118. package/dist/hub/rooms/asker-identity.js.map +1 -0
  119. package/dist/hub/rooms/direct-view.d.ts +3 -2
  120. package/dist/hub/rooms/direct-view.js +23 -8
  121. package/dist/hub/rooms/direct-view.js.map +1 -1
  122. package/dist/hub/rooms/office.d.ts +27 -0
  123. package/dist/hub/rooms/office.js +12 -2
  124. package/dist/hub/rooms/office.js.map +1 -1
  125. package/dist/hub/rooms/service.d.ts +38 -1
  126. package/dist/hub/rooms/service.js +56 -3
  127. package/dist/hub/rooms/service.js.map +1 -1
  128. package/dist/hub/rooms/types.d.ts +5 -2
  129. package/dist/hub/rooms.d.ts +9 -0
  130. package/dist/hub/rooms.js +97 -26
  131. package/dist/hub/rooms.js.map +1 -1
  132. package/dist/hub/runtime.d.ts +1 -1
  133. package/dist/hub/server.js +24 -2
  134. package/dist/hub/server.js.map +1 -1
  135. package/dist/hub/session-directory-transition.d.ts +1 -0
  136. package/dist/hub/session-directory-transition.js +15 -9
  137. package/dist/hub/session-directory-transition.js.map +1 -1
  138. package/dist/hub/session-limits.d.ts +58 -0
  139. package/dist/hub/session-limits.js +121 -0
  140. package/dist/hub/session-limits.js.map +1 -0
  141. package/dist/hub/sessions.d.ts +1 -1
  142. package/dist/hub/sessions.js +13 -7
  143. package/dist/hub/sessions.js.map +1 -1
  144. package/dist/hub/settings-directory-decision.js +1 -1
  145. package/dist/hub/settings-directory-decision.js.map +1 -1
  146. package/dist/hub/types.d.ts +9 -2
  147. package/dist/hub-character-plan.d.ts +47 -0
  148. package/dist/hub-character-plan.js +70 -0
  149. package/dist/hub-character-plan.js.map +1 -0
  150. package/dist/hub-contact-windows.d.ts +13 -1
  151. package/dist/hub-contact-windows.js +35 -2
  152. package/dist/hub-contact-windows.js.map +1 -1
  153. package/dist/hub-picture-reduce.d.ts +34 -0
  154. package/dist/hub-picture-reduce.js +101 -0
  155. package/dist/hub-picture-reduce.js.map +1 -0
  156. package/dist/hub-picture-worker.d.ts +1 -0
  157. package/dist/hub-picture-worker.js +19 -0
  158. package/dist/hub-picture-worker.js.map +1 -0
  159. package/dist/hub-report-target.d.ts +6 -0
  160. package/dist/hub-report-target.js +6 -0
  161. package/dist/hub-report-target.js.map +1 -1
  162. package/dist/locale.js +357 -265
  163. package/dist/locale.js.map +1 -1
  164. package/dist/ls-rows.d.ts +2 -0
  165. package/dist/ls-rows.js.map +1 -1
  166. package/dist/needs-you.d.ts +6 -0
  167. package/dist/needs-you.js +3 -1
  168. package/dist/needs-you.js.map +1 -1
  169. package/dist/outbound-handlers.d.ts +8 -0
  170. package/dist/outbound-handlers.js +53 -6
  171. package/dist/outbound-handlers.js.map +1 -1
  172. package/dist/outbound-schemas.d.ts +2 -0
  173. package/dist/outbound-schemas.js +6 -4
  174. package/dist/outbound-schemas.js.map +1 -1
  175. package/dist/runtime-cli-install.js +4 -4
  176. package/dist/runtime-cli-install.js.map +1 -1
  177. package/dist/task-board-tool.d.ts +17 -0
  178. package/dist/task-board-tool.js +58 -6
  179. package/dist/task-board-tool.js.map +1 -1
  180. package/dist/tips.js +3 -3
  181. package/dist/tool-permissions.js +2 -2
  182. package/dist/tool-permissions.js.map +1 -1
  183. package/dist/ui/agent-export-strings.js +1 -1
  184. package/dist/ui/agent-page-strings.js +5 -5
  185. package/dist/ui/contact-auth-client.js +2 -2
  186. package/dist/ui/contact-tool-groups.js +1 -1
  187. package/dist/ui/fleet-cache.js +5 -5
  188. package/dist/ui/fleet-canvas.js +3 -2
  189. package/dist/ui/fleet-office-card.js +46 -7
  190. package/dist/ui/fleet-office-dialogue.d.ts +6 -3
  191. package/dist/ui/fleet-office-dialogue.js +13 -3
  192. package/dist/ui/fleet-office-layout.js +15 -15
  193. package/dist/ui/fleet-office-model.js +3 -2
  194. package/dist/ui/fleet-office-overview.js +1 -1
  195. package/dist/ui/fleet-office-pack.d.ts +17 -7
  196. package/dist/ui/fleet-office-pack.js +106 -38
  197. package/dist/ui/fleet-office-play.js +11 -4
  198. package/dist/ui/fleet-office-skin.js +41 -11
  199. package/dist/ui/fleet-office-store.js +10 -1
  200. package/dist/ui/fleet-office-talk.js +423 -0
  201. package/dist/ui/fleet-office-view.js +58 -17
  202. package/dist/ui/fleet-office-zones.js +20 -12
  203. package/dist/ui/fleet-office.js +250 -65
  204. package/dist/ui/fleet-org.js +3 -3
  205. package/dist/ui/fleet-task-common.js +3 -3
  206. package/dist/ui/fleet-task-sort.js +88 -0
  207. package/dist/ui/fleet-task-view.js +38 -9
  208. package/dist/ui/fleet-tasks.js +47 -15
  209. package/dist/ui/fleet-usage.js +6 -6
  210. package/dist/ui/hub-admin-overview.js +1 -1
  211. package/dist/ui/hub-chat-store.js +4 -3
  212. package/dist/ui/hub-chat-strings.js +3 -1
  213. package/dist/ui/hub-client.js +3 -0
  214. package/dist/ui/hub-my-agents-strings.js +2 -2
  215. package/dist/ui/hub-my-agents.js +3 -0
  216. package/dist/ui/hub-room-composer.js +24 -4
  217. package/dist/ui/hub-room-members.js +7 -3
  218. package/dist/ui/hub-room-office.js +71 -2
  219. package/dist/ui/hub-room-presence.js +14 -0
  220. package/dist/ui/hub-room-strings.js +18 -2
  221. package/dist/ui/hub-room-thread.js +82 -13
  222. package/dist/ui/hub-room-working.js +37 -0
  223. package/dist/ui/hub-session-limits.js +79 -0
  224. package/dist/ui/panel-fleet.js +5 -5
  225. package/dist/ui/panel-hub.js +41 -6
  226. package/dist/ui/panel-log.js +3 -3
  227. package/dist/ui/panel-needs.js +28 -2
  228. package/dist/ui/panel-runtimes.js +2 -2
  229. package/dist/ui/runtime-cli-install.js +1 -1
  230. package/dist/ui/runtime-update-status.js +1 -1
  231. package/dist/ui/settings-access-strings.js +1 -1
  232. package/dist/ui/settings-hub-setup-strings.js +1 -1
  233. package/dist/ui/settings-layout.js +2 -2
  234. package/dist/ui/settings-named-test.js +16 -16
  235. package/dist/ui/settings-public-session-strings.js +2 -2
  236. package/dist/ui/settings-revoke-strings.js +1 -1
  237. package/dist/ui/settings-shared-strings.js +2 -2
  238. package/dist/ui/settings-strings.js +40 -40
  239. package/dist/ui/shared/app-shell.js +1 -1
  240. package/dist/ui/shared/app.css +106 -6
  241. package/dist/ui/shared/chat-strings.js +9 -9
  242. package/dist/ui/shared/hub-owner.css +5 -0
  243. package/dist/ui/shared/hub-rooms-u2.css +3 -0
  244. package/dist/ui/shared/instance-nav.js +36 -2
  245. package/dist/ui/shared/office-dialogue.css +110 -0
  246. package/dist/ui/shared/task-board.css +103 -7
  247. package/dist/ui/shared/view-strings.js +27 -9
  248. package/dist/web-api.d.ts +5 -0
  249. package/dist/web-api.js +29 -0
  250. package/dist/web-api.js.map +1 -1
  251. package/dist/web-office-skins.d.ts +8 -2
  252. package/dist/web-office-skins.js +33 -14
  253. package/dist/web-office-skins.js.map +1 -1
  254. package/dist/web-office-store.js +5 -3
  255. package/dist/web-office-store.js.map +1 -1
  256. package/package.json +1 -1
@@ -372,11 +372,16 @@ export function rememberLogin(login, password) {
372
372
  }
373
373
 
374
374
  /** Load a list from the client; `reload` reads it again. null while loading, { error } on failure. */
375
- function useRead(read) {
375
+ export function useRead(read) {
376
376
  const [data, setData] = useState(null);
377
- const live = useRef(true);
378
- const failed = (error) => { if (live.current) setData((old) => ({ ...old, error })); };
379
- const reload = () => read().then((r) => { if (live.current) { if (r.ok) setData(r); else failed(errText(r)); } }, () => failed(hw("errFailed")));
377
+ const live = useRef(true), latest = useRef(0);
378
+ // M-3567 (Prism): only the newest read may answer. A return reads again while the first read can still be on its way; that
379
+ // older answer, success or failure, landing last must not undo the fresh one (a grant given while away would vanish).
380
+ const reload = () => {
381
+ const n = ++latest.current, current = () => live.current && n === latest.current;
382
+ const failed = (error) => { if (current()) setData((old) => ({ ...old, error })); };
383
+ return read().then((r) => { if (current()) { if (r.ok) setData(r); else failed(errText(r)); } }, () => failed(hw("errFailed")));
384
+ };
380
385
  useEffect(() => { live.current = true; reload(); return () => { live.current = false; }; }, []);
381
386
  return [data, reload];
382
387
  }
@@ -405,7 +410,32 @@ function noteUnread(d) {
405
410
  // Read through (0): its @ mark goes too; the next list read has the Hub's own answer for both.
406
411
  roomsStore.set({ ...s, rooms: s.rooms.map((r) => (r.id === d.roomId ? { ...r, unread: n, ...(n === 0 ? { mentioned: false } : {}) } : r)) });
407
412
  }
408
- /** Keeps the list fresh while something shows it (every ROOMS_MS, paused while the page is hidden). */
413
+ /** M-3567: the gap between a page left and a page back (another tab, another window) is when a grant or a new room lands. */
414
+ export const RETURN_MIN_MS = 5_000;
415
+ /**
416
+ * M-3567: `fn` when the person comes back to the page — it is shown again (visibilitychange) or its window gains focus —
417
+ * at most once per RETURN_MIN_MS (both fire on one return). The 30 s poll pauses while the page is hidden, so a grant
418
+ * given meanwhile showed only after a reload.
419
+ */
420
+ export function useOnReturn(fn) {
421
+ const latest = useRef(fn);
422
+ latest.current = fn;
423
+ useEffect(() => {
424
+ if (typeof document === "undefined") return undefined;
425
+ let last = -Infinity;
426
+ const back = () => {
427
+ if (document.hidden) return;
428
+ const now = typeof performance !== "undefined" ? performance.now() : Date.now(); // a gap, not a date
429
+ if (now - last < RETURN_MIN_MS) return;
430
+ last = now; latest.current();
431
+ };
432
+ document.addEventListener("visibilitychange", back);
433
+ const w = typeof window !== "undefined" ? window : null;
434
+ w?.addEventListener?.("focus", back);
435
+ return () => { document.removeEventListener("visibilitychange", back); w?.removeEventListener?.("focus", back); };
436
+ }, []);
437
+ }
438
+ /** Keeps the list fresh while something shows it (every ROOMS_MS, paused while the page is hidden; again on return). */
409
439
  function useRooms() {
410
440
  const rs = useStore(roomsStore);
411
441
  useEffect(() => {
@@ -413,6 +443,7 @@ function useRooms() {
413
443
  const tick = setInterval(() => { if (session && (typeof document === "undefined" || !document.hidden)) refreshRooms(); }, ROOMS_MS);
414
444
  return () => clearInterval(tick);
415
445
  }, []);
446
+ useOnReturn(() => { if (session) refreshRooms(); });
416
447
  return rs;
417
448
  }
418
449
  // A room's id as the list gives it (today's are UUIDs; a Hub with rooms may name them otherwise): matched against the list
@@ -655,6 +686,8 @@ function HubChats() {
655
686
  function ChatLauncher() {
656
687
  const s = useSession(), rs = useRooms();
657
688
  const [cat, reloadCat] = useRead(() => hubClient().catalog());
689
+ // M-3567: a grant given while the page was away (a Team's, a person's) is listed on return, with no reload.
690
+ useOnReturn(() => reloadCat());
658
691
  const [inRooms, setInRooms] = useState([]);
659
692
  const [q, setQ] = useState(""), [busy, setBusy] = useState(false), [msg, setMsg] = useState(null), [newRoom, setNewRoom] = useState(false);
660
693
  const groups = rs.rooms.filter((r) => r.kind === "group" && !r.archived).sort((a, b) => (b.lastAt || 0) - (a.lastAt || 0)).slice(0, 5);
@@ -729,7 +762,7 @@ function HubRoomLoading({ error } = {}) {
729
762
  }
730
763
  /** The thread's words are the fleet chat's; its delivery marks say the Hub's stages. */
731
764
  const threadT = (key, ...a) => (key.startsWith("chat.tick_") ? hc(key.slice(5), ...a) : t(key, ...a));
732
- const REASONS = { expired: "reason_expired", revoked: "reason_revoked", frozen: "reason_frozen", withdrawn: "reason_withdrawn" };
765
+ const REASONS = { "share-needs-reshare": "reason_reshare", expired: "reason_expired", revoked: "reason_revoked", frozen: "reason_frozen", withdrawn: "reason_withdrawn" };
733
766
  const reasonText = (code, stage) => (stage === "uncertain" ? hc("uncertain") : hc("notAnswered", hc(REASONS[code] || "reason_unknown")));
734
767
  async function copyText(text) { try { await navigator.clipboard.writeText(text); return true; } catch { return false; } }
735
768
 
@@ -1348,6 +1381,8 @@ function HubAdminPage({ groups = false, companyJoin = false, directory = false }
1348
1381
  ${fullAdmin && teamsLive() ? html`<${LazyRoomPart} load=${() => import("./hub-teams.js")} name="HubTeamsEntry" props=${{ client: hubClient() }} />` : null}
1349
1382
  ${fullAdmin && roomsLive() ? html`<${LazyRoomPart} load=${() => import("./hub-admin-rooms.js")} name="AdminRooms" props=${{ client: hubClient() }} />` : null}
1350
1383
  ${fullAdmin && assistantSession?.features?.includes("room-assistant-v1") && hubClient().assistantAdminV1 === true ? html`<${LazyAssistantAdmin} />` : null}
1384
+ ${/* M-3592: how long a sign-in lasts; nothing from a Hub without the setting (the card's read fails). */ ""}
1385
+ ${fullAdmin ? html`<${LazyRoomPart} load=${() => import("./hub-session-limits.js")} name="HubSessionLimitsCard" props=${{ client: hubClient() }} />` : null}
1351
1386
  ${view.error ? html`<${ErrorState} message=${view.error} onRetry=${reload} />` : null}
1352
1387
  ${msg ? html`<p class="err" role="alert">${msg}</p>` : null}
1353
1388
  ${/* M-3141 (versions spec §3.1): the recommended version, a small card above the list. */ ""}
@@ -63,8 +63,8 @@ register("log", {
63
63
  "zh-TW": {
64
64
  offTitle: "紀錄未開啟",
65
65
  offBody: "開啟後可逐步看到每個 agent 的工作:收到的要求、回覆、每次工具呼叫的參數與結果、錯誤,以及 fleet 事件。只在這個分頁開著時讀取 agent 自己的對話紀錄,機密值會遮蔽。",
66
- enable: "開啟紀錄", enabling: "等待 fleet admin 確認,確認卡片上有說明確認方式…", enabled: "紀錄已開啟。",
67
- enableFailed: "紀錄沒有開啟:{0}", offPublic: "fleet admin 可以在「設定 → 網頁儀表板」開啟。",
66
+ enable: "開啟紀錄", enabling: "等待 fleet 管理員確認,確認卡片上有說明確認方式…", enabled: "紀錄已開啟。",
67
+ enableFailed: "紀錄沒有開啟:{0}", offPublic: "fleet 管理員可以在「設定 → 網頁儀表板」開啟。",
68
68
  unsupported: "{0} 沒有 AgEnD 讀得到的對話紀錄,所以這裡只顯示 fleet 事件。「檢視」可以看它的畫面。",
69
69
  kiroWhy: "只有在 AgEnD 能證明 kiro 目前所在的對話時,才會顯示它自己的步驟。{0}目前先顯示 fleet 事件。",
70
70
  kiro_not_running: "它沒有在執行。",
@@ -88,7 +88,7 @@ register("log", {
88
88
  ev_backend_unreachable: "連不到 CLI", ev_startup_backend_unreachable: "啟動時連不到 CLI", ev_backend_launch_warning: "啟動警告",
89
89
  ev_clear_action: "對話已清除", ev_normal_exit_action: "已結束", ev_reply_drop_detected: "有回覆遺失",
90
90
  ev_reply_drop_recovered: "遺失的回覆已補回", ev_reply_drop_unrecovered: "遺失的回覆沒有補回",
91
- ev_supervision_ended: "監督結束", ev_tmux_server_crash: "tmux 當掉", ev_malformed_tool_call: "格式錯誤的工具呼叫", ev_health_check_error: "健康檢查錯誤", ev_context_lost: "改用全新對話:context 遺失", ev_working_state: "工作狀態紀錄", ev_kiro_reconcile: "Kiro 對話接續處理",
91
+ ev_supervision_ended: "監督結束", ev_tmux_server_crash: "tmux 當掉", ev_malformed_tool_call: "格式錯誤的工具呼叫", ev_health_check_error: "健康檢查錯誤", ev_context_lost: "改用全新對話:上下文遺失", ev_working_state: "工作狀態紀錄", ev_kiro_reconcile: "Kiro 對話接續處理",
92
92
  },
93
93
  });
94
94
  /** Why a kiro Log shows fleet events only (kiro-log-gate.ts): each is worded above. */
@@ -44,6 +44,9 @@ register("needs", {
44
44
  otherEmpty: "No other items are waiting for you.", title: "Needs you", empty: "Nothing needs you right now", emptyHint: "When an agent waits for you, it shows here — and in your chat app's General.", emptyHintWeb: "When an agent waits for you, it shows here.",
45
45
  open: "Open chat", kiroOpen: "Open agent", kiroMigration: "Migration instructions", openCard: "Open the card", noAssignee: "Task board (nobody assigned)", fleetSignIns: "AI accounts", signIn: "Connect account",
46
46
  gap: "not wrapped up: {0}", gapUnchecked: "{0} checklist item(s) unchecked", gapNoResult: "no result", gapJoin: ", ", acknowledge: "Acknowledge", acknowledging: "Acknowledging…", answering: "Answering…",
47
+ hubRetry: "Try again", hubRetrying: "Trying again…", hubRetryDone: "Asked the Hub again.",
48
+ hubRetryGone: "This item has already changed. The list will refresh.", hubRetryNot: "This one can't be tried again: the Hub refused it, or the agent changed. Ask the person to send the question again.",
49
+ hubHoldDetail: "The Hub could not confirm this question before it reached the agent. Try again asks the Hub again; nothing is sent without its OK.",
47
50
  ageNow: "just now", ageMin: "{0} min ago", ageHour: "{0} h ago", ageDay: "{0} d ago",
48
51
  notifySection: "This device", notifyTitle: "Notify me on this device", notifyOn: "Notifications are on for this browser while a tab is open.",
49
52
  notifyOff: "Get a desktop notification when something new needs you while this tab is in the background.",
@@ -69,6 +72,9 @@ register("needs", {
69
72
  otherEmpty: "沒有其他待處理事項。", title: "等你處理", empty: "目前沒有需要你處理的事", emptyHint: "agent 在等你時,會出現在這裡——也會出現在聊天 app 的 General。", emptyHintWeb: "agent 在等你時,會出現在這裡。",
70
73
  open: "開啟聊天", kiroOpen: "開啟 Agent", kiroMigration: "遷移說明", openCard: "打開卡片", noAssignee: "任務看板(沒有負責人)", fleetSignIns: "AI 帳號", signIn: "連接帳號",
71
74
  gap: "還沒補齊:{0}", gapUnchecked: "還有 {0} 項沒勾", gapNoResult: "沒有產出總結", gapJoin: "、", acknowledge: "確認", acknowledging: "確認中…", answering: "回覆中…",
75
+ hubRetry: "再試一次", hubRetrying: "重試中…", hubRetryDone: "已重新詢問 Hub。",
76
+ hubRetryGone: "這個項目已經有變化,清單會重新整理。", hubRetryNot: "這則無法再試:Hub 已拒絕,或 Agent 已變更。請提問的人重新送出問題。",
77
+ hubHoldDetail: "Hub 在問題交給 Agent 之前無法確認。按「再試一次」會重新詢問 Hub,未經 Hub 同意不會送出。",
72
78
  ageNow: "剛剛", ageMin: "{0} 分鐘前", ageHour: "{0} 小時前", ageDay: "{0} 天前",
73
79
  notifySection: "這台裝置", notifyTitle: "在這台裝置通知我", notifyOn: "這個瀏覽器的通知已開啟(需要開著分頁)。",
74
80
  notifyOff: "分頁在背景時,有新的事等你處理就跳出桌面通知。",
@@ -107,11 +113,14 @@ function itemReason(item) {
107
113
  * review): a second click in the same turn, the panel left and opened again, or a list that has not caught up yet all
108
114
  * see the same claim.
109
115
  * - `acks[id]`: "busy" while its POST is out, "done" once the server took it, until the server's next list drops the
110
- * item (then forgotten); a failure gives it back.
116
+ * item (then forgotten); a failure gives it back. M-3632: a held Hub item's Try again is claimed per hold, under
117
+ * hubRetryKey(item) (its id and since): the same question held again is a new hold with its own button.
111
118
  * - `prompts[nonce]`: the same, for a prompt answered while the page has no chat store yet (before Chat boots). When
112
119
  * it arrives, each such claim is handed to it (holdPrompt) — one claim, never two — and its outcome settles there.
113
120
  */
114
121
  export const claims = createStore({ acks: {}, prompts: {} });
122
+ /** M-3632: one held Hub question's hold, as Try again claims it (a re-hold of the same question has a newer `since`). */
123
+ export const hubRetryKey = (item) => `${item.id}@${item.since}`;
115
124
  const chatOwner = () => appStore.get().chatOwner || null;
116
125
  let handedTo = null;
117
126
  appStore.subscribe((st) => {
@@ -124,7 +133,7 @@ appStore.subscribe((st) => {
124
133
  }
125
134
  }
126
135
  const items = Array.isArray(st.needs) ? st.needs : [];
127
- const listed = new Set(items.map((i) => i.id)), nonces = new Set(items.map((i) => i.nonce).filter(Boolean));
136
+ const listed = new Set([...items.map((i) => i.id), ...items.filter((i) => i.hubRetry).map(hubRetryKey)]), nonces = new Set(items.map((i) => i.nonce).filter(Boolean));
128
137
  const c = claims.get();
129
138
  const acks = Object.fromEntries(Object.entries(c.acks).filter(([id, v]) => v === "busy" || listed.has(id)));
130
139
  const prompts = Object.fromEntries(Object.entries(c.prompts).filter(([n, v]) => v === "busy" || nonces.has(n)));
@@ -279,17 +288,34 @@ function NeedsItem({ item, nowMs, owner }) {
279
288
  setClaim("acks", item.id, res && res.ok ? "done" : null);
280
289
  toast((body && (body.message || body.error)) || t("app.failed"), !!(res && res.ok));
281
290
  };
291
+ // M-3632: held Hub work → back through the Hub's checks (the server re-asks the Hub for its lease; never delivered blind).
292
+ const hubKey = hubRetryKey(item), hubAck = item.hubRetry ? c.acks[hubKey] : undefined;
293
+ const retryHub = async () => {
294
+ if (claims.get().acks[hubKey]) return; // this hold's claim, taken synchronously
295
+ setClaim("acks", hubKey, "busy");
296
+ let res = null, body = null;
297
+ try {
298
+ res = await fetch("/ui/needs/hub-retry", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ id: item.id }) });
299
+ body = await res.json().catch(() => ({}));
300
+ } catch { body = null; }
301
+ const ok = !!(res && res.ok);
302
+ setClaim("acks", hubKey, ok ? "done" : null);
303
+ toast(ok ? tn("hubRetryDone") : res && res.status === 404 ? tn("hubRetryGone") : res && res.status === 409 ? tn("hubRetryNot") : t("app.failed"), ok);
304
+ };
282
305
  return html`<article data-trust="permission" class=${`n-item${BAD.has(item.reason) ? " bad" : ""}`}>
283
306
  <span class="n-icon"><${Icon} name=${ICON[item.type] || "alert"} size=${18} /></span>
284
307
  <div class="n-body">
285
308
  <div class="n-title"><strong>${item.type==='host'?hostAlertName(item.hostAlert):itemReason(item)}</strong><span class="n-age">${item.type==='host'?hostAlertText('started')+age(item.since, nowMs):age(item.since, nowMs)}</span></div>
286
309
  ${item.type==='host'&&item.hostAlert?html`<p class="n-detail">${hostAlertText(item.hostAlert.level)} · ${hostAlertDescription(item.hostAlert)}</p>`:item.type==='host'?html`<p class="n-detail">${hostAlertText('failed')}</p>`:detailOf(item)?html`<p class="n-detail">${detailOf(item)}</p>`:null}
310
+ ${item.type === "hub" && item.hubRetry ? html`<p class="n-detail">${tn("hubHoldDetail")}</p>` : null}
287
311
  ${item.type === "hub" && item.hubProposal ? html`<p class="n-detail">${item.hubProposal.action}</p><pre>${item.hubProposal.arguments}</pre><p class="n-detail">${item.hubProposal.consequences}</p>` : null}
288
312
  ${item.generalLocation ? html`<${GeneralLocation} name=${item.instance} attentionOnly=${true} />` : null}
289
313
  ${item.type==='host'?(item.hostAlert?html`<${HostAlertActions} record=${item.hostAlert}/>`:html`<a class="btn btn-sm" href=${fleetPath('host-health')}>${hostAlertText('open')}</a>`):null}
290
314
  <div class="n-actions">
291
315
  ${item.type === "prompt" && Array.isArray(item.actions) ? item.actions.filter((a) => !a.input).map((a) => html`<button key=${a.id} type="button" class="btn btn-sm"
292
316
  disabled=${promptBusy} onClick=${() => answer(a.id)}>${(p ? p.busy && !p.confirming : fallback === "busy") ? tn("answering") : a.label}</button>`) : null}
317
+ ${item.type === "hub" && item.hubRetry ? html`<button type="button" class="btn btn-sm btn-primary" disabled=${!!hubAck} onClick=${retryHub}>
318
+ <${Icon} name="restart" size=${14} />${hubAck === "busy" ? tn("hubRetrying") : tn("hubRetry")}</button>` : null}
293
319
  ${item.type === "delivery" || item.type === "missed" ? html`<button type="button" class="btn btn-sm" disabled=${!!ack} onClick=${acknowledge}>
294
320
  <${Icon} name="check" size=${14} />${ack === "busy" ? tn("acknowledging") : tn("acknowledge")}</button>` : null}
295
321
  ${(item.reason === "auth_paused" || item.reason === "backend_signin") && item.signIn && signInOffered() ? html`<button type="button" class="btn btn-sm btn-primary" onClick=${() => openSignIn(item.signIn)}>${tn("signIn")}</button>` : null}
@@ -77,7 +77,7 @@ register("machines", {
77
77
  machines:"已連接的電腦", cli:"CLI", version:"Runtime 版本", platform:"平台",
78
78
  switches:"這個 Fleet 可以使用", switchesNote:"開啟時,和其他存取設定一樣需要 Fleet 管理員確認;關閉不需 Fleet 管理員確認,你在這裡確認後就會立即生效。",
79
79
  windowsCli:"使用這台電腦 Windows 上的 CLI", windowsCliHelp:"Agent 可以使用這台電腦 Windows 上安裝的 CLI(例如 Codex 或 Claude Code),沿用你在 Windows 的登入。需要 Windows Node.js。",
80
- remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows 電腦只執行一個小 runner,不是 Fleet;你在這裡核准後,Agent 就能使用那台電腦的 CLI 與檔案。那台電腦必須能用 HTTPS 位址連到這個 Fleet,做法見下方說明。",
80
+ remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows 電腦只執行一個小執行程式,不是 Fleet;你在這裡核准後,Agent 就能使用那台電腦的 CLI 與檔案。那台電腦必須能用 HTTPS 位址連到這個 Fleet,做法見下方說明。",
81
81
  remoteRuntimeDocs:"完整說明", setByEnv:"由環境變數設定({0}={1})。若要變更,請從 AgEnD 的環境移除它並重新啟動 AgEnD。",
82
82
  switchPending:"等待 Fleet 管理員確認,確認後就會開啟。", switchFailed:"無法變更此設定:{0}", switchesUnavailable:"這些開關只能在這個 Fleet 自己的儀表板上變更。",
83
83
  windowsCliOffAsk:"要關閉這台電腦的 Windows CLI 嗎?這台電腦上進行中的 Windows Agent 回合會停止,這些 Agent 會保持停止,直到你再次開啟。",
@@ -195,7 +195,7 @@ register("machines", {
195
195
  });
196
196
  register("machines", {
197
197
  en: { profilesTitle:"Claude accounts", profileDefault:"Default", profilesNone:"No Claude accounts reported yet.", profilesHow:"To add one, run agend-runtime login claude-code NAME on that computer, then choose Detect again in CLI diagnostics.", profilesOld:"Update the Runtime on that computer to choose a Claude account for an agent.", profilesList:"Claude accounts on {0}", profileSignedIn:"Signed in", profileSignedOut:"Not signed in", profileUnchecked:"Not checked", capability_credentialProfiles:"Claude accounts (credential profiles)" },
198
- "zh-TW": { profilesTitle:"Claude 帳號", profileDefault:"預設", profilesNone:"尚未回報任何 Claude 帳號。", profilesHow:"要新增,請在那台電腦執行 agend-runtime login claude-code 名稱,再在「CLI 診斷」按「重新偵測」。", profilesOld:"請更新那台電腦上的 Runtime,才能為 Agent 選擇 Claude 帳號。", profilesList:"{0} 上的 Claude 帳號", profileSignedIn:"已登入", profileSignedOut:"尚未登入", profileUnchecked:"未確認", capability_credentialProfiles:"Claude 帳號(credential profile)" },
198
+ "zh-TW": { profilesTitle:"Claude 帳號", profileDefault:"預設", profilesNone:"尚未回報任何 Claude 帳號。", profilesHow:"要新增,請在那台電腦執行 agend-runtime login claude-code 名稱,再在「CLI 診斷」按「重新偵測」。", profilesOld:"請更新那台電腦上的 Runtime,才能為 Agent 選擇 Claude 帳號。", profilesList:"{0} 上的 Claude 帳號", profileSignedIn:"已登入", profileSignedOut:"尚未登入", profileUnchecked:"未確認", capability_credentialProfiles:"Claude 帳號(帳號設定檔)" },
199
199
  });
200
200
  function CredentialProfiles({ machine }) {
201
201
  const view = credentialProfileView(machine);
@@ -83,7 +83,7 @@ register("runtimeInstall", {
83
83
  doneLatest: "{0} is now {1}, the latest release the vendor serves (not audited by AgEnD).", cardLabelUpdateLatest: "Update {0} on {1} to the latest release (not audited by AgEnD)" },
84
84
  "zh-TW": { updateLatest: "更新到最新版(未經盤點)",
85
85
  latestInfo: "已安裝 {0}。AgEnD 會安裝 {1},這是它稽核過的版本。按「更新」會更新到廠商釋出的最新版,這個版本 AgEnD 尚未稽核:這個 CLI 會自己更新,無法指定版本。",
86
- askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD 尚未稽核。那台電腦會下載廠商自己的 manifest 指定的版本(不執行廠商的更新程式),比對檔案雜湊與發行者的 Windows 數位簽章,並放在 Runtime 自己的資料夾。任何一項不符就不會改變任何東西。那台電腦會留下更新紀錄。",
86
+ askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD 尚未稽核。那台電腦會下載廠商自己的資訊清單指定的版本(不執行廠商的更新程式),比對檔案雜湊與發行者的 Windows 數位簽章,並放在 Runtime 自己的資料夾。任何一項不符就不會改變任何東西。那台電腦會留下更新紀錄。",
87
87
  doneLatest: "{0} 現在是 {1},廠商釋出的最新版(未經 AgEnD 盤點)。", cardLabelUpdateLatest: "在 {1} 上把 {0} 更新到最新版(未經 AgEnD 盤點)" },
88
88
  });
89
89
 
@@ -19,7 +19,7 @@ register("runtimeUpdate", {
19
19
  },
20
20
  "zh-TW": {
21
21
  unknown: "無法取得更新狀態", current: "與配對 AgEnD 的版本相符", pending: "更新待執行:{0}/套件 {1}",
22
- failed: "更新失敗:{0}/套件 {1}", pendingHint: "正在等待閒置,執行中的 pane 與傳遞會保留。",
22
+ failed: "更新失敗:{0}/套件 {1}", pendingHint: "正在等待閒置,執行中的窗格與傳遞會保留。",
23
23
  failedHint: "已保留原本程式。配對的 AgEnD 提供不同雜湊前,不會重試此套件。",
24
24
  unmanaged: "使用一行安裝指令重新安裝一次,即可啟用自動更新。",
25
25
  shared: "此安裝目錄由多個 AgEnD 共用。請為每個配對的 AgEnD 使用獨立安裝目錄,再啟用自動更新。",
@@ -35,7 +35,7 @@ register("settingsLayout", {
35
35
  revAuthorityRule: "Signing in a device and authorizing an action are judged separately. When this is off, even a verified web session cannot approve actions that need authority.",
36
36
  },
37
37
  "zh-TW": {
38
- revAuthorityBriefWeb: "這個 fleet 未連接聊天平台。主機 owner 可直接驗證;遠端工作階段需透過驗證器確認擁有者身分。",
38
+ revAuthorityBriefWeb: "這個 fleet 未連接聊天平台。主機擁有者可直接驗證;遠端工作階段需透過驗證器確認擁有者身分。",
39
39
  revAuthorityEnabledWeb: "允許已驗證擁有者的網頁授權",
40
40
  revAuthorityRule: "裝置登入與擁有者授權分開判斷。關閉後,已驗證的網頁工作階段也不能核准需授權的操作。",
41
41
  },
@@ -60,7 +60,7 @@ register("hubSetup", {
60
60
  created: "Hub 已建立", createdHint: "設定已密封。請重新整理設定頁確認啟動狀態,再開啟 Hub,以指定的目錄帳號登入。", open: "開啟 Hub 登入", reload: "重新整理設定頁", expires: "這次檢查的到期時間",
61
61
  invalid: "請檢查位址、連接埠與必填欄位。目錄必須使用 LDAPS,憑證必須是有效的 PEM。",
62
62
  directoryError: "無法驗證目錄連線或管理員。請檢查服務帳號、CA 與登入名稱後再試。",
63
- network: "監聽位址無法使用,或連接埠已被占用。請使用這台電腦上的位址及可用、不同的連接埠。", trust: "請核對並確認每一張 CA 憑證的指紋後繼續。",
63
+ network: "監聽位址無法使用,或連接埠已被佔用。請使用這台電腦上的位址及可用、不同的連接埠。", trust: "請核對並確認每一張 CA 憑證的指紋後繼續。",
64
64
  expired: "這次檢查已到期。請返回並重新測試。", stale: "設定過程中其他設定已變更。請重新整理後再開始。", denied: "只有這台電腦自己的登入能設定 Hub。請到執行 AgEnD 的那台電腦,在終端機執行 agend web,再用它開啟的頁面設定。",
65
65
  busy: "另一項設定檢查仍在執行。請稍候再試。", unavailable: "設定未能完成。再次嘗試前,請先檢查設定頁。",
66
66
  uncertain: "無法確認結果。請先重新整理設定頁,確認 Hub 是否已建立,再嘗試一次。", caInvalid: "請使用一到四張 PEM CA 憑證,不要包含其他文字。",
@@ -218,8 +218,8 @@ register("settingsLayout", {
218
218
  "zh-TW": {
219
219
  "revDashboard_log": "Agent 紀錄分頁",
220
220
  "revDashboardHint_log": "顯示提示、回覆、工具步驟與 Fleet 事件;機密值會遮蔽,公開連結也看得到。開啟需確認。",
221
- "revDashboard_thinking": "顯示思考(僅 admin,預設關閉)",
222
- "revDashboardHint_thinking": "把模型的思考加進 Agent 聊天裡的活動區塊與紀錄分頁;只有登入的 admin 會收到(透過公開連結也一樣),訪客一律不會。同時會請 Claude Code 寫出思考摘要,這可能改變每一輪的花費。",
221
+ "revDashboard_thinking": "顯示思考(僅管理員,預設關閉)",
222
+ "revDashboardHint_thinking": "把模型的思考加進 Agent 聊天裡的活動區塊與紀錄分頁;只有登入的管理員會收到(透過公開連結也一樣),訪客一律不會。同時會請 Claude Code 寫出思考摘要,這可能改變每一輪的花費。",
223
223
  "revDashboard_usagePub": "公開連結提供用量報告",
224
224
  "revDashboardHint_usagePub": "透過公開連結提供 Fleet 用量報告給管理員(預設開啟);訪客一律看不到。",
225
225
  "revDashboard_levels": "辦公室等級",
@@ -61,37 +61,37 @@ register("settings", {
61
61
  ntTimeout: "測試太久,已經停止。請再測一次;如果一直這樣,請檢查這台主機所在的網路。",
62
62
  ntCancelled: "你的登入已結束,所以沒有啟動任何東西。請重新登入後再測。",
63
63
  ntCleanup: "無法確認測試用的連接器已經停止。請先重新啟動 AgEnD(立即重新啟動,或在 General 傳 /restart),再測試或開啟連結。",
64
- ntStep_values: "網域、port 與 token",
65
- ntStep_origin: "這台主機在 port {1} 回應",
66
- ntStep_tunnel: "tunnel 連上 Cloudflare",
64
+ ntStep_values: "網域、連接埠與 token",
65
+ ntStep_origin: "這台主機在連接埠 {1} 回應",
66
+ ntStep_tunnel: "通道連上 Cloudflare",
67
67
  ntStep_dns: "查得到 {0}",
68
68
  ntStep_reach: "{0} 連得到這台 AgEnD",
69
69
  nt_values_ok: "填寫正確。",
70
- "nt_values_bad-hostname": "請填網域,例如 agend.example.com(不含 https://、路徑或 port)。",
71
- "nt_values_bad-port": "請填 1024–65535 之間的 port。",
72
- "nt_values_no-token": "沒有 connector token:請貼在下方(Cloudflare → 你的 tunnel → 以 eyJ 開頭的長字串)。",
70
+ "nt_values_bad-hostname": "請填網域,例如 agend.example.com(不含 https://、路徑或連接埠)。",
71
+ "nt_values_bad-port": "請填 1024–65535 之間的連接埠。",
72
+ "nt_values_no-token": "沒有 connector token:請貼在下方(Cloudflare → 你的通道 → 以 eyJ 開頭的長字串)。",
73
73
  "nt_values_bad-token": "這不是 connector token:只複製以 eyJ 開頭的那串長字串。",
74
74
  nt_origin_ok: "這次測試有回應。",
75
75
  nt_origin_live: "你的連結正以這些設定開著:直接測試它。",
76
- "nt_origin_dashboard-port": "{1} 是儀表板自己的 port。請換一個(預設 19282),並把 Cloudflare 路由的 service 設成 http://127.0.0.1:<那個 port>。",
77
- "nt_origin_port-in-use": "這台主機上有其他程式在用 port {1}。請在這裡換一個 port,並把 Cloudflare 路由的 service 改成 http://127.0.0.1:<那個 port>。",
78
- "nt_origin_origin-failed": "AgEnD 無法在 port {1} 監聽,請換一個 port。",
76
+ "nt_origin_dashboard-port": "{1} 是儀表板自己的連接埠。請換一個(預設 19282),並把 Cloudflare 路由的 service 設成 http://127.0.0.1:<那個連接埠>。",
77
+ "nt_origin_port-in-use": "這台主機上有其他程式在用連接埠 {1}。請在這裡換一個連接埠,並把 Cloudflare 路由的 service 改成 http://127.0.0.1:<那個連接埠>。",
78
+ "nt_origin_origin-failed": "AgEnD 無法在連接埠 {1} 監聽,請換一個連接埠。",
79
79
  "nt_origin_link-open-other": "你的連結正以其他設定開著。請先關閉(/web → 關閉公開連結),再測試。",
80
- "nt_origin_tunnel-busy": "另一條 tunnel 正在啟動或執行(公開連結或登入用)。請過一分鐘再試。",
80
+ "nt_origin_tunnel-busy": "另一條通道正在啟動或執行(公開連結或登入用)。請過一分鐘再試。",
81
81
  nt_tunnel_ok: "已連上 Cloudflare。",
82
82
  nt_tunnel_live: "開著的連結已連線。",
83
- nt_tunnel_auth: "Cloudflare 拒絕這個 token:它是錯的或已被更換。請到 Cloudflare 的 tunnel 頁面複製目前的 token 再貼上。",
84
- nt_tunnel_network: "這台主機在 20 秒內連不上 Cloudflare。請在這裡把通訊協定改成 http2,或請網路管理員允許對 Cloudflare 的對外連線(port 7844)。",
83
+ nt_tunnel_auth: "Cloudflare 拒絕這個 token:它是錯的或已被更換。請到 Cloudflare 的通道頁面複製目前的 token 再貼上。",
84
+ nt_tunnel_network: "這台主機在 20 秒內連不上 Cloudflare。請在這裡把通訊協定改成 http2,或請網路管理員允許對 Cloudflare 的對外連線(連接埠 7844)。",
85
85
  nt_tunnel_stopped: "cloudflared 在連上之前就停止了。請再測一次;如果一直這樣,請檢查 token 與通訊協定。",
86
86
  "nt_tunnel_no-binary": "這台主機無法準備 cloudflared(下載或安裝失敗)。請確認這台主機能連上網路後再測。",
87
87
  nt_dns_ok: "查得到。",
88
- "nt_dns_dns-missing": "{0} 還不存在。請在 Cloudflare 為這條 tunnel 新增 {0} 的 Published application 路由。",
88
+ "nt_dns_dns-missing": "{0} 還不存在。請在 Cloudflare 為這條通道新增 {0} 的 Published application 路由。",
89
89
  "nt_dns_dns-failed": "這台主機查不到 {0}:這台主機所在的網路可能擋了 DNS。請洽網路管理員。",
90
90
  nt_reach_ok: "正常:{0} 連到了這台 AgEnD。",
91
91
  "nt_reach_wrong-service": "Cloudflare 有回應,但連不到服務:請把路由的 service 設成 http://127.0.0.1:{1}(HTTP,不是 HTTPS)。",
92
- "nt_reach_other-page": "{0} 回應了別的頁面:它的路由指向別的服務或 tunnel。請把它指向這條 tunnel,service 設成 http://127.0.0.1:{1}。",
93
- "nt_reach_route-missing": "{0} 沒有路由到這條 tunnel。請在 Cloudflare 新增 {0} 的 Published application 路由。",
94
- "nt_reach_self-unreachable": "tunnel 已連上,但這台主機所在的網路打不開 {0}(有些網路會擋新的網域)。從其他網路(例如手機行動網路)可能可以正常使用。請網路管理員允許 {0}。",
92
+ "nt_reach_other-page": "{0} 回應了別的頁面:它的路由指向別的服務或通道。請把它指向這條通道,service 設成 http://127.0.0.1:{1}。",
93
+ "nt_reach_route-missing": "{0} 沒有路由到這條通道。請在 Cloudflare 新增 {0} 的 Published application 路由。",
94
+ "nt_reach_self-unreachable": "通道已連上,但這台主機所在的網路打不開 {0}(有些網路會擋新的網域)。從其他網路(例如手機行動網路)可能可以正常使用。請網路管理員允許 {0}。",
95
95
  "nt_reach_reach-failed": "{0} 沒有如預期回應。請過一分鐘再測;如果一直這樣,請檢查 Cloudflare 上的路由。",
96
96
  },
97
97
  });
@@ -29,9 +29,9 @@ register("settings", {
29
29
  publicSessionIdleOver: "不能超過公開連結的登入時效",
30
30
  publicSessionQuick: "臨時通道:最多 8 小時/30 分鐘",
31
31
  publicSessionNeedsHostname: "要超過閒置 30 分鐘或總共 8 小時,需要固定網域(具名通道,在「分享」設定)。臨時通道每次網址都不同,拿到網址的人都能打開登入頁,所以在臨時通道上這兩個值只能縮短限制。",
32
- publicSessionCeiling: "工作階段也不會超過該帳號本身的限制:管理員依上面的 session 時長,訪客依訪客設定。有結束時間的連結結束時,它的工作階段也一起結束。",
32
+ publicSessionCeiling: "工作階段也不會超過該帳號本身的限制:管理員依上面的工作階段時長,訪客依訪客設定。有結束時間的連結結束時,它的工作階段也一起結束。",
33
33
  publicSessionTip: "限制越長,瀏覽器透過網際網路保持登入你的 fleet 的時間就越久。如果手機遺失,或在共用電腦上忘了登出,拿到它的人在工作階段結束前都能以你的身分操作。除非你常用手機開儀表板,否則建議保持短一點;裝置遺失時,請到「裝置」移除它。縮短會立刻結束已超過新限制的工作階段;延長需要你確認。",
34
- publicSessionHint: "適用於從儀表板本身網址登入的 session(本機、區域網路、tailnet)。管理員透過公開連結的 session 也不會超過這裡的設定(訪客依訪客設定)。縮短會讓已超過新限制的 session 結束;延長會套用到新的登入,以及既有 session 下次使用時的閒置時間。留空 = 預設值。",
34
+ publicSessionHint: "適用於從儀表板本身網址登入的工作階段(本機、區域網路、tailnet)。管理員透過公開連結的工作階段也不會超過這裡的設定(訪客依訪客設定)。縮短會讓已超過新限制的工作階段結束;延長會套用到新的登入,以及既有工作階段下次使用時的閒置時間。留空 = 預設值。",
35
35
  publicSessionLimitNote: "公開連結的工作階段有自己的限制(預設 8 小時、閒置 30 分鐘,見下方),也不會超過連結期限。",
36
36
  },
37
37
  });
@@ -21,7 +21,7 @@ register("settings", {
21
21
  },
22
22
  "zh-TW": {
23
23
  vaRevokeOthers: "撤銷其他裝置的授權", vaRevokeOthersTitle: "撤銷其他裝置的授權?",
24
- vaRevokeOthersConfirm: "其他裝置的授權都會結束,到目前為止從網頁給出的授權也都視為無。不會登出任何人,也不會讓任何 session 失去確認設定變更的能力:要讓某個 session 失效,請用「全部登出」或 /web revoke。",
24
+ vaRevokeOthersConfirm: "其他裝置的授權都會結束,到目前為止從網頁給出的授權也都視為無。不會登出任何人,也不會讓任何工作階段失去確認設定變更的能力:要讓某個工作階段失效,請用「全部登出」或 /web revoke。",
25
25
  vaRevokeAffected: "這些裝置會失去授權:{0}。", vaRevokeNoOthers: "目前沒有其他已授權的裝置。", vaRevokeKept: "這台裝置(你)會保留授權。", vaRevokeOwnerOnly: "只有已驗證擁有者能撤銷。",
26
26
  vaRevokedOthers: "已撤銷其他裝置的授權,這台裝置仍保有授權。", vaRevokedAll: "已撤銷到目前為止的網頁授權,包含這台裝置。",
27
27
  },
@@ -112,7 +112,7 @@ register("settings", {
112
112
  sec_accounts: "AI 帳號與金鑰",
113
113
  updateDefaults: "更新 Agent 共用設定",
114
114
  devFormsUnsaved: "請先儲存或捨棄 Agent、Agent 共用設定或連線中未儲存的變更:這個編輯器會寫入相同的設定。",
115
- help4: "一般:Agent 共用設定與 ClassicBot 預設值。網頁:儀表板的登入 session、瀏覽器終端機、網頁轉發、紀錄與公開連結。「檢查變更」會把它們暫存。",
115
+ help4: "一般:Agent 共用設定與 ClassicBot 預設值。網頁:儀表板的登入工作階段、瀏覽器終端機、網頁轉發、紀錄與公開連結。「檢查變更」會把它們暫存。",
116
116
  // 新增的 key。
117
117
  defaultMarkTip: "fleet.yaml 沒有設定這一項,目前使用的是內建值。修改後會存成你自己的值。",
118
118
  dashboardShort_appearance: "外觀", dashboardShort_task_board: "任務看板", dashboardShort_web_settings: "網頁外觀設定", dashboardShort_office: "辦公室", dashboardShort_office_packs: "辦公室外觀包",
@@ -148,7 +148,7 @@ register("settings", {
148
148
  usageTipParts: "Agent 在 Agents 頁自己設定了某一項,這裡改那一項就不會影響它;其他項目仍然跟著這裡。自己設定的:{0}。",
149
149
  usageRooms: "另有 {0} 個 ClassicBot 房間也沿用這個值(不在上面的數字裡)。",
150
150
  backendInfo: "只檢查這台主機。Windows 電腦上的 CLI,請在個別 Agent 的設定裡按「切換 Runtime/CLI」。", backendInfoLink: "查看 Windows 電腦與 CLI:Runtime",
151
- tipBackend: "Agent 用哪一種 coding CLI 執行(claude-code、codex、kiro-cli…)。每個名稱旁的「已安裝/已登入」狀態,是在 AgEnD 所在的這台主機上檢查的,不包含其他電腦。",
151
+ tipBackend: "Agent 用哪一種程式開發 CLI 執行(claude-code、codex、kiro-cli…)。每個名稱旁的「已安裝/已登入」狀態,是在 AgEnD 所在的這台主機上檢查的,不包含其他電腦。",
152
152
  tipModel: "Agent 向 CLI 要求使用的模型。「CLI 自己的預設」就是讓 CLI 自己決定。清單跟著預設後端換,內容是這台主機上讀到的。",
153
153
  tipAutoPause: "Agent 閒置這麼久就暫停、釋放記憶體,有新訊息會自動喚醒。0=不自動暫停。",
154
154
  tipToolProgress: "Agent 工作時,聊天室顯示多少工具活動。關:不顯示。標準:簡短說明(例如「正在讀取檔案」)。詳細:說明加上指令預覽。",