@songsid/agend 2.3.5-alpha.10 → 2.3.5-alpha.12
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/accounts-view.d.ts +17 -0
- package/dist/accounts-view.js +24 -8
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-cli-instructions.md +2 -2
- package/dist/auth-api.d.ts +48 -16
- package/dist/auth-api.js +83 -32
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/settings-role.d.ts +56 -0
- package/dist/authority/settings-role.js +48 -0
- package/dist/authority/settings-role.js.map +1 -0
- package/dist/backend/claude-code.d.ts +2 -0
- package/dist/backend/claude-code.js +32 -6
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +6 -2
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/codex.d.ts +5 -3
- package/dist/backend/codex.js +31 -13
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +18 -0
- package/dist/backend/credential-profile.js +46 -0
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.d.ts +3 -1
- package/dist/backend/muse.js +31 -1
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +17 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +15 -0
- package/dist/backend-availability.js +37 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/bundled-tmux-guard.d.ts +4 -0
- package/dist/bundled-tmux-guard.js +7 -0
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/claude-auth-status.d.ts +20 -8
- package/dist/claude-auth-status.js +38 -22
- package/dist/claude-auth-status.js.map +1 -1
- package/dist/cli-audited.d.ts +60 -0
- package/dist/cli-audited.js +84 -0
- package/dist/cli-audited.js.map +1 -0
- package/dist/cli-capability.d.ts +36 -5
- package/dist/cli-capability.js +2 -2
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-caps-module.d.ts +5 -1
- package/dist/cli-caps-module.js +4 -2
- package/dist/cli-caps-module.js.map +1 -1
- package/dist/cli-registry-check.js +16 -2
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +56 -4
- package/dist/cli-registry.js +1 -1
- package/dist/cli-registry.js.map +1 -1
- package/dist/cli-spec-antigravity.d.ts +12 -1
- package/dist/cli-spec-antigravity.js +13 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli-spec-claude-code.d.ts +9 -0
- package/dist/cli-spec-claude-code.js +4 -2
- package/dist/cli-spec-claude-code.js.map +1 -1
- package/dist/cli-spec-codex.d.ts +10 -1
- package/dist/cli-spec-codex.js +5 -3
- package/dist/cli-spec-codex.js.map +1 -1
- package/dist/cli-spec-grok.d.ts +5 -0
- package/dist/cli-spec-grok.js +6 -1
- package/dist/cli-spec-grok.js.map +1 -1
- package/dist/cli-spec-kiro-cli.d.ts +7 -1
- package/dist/cli-spec-kiro-cli.js +7 -3
- package/dist/cli-spec-kiro-cli.js.map +1 -1
- package/dist/cli-spec-muse.d.ts +2 -0
- package/dist/cli-spec-muse.js +3 -1
- package/dist/cli-spec-muse.js.map +1 -1
- package/dist/cli-spec-opencode.d.ts +11 -1
- package/dist/cli-spec-opencode.js +7 -2
- package/dist/cli-spec-opencode.js.map +1 -1
- package/dist/cli.js +28 -1
- package/dist/cli.js.map +1 -1
- package/dist/create-host-account.d.ts +17 -0
- package/dist/create-host-account.js +47 -0
- package/dist/create-host-account.js.map +1 -0
- package/dist/daemon.d.ts +26 -0
- package/dist/daemon.js +131 -10
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.js +7 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-context.d.ts +5 -1
- package/dist/fleet-manager.d.ts +363 -71
- package/dist/fleet-manager.js +1374 -367
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +1 -1
- package/dist/fleet-process-handlers.js +3 -2
- package/dist/fleet-process-handlers.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +21 -14
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +9 -8
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +27 -20
- package/dist/instance-lifecycle.js +33 -3
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.js +29 -6
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +125 -81
- package/dist/locale.js.map +1 -1
- package/dist/login-manager.d.ts +2 -2
- package/dist/login-manager.js +3 -2
- package/dist/login-manager.js.map +1 -1
- package/dist/native-model-catalog.d.ts +20 -0
- package/dist/native-model-catalog.js +107 -2
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/public-web-gateway.js +1 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +5 -0
- package/dist/public-web-link.js +8 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/runtime-api.d.ts +1 -1
- package/dist/runtime-api.js +104 -12
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-autostart.d.ts +61 -0
- package/dist/runtime-autostart.js +161 -0
- package/dist/runtime-autostart.js.map +1 -0
- package/dist/runtime-background.d.ts +200 -0
- package/dist/runtime-background.js +480 -0
- package/dist/runtime-background.js.map +1 -0
- package/dist/runtime-build-info.js +5 -5
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-background.d.ts +92 -0
- package/dist/runtime-cli-background.js +336 -0
- package/dist/runtime-cli-background.js.map +1 -0
- package/dist/runtime-cli-install.d.ts +148 -8
- package/dist/runtime-cli-install.js +253 -59
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-cli.d.ts +8 -1
- package/dist/runtime-cli.js +206 -44
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +11 -0
- package/dist/runtime-client-store.js +20 -5
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +23 -1
- package/dist/runtime-client.js +92 -6
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-connection.d.ts +1 -1
- package/dist/runtime-connection.js +1 -1
- package/dist/runtime-connection.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +95 -1
- package/dist/runtime-coordinator.js +344 -10
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-enroll-notice.d.ts +4 -0
- package/dist/runtime-enroll-notice.js +21 -0
- package/dist/runtime-enroll-notice.js.map +1 -0
- package/dist/runtime-enrollment.d.ts +21 -0
- package/dist/runtime-enrollment.js +52 -0
- package/dist/runtime-enrollment.js.map +1 -0
- package/dist/runtime-pane-native.js +4 -4
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-protocol.d.ts +78 -1
- package/dist/runtime-protocol.js +95 -5
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-remote-accounts.d.ts +12 -0
- package/dist/runtime-remote-accounts.js +56 -5
- package/dist/runtime-remote-accounts.js.map +1 -1
- package/dist/runtime-remote-setup.d.ts +4 -1
- package/dist/runtime-remote-setup.js +4 -1
- package/dist/runtime-remote-setup.js.map +1 -1
- package/dist/runtime-update-controller.d.ts +11 -0
- package/dist/runtime-update-controller.js +56 -4
- package/dist/runtime-update-controller.js.map +1 -1
- package/dist/settings-api.d.ts +13 -1
- package/dist/settings-api.js +44 -20
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.d.ts +5 -13
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-confirmation.d.ts +11 -13
- package/dist/settings-confirmation.js +2 -6
- package/dist/settings-confirmation.js.map +1 -1
- package/dist/settings-effect.d.ts +5 -0
- package/dist/settings-effect.js +76 -10
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +8 -1
- package/dist/settings-http-confirmation.js +39 -13
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-request-capability.d.ts +7 -0
- package/dist/settings-request-capability.js +3 -1
- package/dist/settings-request-capability.js.map +1 -1
- package/dist/setup-i18n.js +4 -4
- package/dist/setup-i18n.js.map +1 -1
- package/dist/signin-keepalive.d.ts +25 -1
- package/dist/signin-keepalive.js +44 -1
- package/dist/signin-keepalive.js.map +1 -1
- package/dist/subagent-records.d.ts +45 -0
- package/dist/subagent-records.js +214 -0
- package/dist/subagent-records.js.map +1 -0
- package/dist/subagent-service.d.ts +27 -0
- package/dist/subagent-service.js +199 -0
- package/dist/subagent-service.js.map +1 -0
- package/dist/tmux-manager.d.ts +2 -2
- package/dist/tmux-manager.js +5 -3
- package/dist/tmux-manager.js.map +1 -1
- package/dist/ui/account-identity.js +7 -5
- package/dist/ui/accounts-keepalive.js +17 -17
- package/dist/ui/accounts-manage.js +34 -34
- package/dist/ui/accounts-view.js +68 -24
- package/dist/ui/agent-runtime-settings.js +1 -1
- package/dist/ui/backend-signin.js +67 -67
- package/dist/ui/chat-msg-actions.js +50 -4
- package/dist/ui/chat-quote.js +256 -0
- package/dist/ui/chat-store.js +9 -4
- package/dist/ui/cli-caps.js +7 -7
- package/dist/ui/credential-profile-select.js +4 -4
- package/dist/ui/general-location.js +1 -1
- package/dist/ui/host-install.js +290 -0
- package/dist/ui/hub-company-join-strings.js +3 -0
- package/dist/ui/hub-company-join.js +20 -2
- package/dist/ui/hub-owner-strings.js +5 -4
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-strings.js +4 -4
- package/dist/ui/hub-strings.js +6 -6
- package/dist/ui/machine-signin.js +4 -4
- package/dist/ui/model-picker.js +68 -0
- package/dist/ui/panel-chat.js +74 -13
- package/dist/ui/panel-fleet.js +8 -2
- package/dist/ui/panel-hub.js +8 -4
- package/dist/ui/panel-needs.js +2 -2
- package/dist/ui/panel-runtimes.js +232 -33
- package/dist/ui/panel-settings.js +7 -1
- package/dist/ui/panel-windows-cli.js +1 -1
- package/dist/ui/runtime-cli-install.js +99 -20
- package/dist/ui/runtime-commands.d.ts +2 -0
- package/dist/ui/runtime-commands.js +34 -1
- package/dist/ui/runtime-update-status.js +2 -2
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +167 -0
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-catalog.js +19 -3
- package/dist/ui/settings-confirm.js +2 -2
- package/dist/ui/settings-devices.js +59 -25
- package/dist/ui/settings-dialogs.js +12 -13
- package/dist/ui/settings-guests.js +1 -1
- package/dist/ui/settings-hub-company-join.js +10 -7
- package/dist/ui/settings-hub-connection.js +121 -0
- package/dist/ui/settings-hub-membership.js +1 -1
- package/dist/ui/settings-hub-run.js +5 -6
- package/dist/ui/settings-hub-section.js +3 -6
- package/dist/ui/settings-hub.js +12 -7
- package/dist/ui/settings-layout.js +9 -7
- package/dist/ui/settings-outside.js +87 -19
- package/dist/ui/settings-registry.js +2 -1
- package/dist/ui/settings-revoke-strings.js +28 -0
- package/dist/ui/settings-strings.js +25 -25
- package/dist/ui/settings-web-authority.js +11 -4
- package/dist/ui/shared/accounts.css +11 -1
- package/dist/ui/shared/agend-auth.js +8 -1
- package/dist/ui/shared/app-i18n.js +10 -12
- package/dist/ui/shared/app-session.js +13 -16
- package/dist/ui/shared/app-shell.js +37 -37
- package/dist/ui/shared/app-store.js +2 -0
- package/dist/ui/shared/app.css +85 -14
- package/dist/ui/shared/chat-render.js +17 -5
- package/dist/ui/shared/chat-strings.js +4 -4
- package/dist/ui/shared/device-roles.js +27 -0
- package/dist/ui/shared/host-install.css +10 -0
- package/dist/ui/shared/hub-owner.css +6 -0
- package/dist/ui/shared/model-picker.css +21 -0
- package/dist/ui/shared/runtime-install.css +26 -1
- package/dist/ui/shared/setup-host-text.js +4 -4
- package/dist/ui/shared/signin.js +171 -64
- package/dist/ui/shared/subagent-row.css +15 -0
- package/dist/ui/shared/usage-dialog.js +28 -16
- package/dist/ui/shared/view-strings.js +7 -7
- package/dist/ui/shared/web-authorize.js +54 -4
- package/dist/ui/signin.html +19 -8
- package/dist/ui/structured-signin.js +30 -30
- package/dist/ui/subagent-row.js +72 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- package/dist/update-launch.js +4 -1
- package/dist/update-launch.js.map +1 -1
- package/dist/update-npm-env.d.ts +70 -0
- package/dist/update-npm-env.js +128 -0
- package/dist/update-npm-env.js.map +1 -0
- package/dist/usage/format-rich.js +1 -1
- package/dist/usage/format-rich.js.map +1 -1
- package/dist/usage/providers.js +2 -2
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/usage-api.d.ts +8 -2
- package/dist/usage/usage-api.js +12 -5
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/web-api.d.ts +38 -4
- package/dist/web-api.js +370 -18
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +1 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-backend-login.d.ts +2 -0
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-channel-echo.js +3 -1
- package/dist/web-channel-echo.js.map +1 -1
- package/dist/web-commands.d.ts +9 -1
- package/dist/web-commands.js +7 -1
- package/dist/web-commands.js.map +1 -1
- package/dist/web-host-install.d.ts +127 -0
- package/dist/web-host-install.js +165 -0
- package/dist/web-host-install.js.map +1 -0
- package/dist/web-remote-access.d.ts +194 -11
- package/dist/web-remote-access.js +458 -34
- package/dist/web-remote-access.js.map +1 -1
- package/dist/web-session.d.ts +11 -3
- package/dist/web-session.js.map +1 -1
- package/dist/web-signin-device.d.ts +16 -0
- package/dist/web-signin-device.js +81 -0
- package/dist/web-signin-device.js.map +1 -0
- package/dist/web-update.js +3 -1
- package/dist/web-update.js.map +1 -1
- package/dist/windows-cli-api.js +2 -1
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +14 -0
- package/dist/windows-cli-worker.js +145 -1
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +4 -0
- package/dist/windows-cli.js +9 -1
- package/dist/windows-cli.js.map +1 -1
- package/launcher/agend-install.cjs +16 -3
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +219 -12
|
@@ -19,7 +19,7 @@ register("settingsLayout", {
|
|
|
19
19
|
lead_hub: "Connect this fleet to a team Hub, compare its fingerprint, and choose which agents to share there.",
|
|
20
20
|
lead_notifications: "Choose when account usage reminders are sent, and to whom.",
|
|
21
21
|
editor: "Configuration editor", effective: "Effective settings (read only)",
|
|
22
|
-
aiAccounts: "AI accounts and keys", aiAccountsHint: "
|
|
22
|
+
aiAccounts: "AI accounts and keys", aiAccountsHint: "Connected AI accounts and supported provider keys on the AgEnD host. Windows CLI status is shown under Runtime.",
|
|
23
23
|
classicDefaults: "ClassicBot defaults and access",
|
|
24
24
|
},
|
|
25
25
|
"zh-TW": {
|
|
@@ -35,21 +35,21 @@ register("settingsLayout", {
|
|
|
35
35
|
lead_hub: "將這個 Fleet 連線至團隊 Hub、比對指紋,並選擇要在那裡分享的 Agent。",
|
|
36
36
|
lead_notifications: "設定帳號用量提醒的時機與傳送對象。",
|
|
37
37
|
editor: "設定編輯器", effective: "生效設定(唯讀)",
|
|
38
|
-
aiAccounts: "AI 帳號與金鑰", aiAccountsHint: "管理 AgEnD
|
|
38
|
+
aiAccounts: "AI 帳號與金鑰", aiAccountsHint: "管理 AgEnD 主機上連接的 AI 帳號與支援的供應商金鑰;Windows CLI 狀態請到 Runtime 查看。",
|
|
39
39
|
classicDefaults: "ClassicBot 預設行為與存取",
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
register("settingsLayout", {
|
|
44
44
|
en: {
|
|
45
|
-
aiAccounts: "AI
|
|
46
|
-
aiHostScope: "Credentials on the AgEnD host and paired computers", aiAccountsHint: "
|
|
45
|
+
aiAccounts: "AI accounts and API keys", aiAccountsSummary: "AI accounts connected on the host and provider API keys, managed separately.",
|
|
46
|
+
aiHostScope: "Credentials on the AgEnD host and paired computers", aiAccountsHint: "Connected AI accounts are listed per computer: this AgEnD host, then each paired computer. Provider API keys belong to the host.", aiWindowsLink: "Manage Windows computers and their CLIs in Runtime",
|
|
47
47
|
apiKeysTitle: "Provider API keys", apiKeysHint: "API credentials for supported provider integrations.", apiKeysUnavailableState: "Not offered", apiKeysUnavailable: "Provider API key management is not offered in this session.",
|
|
48
48
|
apiNewPlaceholder: "Enter an API key to verify", apiReplacePlaceholder: "Enter a replacement API key",
|
|
49
49
|
},
|
|
50
50
|
"zh-TW": {
|
|
51
|
-
aiAccounts: "AI
|
|
52
|
-
aiHostScope: "AgEnD 主機與已配對電腦上的憑證", aiAccountsHint: "
|
|
51
|
+
aiAccounts: "AI 帳號與 API 金鑰", aiAccountsSummary: "分開管理主機上連接的 AI 帳號與供應商 API 金鑰。",
|
|
52
|
+
aiHostScope: "AgEnD 主機與已配對電腦上的憑證", aiAccountsHint: "連接的 AI 帳號依電腦列出:先是這台 AgEnD 主機,再來是每台已配對電腦。供應商 API 金鑰屬於主機。", aiWindowsLink: "前往 Runtime 管理 Windows 電腦與 CLI",
|
|
53
53
|
apiKeysTitle: "供應商 API 金鑰", apiKeysHint: "供支援的供應商整合功能使用的 API 憑證。", apiKeysUnavailableState: "目前未提供", apiKeysUnavailable: "此工作階段未提供供應商 API 金鑰管理。",
|
|
54
54
|
apiNewPlaceholder: "輸入要驗證的 API 金鑰", apiReplacePlaceholder: "輸入替換用的 API 金鑰",
|
|
55
55
|
},
|
|
@@ -59,6 +59,7 @@ export const layoutText = (key, ...values) => t(`settingsLayout.${key}`, ...valu
|
|
|
59
59
|
|
|
60
60
|
register("settingsLayout", {
|
|
61
61
|
"en": {
|
|
62
|
+
"accessOverview": "Overview",
|
|
62
63
|
"accessLogin": "Sign-in & authority",
|
|
63
64
|
"accessGuests": "Guests",
|
|
64
65
|
"accessSharing": "Public & sharing",
|
|
@@ -75,6 +76,7 @@ register("settingsLayout", {
|
|
|
75
76
|
"effectiveSourceDefault": "Default"
|
|
76
77
|
},
|
|
77
78
|
"zh-TW": {
|
|
79
|
+
"accessOverview": "總覽",
|
|
78
80
|
"accessLogin": "登入與授權",
|
|
79
81
|
"accessGuests": "訪客",
|
|
80
82
|
"accessSharing": "公開與分享",
|
|
@@ -229,7 +231,7 @@ register("settingsLayout", {
|
|
|
229
231
|
"revEditorContext": "Fleet 設定檔・個別設定可使用對應表單調整",
|
|
230
232
|
"revUpdateCredential": "更新連接器憑證",
|
|
231
233
|
"revSetCredential": "設定連接器憑證",
|
|
232
|
-
"revAuthorityBrief": "僅限已登入的 Fleet
|
|
234
|
+
"revAuthorityBrief": "僅限已登入的 Fleet 管理員,並須在 Discord 或 Telegram 確認本人帳號授權;訪客不適用。發布、破壞性操作、花費、密鑰與轉交授權都需要它。",
|
|
233
235
|
"revAuthorityDetails": "授權規則說明",
|
|
234
236
|
"revAuthorityEnabled": "允許網頁授權",
|
|
235
237
|
"revAuthorityEnabledHint": "關閉會立即使現有授權失效;重新開啟不會恢復。",
|
|
@@ -26,7 +26,8 @@ register("outside", {
|
|
|
26
26
|
againConfirm: "Codes from the old app stop working, and everyone signed in from outside is signed out.",
|
|
27
27
|
remove: "Remove", removeConfirm: "Connections from outside are turned off, and everyone signed in from outside is signed out.",
|
|
28
28
|
openAt: "Open at {0}.", quick: "A quick link gets a new address each time it opens.",
|
|
29
|
-
hereOnly: "
|
|
29
|
+
hereOnly: "This can only be changed on the computer running AgEnD.",
|
|
30
|
+
switchHere: "Connections from outside are turned on and off on the computer running AgEnD.",
|
|
30
31
|
lostPhone: "Lost your phone? On the AgEnD computer, choose “Set up again”. There is no email or backup-code recovery.",
|
|
31
32
|
noRecovery: "If you lose the authenticator, set it up again on the AgEnD computer. There is no email or backup-code recovery.",
|
|
32
33
|
appsLabel: "Works with these authenticator apps", appOther: "Other TOTP authenticators",
|
|
@@ -35,26 +36,43 @@ register("outside", {
|
|
|
35
36
|
wrong: "That code didn't work. Check that your phone's clock is right and try the newest code.",
|
|
36
37
|
paused: "Too many wrong codes. Try again in {0}.", code: "Authenticator code", key: "Key",
|
|
37
38
|
minutes: "{0} minutes", minute: "1 minute", hours: "{0} hours", hour: "1 hour",
|
|
39
|
+
leadConfirm: "Your own authenticator app. With it you can ask for its 6-digit code each time you confirm a change from another device; nobody else can set it up, change it or switch that on or off for you.",
|
|
40
|
+
strictLabel: "Ask for my authenticator code to confirm changes from other devices",
|
|
41
|
+
strictHint: "Off (the default): you apply a change from any device with Apply now. On: off the computer running AgEnD, each of YOUR confirmations takes the code for that change. It never applies to other admins, and turning it off, or replacing or removing your app, asks for your current code. Every set-up, change and switch posts a Notice to the fleet's admins.",
|
|
42
|
+
strictNeedApp: "Set up your authenticator app first.",
|
|
43
|
+
askStrictOff: "Turning this off needs your current code.",
|
|
44
|
+
askTitle: "Enter the current code", askLead: "Your authenticator is asked for here: enter the code your authenticator app shows now to continue.",
|
|
45
|
+
askRemove: "Your code will no longer be accepted, and while your switch was on, your confirmations from other devices will take Apply now again.",
|
|
46
|
+
askContinue: "Continue", askRemoveGo: "Remove", askCode: "Authenticator code",
|
|
38
47
|
},
|
|
39
48
|
"zh-TW": {
|
|
40
|
-
title: "擁有者驗證", lead: "使用驗證器 App 的 6
|
|
49
|
+
title: "擁有者驗證", lead: "使用驗證器 App 的 6 位數驗證碼,從外面證明你是這個 fleet 的擁有者。",
|
|
41
50
|
stateOn: "驗證器已設定", stateOff: "尚未設定", switch: "允許從外面連線",
|
|
42
|
-
needApp: "請先設定驗證器 App
|
|
51
|
+
needApp: "請先設定驗證器 App。從外面登入時會要求輸入它的 6 位數驗證碼。",
|
|
43
52
|
setUp: "設定驗證器",
|
|
44
|
-
scan: "用 Authy、Google Authenticator 或 Microsoft Authenticator 掃描,或手動輸入金鑰,再輸入 App 顯示的 6
|
|
53
|
+
scan: "用 Authy、Google Authenticator 或 Microsoft Authenticator 掃描,或手動輸入金鑰,再輸入 App 顯示的 6 位數驗證碼。",
|
|
45
54
|
setUpOn: "驗證器 App 已於 {0} 設定。", again: "重新綁定驗證器",
|
|
46
|
-
againConfirm: "舊 App
|
|
55
|
+
againConfirm: "舊 App 的驗證碼會失效,所有從外面登入的人都會被登出。",
|
|
47
56
|
remove: "停用", removeConfirm: "從外面連線會關閉,所有從外面登入的人都會被登出。",
|
|
48
57
|
openAt: "已開啟:{0}。", quick: "快速連結每次開啟網址都不同。",
|
|
49
|
-
hereOnly: "
|
|
58
|
+
hereOnly: "只能在執行 AgEnD 的那台電腦上變更。",
|
|
59
|
+
switchHere: "從外面連線的開關,要在執行 AgEnD 的那台電腦上操作。",
|
|
50
60
|
lostPhone: "手機遺失?請在 AgEnD 電腦上選「重新綁定驗證器」。沒有電子郵件或備援碼復原。",
|
|
51
61
|
noRecovery: "遺失驗證器時,請回 AgEnD 主機重新綁定。沒有電子郵件或備援碼復原。",
|
|
52
62
|
appsLabel: "可使用的驗證器 App", appOther: "其他 TOTP 驗證器",
|
|
53
|
-
step1: "1. 在驗證器中新增 AgEnD", step2: "2.
|
|
63
|
+
step1: "1. 在驗證器中新增 AgEnD", step2: "2. 輸入 6 位數驗證碼以完成綁定",
|
|
54
64
|
activate: "驗證並啟用", removeTitle: "停用驗證器?",
|
|
55
|
-
wrong: "
|
|
56
|
-
paused: "錯誤次數太多,請 {0} 後再試。", code: "
|
|
65
|
+
wrong: "驗證碼不對。請確認手機時間正確,並輸入最新的驗證碼。",
|
|
66
|
+
paused: "錯誤次數太多,請 {0} 後再試。", code: "6 位數驗證碼(驗證器 App)", key: "金鑰",
|
|
57
67
|
minutes: "{0} 分鐘", minute: "1 分鐘", hours: "{0} 小時", hour: "1 小時",
|
|
68
|
+
leadConfirm: "你自己的驗證器 App。可以在每次從其他裝置確認變更時要求它的 6 位數驗證碼;別人無法替你設定、更換或開關。",
|
|
69
|
+
strictLabel: "從其他裝置確認變更時要我的驗證碼",
|
|
70
|
+
strictHint: "關閉(預設):你可以在任何裝置按「直接套用」完成變更。開啟:在執行 AgEnD 的那台電腦以外,「你自己」的每次確認都要輸入該項變更的驗證碼。只約束你自己,不影響其他管理員;要關閉、或更換/停用你的 App,都要輸入你目前的驗證碼。每次設定、變更與開關都會通知全體管理員。",
|
|
71
|
+
strictNeedApp: "請先設定你的驗證器 App。",
|
|
72
|
+
askStrictOff: "關閉需要你目前的驗證碼。",
|
|
73
|
+
askTitle: "請輸入目前的驗證碼", askLead: "這裡要求你的驗證器:請輸入驗證器 App 現在顯示的驗證碼才能繼續。",
|
|
74
|
+
askRemove: "之後不再接受你的驗證碼;你原本開啟的要求也會一併結束,從其他裝置的確認會回到「直接套用」。",
|
|
75
|
+
askContinue: "繼續", askRemoveGo: "停用", askCode: "6 位數驗證碼(驗證器 App)",
|
|
58
76
|
},
|
|
59
77
|
});
|
|
60
78
|
const to = (k, ...v) => t(`outside.${k}`, ...v);
|
|
@@ -109,9 +127,10 @@ function Qr({ uri }) {
|
|
|
109
127
|
* back) meets the same request.
|
|
110
128
|
*/
|
|
111
129
|
let enrolling = null;
|
|
112
|
-
function askEnrollment() {
|
|
130
|
+
function askEnrollment(code) {
|
|
113
131
|
if (!enrolling) {
|
|
114
|
-
|
|
132
|
+
// AGEND-122: while the owner's option asks for a code, replacing the app starts with the current one (`code`).
|
|
133
|
+
const asked = (async () => { try { return await api("/ui/outside/enroll", { method: "POST", body: JSON.stringify(code ? { code } : {}) }); } catch { return null; } })();
|
|
115
134
|
enrolling = asked.finally(() => { enrolling = null; });
|
|
116
135
|
}
|
|
117
136
|
return enrolling;
|
|
@@ -126,6 +145,8 @@ export const outsidePoll = { quickMs: 2000, slowMs: 15000 };
|
|
|
126
145
|
export function OutsideCard() {
|
|
127
146
|
// `dlg`: the set-up dialog while it is open — { kind: "setup" | "again", enroll: null (asking the server) | { secret, uri } }.
|
|
128
147
|
const [s, setS] = useState(null), [dlg, setDlg] = useState(null), [code, setCode] = useState(""), [msg, setMsg] = useState(""), [busy, setBusy] = useState(false);
|
|
148
|
+
// `ask`: the current-code dialog while it is open — { kind: "again" | "remove", code, msg } (AGEND-122).
|
|
149
|
+
const [ask, setAsk] = useState(null);
|
|
129
150
|
// Fences: an answer that arrives after the card is gone, or after a newer read began, is dropped; nor does a read
|
|
130
151
|
// land while an action is under way (the box shows the click until the action's own read). `dlg`: the same for the
|
|
131
152
|
// dialog's enrolment (closed meanwhile: its answer is dropped); `refocus`: the dialog just closed, focus goes back.
|
|
@@ -162,8 +183,13 @@ export function OutsideCard() {
|
|
|
162
183
|
const el = card.current && card.current.querySelector(s && s.enrolled ? "#outAgain" : "#outSetUp");
|
|
163
184
|
if (el && !el.disabled && typeof el.focus === "function") el.focus();
|
|
164
185
|
}, [dlg, busy]);
|
|
165
|
-
if (!s
|
|
186
|
+
if (!s) return null;
|
|
166
187
|
const here = s.here === true;
|
|
188
|
+
// AGEND-122: whether this session may set up, replace or remove the app (an admin on a direct connection, this computer or
|
|
189
|
+
// another device; the server says, and refuses everything else). A server that does not say is read as the old rule: here.
|
|
190
|
+
const manage = s.manage !== undefined ? s.manage === true : here;
|
|
191
|
+
if (!s.webOnly && !manage && !s.enrolled) return null; // a chat fleet: nothing to show without an app or a say
|
|
192
|
+
|
|
167
193
|
const act = async (fn) => {
|
|
168
194
|
setBusy(true); setMsg(""); live.current.busy = true; live.current.seq++; // a read under way is outdated now
|
|
169
195
|
try { await fn(); } finally { live.current.busy = false; if (live.current.mounted) { setBusy(false); load(); } }
|
|
@@ -171,7 +197,8 @@ export function OutsideCard() {
|
|
|
171
197
|
// Open the dialog at once (the button that opened it still has focus) and ask the server for the secret meanwhile; if it
|
|
172
198
|
// will not give one, the dialog closes with the page's usual "failed". Nothing is changed until the right code is confirmed.
|
|
173
199
|
const begin = async (kind) => {
|
|
174
|
-
if (!
|
|
200
|
+
if (!manage || live.current.dlgOpen) return; // not allowed, or one is open already
|
|
201
|
+
if (kind === "again" && s.codeNeeded) { setAsk({ kind, code: "", msg: "" }); return; } // the current code first
|
|
175
202
|
const id = ++live.current.dlg;
|
|
176
203
|
live.current.dlgOpen = true;
|
|
177
204
|
setDlg({ kind, enroll: null }); setCode(""); setMsg("");
|
|
@@ -195,7 +222,32 @@ export function OutsideCard() {
|
|
|
195
222
|
setMsg(why === "wrong" ? to("wrong") : t("app.failed"));
|
|
196
223
|
});
|
|
197
224
|
const canConfirm = !!(dlg && dlg.enroll) && /^\s*\d{3}\s?\d{3}\s*$/.test(code);
|
|
225
|
+
// The current code, asked before replacing or removing the app while the owner's option asks for codes off this computer.
|
|
226
|
+
const askWhy = (r) => (r && r.status === 401 ? to("wrong") : r && r.status === 429 ? to("paused", waitWords((r.body && r.body.retryAfterMs) || 60000)) : t("app.failed"));
|
|
227
|
+
const canAsk = !!ask && /^\s*\d{3}\s?\d{3}\s*$/.test(ask.code);
|
|
228
|
+
const submitAsk = () => act(async () => {
|
|
229
|
+
const asked = ask;
|
|
230
|
+
if (asked.kind === "again") {
|
|
231
|
+
live.current.dlgOpen = true;
|
|
232
|
+
const r = await askEnrollment(asked.code);
|
|
233
|
+
if (r && r.ok && r.body && r.body.secret) { setAsk(null); setDlg({ kind: "again", enroll: r.body }); setCode(""); setMsg(""); return; }
|
|
234
|
+
live.current.dlgOpen = false;
|
|
235
|
+
setAsk({ ...asked, code: "", msg: askWhy(r) });
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const url = asked.kind === "strict" ? "/ui/outside/strict" : "/ui/outside/remove";
|
|
239
|
+
let r; try { r = await api(url, { method: "POST", body: JSON.stringify(asked.kind === "strict" ? { on: false, code: asked.code } : { code: asked.code }) }); } catch { r = null; }
|
|
240
|
+
if (r && r.ok) { setAsk(null); return; }
|
|
241
|
+
setAsk({ ...asked, code: "", msg: askWhy(r) });
|
|
242
|
+
});
|
|
243
|
+
// AGEND-122 (per admin): YOUR switch — on asks nothing, off asks your current code off the AgEnD computer.
|
|
244
|
+
const flipStrict = (on) => {
|
|
245
|
+
if (!on && s.codeNeeded) { setAsk({ kind: "strict", code: "", msg: "" }); return; }
|
|
246
|
+
setS((x) => ({ ...x, strict: on }));
|
|
247
|
+
act(async () => { const r = await api("/ui/outside/strict", { method: "POST", body: JSON.stringify({ on }) }); if (!r.ok) toast(t("app.failed"), false); });
|
|
248
|
+
};
|
|
198
249
|
const remove = async () => {
|
|
250
|
+
if (s.codeNeeded) { setAsk({ kind: "remove", code: "", msg: "" }); return; }
|
|
199
251
|
if (!(await confirmDialog({ title: to("removeTitle"), message: to("removeConfirm"), confirmLabel: to("remove"), danger: true }))) return;
|
|
200
252
|
act(async () => { const r = await api("/ui/outside/remove", { method: "POST", body: "{}" }); if (!r.ok) toast(t("app.failed"), false); });
|
|
201
253
|
};
|
|
@@ -206,20 +258,36 @@ export function OutsideCard() {
|
|
|
206
258
|
if (!r.ok) toast(t("app.failed"), false);
|
|
207
259
|
}); };
|
|
208
260
|
const link = s.link, open = link && link.state === "open";
|
|
209
|
-
return html`<section class="card s-outside" id="outsideCard" ref=${card}><header class="s-auth-section-head"><div><h3>${to("title")}</h3><p id="outLead">${to("lead")}</p></div><span class=${`s-auth-state${s.enrolled ? " is-usable" : ""}`} id="outState">${to(s.enrolled ? "stateOn" : "stateOff")}</span></header>
|
|
261
|
+
return html`<section class="card s-outside" id="outsideCard" ref=${card}><header class="s-auth-section-head"><div><h3>${to("title")}</h3><p id="outLead">${to(s.webOnly ? "lead" : "leadConfirm")}</p></div><span class=${`s-auth-state${s.enrolled ? " is-usable" : ""}`} id="outState">${to(s.enrolled ? "stateOn" : "stateOff")}</span></header>
|
|
210
262
|
<div class="chips s-out-apps" id="outApps" role="list" aria-label=${to("appsLabel")}><span class="tag" role="listitem">Google Authenticator</span><span class="tag" role="listitem">Microsoft Authenticator</span><span class="tag" role="listitem">${to("appOther")}</span></div>
|
|
211
|
-
${!
|
|
212
|
-
|
|
263
|
+
${!manage ? html`<p class="note" id="outHereOnly">${to("hereOnly")}</p>` : null}
|
|
264
|
+
${s.webOnly ? html`<label class="check"><input id="outSwitch" class="s-ui-toggle" type="checkbox" role="switch" checked=${s.outside} disabled=${!here || busy || (!s.enrolled && !s.outside)}
|
|
213
265
|
onChange=${(e) => flip(e.target.checked)} /><span>${to("switch")}</span></label>
|
|
214
|
-
${!
|
|
266
|
+
${manage && !here ? html`<p class="note" id="outSwitchHere">${to("switchHere")}</p>` : null}` : null}
|
|
267
|
+
${!s.enrolled && s.webOnly ? html`<p class="note" id="outNeedApp">${to("needApp")}</p>` : null}
|
|
215
268
|
${s.outside && open && link.url ? html`<p class="note" id="outOpenAt">${to("openAt", link.url)}${link.quick ? ` ${to("quick")}` : ""}</p>` : null}
|
|
216
269
|
${s.outside && link && !open ? html`<p class="note" id="outStarting">${t("app.loading")}</p>` : null}
|
|
217
270
|
${s.pausedForMs > 0 ? html`<p class="note s-va-warn" role="status" id="outPaused">${to("paused", waitWords(s.pausedForMs))}</p>` : null}
|
|
218
271
|
${s.enrolled ? html`<p class="note" id="outSetUpOn">${to("setUpOn", new Date(s.enrolledAt).toLocaleDateString())}</p>
|
|
219
272
|
<p class="note">${to("lostPhone")}</p>
|
|
220
|
-
${
|
|
273
|
+
${manage ? html`<label class="check"><input id="outStrict" class="s-ui-toggle" type="checkbox" role="switch" checked=${s.strict === true} disabled=${busy}
|
|
274
|
+
aria-describedby="outStrict-hint" onChange=${(e) => flipStrict(e.target.checked)} /><span>${to("strictLabel")}</span></label>
|
|
275
|
+
<p class="note" id="outStrict-hint">${to("strictHint")}</p>
|
|
276
|
+
<div class="save-row"><button type="button" class="btn" id="outAgain" disabled=${busy} onClick=${() => begin("again")}>${to("again")}</button>
|
|
221
277
|
<button type="button" class="btn btn-danger" id="outRemove" disabled=${busy} onClick=${remove}>${to("remove")}</button></div>` : null}`
|
|
222
|
-
: html`<p class="note" id="outNoRecovery">${to("noRecovery")}</p>${
|
|
278
|
+
: html`<p class="note" id="outNoRecovery">${to("noRecovery")}</p>${manage ? html`<div class="save-row"><button type="button" class="btn btn-primary" id="outSetUp" disabled=${busy} onClick=${() => begin("setup")}>${to("setUp")}</button></div>` : null}`}
|
|
279
|
+
${ask ? html`<${Dialog} title=${to(ask.kind === "remove" ? "removeTitle" : "askTitle")} onClose=${() => setAsk(null)} busy=${busy} actions=${html`
|
|
280
|
+
<button type="button" class="btn" id="outAskCancel" disabled=${busy} onClick=${() => setAsk(null)}>${t("app.cancel")}</button>
|
|
281
|
+
<button type="button" class=${`btn ${ask.kind === "remove" ? "btn-danger" : "btn-primary"}`} id="outAskGo" disabled=${busy || !canAsk} onClick=${submitAsk}>${to(ask.kind === "remove" ? "askRemoveGo" : "askContinue")}</button>`}>
|
|
282
|
+
<div class="s-out-enroll" id="outAsk"><p class="note">${to("askLead")}</p>
|
|
283
|
+
${ask.kind === "remove" ? html`<p class="note">${to("removeConfirm")}</p><p class="note">${to("askRemove")}</p>` : null}
|
|
284
|
+
${ask.kind === "strict" ? html`<p class="note">${to("askStrictOff")}</p>` : null}
|
|
285
|
+
<div class="field"><label for="outAskCode">${to("askCode")}</label>
|
|
286
|
+
<input id="outAskCode" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="7" placeholder="123456" value=${ask.code}
|
|
287
|
+
onInput=${(e) => setAsk({ ...ask, code: e.target.value })}
|
|
288
|
+
onKeyDown=${(e) => { if (e.key === "Enter" && canAsk && !busy) { e.preventDefault(); submitAsk(); } }} /></div>
|
|
289
|
+
${ask.msg ? html`<p class="feedback error" role="alert" id="outAskMsg">${ask.msg}</p>` : null}</div>
|
|
290
|
+
</${Dialog}>` : null}
|
|
223
291
|
${dlg ? html`<${Dialog} title=${to(dlg.kind === "again" ? "again" : "setUp")} onClose=${closeDlg} busy=${busy} actions=${html`
|
|
224
292
|
<button type="button" class="btn" id="outCancel" disabled=${busy} onClick=${closeDlg}>${t("app.cancel")}</button>
|
|
225
293
|
<button type="button" class="btn btn-primary" id="outConfirm" disabled=${busy || !canConfirm} onClick=${submitBind}>${to("activate")}</button>`}>
|
|
@@ -7,6 +7,7 @@ import { sectionPath } from "/assets/app-route.js";
|
|
|
7
7
|
import { navigate } from "/assets/app-nav.js";
|
|
8
8
|
import "./settings-strings.js";
|
|
9
9
|
import "./settings-shared-strings.js"; // search shows these labels from outside Settings (dailyTips, hangEnabled, crossInstanceVisibility)
|
|
10
|
+
import "./settings-revoke-strings.js"; // settings.vaRevokeOthers, the revoke button's label (a file of its own: PR #3553 review)
|
|
10
11
|
import "./settings-access-strings.js"; // …and this one (webLoginQr), added by Access & security (#3061)
|
|
11
12
|
import "/assets/chat-strings.js";
|
|
12
13
|
import { GUESTS_SETTINGS } from "./settings-guests.js";
|
|
@@ -105,7 +106,7 @@ const ROWS = [
|
|
|
105
106
|
["access.authority-named-link", "access", "#vaNamedLink", null, "web.verified_authority.named_link", ["named link", "my named link", "authorize", "fixed hostname"], ["固定網域", "授權", "named link"], L("Also over my named link", "也允許透過我的固定網域")],
|
|
106
107
|
["access.authority-quick-link", "access", "#vaQuickLink", null, "web.verified_authority.quick_link", ["temporary public link", "quick link", "quick tunnel", "authorize", "trycloudflare"], ["臨時公開連結", "授權", "quick tunnel"], L("Also over the temporary public link", "也允許透過臨時公開連結")],
|
|
107
108
|
["access.authority-hours", "access", "#vaHours", null, "web.verified_authority.max_session_hours", ["authorization hours", "how long", "authority"], ["授權時數", "多久"], L("How long a web authorization lasts", "網頁授權持續多久")],
|
|
108
|
-
["access.authority-revoke", "access", "#vaRevoke", "settings.
|
|
109
|
+
["access.authority-revoke", "access", "#vaRevoke", "settings.vaRevokeOthers", null, ["revoke", "sign out", "authority"], ["撤銷", "登出", "授權"]],
|
|
109
110
|
// Fleet · Advanced
|
|
110
111
|
// M-2738 (D4): the running version and Update — #3332's search for "update" found nothing.
|
|
111
112
|
["advanced.update", "advanced", ".s-update", null, null, ["update", "upgrade", "version", "new version", "check for updates", "release"], ["更新", "版本", "新版", "檢查更新", "升級"], L("Version and update", "版本與更新")],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// AGEND-138 (PR #3553 review round 2): the words of "Revoke other devices' authorization" — a module of their own, on purpose.
|
|
2
|
+
//
|
|
3
|
+
// settings-access-strings.js already exists on the release base and search-dialog.js / settings-registry.js import it, so a tab that
|
|
4
|
+
// opened search before the upgrade holds the OLD copy of that dictionary and the browser hands it back when the new Settings card
|
|
5
|
+
// imports the same URL: a key only the new copy had would show as the raw `settings.vaRevokeOthers…` key, in both languages. This
|
|
6
|
+
// file's URL is new, so no tab can hold an older copy of it. (The pattern is settings-shared-strings.js #3087 and
|
|
7
|
+
// settings-access-strings.js #3061; here the dictionary that would have been reused is itself a cached one.)
|
|
8
|
+
//
|
|
9
|
+
// Every module that reads one of these keys imports it: the card (settings-web-authority.js) and the search path that prints the
|
|
10
|
+
// button's label (settings-registry.js, search-dialog.js). tests/settings-revoke-strings-138.test.ts checks that, and loads the
|
|
11
|
+
// card against the base settings-access-strings.js (a fixture of the base bytes) to show that a stale tab still gets every word.
|
|
12
|
+
// The old settings.vaRevoke* keys stay in settings-strings.js untouched (a retained older card still finds its words).
|
|
13
|
+
import { register } from "/assets/app-i18n.js";
|
|
14
|
+
|
|
15
|
+
register("settings", {
|
|
16
|
+
en: {
|
|
17
|
+
vaRevokeOthers: "Revoke other devices' authorization", vaRevokeOthersTitle: "Revoke other devices' authorization?",
|
|
18
|
+
vaRevokeOthersConfirm: "Every other device's authorization ends, and every authority given from the web so far reads as none. Nobody is signed out, and this does not end any session's ability to confirm Settings changes: to make a session stop working, use Sign out everywhere or /web revoke.",
|
|
19
|
+
vaRevokeAffected: "These devices lose their authorization: {0}.", vaRevokeNoOthers: "No other device is authorized now.", vaRevokeKept: "This device (you) stays authorized.", vaRevokeOwnerOnly: "Only a verified owner can revoke.",
|
|
20
|
+
vaRevokedOthers: "Other devices' authorization is revoked. This device stays authorized.", vaRevokedAll: "Web authority given so far is revoked, this device's included.",
|
|
21
|
+
},
|
|
22
|
+
"zh-TW": {
|
|
23
|
+
vaRevokeOthers: "撤銷其他裝置的授權", vaRevokeOthersTitle: "撤銷其他裝置的授權?",
|
|
24
|
+
vaRevokeOthersConfirm: "其他裝置的授權都會結束,到目前為止從網頁給出的授權也都視為無。不會登出任何人,也不會讓任何 session 失去確認設定變更的能力:要讓某個 session 失效,請用「全部登出」或 /web revoke。",
|
|
25
|
+
vaRevokeAffected: "這些裝置會失去授權:{0}。", vaRevokeNoOthers: "目前沒有其他已授權的裝置。", vaRevokeKept: "這台裝置(你)會保留授權。", vaRevokeOwnerOnly: "只有已驗證擁有者能撤銷。",
|
|
26
|
+
vaRevokedOthers: "已撤銷其他裝置的授權,這台裝置仍保有授權。", vaRevokedAll: "已撤銷到目前為止的網頁授權,包含這台裝置。",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -561,14 +561,14 @@ register("settings", {
|
|
|
561
561
|
vaEnabled: "Web messages carry authority", vaEnabledHint: "On by default: a session carries authority only once its account confirms it from Discord or Telegram. Off: no web message carries authority, and any already given reads as none at once; authority given before it was turned off never comes back.",
|
|
562
562
|
vaStuckOff: "Web authority is off for now: its state could not be saved on this computer (see the fleet log). It comes back on by itself once it can be.",
|
|
563
563
|
vaLoopbackOnly: "Only this computer can authorize", vaLoopbackOnlyHint: "On: only a browser on this computer qualifies, not one on your network or tailnet, and authority already given from elsewhere reads as none. Turning it off again doesn't bring that back.",
|
|
564
|
-
vaNamedLink: "Also over my named link ({0})", vaNamedLinkHint: "On: a browser signed in over your own named-tunnel hostname may be authorized too (the same Confirm in your DM). It is reached from the internet, and Cloudflare sees its traffic: turning this on is confirmed in a
|
|
564
|
+
vaNamedLink: "Also over my named link ({0})", vaNamedLinkHint: "On: a browser signed in over your own named-tunnel hostname may be authorized too (the same Confirm in your DM), and an admin signed in over it may confirm Settings changes with Apply now — turn this on first, or a named-link session cannot. It is reached from the internet, and Cloudflare sees its traffic: turning this on is a held change, confirmed by a signed-in admin (with the confirming admin's own authenticator code if they asked for one), and a confirmation from another device posts a Notice. Off applies at once, and every authorization given over it reads as none. The temporary public link has its own option below.",
|
|
565
565
|
vaSessionNamed: "over your named link",
|
|
566
|
-
vaQuickLink: "Also over the temporary public link", vaQuickLinkHint: "On by default: a browser signed in over the temporary public link that /web opens may be authorized too (the same Confirm in your DM). That link is an address on the internet, served by Cloudflare's quick-tunnel service, which sees its traffic. Turning it back on is confirmed
|
|
566
|
+
vaQuickLink: "Also over the temporary public link", vaQuickLinkHint: "On by default: a browser signed in over the temporary public link that /web opens may be authorized too (the same Confirm in your DM). That link is an address on the internet, served by Cloudflare's quick-tunnel service, which sees its traffic. Turning it back on is a held change, confirmed by a signed-in admin (with the confirming admin's own authenticator code if they asked for one), and ends every authorization given so far (each browser confirms again). Turning it off applies at once. An authorized browser's authority ends with the link.",
|
|
567
567
|
vaSessionQuick: "over the temporary public link",
|
|
568
568
|
vaLanWarning: "The dashboard also answers to {0} (web.allowed_hosts). Anyone who reaches it there with a stolen sign-in could give authority in your name. Turn on \"Only this computer can authorize\" unless you trust everyone who can reach it.",
|
|
569
569
|
vaHours: "An authorization lasts (hours, {0}–{1})", vaHoursRange: "Must be a number from 1 to 48",
|
|
570
570
|
vaSessionsTitle: "Authorized sessions", vaSessionsNone: "No session is authorized now.", vaSessionUntil: "Authorized {0} · until {1}",
|
|
571
|
-
vaRevoke: "Revoke web authority", vaRevokeTitle: "Revoke all web authority?", vaRevokeConfirm: "Every authority given from the web so far reads as none from now on, and every session's authorization ends. Nobody is signed out: a session
|
|
571
|
+
vaRevoke: "Revoke web authority", vaRevokeTitle: "Revoke all web authority?", vaRevokeConfirm: "Every authority given from the web so far reads as none from now on, and every session's authorization ends. Nobody is signed out, and this does not end any session's ability to confirm Settings changes: to make a session stop working, use Sign out everywhere or /web revoke.",
|
|
572
572
|
vaRevoked: "Web authority given so far is revoked.", vaRevokedNotDurable: "Revoked for now, but it could not be saved: web authority stays off until it can be, and a restart before then undoes the revocation.", vaRevokeFailed: "That did not work — try again.",
|
|
573
573
|
webReadOnlyLead: "Read-only: these values control the dashboard's listeners and exposure. This page cannot change them.",
|
|
574
574
|
searchRetentionUnset: "not set (no age limit; 300,000-row cap)",
|
|
@@ -686,7 +686,7 @@ register("settings", {
|
|
|
686
686
|
se_hint: "留空即使用預設值。預覽由 AgEnD 依 bot 實際 react 的方式解析。進度前綴不是反應,而是進度訊息開頭的 emoji。",
|
|
687
687
|
noticeTopic: "頻道", noticeOff: "關閉",
|
|
688
688
|
webNotifyLogin: "網頁登入通知",
|
|
689
|
-
webNotifyLoginHint: "
|
|
689
|
+
webNotifyLoginHint: "發在頻道。關閉只停用管理員登入通知;訪客與公開連結安全通知仍會發出。預設:頻道。",
|
|
690
690
|
title: "設定",
|
|
691
691
|
myAgents: "我的 Agent",
|
|
692
692
|
bots: "機器人",
|
|
@@ -696,11 +696,11 @@ register("settings", {
|
|
|
696
696
|
publicLinkHint: "每次都需管理員明確啟用。Cloudflare 終止 TLS;登入者具有完整網頁管理權限。HTML 預覽會另開一條臨時通道,除非設定 web.preview_on_public_link: false。",
|
|
697
697
|
publicTtl: "公開連結分鐘數(1–480)",
|
|
698
698
|
publicTtlNamed: "公開連結分鐘數(0–10080;0 = 不到期)",
|
|
699
|
-
publicTtlNamedHint: "設定固定網域時,連結最長可開 7 天(10080 分鐘);設 0 則不會到期,直到關閉或 AgEnD
|
|
699
|
+
publicTtlNamedHint: "設定固定網域時,連結最長可開 7 天(10080 分鐘);設 0 則不會到期,直到關閉或 AgEnD 停止。每次登入仍需裝置登入碼。修改後的期限從下次開啟起生效;要結束目前的連結,請按「關閉」。",
|
|
700
700
|
publicTtlQuickRange: "Quick tunnel 只能設 1–480 分鐘。請調低,或設定固定網域以使用更長時間。",
|
|
701
701
|
publicTtlNamedRange: "設定固定網域時:請輸入 1 到 10080 的整數,或 0 代表不到期。",
|
|
702
702
|
publicAutoOpen: "AgEnD 啟動時重新開啟公開連結",
|
|
703
|
-
publicAutoOpenHint: "僅限固定網域。重新啟動後,會替上次用 /web
|
|
703
|
+
publicAutoOpenHint: "僅限固定網域。重新啟動後,會替上次用 /web 開啟連結的管理員重新開啟;不會發任何訊息。登入仍需裝置登入碼(用 /web 取得,或由曾登入過的瀏覽器在登入頁索取)。按「關閉」或 /web revoke 後,直到下次 /web 前都不會自動開啟。",
|
|
704
704
|
publicAutoOpenNeedsHostname: "需要固定網域——請取消勾選,或保留網域。",
|
|
705
705
|
publicProtocol: "Tunnel 協定",
|
|
706
706
|
namedHostname: "固定公開網域(選用)",
|
|
@@ -931,8 +931,8 @@ register("settings", {
|
|
|
931
931
|
staggerWarning: "數值太低可能造成啟動尖峰",
|
|
932
932
|
"sec_preferences": "偏好", syncedTitle: "在你所有的裝置同步", syncedLead: "這裡的變更會套用到你登入的每一台裝置。",
|
|
933
933
|
profileTitle: "你的名字",
|
|
934
|
-
profileLeadBound: "agent
|
|
935
|
-
profileLeadUnbound: "這個瀏覽器不是用私訊到你 Discord 或 Telegram
|
|
934
|
+
profileLeadBound: "agent 會把你從網頁送出的訊息,認成收到裝置登入碼的那個 Discord 或 Telegram 帳號:用它的 id,名字也用它的,除非你在這裡另外取名。它會跟著你到每一台登入的裝置。一般的請求,agent 會當作是你本人提出的;發布、破壞性操作、花費、密鑰,或把你的授權交給別人,則要先授權這個瀏覽器,或在 Discord、Telegram 上確認。",
|
|
935
|
+
profileLeadUnbound: "這個瀏覽器不是用私訊到你 Discord 或 Telegram 帳號的裝置登入碼登入的,所以 agent 會把你的網頁訊息看成「web-user」(或你在這裡設定的名字)。用 /web 的裝置登入碼登入,就能被認成你的帳號。",
|
|
936
936
|
profileName: "名字", profileHelp: "agent 看到:{0} · id {1}", profileSave: "儲存", profileClear: "改回 web-user", profileUseAccount: "改用 {0}",
|
|
937
937
|
profileSaved: "agent 現在會看到你是 {0}", profileFailed: "無法儲存名字",
|
|
938
938
|
syncedPublicLink: "公開連結只能讀取這些設定:在這裡變更只會留在這個瀏覽器。",
|
|
@@ -1008,7 +1008,7 @@ register("settings", {
|
|
|
1008
1008
|
cardSizeLead: "卡片上的 小/中/大 可單獨設定。",
|
|
1009
1009
|
cardLimitsTitle: "身分卡上傳限制",
|
|
1010
1010
|
cardLimitsLead: "留空=預設值。調高上限需管理員確認。",
|
|
1011
|
-
cardLimitsUnavailable: "
|
|
1011
|
+
cardLimitsUnavailable: "只有已登入的管理員能修改。",
|
|
1012
1012
|
cardLimit_portrait_max_width: "肖像寬度(px)", cardLimit_portrait_max_height: "肖像高度(px)", cardLimit_portrait_max_kib: "肖像大小(KiB)",
|
|
1013
1013
|
cardLimit_banner_max_width: "橫幅寬度(px)", cardLimit_banner_max_height: "橫幅高度(px)", cardLimit_banner_max_kib: "橫幅大小(KiB)",
|
|
1014
1014
|
cardLimit_instance_quota_files: "每個 agent 的圖片數", cardLimit_instance_quota_mib: "每個 agent 的圖片空間(MiB)",
|
|
@@ -1097,13 +1097,13 @@ register("settings", {
|
|
|
1097
1097
|
appIconLow: "小於 512\u00a0px:會被放大,可能不夠清晰。",
|
|
1098
1098
|
appIconNotAnImage: "無法把這個檔案讀成圖片。",
|
|
1099
1099
|
appIconLoadFailed: "讀不到 App 圖示的設定。",
|
|
1100
|
-
appIconReadOnly: "
|
|
1100
|
+
appIconReadOnly: "只有管理員的 session 能更換。",
|
|
1101
1101
|
appIconWho: "能打開這個網址的人都看得到:請別用私人照片。",
|
|
1102
1102
|
appIconIos: "iPhone 主畫面要刪掉捷徑重新加入才會換。",
|
|
1103
1103
|
appIconError_app_icon_too_large: "圖片太大({0})。",
|
|
1104
1104
|
appIconError_app_icon_not_png: "主機只接受 PNG({0})。",
|
|
1105
1105
|
appIconError_app_icon_unreadable: "這張圖無法使用:{0}。",
|
|
1106
|
-
appIconError_app_icon_admin_only: "
|
|
1106
|
+
appIconError_app_icon_admin_only: "只有管理員的 session 能更換 App 圖示。",
|
|
1107
1107
|
appIconError_app_icon_needs_a_signed_in_person: "請先登入再更換 App 圖示。",
|
|
1108
1108
|
appIconError_app_icon_busy: "另一張圖示正在處理中,請稍後再試。",
|
|
1109
1109
|
appIconError_app_icon_superseded: "圖示剛被恢復成預設,請重新選擇圖片。",
|
|
@@ -1164,7 +1164,7 @@ register("settings", {
|
|
|
1164
1164
|
webLead: "網頁儀表板的行為。放寬存取的變更(延長 session、重新開啟或延長瀏覽器終端機、公開連結)需要 fleet admin 確認:在 Telegram 或 Discord 的 General,或在儀表板上卡片提供確認的地方;收緊的變更會立即套用。",
|
|
1165
1165
|
webPublicRefused: "無法透過公開連結變更網頁設定。請從儀表板本身的網址開啟後再變更。",
|
|
1166
1166
|
webSessionTitle: "登入 session",
|
|
1167
|
-
webSessionHint: "適用於從儀表板本身網址登入的 session(本機、區域網路、tailnet)。透過公開連結(臨時連結或你的固定網域)的 session 最長 8 小時、閒置 30
|
|
1167
|
+
webSessionHint: "適用於從儀表板本身網址登入的 session(本機、區域網路、tailnet)。透過公開連結(臨時連結或你的固定網域)的 session 最長 8 小時、閒置 30 分鐘就結束,也不會超過連結本身;管理員的 session 也不會超過這裡的設定(訪客依訪客設定)。縮短會讓已超過新限制的 session 結束;延長會套用到新的登入,以及既有 session 下次使用時的閒置時間。留空 = 預設值。",
|
|
1168
1168
|
sessionAbsolute: "Session 時長,小時(1–720)",
|
|
1169
1169
|
sessionIdle: "閒置多久後登出,小時(1–720)",
|
|
1170
1170
|
sessionRange: "必須是 1 到 720 之間的小時數",
|
|
@@ -1176,7 +1176,7 @@ register("settings", {
|
|
|
1176
1176
|
webTerminalTtlRange: "必須是 1 到 20 之間的整數",
|
|
1177
1177
|
webReadOnlyTitle: "在 fleet.yaml 設定",
|
|
1178
1178
|
guestsTitle: "訪客", guestsReview: "檢視訪客變更",
|
|
1179
|
-
guestsHint: "
|
|
1179
|
+
guestsHint: "不是管理員的人可以用訪客身分登入網頁:在他本來就能聊天的地方傳 /web,就會私下收到裝置登入碼。訪客只會看到在聊天中本來就能用的 agent,他的訊息僅供辨識。",
|
|
1180
1180
|
guestsEnabled: "訪客登入", guestsEnabledHint: "關閉:沒有人能以訪客登入,所有訪客 session 都會結束。開啟需 fleet admin 確認。",
|
|
1181
1181
|
guestsChat: "訪客可以聊天", guestsChatHint: "關閉:訪客可以讀他的 agent 的聊天,但不能送訊息、附加檔案、按回覆的按鈕或按取消。",
|
|
1182
1182
|
guestsOpenFor: "{0}({1})訪客可用的 agent", guestsOpenHint: "這個連線對所有人開放,沒有人員名單:它的訪客只能用你在這裡勾選的 agent(預設沒有)。新增 agent 需 fleet admin 確認。",
|
|
@@ -1184,43 +1184,43 @@ register("settings", {
|
|
|
1184
1184
|
guestFacts: "agent:{0} · session:{1} · 記住的瀏覽器:{2}", guestLastActive: "最後使用 {0}", guestNotSignedIn: "目前未登入",
|
|
1185
1185
|
guestNotNarrowed: "可用他在聊天中能用的所有 agent。", guestNarrowedTo: "已縮小為:{0}", guestNothing: "無",
|
|
1186
1186
|
guestNarrow: "縮小範圍", guestNotReachable: "(已無法使用)", guestReachesNothing: "這個帳號目前在聊天中沒有能用的 agent,沒有可以縮小的範圍。", guestNarrowLift: "取消縮小", guestNarrowHint: "勾選這位訪客仍可使用的 agent。縮小只會拿走權限(立即生效);放寬或取消縮小需 fleet admin 確認。",
|
|
1187
|
-
guestSignOut: "登出", guestSignOutTitle: "登出這位訪客?", guestSignOutConfirm: "{0} 的訪客 session
|
|
1187
|
+
guestSignOut: "登出", guestSignOutTitle: "登出這位訪客?", guestSignOutConfirm: "{0} 的訪客 session 會立即結束,裝置登入碼失效,記住的瀏覽器也會被忘記。訪客登入開啟期間,他可以再傳 /web 登入。",
|
|
1188
1188
|
guestSignedOut: "已登出 {0}。", guestSignedOutNotDurable: "已暫時登出 {0},但無法保存:重新啟動後他的 session 可能會恢復。", guestSignOutFailed: "沒有成功,請再試一次。",
|
|
1189
1189
|
grantsHint: "選擇誰可以用訪客身分登入,以及每個人可以看到哪些 agent。訪客看到的是頻道上原本顯示的對話(包含頻道裡其他人的訊息),看不到只在網頁上的訊息。新增授權需 fleet 管理員在 General 同意;收回立即生效。",
|
|
1190
1190
|
grantsLegacy: "目前訪客能看到的,取決於他們在聊天中的權限。儲存授權後改為明確授權:只有下列的人,只看得到勾選的 agent。",
|
|
1191
1191
|
grantsConvert: "以目前的訪客為起點", grantsWithAccess: "有存取權的人", grantsNoneYet: "還沒有人有訪客存取權。",
|
|
1192
1192
|
grantsAdd: "新增人員", grantsSearch: "搜尋曾傳訊息給你的 agent 的人", grantsNoPeople: "沒有符合的人。對方必須先傳過訊息給某個 agent。",
|
|
1193
1193
|
grantsChoose: "選擇", grantsChosen: "已選擇", grantsMaySee: "{0} 可以看到:", grantsClassicRooms: "ClassicBot 聊天室", grantsWroteHere: "傳過訊息", grantsWroteTo: "傳過訊息給:{0}",
|
|
1194
|
-
grantsLastSeen: "最後出現 {0}", grantsRecent: "最近的變更", grantsRecentNone: "還沒有人的存取權變更過。", grantsAuditDirect: "立即生效", grantsAuditConfirmed: "在 General 確認後生效", grantsAuditEnded: "結束了 {0} 個登入", grantsAuditCodeSent: "
|
|
1194
|
+
grantsLastSeen: "最後出現 {0}", grantsRecent: "最近的變更", grantsRecentNone: "還沒有人的存取權變更過。", grantsAuditDirect: "立即生效", grantsAuditConfirmed: "在 General 確認後生效", grantsAuditEnded: "結束了 {0} 個登入", grantsAuditCodeSent: "已寄出裝置登入碼", grantsAuditCodeNot: "裝置登入碼未寄出({0})", grantsAuditDmFailed: "私訊沒有送達", grantsAuditWait: "一分鐘內重複要求", grantsAuditAdminLimit: "已達管理員的裝置登入碼上限",
|
|
1195
1195
|
grantsEditAgents: "編輯 agent", grantsRemove: "移除存取權", grantsUndoRemove: "保留存取權",
|
|
1196
1196
|
grantsLevel: "{0} 可以做什麼", grantsLevelChat: "聊天", grantsLevelTrusted: "信任",
|
|
1197
1197
|
grantsLevelTrustedHint: "信任多了:觀看這些 agent 的畫面(唯讀),以及搜尋它們的聊天。畫面會顯示 agent 終端上的一切:別人傳給它的訊息、指令和它們的輸出,其中可能有機密。聊天和搜尋仍只限這個人看得到的內容。", grantsAuditLevel: "→ {0}",
|
|
1198
1198
|
grantsWillBeRemoved: "儲存後存取權就會結束。", grantsNew: "新增 —— 儲存後授權", grantsNoAgents: "至少勾選一個 agent,或移除這個人。",
|
|
1199
|
-
grantsSend: "
|
|
1199
|
+
grantsSend: "傳送裝置登入碼", grantsSendAgain: "{0} 後可再傳", grantsSendSaveFirst: "請先儲存:裝置登入碼只會傳給已儲存的授權。",
|
|
1200
1200
|
grantsSent: "{0} 已傳送 · {1} 到期", grantsSentPublic: "也可以用在目前開啟的公開連結上。", grantsSending: "傳送中…",
|
|
1201
1201
|
grantsSignedIn: "已登入 · {0} 個裝置", grantsNotSignedIn: "未登入",
|
|
1202
1202
|
grantsDmFailed: "無法私訊 {0}:{1}", grantsDmFailedTg: "無法私訊 {0}:對方還沒有啟動 bot。請把這個連結傳給對方:{1}",
|
|
1203
1203
|
grantsDmFailedDiscord: "無法私訊 {0}:對方的 Discord 隱私設定擋住了這個伺服器的私訊。",
|
|
1204
|
-
grantsWait: "
|
|
1205
|
-
grantsCodeFailed: "
|
|
1204
|
+
grantsWait: "每人每分鐘只能傳一次裝置登入碼,請稍後再試。", grantsAdminLimit: "你已經傳了很多裝置登入碼,請幾分鐘後再試。",
|
|
1205
|
+
grantsCodeFailed: "沒有傳出裝置登入碼:{0}",
|
|
1206
1206
|
codeGuestsOff: "訪客登入未開啟", codeAdmin: "fleet 管理員以管理員身分登入", codeNothing: "這個人還沒有任何授權——請先儲存對方的存取權限",
|
|
1207
|
-
codeStarting: "AgEnD 正在啟動,或這個連線沒有在執行", codePaused: "
|
|
1207
|
+
codeStarting: "AgEnD 正在啟動,或這個連線沒有在執行", codePaused: "訪客登入暫停幾分鐘(錯誤的裝置登入碼太多)",
|
|
1208
1208
|
codeBusy: "目前有太多訪客登入碼還沒被使用,請過幾分鐘再試", codeRevoked: "你已不再被授權", grantsWaiting: "等待 fleet 管理員在 General 同意。", grantsSaveFailed: "沒有儲存:{0}",
|
|
1209
|
-
grantsPublicLinkNote: "
|
|
1209
|
+
grantsPublicLinkNote: "如果對方不在這個網路上,請先開啟公開連結,再傳送裝置登入碼。",
|
|
1210
1210
|
vaTitle: "網頁授權", vaReview: "檢視網頁授權變更",
|
|
1211
|
-
vaHint: "已登入的 fleet
|
|
1211
|
+
vaHint: "已登入的 fleet 管理員從網頁送出的訊息,是否帶有他本人帳號的授權,記錄在每則訊息的送達收據中。用私下傳給該帳號的裝置登入碼、透過直接連線的 dashboard 登入的 session,要在 Discord 或 Telegram 上授權一次;訪客一律不行;公開連結只在下方對應的選項開啟時可以。一般的網頁請求,agent 本來就會照做;發布、破壞性操作、花費、密鑰,或把授權交給別人,則需要它。",
|
|
1212
1212
|
vaLoadFailed: "無法載入網頁授權。",
|
|
1213
1213
|
vaEnabled: "網頁訊息帶有授權", vaEnabledHint: "預設開啟:session 要等它的帳號在 Discord 或 Telegram 上確認後才帶有授權。關閉:網頁訊息都不帶授權,已給出的授權立即視為無;關閉前給出的授權不會恢復。",
|
|
1214
1214
|
vaStuckOff: "網頁授權目前是關閉的:它的狀態無法存到這台電腦上(請看 fleet 紀錄)。可以存入後會自動恢復。",
|
|
1215
1215
|
vaLoopbackOnly: "只有這台電腦可以授權", vaLoopbackOnlyHint: "開啟:只有這台電腦上的瀏覽器符合,網路或 tailnet 上的不算,之前從其他地方給出的授權視為無。再關掉也不會讓那些授權恢復。",
|
|
1216
|
-
vaNamedLink: "也允許透過我的固定網域({0})", vaNamedLinkHint: "開啟:透過你自己的 named tunnel
|
|
1216
|
+
vaNamedLink: "也允許透過我的固定網域({0})", vaNamedLinkHint: "開啟:透過你自己的 named tunnel 固定網域登入的瀏覽器也能被授權(一樣要在私訊按「確認」),登入的管理員也能在這個連結上按「直接套用」確認設定變更:要先開啟這個選項,否則固定網域的 session 不能確認。它可從網際網路連到,Cloudflare 也看得到流量:開啟是需確認的變更,由已登入的管理員確認(若確認者自己要求驗證碼,就用他自己的驗證碼),從另一台裝置確認會發 Notice。關閉立即生效,透過它給出的授權都視為無。臨時公開連結另有下方的選項。",
|
|
1217
1217
|
vaSessionNamed: "透過你的固定網域",
|
|
1218
|
-
vaQuickLink: "也允許透過臨時公開連結", vaQuickLinkHint: "預設開啟:透過 /web 開出的臨時公開連結登入的瀏覽器也能被授權(一樣要在私訊按「確認」)。這個連結是網際網路上的位址,由 Cloudflare 的 quick tunnel 服務轉送,Cloudflare
|
|
1218
|
+
vaQuickLink: "也允許透過臨時公開連結", vaQuickLinkHint: "預設開啟:透過 /web 開出的臨時公開連結登入的瀏覽器也能被授權(一樣要在私訊按「確認」)。這個連結是網際網路上的位址,由 Cloudflare 的 quick tunnel 服務轉送,Cloudflare 看得到流量。重新開啟是需確認的變更,由已登入的管理員確認(若確認者自己要求驗證碼,就用他自己的驗證碼),並會結束到目前為止給出的所有授權(每個瀏覽器都要重新確認);關閉立即生效。已授權的瀏覽器在連結結束時一併失去授權。",
|
|
1219
1219
|
vaSessionQuick: "透過臨時公開連結",
|
|
1220
1220
|
vaLanWarning: "dashboard 也接受 {0} 的連線(web.allowed_hosts)。任何人只要從那裡連上、又拿到被盜的登入,就能以你的名義給出授權。除非你信任所有能連到那裡的人,否則請開啟「只有這台電腦可以授權」。",
|
|
1221
1221
|
vaHours: "一次授權的有效期(小時,{0}–{1})", vaHoursRange: "必須是 1 到 48 之間的數字",
|
|
1222
1222
|
vaSessionsTitle: "已授權的 session", vaSessionsNone: "目前沒有已授權的 session。", vaSessionUntil: "{0} 授權 · 到 {1}",
|
|
1223
|
-
vaRevoke: "撤銷網頁授權", vaRevokeTitle: "撤銷所有網頁授權?", vaRevokeConfirm: "到目前為止從網頁給出的授權,從現在起都視為無,所有 session
|
|
1223
|
+
vaRevoke: "撤銷網頁授權", vaRevokeTitle: "撤銷所有網頁授權?", vaRevokeConfirm: "到目前為止從網頁給出的授權,從現在起都視為無,所有 session 的授權也會結束。不會登出任何人,也不會讓任何 session 失去確認設定變更的能力:要讓某個 session 失效,請用「全部登出」或 /web revoke。",
|
|
1224
1224
|
vaRevoked: "已撤銷到目前為止的網頁授權。", vaRevokedNotDurable: "已暫時撤銷,但無法保存:在可以保存之前網頁授權會保持關閉,而在那之前重新啟動會讓這次撤銷失效。", vaRevokeFailed: "沒有成功,請再試一次。",
|
|
1225
1225
|
webReadOnlyLead: "僅供檢視:這些設定決定儀表板監聽和公開的內容。這個頁面無法修改。",
|
|
1226
1226
|
searchRetentionUnset: "未設定(不限天數;上限 30 萬筆)",
|
|
@@ -1275,7 +1275,7 @@ register("settings", {
|
|
|
1275
1275
|
applyError_unsupported_sensitive_effect: "它改到的設定無法在確認中安全顯示,所以什麼都沒有改",
|
|
1276
1276
|
applyError_confirmation_diff_too_large: "一次要確認的內容太多;請分幾次套用",
|
|
1277
1277
|
applyError_session_required: "你的登入已經結束;請重新登入再套用",
|
|
1278
|
-
applyError_admin_required: "只有 fleet
|
|
1278
|
+
applyError_admin_required: "只有 fleet 管理員能確認它",
|
|
1279
1279
|
applyError_settings_changed: "設定在這期間被改過了;請檢查後再套用一次",
|
|
1280
1280
|
applyError_request_no_longer_current: "設定在這期間被改過了;請檢查後再套用一次",
|
|
1281
1281
|
applyError_too_many_pending_changes: "等待確認的變更太多;請先確認或撤回一些",
|
|
@@ -16,6 +16,7 @@ import { editsOf, keepDraft, syncStage } from "./settings-draft.js";
|
|
|
16
16
|
import { resetWebAuthorization } from "/assets/web-authorize.js";
|
|
17
17
|
import "./settings-strings.js";
|
|
18
18
|
import { layoutText } from "./settings-layout.js";
|
|
19
|
+
import "./settings-revoke-strings.js"; // the revoke card's own words: a file of its own (PR #3553 review: a retained settings-access-strings.js would lack them)
|
|
19
20
|
import "./settings-access-strings.js"; // revAuthorityBriefWeb / revAuthorityEnabledWeb / revAuthorityRule: an older settings-layout.js from a tab that visited Fleet first lacks them (#3061)
|
|
20
21
|
|
|
21
22
|
const tn = (k, ...v) => t(`settings.${k}`, ...v);
|
|
@@ -78,15 +79,20 @@ export function WebAuthorityCard({ ctx, staged, disabled = false }) {
|
|
|
78
79
|
const stuckOff = f.enabled && original.enabled && !overview.state.enabled;
|
|
79
80
|
const warnHosts = !f.loopbackOnly && overview.lanHosts.length > 0;
|
|
80
81
|
const when = (ms) => new Date(ms).toLocaleString();
|
|
82
|
+
const canRevoke = !!(overview.you && overview.you.canRevoke); // AGEND-138: only the verified owner (the server decides)
|
|
81
83
|
|
|
82
84
|
const fc = (cls, key) => `${cls}${!sameValue(f[key], original[key]) ? " s-dirty" : ""}`;
|
|
83
85
|
const revoke = async () => {
|
|
84
|
-
|
|
86
|
+
if (!overview.you || !overview.you.canRevoke) return; // the server refuses a non-owner regardless
|
|
87
|
+
// AGEND-138: the devices that lose their authorization are named, and this one (you) is said to stay.
|
|
88
|
+
const others = overview.authorized.filter((a) => a.handle !== overview.you.handle).map((a) => a.label);
|
|
89
|
+
const message = [tn("vaRevokeOthersConfirm"), others.length ? tn("vaRevokeAffected", others.join(", ")) : tn("vaRevokeNoOthers"), tn("vaRevokeKept")].join("\n\n");
|
|
90
|
+
const yes = await confirmDialog({ title: tn("vaRevokeOthersTitle"), message, confirmLabel: tn("vaRevokeOthers"), danger: true });
|
|
85
91
|
if (!yes) return;
|
|
86
92
|
let r = null;
|
|
87
93
|
try { r = await api("/api/settings/web-authority/revoke", { method: "POST", body: "{}" }); } catch { r = null; }
|
|
88
|
-
if (r && r.ok) { toast(tn(r.body && r.body.durable === false ? "vaRevokedNotDurable" : "
|
|
89
|
-
else toast(tn("vaRevokeFailed"), false);
|
|
94
|
+
if (r && r.ok) { toast(tn(r.body && r.body.durable === false ? "vaRevokedNotDurable" : r.body && r.body.kept === false ? "vaRevokedAll" : "vaRevokedOthers")); load(); }
|
|
95
|
+
else toast(tn(r && r.status === 403 ? "vaRevokeOwnerOnly" : "vaRevokeFailed"), false);
|
|
90
96
|
};
|
|
91
97
|
|
|
92
98
|
return card(html`<fieldset class="s-va-fields" disabled=${disabled}>
|
|
@@ -114,5 +120,6 @@ export function WebAuthorityCard({ ctx, staged, disabled = false }) {
|
|
|
114
120
|
<strong>${a.label}</strong> <span class="note">${a.account}</span>${a.named ? html` <span class="note s-va-named">${tn("vaSessionNamed")}</span>` : null}${a.quick ? html` <span class="note s-va-named s-va-quick">${tn("vaSessionQuick")}</span>` : null}<br /><span class="note">${tn("vaSessionUntil", when(a.authorizedAt), when(a.until))}</span></li>`)}</ul>`
|
|
115
121
|
: html`<p class="note" id="vaSessionsNone">${tn("vaSessionsNone")}</p>`}
|
|
116
122
|
</fieldset>
|
|
117
|
-
<div class="save-row s-authority-revoke"><button type="button" class="btn btn-danger" id="vaRevoke" disabled=${disabled} onClick=${revoke}>${tn("
|
|
123
|
+
<div class="save-row s-authority-revoke"><button type="button" class="btn btn-danger" id="vaRevoke" disabled=${disabled || !canRevoke} aria-describedby=${canRevoke ? undefined : "vaRevokeWhy"} onClick=${revoke}>${tn("vaRevokeOthers")}</button>
|
|
124
|
+
${canRevoke ? null : html`<p class="note" id="vaRevokeWhy">${tn("vaRevokeOwnerOnly")}</p>`}</div>`);
|
|
118
125
|
}
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
/* Layer 2: the meta bar — who it is, who uses it (`.tag` pills). */
|
|
40
40
|
.s-account-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; margin-top: var(--s-3); }
|
|
41
|
-
|
|
41
|
+
/* The shared `.tag` is nowrap; a whole address can be long, so the identity pill wraps inside the row (`.tag.` keeps it above `.tag` whichever sheet loads last). */
|
|
42
|
+
.tag.s-account-identity { font-family: var(--font-mono); color: var(--text); white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
|
|
42
43
|
.s-account-used { color: var(--text-3); }
|
|
43
44
|
/* Used by N agents: the `Menu`'s button, drawn as the pill beside it. Its list is `.menu-list` (app.css), opened from the pill's own edge. */
|
|
44
45
|
button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-1); border: 0; cursor: pointer; }
|
|
@@ -76,3 +77,12 @@ button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-
|
|
|
76
77
|
/* Why a row or a whole computer cannot be changed: a quiet note. */
|
|
77
78
|
.s-account-why { margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
|
|
78
79
|
.s-account-machine > .s-account-why { margin: 0; background: var(--bg); }
|
|
80
|
+
|
|
81
|
+
/* AGEND-133 (#3521): the install's progress and verdict under a host row. */
|
|
82
|
+
.s-account-version { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
|
|
83
|
+
.s-account-version > .s-account-why { margin: 0; flex: 1 1 18em; }
|
|
84
|
+
.s-account-install-run { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
|
|
85
|
+
.s-account-install-run > .s-account-why { margin: 0; }
|
|
86
|
+
.s-account-install-run > .signin-warn { color: var(--warn); font-weight: var(--fw-semibold); }
|
|
87
|
+
.s-account-install-output { margin: 0; padding: var(--s-2) var(--s-3); max-height: 14em; overflow: auto; border-radius: var(--r-sm); background: var(--bg); color: var(--text-2); font-size: var(--fs-xs); line-height: 1.5; }
|
|
88
|
+
.s-account-install-run .s-actions { justify-content: flex-end; }
|
|
@@ -93,7 +93,14 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
const response = await nativeFetch(input, init);
|
|
96
|
-
if (sameOrigin && response.status === 401 && !target.pathname.startsWith("/auth/")) {
|
|
96
|
+
if (sameOrigin && response.status === 401 && !target.pathname.startsWith("/auth/")) {
|
|
97
|
+
// A refused authenticator code leaves the authenticated session valid. All other 401s still close it.
|
|
98
|
+
let wrongCode = false;
|
|
99
|
+
if (method === "POST" && /^\/api\/settings\/pending\/[0-9a-f]{32}\/confirm-totp$/.test(target.pathname)) {
|
|
100
|
+
try { wrongCode = (await response.clone().json()).error === "wrong_code"; } catch { /* not a proven code refusal */ }
|
|
101
|
+
}
|
|
102
|
+
if (!wrongCode) { endSession("unauthorized"); sessionEndedBanner(); }
|
|
103
|
+
}
|
|
97
104
|
return response;
|
|
98
105
|
};
|
|
99
106
|
|