feat(webui): complete remote pairing and connection recovery

This commit is contained in:
Xubin Ren committed 2026-10-02 11:36:34 +08:00
1 parent 11889c018e
commit 192ca6e49e
52 files changed
+7313 -675

No files matched your search

+121 -18
View File
@@ -1,5 +1,96 @@
{
"remote": {
"activeForgetWarning": "也會中斷正在使用此連線的分頁,未儲存的內容可能遺失。",
"saved": "已儲存",
"pair": {
"expiringDevice": "授權將於 {{date}} 到期。",
"expiredDevice": "授權已到期,重新連線前請再次配對。",
"introHint": "在伺服器終端執行一條指令,即可開始連線。",
"copiedTitle": "指令已複製",
"afterCopyHint": "到伺服器終端貼上執行。確認授權後,點擊返回連結回到這裡。",
"copyAgain": "再次複製",
"otherWays": "其他連線方式",
"helpTitle": "使用條件與說明",
"validityHint": "指令 10 分鐘內有效。授權前,請確認存取權限。",
"linkDescription": "在伺服器執行命令,再點擊終端裡的連結回到這裡。",
"preparing": "正在準備連線…",
"linkRunHint": "將命令貼到雲端伺服器終端,依提示授權這台電腦。命令有效期為 10 分鐘。",
"showCommand": "檢視命令",
"checkingLink": "正在核對連線連結…",
"returnTitle": "2. 返回 nanobot",
"returnHint": "授權後,在這台電腦上開啟終端提供的連結,連線資訊會自動填入。",
"pasteInstead": "改用連線碼",
"confirmLinkDescription": "請確認連結或連線碼來自你自己的可信伺服器終端。",
"route": "網路連線方式…",
"direct": "直接連線",
"savedRoute": "已儲存的網路路徑",
"routeDescription": "適用於 VPN 或既有的特殊 SSH 網路路徑。",
"routeHint": "可沿用同一伺服器既有 SSH 連線的網路路徑,不會複製登入金鑰或憑證。",
"title": "無需設定 SSH,連線伺服器",
"description": "在雲端伺服器終端執行一條指令,再把連線碼貼回來。",
"steps": {
"run": "複製配對指令,在伺服器終端執行。",
"paste": "貼回伺服器產生的連線碼。",
"connect": "確認伺服器並開啟 nanobot。"
},
"requirements": "適用於已安裝 nanobot 的 Linux 伺服器。仍需能透過 SSH 連線;不需要中繼,也不用公開 WebUI。",
"useSSH": "使用既有 SSH 設定",
"start": "取得配對指令",
"runTitle": "1. 在伺服器上執行",
"runHint": "開啟雲端控制台終端,貼上指令並依提示操作。伺服器也需要支援此功能的 nanobot 版本。",
"command": "配對指令",
"copy": "複製指令",
"copied": "已複製",
"copyFailed": "複製失敗,請選取上方指令手動複製。",
"code": "連線碼",
"codeHint": "貼上終端中以 nbpc1. 開頭的連線碼,只能用於本次本機配對。",
"expired": "配對請求已過期,請重新產生指令。若已在伺服器授權,請使用終端顯示的撤銷指令清除舊授權。",
"restart": "重新取得指令",
"review": "確認連線資訊",
"confirmTitle": "開啟這個 nanobot?",
"confirmDescription": "請確認連線碼來自你自己的可信伺服器終端。",
"access": "這台電腦將能存取此 nanobot 的聊天、設定與已啟用工具。",
"expiry": "裝置授權有效至 {{date}}。不會變更伺服器現有的 SSH 和 nanobot 連接埠開放範圍。",
"security": "連線詳情與撤銷授權",
"fingerprint": "連線時會核對伺服器終端提供的 SSH 指紋:",
"revoke": "若要撤銷新連線,請在伺服器執行以下指令,並關閉已開啟的遠端工作階段:",
"retryHint": "配對已儲存,無需重複執行伺服器指令。若網路或 VPN 阻擋 SSH,配對無法繞過該限制。",
"forgetHint": "忘記連線只會移除本機列表項目,不會撤銷伺服器授權。撤銷裝置請在伺服器執行:"
},
"setup": {
"progress": "連線設定",
"server": "伺服器",
"nanobot": "nanobot",
"signedIn": "SSH 已連線",
"changeServer": "變更",
"chooseNanobot": "開啟哪一個 nanobot?",
"yourNanobot": "你的 nanobot",
"serviceAccount": "執行帳戶為 {{user}}。開啟時將使用既有的 sudo 權限。",
"notFound": "找不到 nanobot 設定",
"notFoundHint": "請確認伺服器已安裝並執行 nanobot。Docker 或自訂部署需要向部署者取得設定路徑和服務帳戶。",
"limitedSearch": "已檢查你的設定和 nanobot 系統服務。其他部署方式可能需要在下方指定路徑。",
"manualLocation": "指定其他位置",
"keyHint": "填寫這台電腦上的 SSH 私密金鑰檔案路徑,不是金鑰內容或模型 API Key。暫不支援僅用 SSH 密碼登入。",
"locationHint": "這裡填寫伺服器上的路徑和帳戶。不會安裝程式或修改權限。",
"sshSettings": "SSH 登入設定",
"checking": "正在登入並尋找 nanobot…",
"opening": "正在開啟既有的 nanobot…",
"openNanobot": "開啟 nanobot",
"chooseFile": "選擇檔案:{{field}}",
"pickingFile": "請在系統視窗中選擇檔案…"
},
"searchHosts": "搜尋主機…",
"noMatchingHosts": "沒有符合的主機",
"commandHint": "填寫 使用者名稱@伺服器,或選擇既有 SSH 主機。我們會先登入伺服器,再尋找 nanobot。",
"commandImported": "已填入 SSH 設定,可在「連線選項」中查看。",
"hostPlaceholder": "主機別名或 使用者名稱@伺服器",
"addressHint": "自動沿用既有 SSH 設定中的使用者名稱、金鑰和連接埠。",
"manualAddress": "沒有符合的別名,也可以直接連線到上方輸入的位址。",
"connectionOptions": "連線選項",
"editDescription": "儲存連線設定,不會立即切換到伺服器。",
"save": "儲存變更",
"saving": "正在儲存…",
"connect": "連線",
"localShort": "本地",
"disconnectTitle": "中斷與 {{name}} 的連線?",
"disconnectDescription": "將關閉此伺服器頁面及共用的 SSH 連線,可能遺失未儲存的內容,並影響其他正在使用此連線的分頁。伺服器上的 nanobot 會繼續執行。",
@@ -11,19 +102,11 @@
"cancelSwitch": "取消切换",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"sshHostsHint": "Choose a saved SSH host. Its username, key and port are inherited; no servers are contacted until you connect.",
"refreshHosts": "Refresh SSH hosts",
"searchHosts": "Search SSH hosts",
"useHost": "Use {{host}}",
"loadingHosts": "Reading SSH config…",
"noHosts": "No named hosts found. You can enter an SSH address below.",
"noMatchingHosts": "No matching hosts.",
"partialHosts": "Some entries couldn't be listed. You can still enter an alias or address manually.",
"otherConfig": "Use another SSH config file",
"configToRead": "SSH config file to read",
"readConfig": "Read hosts",
"discoveryError": "Couldn't read SSH hosts. Retry or enter an address manually.",
"portPlaceholder": "Use SSH config (normally 22)",
"portPlaceholder": "沿用 SSH 設定",
"loading": "正在讀取連線…",
"retry": "重試",
"unavailable": "請從本機執行的 nanobot 開啟此頁面,才能透過 SSH 連線伺服器。",
@@ -39,20 +122,17 @@
"current": "Currently using",
"remote": "Remote",
"returnLocal": "Back to local nanobot",
"add": "Connect to remote nanobot…",
"addTitle": "Connect to remote nanobot",
"addDescription": "Connect to a nanobot that's already running on your server.",
"add": "新增伺服器",
"addTitle": "連線伺服器",
"addDescription": "連線至已執行的 nanobot,聊天和設定留在伺服器。",
"host": "SSH address",
"name": "Name (optional)",
"namePlaceholder": "Team server",
"keyHint": "Uses your system's SSH keys. Model keys and conversations stay on the server.",
"advanced": "Advanced",
"sshPort": "SSH port",
"ssh_config": "SSH config file (optional)",
"identity_file": "Private key path (optional)",
"config_path": "Server's nanobot config path",
"runtime_user": "nanobot service account (optional)",
"saveConnect": "Save & connect",
"connecting": "Connecting…",
"opening": "Opening your server…",
"frameTitle": "nanobot on {{name}}",
@@ -65,6 +145,28 @@
"forgetTitle": "Forget {{name}}?",
"forgetDescription": "Only this saved connection will be removed. nanobot, its keys and conversations on the server will stay untouched.",
"errors": {
"disconnected": "此共用連線已中斷,需要時可重新連線。",
"instance_changed": "此伺服器的連線已發生變化。重新連線會重新開啟頁面,未傳送的草稿可能遺失。",
"pair_authorization_rejected": "伺服器不再接受這台裝置的金鑰,授權可能已撤銷或過期。請從伺服器終端重新配對。",
"pair_route_mismatch": "Choose an SSH connection that resolves to this same server.",
"pair_route_unsupported": "This saved route uses a jump host. Use the existing SSH connection instead.",
"pair_invalid": "This code is invalid or belongs to another request. Copy it again from your server terminal.",
"pair_expired": "This pairing request expired. Generate a new command.",
"pair_authorization_expired": "This device authorization expired. Pair the server again.",
"pair_used": "This request was already used. Generate a new one.",
"pair_limit": "Close unused pairing windows and try again.",
"pair_managed": "Pair again to change the server or credentials.",
"ssh_connection_closed": "SSH 連線在建立過程中中斷,尚無法判斷是否為金鑰問題。請檢查 VPN/代理,或使用終端機中能登入的 SSH 設定。",
"ssh_refused": "伺服器拒絕了 SSH 連線。請檢查 SSH 連接埠及服務是否執行。",
"ssh_host_not_found": "無法解析伺服器名稱。請檢查位址,或從 SSH 設定中選擇主機。",
"ssh_too_many_keys": "SSH 嘗試了過多金鑰。請在 SSH 設定中指定正確金鑰,並設定 IdentitiesOnly yes。",
"duplicate_instance": "這個 nanobot 已透過另一個 SSH 位址連線,請在「切換主機」中使用現有連線。",
"ssh_agent_refused": "SSH 金鑰代理未同意使用金鑰。請在金鑰管理器中解鎖或確認後重試。如果只有終端機能連線,請從該終端機重新啟動 nanobot。",
"ssh_key_permissions": "SSH 拒絕使用權限過寬的私鑰檔案。請將檔案存取權限限制為你的帳號後重試。",
"ssh_config_invalid": "OpenSSH 無法讀取這些連線設定,請在終端機檢查所選 SSH 設定。",
"ssh_forwarding_denied": "SSH 已登入,但伺服器禁止連接埠轉送。請讓管理員允許轉送至 nanobot 的回環連接埠。",
"probe_failed": "SSH 已登入,但未能執行 nanobot 檢查。請確認該帳號能執行非互動式 Python 指令。",
"invalid_ssh_command": "可輸入主機別名、使用者@伺服器,或含 -p、-i、-F、-l 的 ssh 指令。含空格的路徑請加引號;其他選項請寫入 SSH 設定,不支援附帶遠端指令。",
"view_limit": "已保留 3 个服务器界面。请在管理连接中断开其中一个,再打开新服务器。",
"view_load_failed": "服务器界面加载较慢,请重试。当前界面保持不变。",
"same_instance": "This is the nanobot you are already using. No remote connection is needed.",
@@ -79,10 +181,11 @@
"host_key_unknown": "This server hasn't been verified by SSH on this machine yet. Verify its host fingerprint with your administrator before connecting.",
"host_key_changed": "The server's SSH identity has changed. Connection blocked. Confirm this change with your administrator; don't bypass the warning.",
"local_file_not_found": "The SSH config or private key file couldn't be found on this machine.",
"file_picker_unavailable": "無法開啟檔案選擇視窗,也可以直接填寫本機檔案路徑。",
"runtime_user_denied": "SSH signed in, but cannot read as that service account without a password. Check the account with your server administrator.",
"python_unavailable": "The server needs python3 to locate its existing nanobot configuration.",
"config_not_found": "nanobot's config wasn't found. Set its server-side path in Advanced.",
"config_permission": "This SSH user can't read nanobot's config. Set the nanobot service account in Advanced.",
"config_not_found": "nanobot's config wasn't found. Set its server-side path in Connection options.",
"config_permission": "This SSH user can't read nanobot's config. Set the nanobot service account in Connection options.",
"config_invalid": "Couldn't read the server's nanobot configuration.",
"webui_disabled": "The server's WebUI is disabled. Enable it on the server first.",
"webui_auth_required": "The server needs a WebUI login secret in its config. No model key is needed here.",
@@ -92,7 +195,7 @@
"webui_unavailable": "The gateway is running, but its WebUI isn't installed.",
"remote_unreachable": "SSH connected, but the nanobot WebUI isn't responding. Check that it's running.",
"profile_store_invalid": "Saved connections couldn't be read. They haven't been overwritten.",
"invalid_profile": "Check the address, port and Advanced fields.",
"invalid_profile": "Check the address, port and Connection options fields.",
"profile_not_found": "This saved server no longer exists. Refresh the list.",
"profile_limit": "You can save up to 20 servers.",
"connection_limit": "Disconnect an existing server before opening another connection.",