@songsid/agend 2.4.0-beta.21 → 2.4.0-beta.23
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.
- package/dist/agent-whats-new.js +6 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +2 -0
- package/dist/auth-api.js +5 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/web-authority.d.ts +17 -3
- package/dist/authority/web-authority.js +56 -3
- package/dist/authority/web-authority.js.map +1 -1
- package/dist/backend/claude-code.js +3 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/cache-ledger.d.ts +23 -21
- package/dist/cache-ledger.js +70 -6
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-prices.d.ts +8 -6
- package/dist/cache-prices.js +12 -5
- package/dist/cache-prices.js.map +1 -1
- package/dist/cache-service.d.ts +9 -5
- package/dist/cache-service.js +202 -50
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/mcp-tools.js +8 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +2 -2
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/cli-audited.js +2 -1
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/contact-auth-api.js +3 -1
- package/dist/contact-auth-api.js.map +1 -1
- package/dist/contact-auth-policy.js +1 -1
- package/dist/contact-auth-policy.js.map +1 -1
- package/dist/contact-auth-service.js +8 -2
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.d.ts +31 -2
- package/dist/contact-auth-store.js +106 -12
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +3 -2
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/contact-change-proposals.d.ts +18 -1
- package/dist/contact-change-proposals.js +41 -6
- package/dist/contact-change-proposals.js.map +1 -1
- package/dist/contact-state-view.d.ts +103 -0
- package/dist/contact-state-view.js +80 -0
- package/dist/contact-state-view.js.map +1 -0
- package/dist/daemon.d.ts +31 -0
- package/dist/daemon.js +149 -2
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +10 -0
- package/dist/delivery-outbox.js +21 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +183 -15
- package/dist/fleet-manager.js +628 -96
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/admin/SKILL.md +52 -0
- package/dist/general-knowledge/skills/concepts/SKILL.md +14 -17
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -3
- package/dist/general-knowledge/skills/hub/SKILL.md +12 -4
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +54 -9
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/hub/agent-pictures-model.d.ts +128 -0
- package/dist/hub/agent-pictures-model.js +43 -4
- package/dist/hub/agent-pictures-model.js.map +1 -1
- package/dist/hub/agent-pictures.d.ts +14 -2
- package/dist/hub/agent-pictures.js +65 -12
- package/dist/hub/agent-pictures.js.map +1 -1
- package/dist/hub/client.d.ts +2 -0
- package/dist/hub/client.js +14 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +6 -2
- package/dist/hub/compose/member.js +19 -6
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +5 -5
- package/dist/hub/compose/server.js +6 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.d.ts +3 -0
- package/dist/hub/http/compose.js +14 -7
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/http/schema.js +2 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/text.js +1 -1
- package/dist/hub/mcp/policy.d.ts +1 -1
- package/dist/hub/member/agent-pictures.d.ts +34 -1
- package/dist/hub/member/agent-pictures.js +80 -9
- package/dist/hub/member/agent-pictures.js.map +1 -1
- package/dist/hub/member/room-ask.d.ts +22 -1
- package/dist/hub/member/room-ask.js +99 -5
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-asker-store.d.ts +48 -0
- package/dist/hub/member/room-asker-store.js +181 -0
- package/dist/hub/member/room-asker-store.js.map +1 -0
- package/dist/hub/protocol.d.ts +152 -0
- package/dist/hub/protocol.js +6 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/question-close-model.d.ts +17 -0
- package/dist/hub/question-close-model.js +7 -0
- package/dist/hub/question-close-model.js.map +1 -0
- package/dist/hub/representative.d.ts +15 -0
- package/dist/hub/representative.js +64 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/room-asker-identity-model.d.ts +53 -0
- package/dist/hub/room-asker-identity-model.js +14 -0
- package/dist/hub/room-asker-identity-model.js.map +1 -0
- package/dist/hub/room-asker-identity.d.ts +22 -0
- package/dist/hub/room-asker-identity.js +43 -0
- package/dist/hub/room-asker-identity.js.map +1 -0
- package/dist/hub/rooms/agents.js +16 -0
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/asker-identity.d.ts +21 -0
- package/dist/hub/rooms/asker-identity.js +86 -0
- package/dist/hub/rooms/asker-identity.js.map +1 -0
- package/dist/hub/rooms/direct-view.js +1 -0
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/office.d.ts +18 -0
- package/dist/hub/rooms/office.js +3 -1
- package/dist/hub/rooms/office.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +6 -0
- package/dist/hub/rooms/service.js +19 -0
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +1 -1
- package/dist/hub/rooms.d.ts +3 -0
- package/dist/hub/rooms.js +27 -1
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/server.js +12 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +3 -2
- package/dist/hub-character-plan.d.ts +47 -0
- package/dist/hub-character-plan.js +70 -0
- package/dist/hub-character-plan.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +13 -1
- package/dist/hub-contact-windows.js +35 -2
- package/dist/hub-contact-windows.js.map +1 -1
- package/dist/hub-picture-reduce.d.ts +21 -1
- package/dist/hub-picture-reduce.js +65 -13
- package/dist/hub-picture-reduce.js.map +1 -1
- package/dist/hub-picture-worker.js +12 -4
- package/dist/hub-picture-worker.js.map +1 -1
- package/dist/human-delivery-receipts.d.ts +12 -2
- package/dist/human-delivery-receipts.js +19 -4
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +367 -275
- package/dist/locale.js.map +1 -1
- package/dist/ls-rows.d.ts +2 -0
- package/dist/ls-rows.js.map +1 -1
- package/dist/needs-you.d.ts +4 -0
- package/dist/needs-you.js +3 -2
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +8 -0
- package/dist/outbound-handlers.js +56 -7
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +2 -1
- package/dist/outbound-schemas.js +3 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +18 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +2 -1
- package/dist/reply-buttons-controller.js +1 -1
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/runtime-cli-install.js +4 -4
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/tips.js +3 -3
- package/dist/tool-permissions.js +1 -1
- package/dist/tool-permissions.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/agent-export-strings.js +1 -1
- package/dist/ui/agent-page-strings.js +5 -5
- package/dist/ui/chat-activity.js +2 -1
- package/dist/ui/chat-pins.js +2 -1
- package/dist/ui/claude-credentials.js +2 -1
- package/dist/ui/contact-auth-client.js +2 -2
- package/dist/ui/contact-auth-strings.js +28 -17
- package/dist/ui/contact-authorizations.js +6 -4
- package/dist/ui/contact-needs.js +6 -1
- package/dist/ui/contact-permissions.js +6 -4
- package/dist/ui/contact-tool-groups.js +1 -1
- package/dist/ui/contact-verify-need.js +46 -0
- package/dist/ui/fleet-cache.js +7 -6
- package/dist/ui/fleet-canvas.js +1 -1
- package/dist/ui/fleet-office-card.js +26 -2
- package/dist/ui/fleet-office-layout.js +2 -2
- package/dist/ui/fleet-office-skin.js +26 -6
- package/dist/ui/fleet-office-view.js +32 -0
- package/dist/ui/fleet-office-zones.js +22 -9
- package/dist/ui/fleet-office.js +92 -29
- package/dist/ui/fleet-org.js +9 -4
- package/dist/ui/fleet-tab-icons.js +19 -0
- package/dist/ui/fleet-task-activity.js +2 -1
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-task-view.js +2 -1
- package/dist/ui/fleet-usage.js +8 -7
- package/dist/ui/hub-admin-overview.js +3 -2
- package/dist/ui/hub-agent-intro.js +2 -1
- package/dist/ui/hub-assistant-admin.js +2 -1
- package/dist/ui/hub-chat-strings.js +1 -1
- package/dist/ui/hub-directory-notices.js +2 -1
- package/dist/ui/hub-enrolment-code.js +2 -1
- package/dist/ui/hub-my-agents-strings.js +2 -2
- package/dist/ui/hub-my-agents.js +3 -2
- package/dist/ui/hub-quick-pairing.js +2 -1
- package/dist/ui/hub-role-audit.js +2 -1
- package/dist/ui/hub-role-forms.js +3 -2
- package/dist/ui/hub-role-view.js +3 -2
- package/dist/ui/hub-roles.js +2 -1
- package/dist/ui/hub-room-agent-strings.js +2 -1
- package/dist/ui/hub-room-list.js +2 -1
- package/dist/ui/hub-room-office.js +70 -2
- package/dist/ui/hub-room-owner-requests.js +2 -1
- package/dist/ui/hub-room-pins.js +2 -1
- package/dist/ui/hub-room-presence.js +5 -0
- package/dist/ui/hub-room-strings.js +2 -2
- package/dist/ui/hub-room-thread.js +1 -1
- package/dist/ui/log-row.js +4 -3
- package/dist/ui/office-share-dialog.js +2 -1
- package/dist/ui/office-share-page.js +2 -1
- package/dist/ui/page-share-dialog.js +3 -2
- package/dist/ui/panel-chat.js +2 -1
- package/dist/ui/panel-details.js +2 -1
- package/dist/ui/panel-fleet.js +15 -10
- package/dist/ui/panel-hub.js +2 -1
- package/dist/ui/panel-log.js +3 -3
- package/dist/ui/panel-needs.js +31 -3
- package/dist/ui/panel-notices.js +2 -1
- package/dist/ui/panel-runtimes.js +4 -3
- package/dist/ui/panel-windows-cli.js +3 -2
- package/dist/ui/runtime-cli-install.js +3 -2
- package/dist/ui/runtime-update-status.js +1 -1
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-appearance.js +2 -1
- package/dist/ui/settings-guests.js +4 -3
- package/dist/ui/settings-hub-member-address.js +2 -1
- package/dist/ui/settings-hub-setup-strings.js +1 -1
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-hub-web-address.js +2 -1
- package/dist/ui/settings-hub.js +2 -1
- package/dist/ui/settings-layout.js +2 -2
- package/dist/ui/settings-named-test.js +16 -16
- package/dist/ui/settings-public-session-strings.js +2 -2
- package/dist/ui/settings-revoke-strings.js +1 -1
- package/dist/ui/settings-shared-strings.js +2 -2
- package/dist/ui/settings-strings.js +40 -40
- package/dist/ui/settings-update.js +2 -1
- package/dist/ui/settings-web-authority.js +2 -1
- package/dist/ui/shared/agent-sheet.js +2 -1
- package/dist/ui/shared/app-session.js +4 -3
- package/dist/ui/shared/app-shell.js +7 -3
- package/dist/ui/shared/app.css +60 -11
- package/dist/ui/shared/chat-strings.js +8 -8
- package/dist/ui/shared/chat-time.js +7 -4
- package/dist/ui/shared/clock-text.js +57 -0
- package/dist/ui/shared/device-roles.js +6 -5
- package/dist/ui/shared/instance-nav.js +31 -2
- package/dist/ui/shared/usage-dialog.js +2 -1
- package/dist/ui/shared/view-strings.js +13 -9
- package/dist/ui/shared/web-authorize.js +3 -2
- package/dist/ui/subagent-row.js +2 -1
- package/dist/web-api.d.ts +15 -2
- package/dist/web-api.js +62 -13
- package/dist/web-api.js.map +1 -1
- package/dist/web-login.d.ts +6 -1
- package/dist/web-login.js +8 -3
- package/dist/web-login.js.map +1 -1
- package/dist/web-session-authorization.d.ts +3 -0
- package/dist/web-session-authorization.js +1 -1
- package/dist/web-session-authorization.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/panel-hub.js
CHANGED
|
@@ -61,6 +61,7 @@ import { DropOverlay, MAX_FILES, PendingFiles, hf, pageCarriesFiles, pasteToAtta
|
|
|
61
61
|
import { composerCaret, insertQuote, installQuoteSelection, showCaret } from "/assets/chat-quote.js";
|
|
62
62
|
import { installTableSelection } from "/assets/chat-table-select.js";
|
|
63
63
|
import { assetUrl } from "/assets/asset-url.js";
|
|
64
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
64
65
|
register("hubAccess", {
|
|
65
66
|
en: { tag: "Access needs checking", refused: "Asking was refused. Check your access before trying again.", check: "Check access", limited: "Asking was refused; the previous access information needs checking." },
|
|
66
67
|
"zh-TW": { tag: "需要確認權限", refused: "提問遭到拒絕。請先重新檢查權限,再試一次。", check: "重新檢查權限", limited: "提問遭到拒絕,先前的權限資訊需要重新確認。" },
|
|
@@ -160,7 +161,7 @@ function useSession() {
|
|
|
160
161
|
}, []);
|
|
161
162
|
return s;
|
|
162
163
|
}
|
|
163
|
-
const when = (ms) =>
|
|
164
|
+
const when = (ms) => dateTimeText(ms, { dateStyle: "medium", timeStyle: "short" });
|
|
164
165
|
// M-2988: words added after a release; a tab holding the older hub-strings dictionary falls back to the older sentence.
|
|
165
166
|
const newer = (key, args, older) => { const s = hw(key, ...args); return s === `hub.${key}` ? older() : s; };
|
|
166
167
|
const errText = (r) => hw(r.code === "conflict" || r.code === "stale" ? "errConflictHub" : r.code === "not-found" ? "errNotFound"
|
package/dist/ui/panel-log.js
CHANGED
|
@@ -63,8 +63,8 @@ register("log", {
|
|
|
63
63
|
"zh-TW": {
|
|
64
64
|
offTitle: "紀錄未開啟",
|
|
65
65
|
offBody: "開啟後可逐步看到每個 agent 的工作:收到的要求、回覆、每次工具呼叫的參數與結果、錯誤,以及 fleet 事件。只在這個分頁開著時讀取 agent 自己的對話紀錄,機密值會遮蔽。",
|
|
66
|
-
enable: "開啟紀錄", enabling: "等待 fleet
|
|
67
|
-
enableFailed: "紀錄沒有開啟:{0}", offPublic: "fleet
|
|
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: "
|
|
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. */
|
package/dist/ui/panel-needs.js
CHANGED
|
@@ -31,6 +31,7 @@ import { decideProposal, installProposals } from "./agent-proposals.js";
|
|
|
31
31
|
import { GeneralLocation } from "./general-location.js";
|
|
32
32
|
import { runtimeUpdateText } from "./runtime-update-status.js";
|
|
33
33
|
import { ContactNeedsItem, ContactSuggestionsGroup, isRestrictedSuggestion } from "./contact-needs.js";
|
|
34
|
+
import { ContactVerifyNeed, contactVerifyCount, isContactVerify } from "./contact-verify-need.js";
|
|
34
35
|
import { HostDirectoryNotices, hostDirectoryNoticesOffered } from "./hub-host-security-notices.js";
|
|
35
36
|
|
|
36
37
|
// A pre-upgrade tab retains app-i18n.js. Register these reasons when the updated panel is loaded, too.
|
|
@@ -44,6 +45,7 @@ register("needs", {
|
|
|
44
45
|
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
46
|
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
47
|
gap: "not wrapped up: {0}", gapUnchecked: "{0} checklist item(s) unchecked", gapNoResult: "no result", gapJoin: ", ", acknowledge: "Acknowledge", acknowledging: "Acknowledging…", answering: "Answering…",
|
|
48
|
+
hubClose: "Close this question", hubClosing: "Closing…", hubCloseTitle: "Close this question?", hubCloseConfirm: "Close question", hubCloseDetail: "You can close this question without sending it to the agent again.", hubCloseMessage: "The Hub will tell the asker this question will not be answered. This can't be undone. The same message can't be retried; the asker can send a new question. An answer already sent stays visible. This does not stop work the agent has already started.", hubCloseDone: "The question is closed on the Hub.", hubCloseAnswered: "An answer already reached the Hub; it was kept.", hubCloseVerify: "Verify your admin account, then close this question again.", hubCloseForbidden: "Only an admin who manages this agent can close its question.", hubCloseUnsupported: "Update the Hub to close this question. It is still held.", hubCloseUnavailable: "The Hub did not confirm closure. Check its connection and try closing again; the question was not resent.",
|
|
47
49
|
hubRetry: "Try again", hubRetrying: "Trying again…", hubRetryDone: "Asked the Hub again.",
|
|
48
50
|
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
51
|
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.",
|
|
@@ -72,6 +74,7 @@ register("needs", {
|
|
|
72
74
|
otherEmpty: "沒有其他待處理事項。", title: "等你處理", empty: "目前沒有需要你處理的事", emptyHint: "agent 在等你時,會出現在這裡——也會出現在聊天 app 的 General。", emptyHintWeb: "agent 在等你時,會出現在這裡。",
|
|
73
75
|
open: "開啟聊天", kiroOpen: "開啟 Agent", kiroMigration: "遷移說明", openCard: "打開卡片", noAssignee: "任務看板(沒有負責人)", fleetSignIns: "AI 帳號", signIn: "連接帳號",
|
|
74
76
|
gap: "還沒補齊:{0}", gapUnchecked: "還有 {0} 項沒勾", gapNoResult: "沒有產出總結", gapJoin: "、", acknowledge: "確認", acknowledging: "確認中…", answering: "回覆中…",
|
|
77
|
+
hubClose: "不處理這題", hubClosing: "結束中…", hubCloseTitle: "不處理這題?", hubCloseConfirm: "不處理這題", hubCloseDetail: "可以結束這題,不會再把問題送給 Agent。", hubCloseMessage: "Hub 會告訴提問者這題不會回答。關閉後無法復原。同一則訊息無法再試一次;提問者可以另問一題。已經送出的答案會保留。這不會停止 Agent 已經開始的工作。", hubCloseDone: "Hub 已確認結束這題。", hubCloseAnswered: "答案已經送達 Hub,原有答案會保留。", hubCloseVerify: "請先驗證管理員帳號,再結束這題。", hubCloseForbidden: "只有管理這個 Agent 的管理員可以結束這題。", hubCloseUnsupported: "請先更新 Hub,才能結束這題。目前仍保留暫停項目。", hubCloseUnavailable: "Hub 尚未確認結束。請檢查連線後再試;問題沒有重新送出。",
|
|
75
78
|
hubRetry: "再試一次", hubRetrying: "重試中…", hubRetryDone: "已重新詢問 Hub。",
|
|
76
79
|
hubRetryGone: "這個項目已經有變化,清單會重新整理。", hubRetryNot: "這則無法再試:Hub 已拒絕,或 Agent 已變更。請提問的人重新送出問題。",
|
|
77
80
|
hubHoldDetail: "Hub 在問題交給 Agent 之前無法確認。按「再試一次」會重新詢問 Hub,未經 Hub 同意不會送出。",
|
|
@@ -214,8 +217,11 @@ export function NeedsPanel({ navKey }) {
|
|
|
214
217
|
const updates = items.filter(item => item.runtimeUpdate);
|
|
215
218
|
// M-3381: the rooms' restricted-mode suggestions are one group (below the rest), counted once.
|
|
216
219
|
const suggestions = items.filter(isRestrictedSuggestion);
|
|
217
|
-
|
|
218
|
-
const
|
|
220
|
+
// M-3710: "N contact requests need a verified browser" — on top, under no agent's heading.
|
|
221
|
+
const verify = items.find(isContactVerify);
|
|
222
|
+
const groups = groupNeeds(items.filter(item => !item.runtimeUpdate && !isRestrictedSuggestion(item) && !isContactVerify(item)));
|
|
223
|
+
// M-3710: the verify line counts as the requests it stands for (as the badge and tab title do).
|
|
224
|
+
const shownCount = items.length - suggestions.length + (suggestions.length ? 1 : 0) + asks.length + (verify ? contactVerifyCount(verify) - 1 : 0);
|
|
219
225
|
if (updates.length) groups.push({ instance: "", items: updates });
|
|
220
226
|
const nowMs = Date.now();
|
|
221
227
|
return html`<div data-effect-panel="needs" class="panel p-needs">
|
|
@@ -226,6 +232,7 @@ export function NeedsPanel({ navKey }) {
|
|
|
226
232
|
${asks.map((p) => html`<${ProposalItem} key=${p.id} proposal=${p} nowMs=${nowMs} />`)}
|
|
227
233
|
${decidedHere.map(([id, d]) => html`<${ProposalResult} key=${id} result=${d} />`)}
|
|
228
234
|
</section>` : null}
|
|
235
|
+
${verify ? html`<${ContactVerifyNeed} item=${verify} />` : null}
|
|
229
236
|
${(!ready || needsLoaded === false) && !items.length && !asks.length ? html`<${Skeleton} variant="rows" lines=${3} />`
|
|
230
237
|
: !items.length && !asks.length && !decidedHere.length ? hostDirectoryNoticesOffered() ? html`<p class="muted">${tn("otherEmpty")}</p>` : html`<${Empty} icon="check" title=${tn("empty")} hint=${tn(chatApp ? "emptyHint" : "emptyHintWeb")} />`
|
|
231
238
|
: groups.map((g) => html`<section key=${JSON.stringify([g.instance, g.items[0]?.type === "config",g.items[0]?.type === 'host', !!g.items[0]?.runtimeUpdate])} class="n-group" aria-label=${g.items[0]?.runtimeUpdate ? runtimeUpdateText("attention") : g.instance}>
|
|
@@ -288,6 +295,25 @@ function NeedsItem({ item, nowMs, owner }) {
|
|
|
288
295
|
setClaim("acks", item.id, res && res.ok ? "done" : null);
|
|
289
296
|
toast((body && (body.message || body.error)) || t("app.failed"), !!(res && res.ok));
|
|
290
297
|
};
|
|
298
|
+
const closeKey = `hub-close:${item.id}`, closeAck = c.acks[closeKey];
|
|
299
|
+
const closeHub = async () => {
|
|
300
|
+
if (claims.get().acks[closeKey]) return;
|
|
301
|
+
setClaim("acks", closeKey, "confirming");
|
|
302
|
+
if (!await confirmDialog({ title: tn("hubCloseTitle"), message: tn("hubCloseMessage"), confirmLabel: tn("hubCloseConfirm"), danger: true })) {
|
|
303
|
+
setClaim("acks", closeKey, null); return;
|
|
304
|
+
}
|
|
305
|
+
setClaim("acks", closeKey, "busy");
|
|
306
|
+
let res = null, body = {};
|
|
307
|
+
try {
|
|
308
|
+
res = await fetch("/ui/needs/hub-close", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ id: item.id }) });
|
|
309
|
+
body = await res.json().catch(() => ({}));
|
|
310
|
+
} catch { /* clear, localised connection error below */ }
|
|
311
|
+
setClaim("acks", closeKey, res?.ok ? "done" : null);
|
|
312
|
+
const key = res?.ok ? body.code === "answered" ? "hubCloseAnswered" : "hubCloseDone"
|
|
313
|
+
: body.code === "verification-required" ? "hubCloseVerify" : body.code === "forbidden" ? "hubCloseForbidden"
|
|
314
|
+
: body.code === "unsupported" ? "hubCloseUnsupported" : body.code === "not-found" ? "hubRetryGone" : "hubCloseUnavailable";
|
|
315
|
+
toast(tn(key), !!res?.ok);
|
|
316
|
+
};
|
|
291
317
|
// M-3632: held Hub work → back through the Hub's checks (the server re-asks the Hub for its lease; never delivered blind).
|
|
292
318
|
const hubKey = hubRetryKey(item), hubAck = item.hubRetry ? c.acks[hubKey] : undefined;
|
|
293
319
|
const retryHub = async () => {
|
|
@@ -307,6 +333,7 @@ function NeedsItem({ item, nowMs, owner }) {
|
|
|
307
333
|
<div class="n-body">
|
|
308
334
|
<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>
|
|
309
335
|
${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}
|
|
336
|
+
${item.type === "hub" && item.hubClose ? html`<p class="n-detail">${tn("hubCloseDetail")}</p>` : null}
|
|
310
337
|
${item.type === "hub" && item.hubRetry ? html`<p class="n-detail">${tn("hubHoldDetail")}</p>` : null}
|
|
311
338
|
${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}
|
|
312
339
|
${item.generalLocation ? html`<${GeneralLocation} name=${item.instance} attentionOnly=${true} />` : null}
|
|
@@ -314,8 +341,9 @@ function NeedsItem({ item, nowMs, owner }) {
|
|
|
314
341
|
<div class="n-actions">
|
|
315
342
|
${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"
|
|
316
343
|
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}>
|
|
344
|
+
${item.type === "hub" && item.hubRetry ? html`<button type="button" class="btn btn-sm btn-primary" disabled=${!!hubAck || !!closeAck} onClick=${retryHub}>
|
|
318
345
|
<${Icon} name="restart" size=${14} />${hubAck === "busy" ? tn("hubRetrying") : tn("hubRetry")}</button>` : null}
|
|
346
|
+
${item.type === "hub" && item.hubClose ? html`<button type="button" class="btn btn-sm hub-close" disabled=${!!closeAck || !!hubAck} onClick=${closeHub}>${tn(closeAck === "busy" ? "hubClosing" : "hubClose")}</button>` : null}
|
|
319
347
|
${item.type === "delivery" || item.type === "missed" ? html`<button type="button" class="btn btn-sm" disabled=${!!ack} onClick=${acknowledge}>
|
|
320
348
|
<${Icon} name="check" size=${14} />${ack === "busy" ? tn("acknowledging") : tn("acknowledge")}</button>` : null}
|
|
321
349
|
${(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}
|
package/dist/ui/panel-notices.js
CHANGED
|
@@ -12,6 +12,7 @@ import { Empty, ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
|
12
12
|
import { Icon } from "/assets/ui-icons.js";
|
|
13
13
|
import { HubSharingNotice } from "./notice-hub-sharing.js";
|
|
14
14
|
import { HubUpdateNotice, useHubUpdateActions } from "./notice-hub-update.js";
|
|
15
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
15
16
|
|
|
16
17
|
register("notices", {
|
|
17
18
|
en: {
|
|
@@ -92,7 +93,7 @@ export function NoticesPanel({ navKey }) {
|
|
|
92
93
|
<div class="n-body">
|
|
93
94
|
<div class="n-title"><strong>${tn(`kind_${n.kind}`)}${n.instance ? ` · ${n.instance}` : ""}</strong>
|
|
94
95
|
${n.id > seenAtOpen ? html`<span class="notice-new">${tn("unread")}</span>` : null}
|
|
95
|
-
<span class="n-age" title=${
|
|
96
|
+
<span class="n-age" title=${dateTimeText(n.at)}>${noticeAge(n.at, nowMs)}</span></div>
|
|
96
97
|
${n.hubSharing ? html`<${HubSharingNotice} notice=${n} />` : n.hubUpdate ? html`<${HubUpdateNotice} notice=${n} actions=${hubActions} />` : html`<p class="n-detail notice-text">${n.text}</p>`}
|
|
97
98
|
${n.instance && known.has(n.instance) ? html`<div class="n-actions"><a class="btn btn-sm btn-ghost" href=${chatPath(n.instance)}>${tn("open")}</a></div>` : null}
|
|
98
99
|
</div>
|
|
@@ -18,6 +18,7 @@ import { identityText } from "./account-identity.js";
|
|
|
18
18
|
import { CliInstall, offersCliInstall } from "./runtime-cli-install.js";
|
|
19
19
|
import { useWindowsCliCatalog, refreshWindowsCliCatalog, useWindowsCliCatalogSnapshot } from "./windows-cli-catalog.js";
|
|
20
20
|
import { assetUrl } from "/assets/asset-url.js";
|
|
21
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
21
22
|
|
|
22
23
|
/** The install tabs', command cards' and account list's stylesheet, linked once by this lazy page (a tab opened before an upgrade has an app.css without these rules). */
|
|
23
24
|
export function linkRuntimeInstallCss(doc = typeof document !== "undefined" ? document : null) {
|
|
@@ -77,7 +78,7 @@ register("machines", {
|
|
|
77
78
|
machines:"已連接的電腦", cli:"CLI", version:"Runtime 版本", platform:"平台",
|
|
78
79
|
switches:"這個 Fleet 可以使用", switchesNote:"開啟時,和其他存取設定一樣需要 Fleet 管理員確認;關閉不需 Fleet 管理員確認,你在這裡確認後就會立即生效。",
|
|
79
80
|
windowsCli:"使用這台電腦 Windows 上的 CLI", windowsCliHelp:"Agent 可以使用這台電腦 Windows 上安裝的 CLI(例如 Codex 或 Claude Code),沿用你在 Windows 的登入。需要 Windows Node.js。",
|
|
80
|
-
remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows
|
|
81
|
+
remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows 電腦只執行一個小執行程式,不是 Fleet;你在這裡核准後,Agent 就能使用那台電腦的 CLI 與檔案。那台電腦必須能用 HTTPS 位址連到這個 Fleet,做法見下方說明。",
|
|
81
82
|
remoteRuntimeDocs:"完整說明", setByEnv:"由環境變數設定({0}={1})。若要變更,請從 AgEnD 的環境移除它並重新啟動 AgEnD。",
|
|
82
83
|
switchPending:"等待 Fleet 管理員確認,確認後就會開啟。", switchFailed:"無法變更此設定:{0}", switchesUnavailable:"這些開關只能在這個 Fleet 自己的儀表板上變更。",
|
|
83
84
|
windowsCliOffAsk:"要關閉這台電腦的 Windows CLI 嗎?這台電腦上進行中的 Windows Agent 回合會停止,這些 Agent 會保持停止,直到你再次開啟。",
|
|
@@ -195,7 +196,7 @@ register("machines", {
|
|
|
195
196
|
});
|
|
196
197
|
register("machines", {
|
|
197
198
|
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
|
|
199
|
+
"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
200
|
});
|
|
200
201
|
function CredentialProfiles({ machine }) {
|
|
201
202
|
const view = credentialProfileView(machine);
|
|
@@ -210,7 +211,7 @@ function paneVerificationTag(cli, text) {
|
|
|
210
211
|
const key = cli.paneVerification === "unverified" ? "paneUnverified" : cli.paneVerification === "denied" ? "paneDenied" : "";
|
|
211
212
|
return key ? html`<span class="tag" title=${text(`${key}Hint`)}>${text(key)}</span>` : null;
|
|
212
213
|
}
|
|
213
|
-
export function machineTime(value) { const date=new Date(value); return value && Number.isFinite(date.getTime()) ? date
|
|
214
|
+
export function machineTime(value) { const date=new Date(value); return value && Number.isFinite(date.getTime()) ? dateTimeText(date) : machineText("unknown"); }
|
|
214
215
|
function MachineCard({ machine, sameName, busy, action, openDiagnostics, probe, repairUpdate, lease, onChanged }) {
|
|
215
216
|
const [editing,setEditing] = useState(false), [name,setName] = useState(machine.name), [info,setInfo] = useState(false);
|
|
216
217
|
const detection = useWindowsCliCatalogSnapshot(machine.isLocal ? "" : machine.id);
|
|
@@ -6,6 +6,7 @@ import { Icon } from "/assets/ui-icons.js";
|
|
|
6
6
|
import { CliPicker, CliProductMark, cliLabel } from "./cli-picker.js";
|
|
7
7
|
import { ModelSelect } from "./settings-dialogs.js";
|
|
8
8
|
import { useWindowsCliCatalog, WindowsCliDiscoveryStatus, WindowsCliHostIdentity } from "./windows-cli-catalog.js";
|
|
9
|
+
import { dateTimeText, timeText } from "/assets/clock-text.js";
|
|
9
10
|
|
|
10
11
|
register("wincli", {
|
|
11
12
|
"zh-TW": { intro:"在 Windows 上執行一次性任務,使用本機已安裝的 CLI 和登入。", probe:"偵測 Windows CLI", probing:"正在偵測…", newTask:"派送 Windows Codex 任務", folder:"Windows 工作目錄", prompt:"任務內容", access:"檔案存取", readOnly:"唯讀", write:"工作目錄可寫入", limits:"目前支援 Codex 單次任務,同時一個,五分鐘後請求取消。使用 CLI 的沙箱與核准政策;此頁不提供互動核准按鈕。Claude 目前提供偵測。", run:"開始任務", results:"任務與結果", refresh:"更新", signedIn:"已登入", signedOut:"尚未登入", unknown:"登入狀態未知", missing:"未找到執行檔", empty:"還沒有任務。", cancel:"取消任務", starting:"準備啟動", running:"執行中", cancelling:"正在取消", cancelled:"已取消", completed:"已完成", failed:"失敗", waiting:"正在接收 Windows CLI 的輸出…", uncertain:"提交結果不明,請按「更新」確認任務狀態,勿立即重送。" },
|
|
@@ -64,7 +65,7 @@ function TaskResult({ task, latest, cancel }) {
|
|
|
64
65
|
const [expanded, setExpanded] = useState(latest || active(task));
|
|
65
66
|
const tone = task.status === "completed" ? "ready" : task.status === "failed" ? "failed" : active(task) ? "working" : "neutral";
|
|
66
67
|
return html`<details class="windows-cli-task" open=${expanded || active(task)} onToggle=${e => setExpanded(e.currentTarget.open)}>
|
|
67
|
-
<summary><span class=${`windows-cli-task-state tone-${tone}`}><span class="windows-cli-dot"></span>${tn(task.status)}</span><time dateTime=${new Date(task.startedAt).toISOString()}>${
|
|
68
|
+
<summary><span class=${`windows-cli-task-state tone-${tone}`}><span class="windows-cli-dot"></span>${tn(task.status)}</span><time dateTime=${new Date(task.startedAt).toISOString()}>${timeText(task.startedAt, { hour:"2-digit", minute:"2-digit" }, [])}</time><${Icon} name="chevron" size=${16} /></summary>
|
|
68
69
|
<code class="windows-cli-path windows-cli-task-cwd">${task.cwd}</code>
|
|
69
70
|
<div class="windows-cli-task-detail"><span class="windows-cli-output-label"><${Icon} name="view" size=${14} />${tn("output")}</span><pre class="windows-cli-output" tabIndex="0">${task.output || tn(active(task) ? "waiting" : "noOutput")}</pre>${task.error ? html`<p class="error">${task.error}</p>` : null}
|
|
70
71
|
${cancel && ["starting","running"].includes(task.status) ? html`<button type="button" class="btn btn-sm btn-ghost danger" onClick=${() => cancel(task.id)}><${Icon} name="stop" size=${14} />${tn("cancel")}</button>` : null}
|
|
@@ -152,7 +153,7 @@ export function WindowsCliPanel({ navKey, embedded = false, machineId = "", mach
|
|
|
152
153
|
},[clis]);
|
|
153
154
|
return html`<div class=${embedded ? "p-windows-cli windows-cli-settings" : "panel p-windows-cli"}>${!embedded ? html`<${PanelHeader} title="Windows CLI" />` : null}
|
|
154
155
|
<div class=${embedded ? "windows-cli-settings-body" : "panel-body"}><div class="windows-cli-content">
|
|
155
|
-
<header class="windows-cli-intro"><div>${diagnostic ? html`<p>${discovery.data?.probedAt ? t("wincli.lastDetection",
|
|
156
|
+
<header class="windows-cli-intro"><div>${diagnostic ? html`<p>${discovery.data?.probedAt ? t("wincli.lastDetection",dateTimeText(discovery.data.probedAt)) : tn("neverDetection")}</p>` : html`<span class="windows-cli-eyebrow"><${Icon} name="view" size=${14} />${tn("native")}</span><h2>${tn(machineId ? "remoteWorkspace" : "workspace")}</h2><p>${tn(machineId ? "remoteIntro" : "intro")}</p>`}</div>
|
|
156
157
|
<button type="button" class="btn windows-cli-probe" disabled=${probing || !online || !approved} onClick=${probe}><${Icon} name="restart" size=${16} cls=${probing ? "windows-cli-spin" : ""} />${tn(probing ? "probing" : "probe")}</button>
|
|
157
158
|
</header>
|
|
158
159
|
${!diagnostic ? html`<${WindowsCliHostIdentity} inventory=${discovery.data} machineId=${machineId} machine=${machine} />` : null}
|
|
@@ -4,6 +4,7 @@ import { confirmDialog } from "/assets/ui-confirm.js";
|
|
|
4
4
|
import { ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
5
5
|
import { CLI_CAPS } from "./cli-caps.js";
|
|
6
6
|
import { confirmedWrite } from "./settings-confirm.js";
|
|
7
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* #3190 Part 3b: install a CLI on a paired Windows computer, from Settings → Runtime. The page sends only a CLI id; the Runtime on that computer decides the
|
|
@@ -83,7 +84,7 @@ register("runtimeInstall", {
|
|
|
83
84
|
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
85
|
"zh-TW": { updateLatest: "更新到最新版(未經盤點)",
|
|
85
86
|
latestInfo: "已安裝 {0}。AgEnD 會安裝 {1},這是它稽核過的版本。按「更新」會更新到廠商釋出的最新版,這個版本 AgEnD 尚未稽核:這個 CLI 會自己更新,無法指定版本。",
|
|
86
|
-
askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD
|
|
87
|
+
askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD 尚未稽核。那台電腦會下載廠商自己的資訊清單指定的版本(不執行廠商的更新程式),比對檔案雜湊與發行者的 Windows 數位簽章,並放在 Runtime 自己的資料夾。任何一項不符就不會改變任何東西。那台電腦會留下更新紀錄。",
|
|
87
88
|
doneLatest: "{0} 現在是 {1},廠商釋出的最新版(未經 AgEnD 盤點)。", cardLabelUpdateLatest: "在 {1} 上把 {0} 更新到最新版(未經 AgEnD 盤點)" },
|
|
88
89
|
});
|
|
89
90
|
|
|
@@ -203,7 +204,7 @@ export function CliInstall({ machine, lease, onChanged }) {
|
|
|
203
204
|
<ul class="runtime-cli-install-list" aria-label=${text("title")}>${INSTALL_CLIS.map(row)}</ul>
|
|
204
205
|
${view && !view.switches ? html`<p class="note" role="status">${text("unreadable")}</p>` : null}
|
|
205
206
|
${switchState && !allowed ? html`<p class="note runtime-cli-install-off" role="status">${text("switchOff")}</p><${CommandCard} label=${text("switchCommand")} command=${SWITCH_COMMAND} />` : null}
|
|
206
|
-
${allowed ? html`<p class="note">${switchState.until ? text("switchUntil",
|
|
207
|
+
${allowed ? html`<p class="note">${switchState.until ? text("switchUntil", dateTimeText(switchState.until)) : text("switchOn")}</p>` : null}
|
|
207
208
|
${running ? html`<p class="note" role="status" aria-busy="true"><span class="out-spin" aria-hidden="true"></span> ${text("installing")}</p>` : null}
|
|
208
209
|
${note ? html`<p class="note" role="status">${note}</p>` : null}
|
|
209
210
|
${error ? html`<p class="runtime-error" role="alert">${error}</p>` : null}`}
|
|
@@ -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: "
|
|
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
|
|
38
|
+
revAuthorityBriefWeb: "這個 fleet 未連接聊天平台。主機擁有者可直接驗證;遠端工作階段需透過驗證器確認擁有者身分。",
|
|
39
39
|
revAuthorityEnabledWeb: "允許已驗證擁有者的網頁授權",
|
|
40
40
|
revAuthorityRule: "裝置登入與擁有者授權分開判斷。關閉後,已驗證的網頁工作階段也不能核准需授權的操作。",
|
|
41
41
|
},
|
|
@@ -22,6 +22,7 @@ import { ownChoiceImpact } from "./settings-model.js";
|
|
|
22
22
|
import { confirmDialog } from "/assets/ui-confirm.js";
|
|
23
23
|
import { colorsOff, defaultPlaces, identityClasses, identityOf, PLACEMENTS, paintIdentity, setColorsOff, setDefaultPlaces, useIdentityColors } from "/assets/identity-color.js";
|
|
24
24
|
import { CardTitle } from "./settings-learn.js";
|
|
25
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
25
26
|
import "./settings-strings.js";
|
|
26
27
|
|
|
27
28
|
const tn = (k, ...v) => t(`settings.${k}`, ...v);
|
|
@@ -587,7 +588,7 @@ function OwnerCssCard() {
|
|
|
587
588
|
</div>
|
|
588
589
|
${state.versions.length ? html`<details class="s-css-versions"><summary>${tn("cssVersions", state.versions.length)}</summary>
|
|
589
590
|
<ul class="s-css-list">${state.versions.map((v) => html`<li key=${v.sha}>
|
|
590
|
-
<code>${short(v.sha)}</code><span class="muted">${
|
|
591
|
+
<code>${short(v.sha)}</code><span class="muted">${dateTimeText(v.at)} · ${kib(v.bytes)}</span>
|
|
591
592
|
${v.sha === state.active ? html`<span class="pill">${tn("cssCurrent")}</span>`
|
|
592
593
|
: html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => restore(v.sha)}>${tn("cssRestore")}</button>`}
|
|
593
594
|
</li>`)}</ul></details>` : null}
|
|
@@ -19,6 +19,7 @@ import { DEFAULT_SCHEMA, impactOf } from "./settings-model.js";
|
|
|
19
19
|
import "./settings-strings.js";
|
|
20
20
|
import { layoutText } from "./settings-layout.js";
|
|
21
21
|
import { Feedback, Impact, InEffect } from "./settings-dialogs.js";
|
|
22
|
+
import { dateTimeText, timeText } from "/assets/clock-text.js";
|
|
22
23
|
|
|
23
24
|
const tn = (k, ...v) => t(`settings.${k}`, ...v);
|
|
24
25
|
const PLATFORMS = { discord: "Discord", telegram: "Telegram" };
|
|
@@ -112,7 +113,7 @@ function Names({ id, all, rooms = [], value, wrote = [], onChange }) {
|
|
|
112
113
|
${rooms.map((r) => box(r.name, r.display_name || r.name, !!r.display_name))}</div>`;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
const clock = (ms) =>
|
|
116
|
+
const clock = (ms) => timeText(ms, { hour: "2-digit", minute: "2-digit" }, []);
|
|
116
117
|
const COOLDOWN_MS = 60_000;
|
|
117
118
|
|
|
118
119
|
/** A draft as staged (#2365 review: carried in the staged change, so leaving the section and coming back keeps it). */
|
|
@@ -326,13 +327,13 @@ export function GuestsSection({ ctx, staged }) {
|
|
|
326
327
|
${people === null ? html`<${Skeleton} variant="rows" lines=${3} />` : !candidates.length ? html`<p class="note" id="grantsNoPeople">${tn("grantsNoPeople")}</p>`
|
|
327
328
|
: html`<ul class="g-pick">${candidates.map((p) => html`<li key=${accountKey(p)} class="g-cand" data-account=${accountKey(p)}>
|
|
328
329
|
<span class="g-av" aria-hidden="true">${(p.name || "?").slice(0, 1).toUpperCase()}</span>
|
|
329
|
-
<div class="g-id"><strong>${p.name}</strong> <span class="note">${PLATFORMS[p.platform] || p.platform}${p.username ? ` · @${p.username}` : ""} · <span class="g-when">${tn("grantsLastSeen",
|
|
330
|
+
<div class="g-id"><strong>${p.name}</strong> <span class="note">${PLATFORMS[p.platform] || p.platform}${p.username ? ` · @${p.username}` : ""} · <span class="g-when">${tn("grantsLastSeen", dateTimeText(p.lastSeen))}</span></span>
|
|
330
331
|
${p.instances && p.instances.length ? html`<div class="note">${wroteTo(p.instances)}</div>` : null}</div>
|
|
331
332
|
<button type="button" class="btn btn-sm" onClick=${() => { const k = accountKey(p); setGrant(k, { ...(p.name ? { name: p.name } : {}), instances: choosable.filter((n) => (p.instances || []).includes(n)) }); setEditing(k); }}>${tn("grantsChoose")}</button></li>`)}</ul>`}</div></details>`}
|
|
332
333
|
</fieldset>
|
|
333
334
|
${overview && overview.audit ? html`<details class="s-guest-audit"><summary>${tn("grantsRecent")}</summary>${!overview.audit.length ? html`<p class="note" id="grantsRecentNone">${tn("grantsRecentNone")}</p>`
|
|
334
335
|
: html`<ul class="g-audit" id="grantsRecentList">${overview.audit.map((e, i) => html`<li key=${`${e.at}-${i}`} class="g-audit-row" data-kind=${e.kind}>
|
|
335
|
-
<span class="g-when">${
|
|
336
|
+
<span class="g-when">${dateTimeText(e.at)}</span> <strong>${e.name}</strong>
|
|
336
337
|
${e.kind === "grant" ? html`${e.added.map((n) => html` <span key=${`+${n}`} class="g-wrote g-add">+${n}</span>`)}${e.removed.map((n) => html` <span key=${`-${n}`} class="g-wrote g-del">−${n}</span>`)}${e.level ? html` <span class="g-wrote g-level-to">${tn("grantsAuditLevel", tn(e.level === "trusted" ? "grantsLevelTrusted" : "grantsLevelChat"))}</span>` : null}
|
|
337
338
|
<span class="note"> · <span class="g-wrote">${tn(e.via === "confirmed" ? "grantsAuditConfirmed" : "grantsAuditDirect")}</span>${e.endedSessions ? html` · <span class="g-wrote">${tn("grantsAuditEnded", e.endedSessions)}</span>` : null}</span>`
|
|
338
339
|
: html` <span class="note">${e.outcome === "sent" ? tn("grantsAuditCodeSent") : tn("grantsAuditCodeNot", auditOutcome(e.outcome))}</span>`}</li>`)}</ul>`}</details>` : null}
|
|
@@ -9,6 +9,7 @@ import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
|
9
9
|
import { register, t, lang } from "/assets/app-i18n.js";
|
|
10
10
|
import { api } from "./settings-confirm.js";
|
|
11
11
|
import { typedOrigin, shownAddress, defaultListen } from "./settings-hub-web-address.js";
|
|
12
|
+
import { clockFormat } from "/assets/clock-text.js";
|
|
12
13
|
|
|
13
14
|
register("hubMemberAddress", {
|
|
14
15
|
en: {
|
|
@@ -94,7 +95,7 @@ const errorText = (r) => {
|
|
|
94
95
|
if (Number.isSafeInteger(r.retryAt) && r.retryAt > 0) {
|
|
95
96
|
try {
|
|
96
97
|
const at = new Date(Math.ceil(r.retryAt / 60_000) * 60_000);
|
|
97
|
-
if (!Number.isNaN(at.getTime())) time =
|
|
98
|
+
if (!Number.isNaN(at.getTime())) time = clockFormat({ hour: "2-digit", minute: "2-digit" }, lang()).format(at);
|
|
98
99
|
} catch { /* Fall back to the no-time wording. */ }
|
|
99
100
|
}
|
|
100
101
|
return copy(time ? "err_joining" : "err_joining_no_time", time);
|
|
@@ -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: "
|
|
63
|
+
network: "監聽位址無法使用,或連接埠已被佔用。請使用這台電腦上的位址及可用、不同的連接埠。", trust: "請核對並確認每一張 CA 憑證的指紋後繼續。",
|
|
64
64
|
expired: "這次檢查已到期。請返回並重新測試。", stale: "設定過程中其他設定已變更。請重新整理後再開始。", denied: "只有這台電腦自己的登入能設定 Hub。請到執行 AgEnD 的那台電腦,在終端機執行 agend web,再用它開啟的頁面設定。",
|
|
65
65
|
busy: "另一項設定檢查仍在執行。請稍候再試。", unavailable: "設定未能完成。再次嘗試前,請先檢查設定頁。",
|
|
66
66
|
uncertain: "無法確認結果。請先重新整理設定頁,確認 Hub 是否已建立,再嘗試一次。", caInvalid: "請使用一到四張 PEM CA 憑證,不要包含其他文字。",
|
|
@@ -5,6 +5,7 @@ import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
|
5
5
|
import { api } from "./settings-confirm.js";
|
|
6
6
|
import { hs, setupError } from "./settings-hub-setup-strings.js";
|
|
7
7
|
import { HUB_NAME_MAX } from "./hub-client.js"; // M-3235: the one Hub-name maximum (what the brand shows)
|
|
8
|
+
import { dateTimeText } from "/assets/clock-text.js";
|
|
8
9
|
// These words travel with the new renderer, even when the tab retains the setup dictionary.
|
|
9
10
|
register("hubSetupReady", {
|
|
10
11
|
en: {
|
|
@@ -224,7 +225,7 @@ export function HubSetupSettings() {
|
|
|
224
225
|
].map(([key, value]) => html`<div class="kv"><span class="k">${hs(key)}</span><span class="v mono">${value}</span></div>`)}
|
|
225
226
|
<div class="kv"><span class="k">${hs("ca")}</span><span class="v">${form.ca === "system" ? hs("system") : html`<span>${fingerprints.map(fp => html`<${Fingerprint} value=${fp} />`)}</span>`}</span></div>
|
|
226
227
|
</div></details>
|
|
227
|
-
<p class="note">${hs("expires")}: ${
|
|
228
|
+
<p class="note">${hs("expires")}: ${dateTimeText(review.expiresAt)}</p><p class="note">${hs("reviewHint")}</p>` : null}
|
|
228
229
|
<div class="s-row">
|
|
229
230
|
${step > 1 ? html`<button class="btn" type="button" onClick=${() => { clearDraft(); setFailureCode(""); setStep(step === 4 ? (form.certificate === "import" ? 1 : 2) : step - 1); }}>${hs("back")}</button>` : null}
|
|
230
231
|
${step < 4 ? html`<button class="btn btn-primary" type="submit">${hs(step === 3 ? "test" : "next")}</button>` : html`<button class="btn btn-primary" type="button" disabled=${!review} onClick=${commit}>${hs("create")}</button>`}
|
|
@@ -8,6 +8,7 @@ import { html, useEffect, useState } from "/assets/app-html.js";
|
|
|
8
8
|
import { Skeleton } from "/assets/ui-states.js";
|
|
9
9
|
import { register, t, lang } from "/assets/app-i18n.js";
|
|
10
10
|
import { api } from "./settings-confirm.js";
|
|
11
|
+
import { clockFormat } from "/assets/clock-text.js";
|
|
11
12
|
|
|
12
13
|
register("hubWebAddress", {
|
|
13
14
|
en: {
|
|
@@ -88,7 +89,7 @@ const errorText = (r) => {
|
|
|
88
89
|
try {
|
|
89
90
|
// Round up: the displayed minute must not invite a retry before the exact deadline.
|
|
90
91
|
const at = new Date(Math.ceil(r.retryAt / 60_000) * 60_000);
|
|
91
|
-
if (!Number.isNaN(at.getTime())) time =
|
|
92
|
+
if (!Number.isNaN(at.getTime())) time = clockFormat({ hour: "2-digit", minute: "2-digit" }, lang()).format(at);
|
|
92
93
|
} catch { /* The no-time wording also supports an older response or browser. */ }
|
|
93
94
|
}
|
|
94
95
|
return copy(time ? "err_joining" : "err_joining_no_time", time);
|
package/dist/ui/settings-hub.js
CHANGED
|
@@ -23,6 +23,7 @@ import { hp } from "./hub-pairing-progress-strings.js";
|
|
|
23
23
|
import { hpf, pairingCodeState, pairingFailure } from "./hub-pairing-form-strings.js";
|
|
24
24
|
import { HubPageSharingSettings } from "./settings-hub-page-sharing.js";
|
|
25
25
|
import { HubUpdateConsent } from "./settings-hub-updates.js";
|
|
26
|
+
import { timeText } from "/assets/clock-text.js";
|
|
26
27
|
|
|
27
28
|
register("hubSharingFleet", {
|
|
28
29
|
en: { hint: "To pause and resume without clearing the allow list, open this agent under My agents on the Hub. Turning Share off stops sharing." },
|
|
@@ -170,7 +171,7 @@ export function HubConnectCard({ embedded = false, onPairing, labels = {}, prefi
|
|
|
170
171
|
<p class="note">${hw("hubProgressHidden")}</p>`
|
|
171
172
|
: html`<p class="hub-steps-lead">${hw("pendingSteps")}</p>
|
|
172
173
|
<ul class="hub-steps">${step(p.ownerConfirmed, "ownerStep")}${step(p.adminApproved, "adminStep")}</ul>`}
|
|
173
|
-
${Number.isFinite(p.expiresAt) ? html`<p class="note">${hw("expires",
|
|
174
|
+
${Number.isFinite(p.expiresAt) ? html`<p class="note">${hw("expires", timeText(p.expiresAt))}</p>` : null}
|
|
174
175
|
<div class="field-row"><button type="button" class="btn" disabled=${busy} onClick=${cancel}>${hw("cancel")}</button></div>
|
|
175
176
|
</div>`;
|
|
176
177
|
} else if (p.state === "paired") {
|
|
@@ -218,8 +218,8 @@ register("settingsLayout", {
|
|
|
218
218
|
"zh-TW": {
|
|
219
219
|
"revDashboard_log": "Agent 紀錄分頁",
|
|
220
220
|
"revDashboardHint_log": "顯示提示、回覆、工具步驟與 Fleet 事件;機密值會遮蔽,公開連結也看得到。開啟需確認。",
|
|
221
|
-
"revDashboard_thinking": "
|
|
222
|
-
"revDashboardHint_thinking": "把模型的思考加進 Agent
|
|
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: "
|
|
65
|
-
ntStep_origin: "
|
|
66
|
-
ntStep_tunnel: "
|
|
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
|
|
71
|
-
"nt_values_bad-port": "請填 1024–65535
|
|
72
|
-
"nt_values_no-token": "沒有 connector token:請貼在下方(Cloudflare →
|
|
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}
|
|
77
|
-
"nt_origin_port-in-use": "
|
|
78
|
-
"nt_origin_origin-failed": "AgEnD
|
|
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": "
|
|
80
|
+
"nt_origin_tunnel-busy": "另一條通道正在啟動或執行(公開連結或登入用)。請過一分鐘再試。",
|
|
81
81
|
nt_tunnel_ok: "已連上 Cloudflare。",
|
|
82
82
|
nt_tunnel_live: "開著的連結已連線。",
|
|
83
|
-
nt_tunnel_auth: "Cloudflare 拒絕這個 token:它是錯的或已被更換。請到 Cloudflare
|
|
84
|
-
nt_tunnel_network: "這台主機在 20 秒內連不上 Cloudflare。請在這裡把通訊協定改成 http2,或請網路管理員允許對 Cloudflare
|
|
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
|
|
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}
|
|
93
|
-
"nt_reach_route-missing": "{0}
|
|
94
|
-
"nt_reach_self-unreachable": "
|
|
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: "
|
|
32
|
+
publicSessionCeiling: "工作階段也不會超過該帳號本身的限制:管理員依上面的工作階段時長,訪客依訪客設定。有結束時間的連結結束時,它的工作階段也一起結束。",
|
|
33
33
|
publicSessionTip: "限制越長,瀏覽器透過網際網路保持登入你的 fleet 的時間就越久。如果手機遺失,或在共用電腦上忘了登出,拿到它的人在工作階段結束前都能以你的身分操作。除非你常用手機開儀表板,否則建議保持短一點;裝置遺失時,請到「裝置」移除它。縮短會立刻結束已超過新限制的工作階段;延長需要你確認。",
|
|
34
|
-
publicSessionHint: "
|
|
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: "
|
|
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
|
|
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
|
|
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 工作時,聊天室顯示多少工具活動。關:不顯示。標準:簡短說明(例如「正在讀取檔案」)。詳細:說明加上指令預覽。",
|