diff --git a/webui/src/dev/gallery/locales/controls/en.json b/webui/src/dev/gallery/locales/controls/en.json
index bdb45ecac..fd0c55126 100644
--- a/webui/src/dev/gallery/locales/controls/en.json
+++ b/webui/src/dev/gallery/locales/controls/en.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView accepts composed version and support links. VersionCheckRowView displays checking/result and requests checks through onCheck. The feature entry owns actual checks and diagnostic link data.",
"error": "Could not get version information. Try again.",
"state": "Version state",
- "selectedLink": "GitHub link selected"
+ "selectedLink": "GitHub link selected",
+ "preferenceSaved": "Sample preference saved; nothing will be installed or restarted.",
+ "updateRequested": "Update review selected; this preview does not install or restart anything.",
+ "dismissed": "Update notice dismissed"
},
"appearance": {
"title": "Appearance preferences",
diff --git a/webui/src/dev/gallery/locales/controls/es.json b/webui/src/dev/gallery/locales/controls/es.json
index 4bf7fdddc..151ed1453 100644
--- a/webui/src/dev/gallery/locales/controls/es.json
+++ b/webui/src/dev/gallery/locales/controls/es.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView acepta una composición de enlaces de versión y soporte. VersionCheckRowView muestra checking/result y solicita comprobaciones con onCheck. El punto de entrada gestiona las comprobaciones reales y los enlaces de diagnóstico.",
"error": "No se pudo obtener la versión. Inténtalo de nuevo.",
"state": "Estado de versión",
- "selectedLink": "Enlace de GitHub seleccionado"
+ "selectedLink": "Enlace de GitHub seleccionado",
+ "preferenceSaved": "Preferencia de ejemplo guardada; no se instalará ni reiniciará nada.",
+ "updateRequested": "Revisión de la actualización seleccionada; esta vista previa no instala ni reinicia nada.",
+ "dismissed": "Aviso de actualización ocultado"
},
"appearance": {
"title": "Preferencias de apariencia",
diff --git a/webui/src/dev/gallery/locales/controls/fr.json b/webui/src/dev/gallery/locales/controls/fr.json
index 29fb6b8c7..c6a488adf 100644
--- a/webui/src/dev/gallery/locales/controls/fr.json
+++ b/webui/src/dev/gallery/locales/controls/fr.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView accepte la composition des liens de version et d’assistance. VersionCheckRowView affiche checking/result et demande une vérification via onCheck. Le point d’entrée gère les vérifications réelles et les liens de diagnostic.",
"error": "Impossible d’obtenir la version. Réessayez.",
"state": "État de la version",
- "selectedLink": "Lien GitHub sélectionné"
+ "selectedLink": "Lien GitHub sélectionné",
+ "preferenceSaved": "Préférence d’exemple enregistrée ; rien ne sera installé ni redémarré.",
+ "updateRequested": "Examen de la mise à jour sélectionné ; cet aperçu n’installe ni ne redémarre rien.",
+ "dismissed": "Avis de mise à jour masqué"
},
"appearance": {
"title": "Préférences d’apparence",
diff --git a/webui/src/dev/gallery/locales/controls/id.json b/webui/src/dev/gallery/locales/controls/id.json
index 990adc7ca..6c82643fc 100644
--- a/webui/src/dev/gallery/locales/controls/id.json
+++ b/webui/src/dev/gallery/locales/controls/id.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView menerima gabungan tautan versi dan dukungan. VersionCheckRowView menampilkan checking/result dan meminta pemeriksaan melalui onCheck. Titik masuk fitur mengelola pemeriksaan sebenarnya serta data tautan diagnostik.",
"error": "Tidak dapat mengambil informasi versi. Coba lagi.",
"state": "Status versi",
- "selectedLink": "Tautan GitHub dipilih"
+ "selectedLink": "Tautan GitHub dipilih",
+ "preferenceSaved": "Preferensi contoh disimpan; tidak ada yang akan diinstal atau dimulai ulang.",
+ "updateRequested": "Peninjauan pembaruan dipilih; pratinjau ini tidak menginstal atau memulai ulang apa pun.",
+ "dismissed": "Pemberitahuan pembaruan ditutup"
},
"appearance": {
"title": "Preferensi tampilan",
diff --git a/webui/src/dev/gallery/locales/controls/ja.json b/webui/src/dev/gallery/locales/controls/ja.json
index e394cfec3..7ef84cc54 100644
--- a/webui/src/dev/gallery/locales/controls/ja.json
+++ b/webui/src/dev/gallery/locales/controls/ja.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView はバージョンとサポートリンクの組み合わせを受け取ります。VersionCheckRowView は checking/result を表示し、onCheck で確認を要求します。実際の確認と診断リンクのデータは機能の入口が管理します。",
"error": "バージョン情報を取得できませんでした。再試行してください。",
"state": "バージョンの状態",
- "selectedLink": "GitHub リンクを選択しました"
+ "selectedLink": "GitHub リンクを選択しました",
+ "preferenceSaved": "サンプル設定を保存しました。インストールや再起動は行いません。",
+ "updateRequested": "更新の確認を選択しました。このプレビューではインストールや再起動は行いません。",
+ "dismissed": "更新通知を閉じました"
},
"appearance": {
"title": "表示設定",
diff --git a/webui/src/dev/gallery/locales/controls/ko.json b/webui/src/dev/gallery/locales/controls/ko.json
index bf8bec922..d1d349474 100644
--- a/webui/src/dev/gallery/locales/controls/ko.json
+++ b/webui/src/dev/gallery/locales/controls/ko.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView는 버전과 지원 링크 조합을 받습니다. VersionCheckRowView는 checking/result를 표시하며 onCheck로 검사를 요청합니다. 실제 검사와 진단 링크 데이터는 기능 진입점이 담당합니다.",
"error": "버전 정보를 가져올 수 없습니다. 다시 시도하세요.",
"state": "버전 상태",
- "selectedLink": "GitHub 링크를 선택했습니다"
+ "selectedLink": "GitHub 링크를 선택했습니다",
+ "preferenceSaved": "예시 설정을 저장했습니다. 설치하거나 다시 시작하지 않습니다.",
+ "updateRequested": "업데이트 검토를 선택했습니다. 이 미리보기에서는 설치하거나 다시 시작하지 않습니다.",
+ "dismissed": "업데이트 알림을 닫았습니다"
},
"appearance": {
"title": "화면 환경설정",
diff --git a/webui/src/dev/gallery/locales/controls/pt-BR.json b/webui/src/dev/gallery/locales/controls/pt-BR.json
index c98a8830d..7790f7b9a 100644
--- a/webui/src/dev/gallery/locales/controls/pt-BR.json
+++ b/webui/src/dev/gallery/locales/controls/pt-BR.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView aceita uma composição de links de versão e suporte. VersionCheckRowView exibe checking/result e solicita verificações por onCheck. O ponto de entrada gerencia as verificações reais e os dados dos links de diagnóstico.",
"error": "Não foi possível obter a versão. Tente novamente.",
"state": "Estado da versão",
- "selectedLink": "Link do GitHub selecionado"
+ "selectedLink": "Link do GitHub selecionado",
+ "preferenceSaved": "Preferência de exemplo salva; nada será instalado ou reiniciado.",
+ "updateRequested": "Revisão da atualização selecionada; esta prévia não instala nem reinicia nada.",
+ "dismissed": "Aviso de atualização dispensado"
},
"appearance": {
"title": "Preferências de aparência",
diff --git a/webui/src/dev/gallery/locales/controls/vi.json b/webui/src/dev/gallery/locales/controls/vi.json
index 36c1f9417..16ac885a4 100644
--- a/webui/src/dev/gallery/locales/controls/vi.json
+++ b/webui/src/dev/gallery/locales/controls/vi.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView nhận tổ hợp liên kết phiên bản và hỗ trợ. VersionCheckRowView hiển thị checking/result và yêu cầu kiểm tra qua onCheck. Điểm vào tính năng quản lý kiểm tra thực tế và dữ liệu liên kết chẩn đoán.",
"error": "Không thể lấy thông tin phiên bản. Hãy thử lại.",
"state": "Trạng thái phiên bản",
- "selectedLink": "Đã chọn liên kết GitHub"
+ "selectedLink": "Đã chọn liên kết GitHub",
+ "preferenceSaved": "Đã lưu tùy chọn mẫu; sẽ không cài đặt hay khởi động lại.",
+ "updateRequested": "Đã chọn xem xét bản cập nhật; bản xem trước này không cài đặt hay khởi động lại.",
+ "dismissed": "Đã ẩn thông báo cập nhật"
},
"appearance": {
"title": "Tùy chọn giao diện",
diff --git a/webui/src/dev/gallery/locales/controls/zh-CN.json b/webui/src/dev/gallery/locales/controls/zh-CN.json
index d3e06c5a7..ca3c500d4 100644
--- a/webui/src/dev/gallery/locales/controls/zh-CN.json
+++ b/webui/src/dev/gallery/locales/controls/zh-CN.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView 接受版本与支持链接的组合。VersionCheckRowView 展示 checking/result,并通过 onCheck 请求检查。真实检查与诊断链接数据由功能入口负责。",
"error": "无法获取版本信息,请重试。",
"state": "版本状态",
- "selectedLink": "选择了 GitHub 链接"
+ "selectedLink": "选择了 GitHub 链接",
+ "preferenceSaved": "已保存示例偏好;不会安装或重启。",
+ "updateRequested": "已选择查看更新;组件预览不会安装或重启。",
+ "dismissed": "已收起更新提示"
},
"appearance": {
"title": "外观选项",
diff --git a/webui/src/dev/gallery/locales/controls/zh-TW.json b/webui/src/dev/gallery/locales/controls/zh-TW.json
index 08cf945b0..7417a2771 100644
--- a/webui/src/dev/gallery/locales/controls/zh-TW.json
+++ b/webui/src/dev/gallery/locales/controls/zh-TW.json
@@ -481,7 +481,10 @@
"options": "AboutSettingsView 接受版本與支援連結的組合。VersionCheckRowView 顯示 checking/result,並透過 onCheck 請求檢查。實際檢查與診斷連結資料由功能入口負責。",
"error": "無法取得版本資訊,請重試。",
"state": "版本狀態",
- "selectedLink": "已選取 GitHub 連結"
+ "selectedLink": "已選取 GitHub 連結",
+ "preferenceSaved": "已儲存範例偏好;不會安裝或重新啟動。",
+ "updateRequested": "已選擇查看更新;元件預覽不會安裝或重新啟動。",
+ "dismissed": "已收起更新提示"
},
"appearance": {
"title": "外觀選項",
diff --git a/webui/src/dev/gallery/runtime-settings.tsx b/webui/src/dev/gallery/runtime-settings.tsx
index 70b7e8ce1..9032f8648 100644
--- a/webui/src/dev/gallery/runtime-settings.tsx
+++ b/webui/src/dev/gallery/runtime-settings.tsx
@@ -9,6 +9,7 @@ import { AutomationRunDialogView, type AutomationRunResult } from "@/components/
import { Button } from "@/components/ui/button";
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
import { DEFAULT_LOCAL_PREFS } from "@/lib/local-preferences";
+import type { UpdateChannel } from "@/lib/api";
import type { AutomationChatsPayload, SessionAutomationJob } from "@/lib/types";
import { StatePicker, type ComponentExample } from "./example";
import { useGalleryTranslation } from "./i18n";
@@ -68,17 +69,25 @@ function ChatBindingPreview() {
function AboutPreview() {
const { t } = useGalleryTranslation();
- const [mode, setMode] = useState<"ready" | "checking" | "up-to-date" | "update" | "error">("ready");
- const [selectedLink, setSelectedLink] = useState(false);
+ const [mode, setMode] = useState<"ready" | "checking" | "up-to-date" | "update" | "preview" | "error">("ready");
+ const [notice, setNotice] = useState<"updateRequested" | "selectedLink" | null>(null);
+ const [channel, setChannel] = useState("stable");
const result: VersionCheckState = mode === "up-to-date" ? { type: mode }
: mode === "update" ? { type: mode, latestVersion: "0.3.6", pypiUrl: "https://pypi.org/project/nanobot-ai/" }
+ : mode === "preview" ? { type: "update", latestVersion: "0.3.7.dev2026101501",
+ releaseUrl: "https://github.com/HKUDS/nanobot/releases" }
: mode === "error" ? { type: mode, message: t("controls.about.error") } : null;
- return <>
+ return <> setMode("update")} />}
- starLink={ setSelectedLink(true)} />} />
- {selectedLink ?
: null}>;
}
function AppearancePreview() {
diff --git a/webui/src/globals.css b/webui/src/globals.css
index bac91df17..db905ebfd 100644
--- a/webui/src/globals.css
+++ b/webui/src/globals.css
@@ -1669,8 +1669,8 @@
.settings-grid .settings-row > :nth-child(2),
.settings-grid .settings-footer > :nth-child(2) { grid-column: 8 / -1; }
.settings-grid .settings-footer-auto > :first-child { grid-column: 1 / -1; }
- .settings-grid .settings-row:has(.segmented-control) > :first-child { grid-column: 1 / 7; }
- .settings-grid .settings-row:has(.segmented-control) > :nth-child(2) { grid-column: 7 / -1; }
+ .settings-grid .settings-row:has(:is(.segmented-control, .settings-version-actions)) > :first-child { grid-column: 1 / 7; }
+ .settings-grid .settings-row:has(:is(.segmented-control, .settings-version-actions)) > :nth-child(2) { grid-column: 7 / -1; }
}
@media (min-width: 768px) {
.settings-grid { --settings-inset: 24px; }
diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json
index f7a9b4711..26ef9f6f8 100644
--- a/webui/src/i18n/locales/en/common.json
+++ b/webui/src/i18n/locales/en/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Update via {{method}}",
+ "methods": {
+ "managed": "nanobot installer",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "source checkout",
+ "container": "container deployment",
+ "system": "system package manager"
+ },
+ "host": "Gateway: {{host}}",
+ "where": "Use a terminal on this computer, signed in as the original installation user. For a remote gateway, connect by SSH or its server console—not your browser’s computer. Commands only copy; this page does not run them.",
+ "containerHost": "This is the container’s name and internal path, not the deployment host. Use the server or hosting dashboard that manages this container; do not update inside the running container.",
+ "beforeTitle": "Prepare and stop",
+ "before": "Finish tasks and back up configuration, chats and workspace data. Stop all gateways using this installation through their original launcher or service manager. Keep their profile paths and launch settings.",
+ "installTitle": "Update in {{shell}}",
+ "inspectCommand": "Inspect this installation",
+ "updateCommand": "Update command",
+ "versionCommand": "Installed version",
+ "reasons": {
+ "restart": "The target package is already installed. Do not install it again. Stop the old gateway and restart with the original launcher and profile, then check its running version.",
+ "registry": "Use the original registry and credentials. Manager upgrades keep recorded extras and constraints and may select a different allowed stable version than the notice. Check the command output; do not force a failed update.",
+ "preview": "Preview packages are distributed on GitHub, not necessarily your package index. Select this release’s wheel for the gateway’s Python/platform, verify its checksum, then install it through the original owner with the same extras. A generic upgrade command cannot guarantee this Preview.",
+ "policy": "The receipt has a pin, lock, fixed source, version constraint or unrecognized options. Inspect it below and update through that original workflow, preserving extras and injected packages. Do not remove restrictions just to update.",
+ "extras": "This pip environment does not record the extras originally requested. Inspect the package below, then reuse the original pip requirement with --upgrade and the intended version, keeping its extras and index options. No guessed install command is provided.",
+ "manager": "The package-manager executable or its environment layout could not be confirmed. Use the original installation account and manager settings to target the path above; do not use another pip or nanobot from PATH.",
+ "source": "Inspect this checkout first. Preserve local changes and confirm the intended branch/ref, then update it and rebuild dependencies, WebUI and TUI using the repository workflow. Do not replace an editable checkout with a PyPI package.",
+ "container": "Choose the intended image tag/digest in the existing Compose project or hosting dashboard, pull/build it and recreate only the nanobot service with its existing mounts, secrets and ports. Back up data volumes; never remove them to update.",
+ "system": "Use the operating system’s package manager or ask this server’s administrator. Do not use sudo pip or override an externally managed Python environment.",
+ "review": "The installation or update review is no longer current. Close this dialog and check again before copying an update command."
+ },
+ "verifyTitle": "Restart and verify",
+ "verify": "Start using the same launcher and profile. The terminal command checks installed files only. Reconnect to this same gateway, check its running version against v{{version}}, and confirm your chats and settings are still present.",
+ "check": "Check running gateway",
+ "verified": "Confirmed: this gateway is running v{{version}}.",
+ "observed": "This gateway reports v{{version}}, not the notice’s v{{target}}. Check the installer output and restart the same installation; an installed package alone does not update a running process.",
+ "checkFailed": "Could not read the running version. Reconnect to this same gateway and try again; no update success has been confirmed."
+ },
+ "automaticRecovery": "If the update fails, nanobot will try to restore service, using the previous program when safe. Your chat data will not be rolled back.",
+ "restored": "Previous version restored",
+ "restoredDescription": "The update did not finish. v{{version}} is running again. Your configuration and chats were not rolled back.",
+ "recoveryBeforeInstall": "The update stopped before installation. No package files were changed. Recover the saved update to continue.",
+ "channel": {
+ "settings": "Update settings",
+ "receivePreview": "Receive preview updates",
+ "previewWarning": "This is a preview release and may have bugs.",
+ "preview": "Preview",
+ "hint": "Try new features early.",
+ "saving": "Saving…",
+ "saved": "Update preference saved",
+ "ahead": "This version is ahead of the selected channel. No downgrade will be installed.",
+ "waiting_stable": "Preview updates are off. Keep using this version until a newer stable release is available.",
+ "withdrawn": "This preview was withdrawn. Update to a newer release when available; do not downgrade over your current data.",
+ "unavailable": "Could not verify this channel. It may not be available yet. Check your connection and try again.",
+ "publishing": "The release is still being published. Check again later.",
+ "unsupported": "No compatible update is available for this Python version and platform.",
+ "releaseNotes": "Release notes"
+ },
+ "reviewAgain": "Review update",
+ "reviewAgainDescription": "No package files were changed. Review the update again before confirming installation and restart.",
+ "settleFailed": "The previous update could not be cleared safely. Check its status again or follow the recovery instructions.",
+ "ownerGuide": "Update instructions for your installation",
+ "recoveryTitle": "Recover on the gateway computer",
+ "recoveryDescription": "Run this command in a terminal on the computer running nanobot. It reviews the saved job before asking to repair. Keep the original backup.",
+ "confirm": "Update nanobot now?",
+ "reviewingTitle": "Checking the update…",
+ "preparing": "Downloading the update…",
+ "installing": "Installing the update…",
+ "working": "Updating nanobot…",
+ "reconnecting": "Reconnecting…",
+ "done": "Update complete",
+ "failed": "Update did not finish",
+ "confirmDescription": "Updating to v{{version}} will restart nanobot on {{host}}. Finish running tasks before continuing.",
+ "reviewing": "Checking the installation and exact target. No files are being changed.",
+ "workingDescription": "Preparing verified files, then backing up and restarting the selected gateway.",
+ "reconnectingDescription": "Waiting for the updated gateway to reconnect. Do not start another update.",
+ "delayed": "Reconnection is taking longer than expected. Progress is saved; you can close this window and check again.",
+ "doneDescription": "Now running v{{version}}.",
+ "preparationFailed": "Preparation or shutdown failed. No package files were changed. Finish any active tasks and check again.",
+ "repairRequired": "Installation or restart failed. The saved backup and update record are retained. Use the update recovery workflow; do not start a different installation.",
+ "reviewFailed": "Could not verify this update. Check the connection and ensure the gateway runs with its installation owner’s supported background launcher.",
+ "confirmationUnknown": "The request may have been accepted. Checking saved progress before another action.",
+ "statusFailed": "Could not read the saved update. Reconnect to the same gateway and check again.",
+ "sharedInstallation": "This shared installation will restart {{count}} running gateways.",
+ "cancel": "Cancel",
+ "close": "Close",
+ "hide": "Hide",
+ "return": "Done",
+ "wait": "Please wait",
+ "checkAgain": "Check again",
+ "apply": "Update & restart",
+ "blocked": {
+ "review_changed": "This review changed or expired. Close it and check again.",
+ "not_upgrade": "This target is not an upgrade. No files will be changed.",
+ "installation_owner": "Update this installation with its original package manager or deployment tool.",
+ "installation_policy": "This installation’s source, extras or version constraints require its original installation workflow.",
+ "external_restart": "This gateway cannot be restarted here. Use its original launch or deployment tool to stop, update and restart it.",
+ "permission": "Open this gateway on localhost or allow remote package installation before updating."
+ }
+ },
"remote": {
"compatibility": {
"title": "Version check",
@@ -942,10 +1044,16 @@
"installedCount_other": "{{count}} CLIs installed"
},
"about": {
+ "updateNotice": "Update available",
+ "viewUpdateDetails": "View details",
+ "updateNow": "Update",
+ "dismissUpdate": "Dismiss update notice",
+ "updateInstructions": "Update on the computer running nanobot, using your original installation method. This page won’t install or restart anything.",
+ "installationGuide": "Installation guide",
"documentation": "Documentation",
"sourceCode": "Source code",
"reportIssue": "Report an issue",
- "version": "Version",
+ "version": "Version & updates",
"checking": "Checking...",
"checkForUpdates": "Check for updates",
"upToDate": "You're up to date",
diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json
index f481dcb65..159d257c8 100644
--- a/webui/src/i18n/locales/es/common.json
+++ b/webui/src/i18n/locales/es/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Actualizar mediante {{method}}",
+ "methods": {
+ "managed": "el instalador de nanobot",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "el código fuente",
+ "container": "el despliegue del contenedor",
+ "system": "el gestor del sistema"
+ },
+ "host": "Gateway: {{host}}",
+ "where": "Usa un terminal de este equipo con la cuenta que hizo la instalación. Para un gateway remoto, usa SSH o su consola, no el equipo del navegador. Los comandos solo se copian; esta página no los ejecuta.",
+ "containerHost": "Este nombre y ruta pertenecen al contenedor, no al host de despliegue. Usa el servidor o panel que lo administra; no actualices dentro del contenedor en ejecución.",
+ "beforeTitle": "Preparar y detener",
+ "before": "Termina las tareas y respalda configuración, chats y espacios de trabajo. Detén todos los gateways de esta instalación con su lanzador o gestor de servicios original. Conserva las rutas de perfil y los parámetros de inicio.",
+ "installTitle": "Actualizar en {{shell}}",
+ "inspectCommand": "Inspeccionar esta instalación",
+ "updateCommand": "Comando de actualización",
+ "versionCommand": "Versión instalada",
+ "reasons": {
+ "restart": "El paquete objetivo ya está instalado. No lo reinstales. Detén el gateway antiguo, inicia con el lanzador y perfil originales y comprueba la versión activa.",
+ "registry": "Mantén el registro y las credenciales originales. El gestor conserva extras y restricciones, por lo que puede elegir otra versión estable permitida distinta del aviso. Revisa la salida; no fuerces una actualización fallida.",
+ "preview": "Las Preview se distribuyen en GitHub, no necesariamente en tu índice. Elige el wheel de esta versión para el Python y la plataforma del gateway, verifica su checksum e instálalo con el gestor y extras originales. Un upgrade genérico no garantiza esta Preview.",
+ "policy": "Hay una versión fijada, archivo de bloqueo, origen fijo, restricción u opciones desconocidas. Inspecciona y sigue el proceso original, conservando extras y paquetes inyectados. No elimines las restricciones.",
+ "extras": "Este entorno pip no registra los extras originales. Inspecciona el paquete y reutiliza el comando pip original con --upgrade y la versión deseada, manteniendo extras y opciones del índice. No se ofrece un comando supuesto.",
+ "manager": "No se pudo confirmar el gestor o la estructura del entorno. Usa la cuenta y configuración originales para apuntar a la ruta indicada; no uses otro pip o nanobot del PATH.",
+ "source": "Inspecciona el repositorio, conserva los cambios locales y confirma la rama o revisión. Sigue el flujo del repositorio para actualizar código, dependencias y builds WebUI/TUI. No sustituyas una instalación editable por PyPI.",
+ "container": "En el proyecto Compose o panel original, elige la etiqueta o digest, descarga o construye la imagen y recrea solo el servicio nanobot con sus montajes, secretos y puertos existentes. Respalda los volúmenes; nunca los elimines.",
+ "system": "Usa el gestor de paquetes del sistema o contacta al administrador. No uses sudo pip ni eludas la gestión del Python del sistema.",
+ "review": "La instalación o revisión cambió. Cierra y vuelve a comprobar antes de copiar un comando."
+ },
+ "verifyTitle": "Reiniciar y verificar",
+ "verify": "Inicia con el mismo lanzador y perfil. El comando solo comprueba archivos instalados. Reconecta al mismo gateway, compara su versión activa con v{{version}} y verifica que sigan tus chats y ajustes.",
+ "check": "Comprobar gateway en ejecución",
+ "verified": "Confirmado: este gateway ejecuta v{{version}}.",
+ "observed": "El gateway informa v{{version}}, no v{{target}}. Revisa la salida y reinicia la misma instalación; actualizar archivos no actualiza un proceso en ejecución.",
+ "checkFailed": "No se pudo leer la versión activa. Reconecta al mismo gateway e inténtalo de nuevo; no se ha confirmado el éxito."
+ },
+ "automaticRecovery": "Si la actualización falla, nanobot intentará recuperar el servicio con el programa anterior cuando sea seguro. Los datos de los chats no se revertirán.",
+ "restored": "Versión anterior restaurada",
+ "restoredDescription": "La actualización no se completó. v{{version}} vuelve a funcionar. No se han restaurado copias anteriores de tu configuración ni de tus chats.",
+ "recoveryBeforeInstall": "La actualización se detuvo antes de instalar. No se modificaron archivos del paquete. Recupera la actualización guardada para continuar.",
+ "channel": {
+ "settings": "Ajustes de actualización",
+ "receivePreview": "Recibir versiones preliminares",
+ "previewWarning": "Esta versión preliminar puede tener errores.",
+ "preview": "Preliminar",
+ "hint": "Prueba las novedades antes.",
+ "saving": "Guardando…",
+ "saved": "Preferencia de actualización guardada",
+ "ahead": "Esta versión es más reciente que la del canal seleccionado. No se instalará una versión anterior.",
+ "waiting_stable": "Las actualizaciones preliminares están desactivadas. Usa esta versión hasta que haya una versión estable más reciente.",
+ "withdrawn": "Esta versión preliminar fue retirada. Actualiza cuando haya una versión más reciente; no instales una anterior sobre tus datos actuales.",
+ "unavailable": "No se pudo verificar este canal. Puede que aún no esté disponible. Comprueba la conexión y vuelve a intentarlo.",
+ "publishing": "La versión aún se está publicando. Vuelve a comprobarlo más tarde.",
+ "unsupported": "No hay una actualización compatible con esta versión de Python y plataforma.",
+ "releaseNotes": "Notas de la versión"
+ },
+ "reviewAgain": "Revisar actualización",
+ "reviewAgainDescription": "No se modificaron archivos del paquete. Revisa la actualización antes de confirmar la instalación y el reinicio.",
+ "settleFailed": "No se pudo cerrar la actualización anterior de forma segura. Vuelve a comprobar su estado o sigue las instrucciones de recuperación.",
+ "ownerGuide": "Instrucciones de actualización según tu instalación",
+ "recoveryTitle": "Recuperar en el equipo del gateway",
+ "recoveryDescription": "Ejecuta este comando en el terminal del equipo que ejecuta nanobot. Muestra la actualización guardada antes de pedir confirmación para repararla. Conserva la copia original.",
+ "confirm": "¿Actualizar nanobot ahora?",
+ "reviewingTitle": "Comprobando actualización…",
+ "preparing": "Descargando actualización…",
+ "installing": "Instalando actualización…",
+ "working": "Actualizando nanobot…",
+ "reconnecting": "Reconectando…",
+ "done": "Actualización completada",
+ "failed": "La actualización no terminó",
+ "confirmDescription": "Actualizar a v{{version}} reiniciará nanobot en {{host}}. Finaliza las tareas activas antes de continuar.",
+ "reviewing": "Comprobando la instalación y la versión exacta. No se modifican archivos.",
+ "workingDescription": "Preparando y verificando archivos; después se hará una copia y se reiniciará el gateway seleccionado.",
+ "reconnectingDescription": "Esperando la reconexión del gateway actualizado. No inicies otra actualización.",
+ "delayed": "La reconexión está tardando. El progreso está guardado; puedes cerrar y comprobar más tarde.",
+ "doneDescription": "Ahora se ejecuta v{{version}}.",
+ "preparationFailed": "Falló la preparación o la detención del gateway. No se cambiaron paquetes. Finaliza las tareas y vuelve a comprobar.",
+ "repairRequired": "Falló la instalación o el reinicio. Se conservan la copia y el registro. Usa el procedimiento de recuperación; no inicies otra instalación.",
+ "reviewFailed": "No se pudo verificar la actualización. Comprueba la conexión y el inicio en segundo plano admitido por la instalación original.",
+ "confirmationUnknown": "La solicitud podría haberse aceptado. Comprobando el progreso guardado antes de otra acción.",
+ "statusFailed": "No se pudo leer el registro. Reconecta al mismo gateway y comprueba de nuevo.",
+ "sharedInstallation": "Se reiniciarán los {{count}} gateways activos que comparten esta instalación.",
+ "cancel": "Cancelar",
+ "close": "Cerrar",
+ "hide": "Ocultar",
+ "return": "Listo",
+ "wait": "Espera",
+ "checkAgain": "Comprobar de nuevo",
+ "apply": "Actualizar y reiniciar",
+ "blocked": {
+ "review_changed": "La revisión cambió o caducó. Ciérrala y vuelve a comprobar.",
+ "not_upgrade": "El destino no es una actualización. No se cambiarán archivos.",
+ "installation_owner": "Actualiza con el gestor de paquetes o herramienta de despliegue original.",
+ "installation_policy": "El origen, los extras o las restricciones de versión requieren actualizar con el método de instalación original.",
+ "external_restart": "Esta puerta de enlace no puede reiniciarse aquí. Usa la herramienta de inicio o despliegue original para detenerla, actualizarla y reiniciarla.",
+ "permission": "Abre localhost en el gateway o permite instalar paquetes remotamente."
+ }
+ },
"remote": {
"compatibility": {
"title": "Comprobar versión",
@@ -983,10 +1085,16 @@
"noDescription": "Sin descripción disponible."
},
"about": {
+ "updateNotice": "Actualización disponible",
+ "viewUpdateDetails": "Ver detalles",
+ "updateNow": "Actualizar",
+ "dismissUpdate": "Ocultar aviso",
+ "updateInstructions": "Actualiza en el equipo que ejecuta nanobot con el método de instalación original. Esta página no instala ni reinicia nada.",
+ "installationGuide": "Guía de instalación",
"documentation": "Documentación",
"sourceCode": "Código fuente",
"reportIssue": "Informar de un problema",
- "version": "Versión",
+ "version": "Versión y actualizaciones",
"checking": "Buscando actualizaciones...",
"checkForUpdates": "Buscar actualizaciones",
"upToDate": "Estás al día",
diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json
index f79ee66e8..a3350c4e4 100644
--- a/webui/src/i18n/locales/fr/common.json
+++ b/webui/src/i18n/locales/fr/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Mettre à jour via {{method}}",
+ "methods": {
+ "managed": "l’installateur nanobot",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "le code source",
+ "container": "le déploiement du conteneur",
+ "system": "le gestionnaire système"
+ },
+ "host": "Passerelle : {{host}}",
+ "where": "Utilisez le terminal de cette machine avec le compte ayant effectué l’installation. Pour un serveur distant, utilisez SSH ou sa console, pas l’ordinateur du navigateur. Ces commandes sont à copier, jamais exécutées par cette page.",
+ "containerHost": "Ce nom et ce chemin appartiennent au conteneur, pas à son hôte. Utilisez le serveur ou la console qui gère le déploiement ; ne mettez pas à jour dans le conteneur actif.",
+ "beforeTitle": "Préparer et arrêter",
+ "before": "Terminez les tâches et sauvegardez configuration, conversations et espaces de travail. Arrêtez toutes les passerelles partageant cette installation avec leur lanceur ou gestionnaire de services. Conservez les chemins des profils et les paramètres de lancement.",
+ "installTitle": "Mettre à jour dans {{shell}}",
+ "inspectCommand": "Inspecter cette installation",
+ "updateCommand": "Commande de mise à jour",
+ "versionCommand": "Version installée",
+ "reasons": {
+ "restart": "Le paquet cible est déjà installé. Ne le réinstallez pas. Arrêtez l’ancienne passerelle, relancez avec le même lanceur et profil, puis vérifiez la version active.",
+ "registry": "Conservez le registre et les identifiants d’origine. Le gestionnaire conserve les extras et contraintes ; il peut choisir une autre version stable autorisée que celle annoncée. Vérifiez la sortie et ne forcez pas une mise à jour en échec.",
+ "preview": "Les Preview sont distribuées sur GitHub, pas nécessairement dans votre index. Choisissez le wheel adapté au Python et à la plateforme de la passerelle, vérifiez sa somme de contrôle, puis utilisez l’outil d’origine avec les mêmes extras. Une commande upgrade générique ne garantit pas cette Preview.",
+ "policy": "L’installation comporte un épinglage, un verrou, une source fixe, des contraintes ou des options inconnues. Inspectez-la et suivez son processus d’origine, en conservant extras et paquets injectés. Ne supprimez pas les restrictions.",
+ "extras": "Cet environnement pip ne mémorise pas les extras demandés. Inspectez le paquet, puis reprenez la commande pip d’origine avec --upgrade et la version souhaitée, en conservant extras et options d’index. Aucune commande devinée n’est fournie.",
+ "manager": "Le gestionnaire ou la disposition de son environnement n’a pas pu être confirmé. Retrouvez le chemin ci-dessus avec le compte et les réglages d’origine ; n’utilisez pas un autre pip ou nanobot du PATH.",
+ "source": "Inspectez ce dépôt, préservez vos modifications et confirmez la branche ou révision. Suivez ensuite le processus du dépôt pour actualiser code, dépendances et builds WebUI/TUI. Ne remplacez pas une installation éditable par un paquet PyPI.",
+ "container": "Dans le projet Compose ou la console d’origine, choisissez le tag ou digest de l’image, récupérez-la ou construisez-la, puis recréez uniquement le service nanobot avec ses volumes, secrets et ports existants. Sauvegardez les volumes ; ne les supprimez jamais.",
+ "system": "Utilisez le gestionnaire de paquets du système ou contactez l’administrateur. N’utilisez pas sudo pip et ne contournez pas la gestion du Python système.",
+ "review": "L’installation ou la vérification a changé. Fermez cette fenêtre et vérifiez à nouveau avant de copier une commande."
+ },
+ "verifyTitle": "Redémarrer et vérifier",
+ "verify": "Relancez avec le même lanceur et profil. La commande ne vérifie que les fichiers installés. Reconnectez-vous à cette passerelle, comparez sa version active à v{{version}} et vérifiez conversations et réglages.",
+ "check": "Vérifier la passerelle active",
+ "verified": "Confirmé : cette passerelle exécute v{{version}}.",
+ "observed": "La passerelle indique v{{version}}, pas v{{target}}. Vérifiez la sortie d’installation et redémarrez la même installation ; un paquet actualisé ne remplace pas un processus actif.",
+ "checkFailed": "Version active illisible. Reconnectez-vous à la même passerelle et réessayez ; la réussite n’est pas confirmée."
+ },
+ "automaticRecovery": "Si la mise à jour échoue, nanobot tentera de rétablir le service avec le programme précédent si cela est sûr. Les discussions ne seront pas remplacées par une sauvegarde.",
+ "restored": "Version précédente rétablie",
+ "restoredDescription": "La mise à jour a échoué. La version v{{version}} fonctionne à nouveau. Vos paramètres et discussions n’ont pas été remplacés par une sauvegarde.",
+ "recoveryBeforeInstall": "La mise à jour s’est arrêtée avant l’installation. Aucun fichier du paquet n’a été modifié. Reprenez la mise à jour enregistrée pour continuer.",
+ "channel": {
+ "settings": "Réglages des mises à jour",
+ "receivePreview": "Recevoir les préversions",
+ "previewWarning": "Cette préversion peut contenir des erreurs.",
+ "preview": "Préversion",
+ "hint": "Essayez les nouveautés en avance.",
+ "saving": "Enregistrement…",
+ "saved": "Préférence de mise à jour enregistrée",
+ "ahead": "Cette version est plus récente que celle du canal choisi. Aucune version antérieure ne sera installée.",
+ "waiting_stable": "Les préversions sont désactivées. Conservez cette version en attendant une version stable plus récente.",
+ "withdrawn": "Cette préversion a été retirée. Installez une version plus récente dès sa disponibilité ; ne rétrogradez pas avec vos données actuelles.",
+ "unavailable": "Impossible de vérifier ce canal. Il n’est peut-être pas encore disponible. Vérifiez votre connexion et réessayez.",
+ "publishing": "La publication est en cours. Réessayez plus tard.",
+ "unsupported": "Aucune mise à jour compatible avec cette version de Python et cette plateforme.",
+ "releaseNotes": "Notes de version"
+ },
+ "reviewAgain": "Examiner la mise à jour",
+ "reviewAgainDescription": "Aucun fichier du paquet n’a été modifié. Examinez à nouveau la mise à jour avant de confirmer l’installation et le redémarrage.",
+ "settleFailed": "La mise à jour précédente n’a pas pu être clôturée en toute sécurité. Vérifiez à nouveau son état ou suivez les instructions de récupération.",
+ "ownerGuide": "Instructions de mise à jour de votre installation",
+ "recoveryTitle": "Récupérer sur l’ordinateur de la passerelle",
+ "recoveryDescription": "Exécutez cette commande dans un terminal sur l’ordinateur qui héberge nanobot. Elle affiche la mise à jour enregistrée avant de demander confirmation. Conservez la sauvegarde d’origine.",
+ "confirm": "Mettre à jour nanobot ?",
+ "reviewingTitle": "Vérification de la mise à jour…",
+ "preparing": "Téléchargement…",
+ "installing": "Installation…",
+ "working": "Mise à jour de nanobot…",
+ "reconnecting": "Reconnexion…",
+ "done": "Mise à jour terminée",
+ "failed": "Mise à jour inachevée",
+ "confirmDescription": "La mise à jour vers v{{version}} redémarrera nanobot sur {{host}}. Terminez les tâches en cours avant de continuer.",
+ "reviewing": "Vérification de l’installation et de la version exacte. Aucun fichier n’est modifié.",
+ "workingDescription": "Préparation et vérification des fichiers, puis sauvegarde et redémarrage de la passerelle sélectionnée.",
+ "reconnectingDescription": "En attente de reconnexion à la passerelle mise à jour. Ne lancez pas une autre mise à jour.",
+ "delayed": "La reconnexion prend du temps. La progression est enregistrée ; vous pouvez fermer et revérifier plus tard.",
+ "doneDescription": "La version v{{version}} est maintenant exécutée.",
+ "preparationFailed": "La préparation ou l’arrêt a échoué. Aucun paquet n’a été modifié. Terminez les tâches puis revérifiez.",
+ "repairRequired": "L’installation ou le redémarrage a échoué. Sauvegarde et journal sont conservés. Suivez la procédure de récupération, sans lancer une autre installation.",
+ "reviewFailed": "Impossible de vérifier la mise à jour. Vérifiez la connexion et le lancement en arrière-plan pris en charge par l’installation d’origine.",
+ "confirmationUnknown": "La demande a peut-être été acceptée. Vérification de la progression avant toute nouvelle action.",
+ "statusFailed": "Impossible de lire le journal. Reconnectez-vous à la même passerelle puis revérifiez.",
+ "sharedInstallation": "Les {{count}} passerelles actives partageant cette installation seront redémarrées.",
+ "cancel": "Annuler",
+ "close": "Fermer",
+ "hide": "Masquer",
+ "return": "Terminé",
+ "wait": "Patientez",
+ "checkAgain": "Revérifier",
+ "apply": "Mettre à jour et redémarrer",
+ "blocked": {
+ "review_changed": "Cette vérification a changé ou expiré. Fermez puis revérifiez.",
+ "not_upgrade": "La cible n’est pas une mise à niveau. Aucun fichier ne sera modifié.",
+ "installation_owner": "Utilisez le gestionnaire de paquets ou l’outil de déploiement d’origine.",
+ "installation_policy": "La source, les options ou les contraintes de version nécessitent la méthode d’installation d’origine.",
+ "external_restart": "Cette passerelle ne peut pas redémarrer ici. Utilisez son outil de lancement ou de déploiement d’origine pour l’arrêter, la mettre à jour et la redémarrer.",
+ "permission": "Ouvrez localhost sur la passerelle ou autorisez l’installation distante de paquets."
+ }
+ },
"remote": {
"compatibility": {
"title": "Vérification de version",
@@ -983,10 +1085,16 @@
"noDescription": "Aucune description disponible."
},
"about": {
+ "updateNotice": "Mise à jour disponible",
+ "viewUpdateDetails": "Voir les détails",
+ "updateNow": "Mettre à jour",
+ "dismissUpdate": "Masquer cet avis",
+ "updateInstructions": "Mettez à jour sur l’ordinateur qui exécute nanobot, avec la méthode d’installation d’origine. Cette page n’installe ni ne redémarre rien.",
+ "installationGuide": "Guide d’installation",
"documentation": "Documentation",
"sourceCode": "Code source",
"reportIssue": "Signaler un problème",
- "version": "Version",
+ "version": "Version et mises à jour",
"checking": "Recherche de mises à jour...",
"checkForUpdates": "Rechercher les mises à jour",
"upToDate": "Vous êtes à jour",
diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json
index eca6b34d7..74f9a66dc 100644
--- a/webui/src/i18n/locales/id/common.json
+++ b/webui/src/i18n/locales/id/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Perbarui melalui {{method}}",
+ "methods": {
+ "managed": "penginstal nanobot",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "kode sumber",
+ "container": "deployment container",
+ "system": "pengelola paket sistem"
+ },
+ "host": "Gateway: {{host}}",
+ "where": "Gunakan terminal di mesin ini dengan akun instalasi awal. Untuk gateway jarak jauh, gunakan SSH atau konsol server, bukan komputer browser. Perintah hanya disalin; halaman ini tidak menjalankannya.",
+ "containerHost": "Nama dan jalur ini milik bagian dalam container, bukan host deployment. Gunakan server atau panel yang mengelolanya; jangan memperbarui di dalam container yang sedang berjalan.",
+ "beforeTitle": "Siapkan dan hentikan",
+ "before": "Selesaikan tugas dan cadangkan konfigurasi, percakapan, serta data workspace. Hentikan semua gateway yang memakai instalasi ini melalui peluncur atau pengelola layanan awal. Pertahankan jalur profil dan pengaturan peluncuran.",
+ "installTitle": "Perbarui di {{shell}}",
+ "inspectCommand": "Periksa instalasi ini",
+ "updateCommand": "Perintah pembaruan",
+ "versionCommand": "Versi terpasang",
+ "reasons": {
+ "restart": "Paket tujuan sudah terpasang. Jangan instal ulang. Hentikan gateway lama, mulai dengan peluncur dan profil awal, lalu periksa versi yang berjalan.",
+ "registry": "Gunakan sumber paket dan kredensial awal. Pengelola mempertahankan extras dan batasan versi sehingga dapat memilih versi stabil lain dari pemberitahuan. Periksa hasilnya; jangan paksa pembaruan yang gagal.",
+ "preview": "Preview didistribusikan di GitHub dan mungkin tidak tersedia di indeks paket. Pilih wheel yang sesuai dengan Python dan platform gateway, verifikasi checksum lalu instal dengan pengelola awal dan extras yang sama. Perintah upgrade umum tidak menjamin Preview ini.",
+ "policy": "Ada versi yang dipatok, berkas lock, sumber tetap, batasan, atau opsi tak dikenal. Periksa lalu ikuti alur awal dengan mempertahankan extras dan paket yang diinjeksi. Jangan hapus batasannya.",
+ "extras": "Lingkungan pip ini tidak mencatat extras awal. Periksa paket lalu gunakan kembali perintah pip awal dengan --upgrade dan versi tujuan, serta pertahankan extras dan opsi indeks. Tidak ada perintah instalasi hasil tebakan.",
+ "manager": "Program pengelola atau struktur lingkungan tidak dapat dikonfirmasi. Gunakan akun dan pengaturan awal untuk menargetkan jalur di atas; jangan memakai pip atau nanobot lain dari PATH.",
+ "source": "Periksa repositori, pertahankan perubahan lokal dan pastikan branch atau revisi tujuan. Ikuti alur repositori untuk memperbarui kode, dependensi, dan build WebUI/TUI. Jangan ganti instalasi editable dengan paket PyPI.",
+ "container": "Di proyek Compose atau panel awal, pilih tag/digest, tarik atau build image lalu buat ulang hanya layanan nanobot dengan mount, rahasia, dan port yang sama. Cadangkan volume data; jangan pernah menghapusnya.",
+ "system": "Gunakan pengelola paket OS atau hubungi administrator server. Jangan gunakan sudo pip atau lewati pembatasan Python yang dikelola sistem.",
+ "review": "Instalasi atau hasil pemeriksaan telah berubah. Tutup dan periksa lagi sebelum menyalin perintah."
+ },
+ "verifyTitle": "Mulai ulang dan verifikasi",
+ "verify": "Jalankan dengan peluncur dan profil yang sama. Perintah hanya memeriksa berkas terpasang. Sambungkan kembali ke gateway yang sama, bandingkan versi aktif dengan v{{version}}, dan pastikan percakapan serta pengaturan tetap ada.",
+ "check": "Periksa gateway yang berjalan",
+ "verified": "Terkonfirmasi: gateway ini menjalankan v{{version}}.",
+ "observed": "Gateway melaporkan v{{version}}, bukan v{{target}}. Periksa keluaran instalasi dan mulai ulang lingkungan yang sama; pembaruan paket saja tidak memperbarui proses aktif.",
+ "checkFailed": "Versi aktif tidak dapat dibaca. Sambungkan kembali ke gateway yang sama lalu coba lagi; keberhasilan belum dikonfirmasi."
+ },
+ "automaticRecovery": "Jika pembaruan gagal, nanobot akan mencoba memulihkan layanan dengan program sebelumnya jika aman. Data chat tidak akan dikembalikan ke versi lama.",
+ "restored": "Versi sebelumnya dipulihkan",
+ "restoredDescription": "Pembaruan belum selesai. v{{version}} berjalan kembali. Konfigurasi dan chat Anda tidak dikembalikan ke data lama.",
+ "recoveryBeforeInstall": "Pembaruan berhenti sebelum instalasi. Tidak ada berkas paket yang diubah. Pulihkan pembaruan tersimpan untuk melanjutkan.",
+ "channel": {
+ "settings": "Pengaturan pembaruan",
+ "receivePreview": "Terima pembaruan pratinjau",
+ "previewWarning": "Ini adalah versi pratinjau dan mungkin memiliki bug.",
+ "preview": "Pratinjau",
+ "hint": "Coba fitur baru lebih awal.",
+ "saving": "Menyimpan…",
+ "saved": "Preferensi pembaruan disimpan",
+ "ahead": "Versi ini lebih baru dari saluran yang dipilih. Versi lama tidak akan diinstal.",
+ "waiting_stable": "Pembaruan pratinjau dinonaktifkan. Gunakan versi ini sampai versi stabil yang lebih baru tersedia.",
+ "withdrawn": "Pratinjau ini ditarik. Perbarui saat versi baru tersedia; jangan turunkan versi dengan data saat ini.",
+ "unavailable": "Saluran ini belum dapat diverifikasi dan mungkin belum tersedia. Periksa koneksi lalu coba lagi.",
+ "publishing": "Versi masih diterbitkan. Periksa lagi nanti.",
+ "unsupported": "Tidak ada pembaruan yang cocok untuk versi Python dan platform ini.",
+ "releaseNotes": "Catatan rilis"
+ },
+ "reviewAgain": "Tinjau pembaruan",
+ "reviewAgainDescription": "Tidak ada berkas paket yang diubah. Tinjau kembali pembaruan sebelum menyetujui instalasi dan mulai ulang.",
+ "settleFailed": "Pembaruan sebelumnya belum dapat diakhiri dengan aman. Periksa statusnya lagi atau ikuti petunjuk pemulihan.",
+ "ownerGuide": "Petunjuk pembaruan untuk instalasi Anda",
+ "recoveryTitle": "Pulihkan di komputer gateway",
+ "recoveryDescription": "Jalankan perintah ini di terminal komputer yang menjalankan nanobot. Pembaruan tersimpan akan ditampilkan sebelum meminta konfirmasi perbaikan. Simpan cadangan asli.",
+ "confirm": "Perbarui nanobot sekarang?",
+ "reviewingTitle": "Memeriksa pembaruan…",
+ "preparing": "Mengunduh pembaruan…",
+ "installing": "Memasang pembaruan…",
+ "working": "Memperbarui nanobot…",
+ "reconnecting": "Menghubungkan kembali…",
+ "done": "Pembaruan selesai",
+ "failed": "Pembaruan belum selesai",
+ "confirmDescription": "Pembaruan ke v{{version}} akan memulai ulang nanobot di {{host}}. Selesaikan tugas yang berjalan sebelum melanjutkan.",
+ "reviewing": "Memeriksa instalasi dan versi tujuan yang tepat. Tidak ada berkas yang diubah.",
+ "workingDescription": "Menyiapkan dan memverifikasi berkas, lalu mencadangkan dan memulai ulang gateway terpilih.",
+ "reconnectingDescription": "Menunggu gateway yang diperbarui terhubung kembali. Jangan mulai pembaruan lain.",
+ "delayed": "Penyambungan memerlukan waktu lebih lama. Progres tersimpan; Anda dapat menutup dan memeriksa lagi nanti.",
+ "doneDescription": "Kini menjalankan v{{version}}.",
+ "preparationFailed": "Persiapan atau penghentian gateway gagal. Paket belum diubah. Selesaikan tugas lalu periksa kembali.",
+ "repairRequired": "Instalasi atau mulai ulang gagal. Cadangan dan catatan disimpan. Ikuti prosedur pemulihan; jangan mulai instalasi lain.",
+ "reviewFailed": "Pembaruan tidak dapat diverifikasi. Periksa koneksi dan peluncur latar belakang yang didukung instalasi asal.",
+ "confirmationUnknown": "Permintaan mungkin telah diterima. Memeriksa progres tersimpan sebelum tindakan berikutnya.",
+ "statusFailed": "Catatan pembaruan tidak dapat dibaca. Sambungkan kembali ke gateway yang sama lalu periksa.",
+ "sharedInstallation": "{{count}} gateway aktif yang berbagi instalasi ini akan dimulai ulang.",
+ "cancel": "Batal",
+ "close": "Tutup",
+ "hide": "Sembunyikan",
+ "return": "Selesai",
+ "wait": "Tunggu",
+ "checkAgain": "Periksa lagi",
+ "apply": "Perbarui dan mulai ulang",
+ "blocked": {
+ "review_changed": "Tinjauan berubah atau kedaluwarsa. Tutup lalu periksa lagi.",
+ "not_upgrade": "Versi tujuan bukan peningkatan. Berkas tidak akan diubah.",
+ "installation_owner": "Perbarui dengan pengelola paket atau alat penerapan asal.",
+ "installation_policy": "Sumber, ekstra, atau batasan versi memerlukan pembaruan melalui metode pemasangan asal.",
+ "external_restart": "Gateway ini tidak dapat dimulai ulang di sini. Gunakan alat peluncuran atau penerapan asal untuk menghentikan, memperbarui, dan memulainya ulang.",
+ "permission": "Buka localhost pada gateway atau izinkan pemasangan paket jarak jauh."
+ }
+ },
"remote": {
"compatibility": {
"title": "Periksa versi",
@@ -983,10 +1085,16 @@
"noDescription": "Tidak ada deskripsi."
},
"about": {
+ "updateNotice": "Pembaruan tersedia",
+ "viewUpdateDetails": "Lihat detail",
+ "updateNow": "Perbarui",
+ "dismissUpdate": "Tutup pemberitahuan",
+ "updateInstructions": "Perbarui di komputer yang menjalankan nanobot dengan metode instalasi semula. Halaman ini tidak akan memasang atau memulai ulang apa pun.",
+ "installationGuide": "Panduan instalasi",
"documentation": "Dokumentasi",
"sourceCode": "Kode sumber",
"reportIssue": "Laporkan masalah",
- "version": "Versi",
+ "version": "Versi & pembaruan",
"checking": "Memeriksa pembaruan...",
"checkForUpdates": "Periksa pembaruan",
"upToDate": "Anda sudah menggunakan versi terbaru",
diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json
index 63cc66b39..170037325 100644
--- a/webui/src/i18n/locales/ja/common.json
+++ b/webui/src/i18n/locales/ja/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "{{method}}で更新",
+ "methods": {
+ "managed": "nanobot インストーラー",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "ソースコード",
+ "container": "コンテナーのデプロイ",
+ "system": "システムパッケージ管理"
+ },
+ "host": "ゲートウェイ:{{host}}",
+ "where": "このマシンのターミナルで、元のインストールユーザーとして操作してください。リモートの場合は SSH またはサーバーのコンソールを使います。ブラウザー側のマシンではありません。コマンドはコピー専用で、自動実行されません。",
+ "containerHost": "これはコンテナー内の名前とパスであり、デプロイ先ホストではありません。管理サーバーやホスティング画面で操作し、稼働中のコンテナー内で更新しないでください。",
+ "beforeTitle": "準備して停止",
+ "before": "タスクを終了し、設定・チャット・ワークスペースをバックアップします。同じ環境を使うすべてのゲートウェイを元のランチャーやサービス管理から停止し、プロファイルのパスと起動設定を保持してください。",
+ "installTitle": "{{shell}} で更新",
+ "inspectCommand": "インストールを確認",
+ "updateCommand": "更新コマンド",
+ "versionCommand": "インストール済みバージョン",
+ "reasons": {
+ "restart": "対象バージョンはインストール済みです。再インストールせず、古いゲートウェイを停止して元のランチャーとプロファイルで再起動し、実行中のバージョンを確認してください。",
+ "registry": "元のレジストリと認証情報を使います。管理ツールは記録された extras とバージョン制約を保持するため、通知とは異なる安定版を選ぶ場合があります。出力を確認し、失敗時に強制更新しないでください。",
+ "preview": "Preview は GitHub で配布され、パッケージ索引にはない場合があります。ゲートウェイの Python・プラットフォームに合う wheel を選び、チェックサムを検証して、元のツールと同じ extras でインストールしてください。一般的な upgrade ではこの Preview を保証できません。",
+ "policy": "固定バージョン、ロック、固定ソース、制約、または不明な設定があります。以下を確認し、extras と追加パッケージを保持して元の手順で更新してください。制約を勝手に解除しないでください。",
+ "extras": "この pip 環境には元の extras が記録されていません。パッケージを確認し、元の pip コマンドに --upgrade と対象バージョンを指定して、extras と索引設定を保持してください。推測した更新コマンドは表示しません。",
+ "manager": "管理ツールまたは環境の構成を確認できません。元のアカウントと設定で上記のパスを指定してください。PATH 上の別の pip や nanobot は使わないでください。",
+ "source": "変更を保持して対象ブランチ・リビジョンを確認後、リポジトリの手順でコード、依存関係、WebUI/TUI を更新・ビルドしてください。編集可能な環境を PyPI パッケージで置き換えないでください。",
+ "container": "元の Compose プロジェクトや管理画面で対象イメージを選び、取得・ビルド後、既存のマウント・秘密情報・ポートを維持して nanobot サービスだけを再作成します。データボリュームをバックアップし、削除しないでください。",
+ "system": "OS のパッケージ管理を使うか管理者に依頼してください。sudo pip やシステム Python の管理制限の回避はしないでください。",
+ "review": "環境または更新の確認内容が変わりました。閉じて再確認してからコマンドをコピーしてください。"
+ },
+ "verifyTitle": "同じ方法で起動・確認",
+ "verify": "同じランチャーとプロファイルで起動します。コマンドはインストール済みファイルだけを確認します。同じゲートウェイに再接続し、実行中のバージョンを v{{version}} と比較してチャットと設定を確認してください。",
+ "check": "実行中のゲートウェイを確認",
+ "verified": "確認済み:v{{version}} が稼働中です。",
+ "observed": "稼働中は v{{version}} で、通知の v{{target}} とは異なります。インストール結果を確認し、同じ環境を再起動してください。ファイルの更新だけではプロセスは更新されません。",
+ "checkFailed": "実行中のバージョンを取得できません。同じゲートウェイに再接続して再試行してください。更新成功は未確認です。"
+ },
+ "automaticRecovery": "更新に失敗した場合、安全であれば以前のプログラムを使ってサービスの自動復旧を試みます。チャットデータは巻き戻しません。",
+ "restored": "以前のバージョンに復旧しました",
+ "restoredDescription": "更新は完了しませんでした。v{{version}} が再び動作しています。設定やチャットのデータは巻き戻していません。",
+ "recoveryBeforeInstall": "インストール前に更新が停止しました。パッケージのファイルは変更されていません。保存済みの更新を復旧して続行してください。",
+ "channel": {
+ "settings": "更新設定",
+ "receivePreview": "プレビュー更新を受け取る",
+ "previewWarning": "これはプレビュー版です。不具合がある場合があります。",
+ "preview": "プレビュー版",
+ "hint": "新機能をいち早く体験。",
+ "saving": "保存中…",
+ "saved": "更新設定を保存しました",
+ "ahead": "現在のバージョンは選択したチャンネルより新しいため、旧バージョンはインストールしません。",
+ "waiting_stable": "プレビュー更新を停止しました。新しい安定版が公開されるまで現在のバージョンを利用できます。",
+ "withdrawn": "このプレビュー版は撤回されました。修正版が公開されたら更新してください。現在のデータに旧版を上書きしないでください。",
+ "unavailable": "チャンネルを確認できません。まだ公開されていない可能性があります。接続を確認して再試行してください。",
+ "publishing": "リリースの公開中です。しばらくしてから再確認してください。",
+ "unsupported": "この Python バージョンとプラットフォームに対応する更新はありません。",
+ "releaseNotes": "リリースノート"
+ },
+ "reviewAgain": "更新内容を再確認",
+ "reviewAgainDescription": "パッケージのファイルは変更されていません。更新内容を再確認してから、インストールと再起動を承認してください。",
+ "settleFailed": "前回の更新を安全に終了できませんでした。状態を再確認するか、復旧手順に従ってください。",
+ "ownerGuide": "インストール方法別の更新手順",
+ "recoveryTitle": "ゲートウェイのコンピュータで復旧",
+ "recoveryDescription": "nanobot を実行しているコンピュータの端末で実行してください。保存済みの更新を表示し、修復前に確認します。元のバックアップを保持してください。",
+ "confirm": "nanobot を更新しますか?",
+ "reviewingTitle": "更新を確認中…",
+ "preparing": "更新をダウンロード中…",
+ "installing": "更新をインストール中…",
+ "working": "nanobot を更新中…",
+ "reconnecting": "再接続中…",
+ "done": "更新完了",
+ "failed": "更新が完了しませんでした",
+ "confirmDescription": "v{{version}} に更新すると {{host}} の nanobot が再起動します。実行中のタスクを終了してから続けてください。",
+ "reviewing": "インストール環境と対象バージョンを確認しています。ファイルは変更しません。",
+ "workingDescription": "ファイルを準備・検証し、バックアップ後に選択したゲートウェイを再起動します。",
+ "reconnectingDescription": "更新したゲートウェイへの再接続を待っています。更新を重複して開始しないでください。",
+ "delayed": "再接続に時間がかかっています。進行状況は保存済みです。閉じて後で確認できます。",
+ "doneDescription": "現在 v{{version}} が動作しています。",
+ "preparationFailed": "準備またはゲートウェイの停止に失敗しました。パッケージは未変更です。タスクを終了して再確認してください。",
+ "repairRequired": "インストールまたは再起動に失敗しました。バックアップと記録は保持されています。別の更新を開始せず、復旧手順に従ってください。",
+ "reviewFailed": "更新を検証できませんでした。接続と、元のインストール環境が対応するバックグラウンド起動方法を確認してください。",
+ "confirmationUnknown": "要求は受理済みの可能性があります。再実行前に保存済みの進行状況を確認しています。",
+ "statusFailed": "更新記録を読めません。同じゲートウェイに再接続して確認してください。",
+ "sharedInstallation": "このインストールを共有する実行中のゲートウェイ {{count}} 個を再起動します。",
+ "cancel": "キャンセル",
+ "close": "閉じる",
+ "hide": "隠す",
+ "return": "完了",
+ "wait": "お待ちください",
+ "checkAgain": "再確認",
+ "apply": "更新して再起動",
+ "blocked": {
+ "review_changed": "確認内容が変わったか期限切れです。閉じて再確認してください。",
+ "not_upgrade": "対象はアップグレードではありません。ファイルは変更しません。",
+ "installation_owner": "元のパッケージ管理・デプロイツールで更新してください。",
+ "installation_policy": "インストール元、追加依存関係、バージョン制約に従い、元の方法で更新してください。",
+ "external_restart": "このゲートウェイはここでは再起動できません。元の起動方法またはデプロイツールで停止・更新・再起動してください。",
+ "permission": "ゲートウェイの localhost を開くか、リモートパッケージインストールを許可してください。"
+ }
+ },
"remote": {
"compatibility": {
"title": "バージョン確認",
@@ -983,10 +1085,16 @@
"noDescription": "説明はありません。"
},
"about": {
+ "updateNotice": "アップデートがあります",
+ "viewUpdateDetails": "詳細を見る",
+ "updateNow": "更新",
+ "dismissUpdate": "更新通知を閉じる",
+ "updateInstructions": "nanobot を実行しているコンピューターで、元のインストール方法を使って更新してください。このページではインストールや再起動は行いません。",
+ "installationGuide": "インストールガイド",
"documentation": "公式ドキュメント",
"sourceCode": "ソースコード",
"reportIssue": "問題を報告",
- "version": "バージョン",
+ "version": "バージョンと更新",
"checking": "確認中...",
"checkForUpdates": "アップデートを確認",
"upToDate": "最新の状態です",
diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json
index a9a81dedd..8364132d8 100644
--- a/webui/src/i18n/locales/ko/common.json
+++ b/webui/src/i18n/locales/ko/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "{{method}}로 업데이트",
+ "methods": {
+ "managed": "nanobot 설치 프로그램",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "소스 코드",
+ "container": "컨테이너 배포",
+ "system": "시스템 패키지 관리자"
+ },
+ "host": "게이트웨이: {{host}}",
+ "where": "이 컴퓨터의 터미널에서 원래 설치 계정으로 실행하세요. 원격 게이트웨이는 브라우저 컴퓨터가 아닌 SSH 또는 서버 콘솔을 사용하세요. 명령은 복사만 하며 자동 실행되지 않습니다.",
+ "containerHost": "컨테이너 내부의 이름과 경로이며 배포 호스트가 아닙니다. 이를 관리하는 서버나 호스팅 콘솔에서 작업하세요. 실행 중인 컨테이너 안에서 업데이트하지 마세요.",
+ "beforeTitle": "준비하고 서비스 중지",
+ "before": "작업을 마치고 설정, 채팅, 작업 공간 데이터를 백업하세요. 같은 설치를 쓰는 모든 게이트웨이를 기존 실행기나 서비스 관리자로 중지하세요. 프로필 경로와 실행 설정은 유지하세요.",
+ "installTitle": "{{shell}}에서 업데이트",
+ "inspectCommand": "설치 확인",
+ "updateCommand": "업데이트 명령",
+ "versionCommand": "설치된 버전",
+ "reasons": {
+ "restart": "대상 패키지는 이미 설치되어 있습니다. 다시 설치하지 마세요. 이전 게이트웨이를 중지하고 기존 실행기와 프로필로 재시작한 뒤 실행 버전을 확인하세요.",
+ "registry": "기존 저장소와 인증 정보를 사용하세요. 관리자는 기록된 extras와 버전 제한을 유지하므로 알림과 다른 안정 버전을 선택할 수 있습니다. 출력을 확인하고 실패한 업데이트를 강제하지 마세요.",
+ "preview": "Preview는 GitHub로 배포되며 패키지 저장소에 없을 수 있습니다. 게이트웨이의 Python과 플랫폼에 맞는 wheel을 선택하고 체크섬을 검증한 뒤 기존 도구와 extras로 설치하세요. 일반 upgrade 명령으로 해당 Preview를 보장할 수 없습니다.",
+ "policy": "버전 고정, 잠금 파일, 고정 소스, 버전 제한 또는 알 수 없는 옵션이 있습니다. 아래에서 확인하고 extras 및 주입된 패키지를 유지하며 기존 절차로 업데이트하세요. 제한을 임의로 해제하지 마세요.",
+ "extras": "이 pip 환경은 원래 extras를 기록하지 않습니다. 패키지를 확인한 뒤 기존 pip 명령에 --upgrade와 대상 버전을 추가하고 extras 및 저장소 옵션을 유지하세요. 추측한 설치 명령은 제공하지 않습니다.",
+ "manager": "패키지 관리자나 환경 구조를 확인하지 못했습니다. 원래 계정과 설정으로 위 경로를 지정하세요. PATH의 다른 pip나 nanobot을 사용하지 마세요.",
+ "source": "로컬 변경을 보존하고 대상 브랜치나 리비전을 확인한 뒤 저장소 절차에 따라 코드, 의존성, WebUI/TUI를 업데이트하고 빌드하세요. 편집 가능한 환경을 PyPI 패키지로 대체하지 마세요.",
+ "container": "기존 Compose 프로젝트나 관리 콘솔에서 이미지 태그 또는 다이제스트를 선택하고 가져오거나 빌드한 뒤 기존 마운트, 비밀 정보, 포트를 유지해 nanobot 서비스만 재생성하세요. 데이터 볼륨은 백업하고 삭제하지 마세요.",
+ "system": "OS 패키지 관리자를 사용하거나 서버 관리자에게 요청하세요. sudo pip나 시스템 Python 관리 제한 우회는 사용하지 마세요.",
+ "review": "설치 또는 검토 내용이 변경되었습니다. 창을 닫고 다시 확인한 뒤 명령을 복사하세요."
+ },
+ "verifyTitle": "재시작하고 검증",
+ "verify": "같은 실행기와 프로필로 시작하세요. 명령은 설치 파일만 확인합니다. 동일한 게이트웨이에 재접속해 실행 버전을 v{{version}}과 비교하고 채팅 및 설정이 남아 있는지 확인하세요.",
+ "check": "실행 중인 게이트웨이 확인",
+ "verified": "확인됨: 이 게이트웨이는 v{{version}} 실행 중입니다.",
+ "observed": "게이트웨이는 알림의 v{{target}}이 아닌 v{{version}}을 보고합니다. 설치 출력을 확인하고 동일한 환경을 재시작하세요. 패키지 업데이트만으로 실행 프로세스는 바뀌지 않습니다.",
+ "checkFailed": "실행 버전을 읽지 못했습니다. 동일한 게이트웨이에 재접속하고 다시 시도하세요. 업데이트 성공은 아직 확인되지 않았습니다."
+ },
+ "automaticRecovery": "업데이트 실패 시 안전한 경우 이전 프로그램으로 서비스를 자동 복구합니다. 채팅 데이터는 이전 상태로 되돌리지 않습니다.",
+ "restored": "이전 버전 복구됨",
+ "restoredDescription": "업데이트가 완료되지 않아 v{{version}}이 다시 실행 중입니다. 설정과 채팅 기록은 이전 데이터로 되돌리지 않았습니다.",
+ "recoveryBeforeInstall": "설치 전에 업데이트가 중단되었습니다. 패키지 파일은 변경되지 않았습니다. 저장된 업데이트를 복구하여 계속하세요.",
+ "channel": {
+ "settings": "업데이트 설정",
+ "receivePreview": "미리 보기 업데이트 받기",
+ "previewWarning": "미리 보기 버전이며 오류가 있을 수 있습니다.",
+ "preview": "미리 보기",
+ "hint": "새 기능을 미리 사용해 보세요.",
+ "saving": "저장 중…",
+ "saved": "업데이트 설정 저장됨",
+ "ahead": "현재 버전이 선택한 채널보다 최신입니다. 이전 버전을 설치하지 않습니다.",
+ "waiting_stable": "미리 보기 업데이트를 중단했습니다. 더 새로운 안정판이 나올 때까지 현재 버전을 사용하세요.",
+ "withdrawn": "이 미리 보기 버전은 철회되었습니다. 새 버전이 나오면 업데이트하세요. 현재 데이터에 이전 버전을 덮어쓰지 마세요.",
+ "unavailable": "채널을 확인할 수 없습니다. 아직 제공되지 않을 수 있습니다. 연결을 확인하고 다시 시도하세요.",
+ "publishing": "릴리스를 게시 중입니다. 나중에 다시 확인하세요.",
+ "unsupported": "이 Python 버전과 플랫폼에 맞는 업데이트가 없습니다.",
+ "releaseNotes": "릴리스 노트"
+ },
+ "reviewAgain": "업데이트 다시 검토",
+ "reviewAgainDescription": "패키지 파일은 변경되지 않았습니다. 설치 및 재시작을 승인하기 전에 업데이트를 다시 검토하세요.",
+ "settleFailed": "이전 업데이트를 안전하게 종료하지 못했습니다. 상태를 다시 확인하거나 복구 안내를 따르세요.",
+ "ownerGuide": "설치 방식별 업데이트 안내",
+ "recoveryTitle": "게이트웨이 컴퓨터에서 복구",
+ "recoveryDescription": "nanobot이 실행 중인 컴퓨터의 터미널에서 실행하세요. 저장된 업데이트를 표시한 후 복구 여부를 확인합니다. 원본 백업을 보관하세요.",
+ "confirm": "nanobot을 업데이트할까요?",
+ "reviewingTitle": "업데이트 확인 중…",
+ "preparing": "업데이트 다운로드 중…",
+ "installing": "업데이트 설치 중…",
+ "working": "nanobot 업데이트 중…",
+ "reconnecting": "다시 연결 중…",
+ "done": "업데이트 완료",
+ "failed": "업데이트를 완료하지 못했습니다",
+ "confirmDescription": "v{{version}} 업데이트 후 {{host}}의 nanobot이 다시 시작됩니다. 진행 중인 작업을 먼저 끝내세요.",
+ "reviewing": "설치 환경과 대상 버전을 확인합니다. 파일은 변경하지 않습니다.",
+ "workingDescription": "파일을 준비하고 검증한 뒤 백업하고 선택한 게이트웨이를 다시 시작합니다.",
+ "reconnectingDescription": "업데이트된 게이트웨이에 다시 연결하고 있습니다. 업데이트를 중복 실행하지 마세요.",
+ "delayed": "다시 연결하는 데 시간이 걸립니다. 진행 상황은 저장되어 있으니 닫고 나중에 확인할 수 있습니다.",
+ "doneDescription": "현재 v{{version}}이 실행 중입니다.",
+ "preparationFailed": "준비 또는 게이트웨이 종료에 실패했습니다. 패키지 파일은 변경되지 않았습니다. 작업을 마친 후 다시 확인하세요.",
+ "repairRequired": "설치 또는 재시작에 실패했습니다. 백업과 기록은 보존됩니다. 다른 설치를 시작하지 말고 업데이트 복구 절차를 따르세요.",
+ "reviewFailed": "업데이트를 검증하지 못했습니다. 연결과 원래 설치 환경이 지원하는 백그라운드 실행 방식을 확인하세요.",
+ "confirmationUnknown": "요청이 수락되었을 수 있습니다. 다시 실행하기 전에 저장된 진행 상황을 확인합니다.",
+ "statusFailed": "업데이트 기록을 읽지 못했습니다. 같은 게이트웨이에 다시 연결해 확인하세요.",
+ "sharedInstallation": "이 설치를 공유하는 실행 중인 게이트웨이 {{count}}개가 다시 시작됩니다.",
+ "cancel": "취소",
+ "close": "닫기",
+ "hide": "접기",
+ "return": "완료",
+ "wait": "잠시 기다려 주세요",
+ "checkAgain": "다시 확인",
+ "apply": "업데이트 및 재시작",
+ "blocked": {
+ "review_changed": "검토 내용이 바뀌었거나 만료되었습니다. 닫고 다시 확인하세요.",
+ "not_upgrade": "대상 버전은 업그레이드가 아닙니다. 파일을 변경하지 않습니다.",
+ "installation_owner": "원래 패키지 관리자 또는 배포 도구로 업데이트하세요.",
+ "installation_policy": "설치 출처, 추가 종속성 또는 버전 제약에 따라 원래 설치 방식으로 업데이트하세요.",
+ "external_restart": "이 게이트웨이는 여기서 재시작할 수 없습니다. 원래 실행 방식이나 배포 도구로 중지, 업데이트 및 재시작하세요.",
+ "permission": "게이트웨이의 localhost를 열거나 원격 패키지 설치를 허용하세요."
+ }
+ },
"remote": {
"compatibility": {
"title": "버전 확인",
@@ -983,10 +1085,16 @@
"noDescription": "설명이 없습니다."
},
"about": {
+ "updateNotice": "업데이트가 있습니다",
+ "viewUpdateDetails": "자세히 보기",
+ "updateNow": "업데이트",
+ "dismissUpdate": "업데이트 알림 닫기",
+ "updateInstructions": "nanobot이 실행 중인 컴퓨터에서 기존 설치 방법으로 업데이트하세요. 이 페이지에서는 설치하거나 다시 시작하지 않습니다.",
+ "installationGuide": "설치 안내",
"documentation": "공식 문서",
"sourceCode": "소스 코드",
"reportIssue": "문제 신고",
- "version": "버전",
+ "version": "버전 및 업데이트",
"checking": "확인 중...",
"checkForUpdates": "업데이트 확인",
"upToDate": "최신 버전입니다",
diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json
index 7df31efbc..f03117d9c 100644
--- a/webui/src/i18n/locales/pt-BR/common.json
+++ b/webui/src/i18n/locales/pt-BR/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Atualizar via {{method}}",
+ "methods": {
+ "managed": "instalador do nanobot",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "código-fonte",
+ "container": "implantação do contêiner",
+ "system": "gerenciador do sistema"
+ },
+ "host": "Gateway: {{host}}",
+ "where": "Use o terminal desta máquina com a conta da instalação original. Para um gateway remoto, use SSH ou o console do servidor, não o computador do navegador. Os comandos são apenas copiados; esta página não os executa.",
+ "containerHost": "Este nome e caminho pertencem ao contêiner, não ao host de implantação. Use o servidor ou painel que o gerencia; não atualize dentro do contêiner em execução.",
+ "beforeTitle": "Preparar e parar",
+ "before": "Conclua as tarefas e faça backup das configurações, conversas e espaços de trabalho. Pare todos os gateways desta instalação pelo iniciador ou gerenciador de serviços original. Preserve os caminhos de perfil e parâmetros de início.",
+ "installTitle": "Atualizar no {{shell}}",
+ "inspectCommand": "Inspecionar esta instalação",
+ "updateCommand": "Comando de atualização",
+ "versionCommand": "Versão instalada",
+ "reasons": {
+ "restart": "O pacote de destino já está instalado. Não reinstale. Pare o gateway antigo, reinicie com o iniciador e perfil originais e confira a versão em execução.",
+ "registry": "Use o registro e as credenciais originais. O gerenciador preserva extras e restrições e pode selecionar outra versão estável permitida, diferente do aviso. Confira a saída e não force uma atualização com falha.",
+ "preview": "As Preview são distribuídas no GitHub, não necessariamente no seu índice. Selecione o wheel adequado ao Python e à plataforma do gateway, verifique o checksum e instale pelo gerenciador original com os mesmos extras. Um upgrade genérico não garante esta Preview.",
+ "policy": "Há versão fixada, arquivo de trava, origem fixa, restrição ou opções desconhecidas. Inspecione e siga o fluxo original, preservando extras e pacotes injetados. Não remova as restrições.",
+ "extras": "Este ambiente pip não registra os extras originais. Inspecione o pacote e reutilize o comando pip original com --upgrade e a versão desejada, preservando extras e opções do índice. Não fornecemos um comando adivinhado.",
+ "manager": "Não foi possível confirmar o gerenciador ou a estrutura do ambiente. Use a conta e as configurações originais para acessar o caminho acima; não use outro pip ou nanobot do PATH.",
+ "source": "Inspecione o repositório, preserve alterações locais e confirme a branch ou revisão. Siga o fluxo do repositório para atualizar código, dependências e builds WebUI/TUI. Não substitua uma instalação editável por PyPI.",
+ "container": "No projeto Compose ou painel original, escolha a tag ou digest, baixe ou construa a imagem e recrie apenas o serviço nanobot com os mesmos volumes, segredos e portas. Faça backup dos volumes; nunca os exclua.",
+ "system": "Use o gerenciador de pacotes do sistema ou contate o administrador. Não use sudo pip nem contorne o gerenciamento do Python do sistema.",
+ "review": "A instalação ou revisão mudou. Feche e verifique novamente antes de copiar um comando."
+ },
+ "verifyTitle": "Reiniciar e verificar",
+ "verify": "Inicie com o mesmo iniciador e perfil. O comando só verifica arquivos instalados. Reconecte ao mesmo gateway, compare a versão em execução com v{{version}} e confira as conversas e configurações.",
+ "check": "Verificar gateway em execução",
+ "verified": "Confirmado: este gateway executa v{{version}}.",
+ "observed": "O gateway informa v{{version}}, não v{{target}}. Confira a saída e reinicie a mesma instalação; atualizar arquivos não atualiza o processo em execução.",
+ "checkFailed": "Não foi possível ler a versão em execução. Reconecte ao mesmo gateway e tente novamente; o sucesso não foi confirmado."
+ },
+ "automaticRecovery": "Se a atualização falhar, o nanobot tentará restaurar o serviço com o programa anterior, quando for seguro. Os dados das conversas não serão revertidos.",
+ "restored": "Versão anterior restaurada",
+ "restoredDescription": "A atualização não foi concluída. A v{{version}} está funcionando novamente. Suas configurações e conversas não foram revertidas.",
+ "recoveryBeforeInstall": "A atualização parou antes da instalação. Nenhum arquivo do pacote foi alterado. Recupere a atualização salva para continuar.",
+ "channel": {
+ "settings": "Configurações de atualização",
+ "receivePreview": "Receber versões prévias",
+ "previewWarning": "Esta é uma versão prévia e pode conter erros.",
+ "preview": "Prévia",
+ "hint": "Experimente novidades antes.",
+ "saving": "Salvando…",
+ "saved": "Preferência de atualização salva",
+ "ahead": "Esta versão é mais recente que a do canal escolhido. Nenhuma versão anterior será instalada.",
+ "waiting_stable": "As atualizações prévias estão desativadas. Use esta versão até que haja uma versão estável mais recente.",
+ "withdrawn": "Esta prévia foi retirada. Atualize quando houver uma versão mais recente; não instale uma versão anterior sobre seus dados atuais.",
+ "unavailable": "Não foi possível verificar este canal. Ele pode ainda não estar disponível. Verifique a conexão e tente novamente.",
+ "publishing": "A versão ainda está sendo publicada. Verifique novamente mais tarde.",
+ "unsupported": "Não há atualização compatível com esta versão do Python e plataforma.",
+ "releaseNotes": "Notas da versão"
+ },
+ "reviewAgain": "Revisar atualização",
+ "reviewAgainDescription": "Nenhum arquivo do pacote foi alterado. Revise a atualização antes de confirmar a instalação e a reinicialização.",
+ "settleFailed": "Não foi possível encerrar a atualização anterior com segurança. Verifique o status novamente ou siga as instruções de recuperação.",
+ "ownerGuide": "Instruções de atualização para sua instalação",
+ "recoveryTitle": "Recuperar no computador do gateway",
+ "recoveryDescription": "Execute este comando no terminal do computador que executa o nanobot. Ele mostra a atualização salva antes de pedir confirmação para repará-la. Preserve o backup original.",
+ "confirm": "Atualizar nanobot agora?",
+ "reviewingTitle": "Verificando atualização…",
+ "preparing": "Baixando atualização…",
+ "installing": "Instalando atualização…",
+ "working": "Atualizando nanobot…",
+ "reconnecting": "Reconectando…",
+ "done": "Atualização concluída",
+ "failed": "A atualização não terminou",
+ "confirmDescription": "Atualizar para v{{version}} reiniciará o nanobot em {{host}}. Termine as tarefas em execução antes de continuar.",
+ "reviewing": "Verificando a instalação e a versão exata. Nenhum arquivo será alterado.",
+ "workingDescription": "Preparando e verificando arquivos; depois será feito backup e o gateway selecionado será reiniciado.",
+ "reconnectingDescription": "Aguardando a reconexão do gateway atualizado. Não inicie outra atualização.",
+ "delayed": "A reconexão está demorando. O progresso foi salvo; você pode fechar e verificar depois.",
+ "doneDescription": "Agora executando v{{version}}.",
+ "preparationFailed": "Falha na preparação ou na parada do gateway. Nenhum pacote foi alterado. Termine as tarefas e verifique novamente.",
+ "repairRequired": "Falha na instalação ou reinicialização. O backup e o registro foram mantidos. Siga o processo de recuperação; não inicie outra instalação.",
+ "reviewFailed": "Não foi possível verificar a atualização. Confira a conexão e a inicialização em segundo plano compatível com a instalação original.",
+ "confirmationUnknown": "A solicitação pode ter sido aceita. Verificando o progresso salvo antes de outra ação.",
+ "statusFailed": "Não foi possível ler o registro. Reconecte ao mesmo gateway e verifique novamente.",
+ "sharedInstallation": "Os {{count}} gateways ativos que compartilham esta instalação serão reiniciados.",
+ "cancel": "Cancelar",
+ "close": "Fechar",
+ "hide": "Recolher",
+ "return": "Concluído",
+ "wait": "Aguarde",
+ "checkAgain": "Verificar novamente",
+ "apply": "Atualizar e reiniciar",
+ "blocked": {
+ "review_changed": "A revisão mudou ou expirou. Feche e verifique novamente.",
+ "not_upgrade": "O destino não é uma atualização. Nenhum arquivo será alterado.",
+ "installation_owner": "Atualize usando o gerenciador de pacotes ou a ferramenta de implantação original.",
+ "installation_policy": "A origem, os extras ou as restrições de versão exigem o método de instalação original.",
+ "external_restart": "Este gateway não pode ser reiniciado aqui. Use a ferramenta de inicialização ou implantação original para pará-lo, atualizá-lo e reiniciá-lo.",
+ "permission": "Abra localhost no gateway ou permita a instalação remota de pacotes."
+ }
+ },
"remote": {
"compatibility": {
"title": "Verificar versão",
@@ -756,10 +858,16 @@
"noDescription": "Nenhuma descrição disponível."
},
"about": {
+ "updateNotice": "Atualização disponível",
+ "viewUpdateDetails": "Ver detalhes",
+ "updateNow": "Atualizar",
+ "dismissUpdate": "Ocultar aviso",
+ "updateInstructions": "Atualize no computador que executa o nanobot usando o método de instalação original. Esta página não instala nem reinicia nada.",
+ "installationGuide": "Guia de instalação",
"documentation": "Documentação",
"sourceCode": "Código-fonte",
"reportIssue": "Relatar um problema",
- "version": "Versão",
+ "version": "Versão e atualizações",
"checking": "Verificando...",
"checkForUpdates": "Verificar atualizações",
"upToDate": "O nanobot está atualizado",
diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json
index a211affa5..5434511c5 100644
--- a/webui/src/i18n/locales/vi/common.json
+++ b/webui/src/i18n/locales/vi/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "Cập nhật qua {{method}}",
+ "methods": {
+ "managed": "trình cài đặt nanobot",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "mã nguồn",
+ "container": "triển khai container",
+ "system": "trình quản lý gói hệ thống"
+ },
+ "host": "Gateway: {{host}}",
+ "where": "Dùng terminal trên máy này với tài khoản đã cài đặt ban đầu. Với gateway từ xa, dùng SSH hoặc bảng điều khiển máy chủ, không phải máy đang mở trình duyệt. Lệnh chỉ để sao chép, trang này không thực thi.",
+ "containerHost": "Đây là tên và đường dẫn bên trong container, không phải máy triển khai. Dùng máy chủ hoặc bảng quản trị container; không cập nhật bên trong container đang chạy.",
+ "beforeTitle": "Chuẩn bị và dừng dịch vụ",
+ "before": "Hoàn tất tác vụ, sao lưu cấu hình, hội thoại và dữ liệu workspace. Dừng mọi gateway dùng chung bản cài đặt qua trình khởi chạy hoặc quản lý dịch vụ ban đầu. Giữ đường dẫn hồ sơ và tham số khởi chạy.",
+ "installTitle": "Cập nhật trong {{shell}}",
+ "inspectCommand": "Kiểm tra bản cài đặt",
+ "updateCommand": "Lệnh cập nhật",
+ "versionCommand": "Phiên bản đã cài",
+ "reasons": {
+ "restart": "Gói đích đã được cài. Không cài lại. Dừng gateway cũ, khởi động bằng trình khởi chạy và hồ sơ ban đầu, rồi kiểm tra phiên bản đang chạy.",
+ "registry": "Dùng nguồn gói và thông tin xác thực ban đầu. Trình quản lý giữ extras và giới hạn phiên bản, nên có thể chọn bản ổn định khác với thông báo. Kiểm tra đầu ra; không ép cập nhật khi lỗi.",
+ "preview": "Preview được phát hành trên GitHub, có thể chưa có trên nguồn gói. Chọn wheel phù hợp Python và nền tảng của gateway, kiểm tra checksum rồi cài bằng công cụ ban đầu và cùng extras. Lệnh upgrade chung không đảm bảo cài đúng Preview này.",
+ "policy": "Có ghim phiên bản, tệp khóa, nguồn cố định, giới hạn hoặc tùy chọn chưa nhận diện. Kiểm tra và theo quy trình ban đầu, giữ extras và gói được thêm vào. Không tự bỏ giới hạn.",
+ "extras": "Môi trường pip này không ghi lại extras ban đầu. Kiểm tra gói rồi dùng lại lệnh pip gốc với --upgrade và phiên bản mong muốn, giữ extras và tùy chọn nguồn. Không cung cấp lệnh cài đặt phỏng đoán.",
+ "manager": "Không xác nhận được chương trình quản lý hoặc cấu trúc môi trường. Dùng tài khoản và thiết lập ban đầu để trỏ tới đường dẫn trên; không dùng pip hay nanobot khác trong PATH.",
+ "source": "Kiểm tra kho mã, giữ thay đổi cục bộ và xác nhận nhánh hoặc phiên bản. Theo quy trình của kho để cập nhật mã, phụ thuộc và build WebUI/TUI. Không thay bản cài editable bằng gói PyPI.",
+ "container": "Trong dự án Compose hoặc bảng quản trị gốc, chọn tag/digest, tải hoặc build ảnh rồi chỉ tạo lại dịch vụ nanobot với mount, bí mật và cổng cũ. Sao lưu volume dữ liệu; tuyệt đối không xóa chúng.",
+ "system": "Dùng trình quản lý gói của hệ điều hành hoặc liên hệ quản trị viên. Không dùng sudo pip hay vượt qua giới hạn Python do hệ thống quản lý.",
+ "review": "Bản cài đặt hoặc kết quả kiểm tra đã thay đổi. Đóng và kiểm tra lại trước khi sao chép lệnh."
+ },
+ "verifyTitle": "Khởi động lại và xác minh",
+ "verify": "Dùng cùng trình khởi chạy và hồ sơ. Lệnh chỉ kiểm tra tệp đã cài. Kết nối lại đúng gateway, so sánh phiên bản đang chạy với v{{version}} và kiểm tra hội thoại, cấu hình còn nguyên.",
+ "check": "Kiểm tra gateway đang chạy",
+ "verified": "Đã xác nhận: gateway đang chạy v{{version}}.",
+ "observed": "Gateway báo v{{version}}, không phải v{{target}}. Kiểm tra đầu ra cài đặt và khởi động lại cùng môi trường; cập nhật gói không thay đổi tiến trình đang chạy.",
+ "checkFailed": "Không đọc được phiên bản đang chạy. Kết nối lại đúng gateway và thử lại; chưa xác nhận cập nhật thành công."
+ },
+ "automaticRecovery": "Nếu cập nhật thất bại, nanobot sẽ thử khôi phục dịch vụ bằng chương trình trước đó khi an toàn. Dữ liệu trò chuyện sẽ không bị hoàn nguyên.",
+ "restored": "Đã khôi phục phiên bản trước",
+ "restoredDescription": "Cập nhật chưa hoàn tất. v{{version}} đã chạy lại. Cấu hình và cuộc trò chuyện không bị hoàn nguyên về dữ liệu cũ.",
+ "recoveryBeforeInstall": "Bản cập nhật đã dừng trước khi cài đặt. Chưa có tệp gói nào bị thay đổi. Khôi phục bản cập nhật đã lưu để tiếp tục.",
+ "channel": {
+ "settings": "Cài đặt cập nhật",
+ "receivePreview": "Nhận bản cập nhật xem trước",
+ "previewWarning": "Đây là bản xem trước và có thể có lỗi.",
+ "preview": "Xem trước",
+ "hint": "Trải nghiệm tính năng mới sớm.",
+ "saving": "Đang lưu…",
+ "saved": "Đã lưu tùy chọn cập nhật",
+ "ahead": "Phiên bản này mới hơn kênh đã chọn. Sẽ không cài đặt phiên bản cũ hơn.",
+ "waiting_stable": "Đã tắt cập nhật xem trước. Tiếp tục dùng phiên bản này cho đến khi có bản ổn định mới hơn.",
+ "withdrawn": "Bản xem trước này đã bị thu hồi. Hãy cập nhật khi có phiên bản mới hơn; không hạ cấp đè lên dữ liệu hiện tại.",
+ "unavailable": "Không thể xác minh kênh này. Kênh có thể chưa được mở. Kiểm tra kết nối rồi thử lại.",
+ "publishing": "Phiên bản đang được phát hành. Vui lòng kiểm tra lại sau.",
+ "unsupported": "Không có bản cập nhật tương thích với phiên bản Python và nền tảng này.",
+ "releaseNotes": "Ghi chú phát hành"
+ },
+ "reviewAgain": "Xem lại bản cập nhật",
+ "reviewAgainDescription": "Chưa có tệp gói nào bị thay đổi. Hãy xem lại bản cập nhật trước khi xác nhận cài đặt và khởi động lại.",
+ "settleFailed": "Chưa thể kết thúc an toàn lần cập nhật trước. Hãy kiểm tra lại trạng thái hoặc làm theo hướng dẫn khôi phục.",
+ "ownerGuide": "Hướng dẫn cập nhật cho cách cài đặt của bạn",
+ "recoveryTitle": "Khôi phục trên máy tính gateway",
+ "recoveryDescription": "Chạy lệnh này trong terminal trên máy tính đang chạy nanobot. Lệnh sẽ hiển thị bản cập nhật đã lưu trước khi yêu cầu xác nhận sửa chữa. Giữ lại bản sao lưu gốc.",
+ "confirm": "Cập nhật nanobot ngay?",
+ "reviewingTitle": "Đang kiểm tra bản cập nhật…",
+ "preparing": "Đang tải bản cập nhật…",
+ "installing": "Đang cài bản cập nhật…",
+ "working": "Đang cập nhật nanobot…",
+ "reconnecting": "Đang kết nối lại…",
+ "done": "Cập nhật hoàn tất",
+ "failed": "Cập nhật chưa hoàn tất",
+ "confirmDescription": "Cập nhật lên v{{version}} sẽ khởi động lại nanobot trên {{host}}. Hãy hoàn thành các tác vụ đang chạy trước khi tiếp tục.",
+ "reviewing": "Đang kiểm tra bản cài và phiên bản đích chính xác. Không thay đổi tệp.",
+ "workingDescription": "Đang chuẩn bị và xác minh tệp, sau đó sao lưu và khởi động lại gateway đã chọn.",
+ "reconnectingDescription": "Đang chờ kết nối lại gateway đã cập nhật. Đừng bắt đầu cập nhật khác.",
+ "delayed": "Kết nối lại mất nhiều thời gian. Tiến trình đã lưu; bạn có thể đóng và kiểm tra sau.",
+ "doneDescription": "Hiện đang chạy v{{version}}.",
+ "preparationFailed": "Chuẩn bị hoặc dừng gateway thất bại. Chưa thay đổi gói. Hãy kết thúc tác vụ rồi kiểm tra lại.",
+ "repairRequired": "Cài đặt hoặc khởi động lại thất bại. Bản sao lưu và nhật ký được giữ lại. Hãy làm theo quy trình khôi phục, đừng bắt đầu cài đặt khác.",
+ "reviewFailed": "Không thể xác minh bản cập nhật. Hãy kiểm tra kết nối và cách khởi chạy nền được bản cài gốc hỗ trợ.",
+ "confirmationUnknown": "Yêu cầu có thể đã được nhận. Đang kiểm tra tiến trình đã lưu trước thao tác tiếp theo.",
+ "statusFailed": "Không đọc được nhật ký. Hãy kết nối lại cùng gateway rồi kiểm tra.",
+ "sharedInstallation": "Sẽ khởi động lại {{count}} gateway đang chạy dùng chung bản cài này.",
+ "cancel": "Hủy",
+ "close": "Đóng",
+ "hide": "Thu gọn",
+ "return": "Xong",
+ "wait": "Vui lòng chờ",
+ "checkAgain": "Kiểm tra lại",
+ "apply": "Cập nhật và khởi động lại",
+ "blocked": {
+ "review_changed": "Thông tin đã đổi hoặc hết hạn. Đóng rồi kiểm tra lại.",
+ "not_upgrade": "Phiên bản đích không phải nâng cấp. Không thay đổi tệp.",
+ "installation_owner": "Hãy cập nhật bằng trình quản lý gói hoặc công cụ triển khai ban đầu.",
+ "installation_policy": "Nguồn cài đặt, phần bổ sung hoặc ràng buộc phiên bản yêu cầu cập nhật bằng phương thức cài đặt ban đầu.",
+ "external_restart": "Không thể khởi động lại gateway này tại đây. Hãy dùng công cụ khởi chạy hoặc triển khai ban đầu để dừng, cập nhật và khởi động lại.",
+ "permission": "Mở localhost trên gateway hoặc cho phép cài gói từ xa."
+ }
+ },
"remote": {
"compatibility": {
"title": "Kiểm tra phiên bản",
@@ -983,10 +1085,16 @@
"noDescription": "Không có mô tả."
},
"about": {
+ "updateNotice": "Có bản cập nhật",
+ "viewUpdateDetails": "Xem chi tiết",
+ "updateNow": "Cập nhật",
+ "dismissUpdate": "Ẩn thông báo cập nhật",
+ "updateInstructions": "Hãy cập nhật trên máy tính đang chạy nanobot bằng phương thức cài đặt ban đầu. Trang này không tự cài đặt hoặc khởi động lại.",
+ "installationGuide": "Hướng dẫn cài đặt",
"documentation": "Tài liệu",
"sourceCode": "Mã nguồn",
"reportIssue": "Báo cáo sự cố",
- "version": "Phiên bản",
+ "version": "Phiên bản & cập nhật",
"checking": "Đang kiểm tra...",
"checkForUpdates": "Kiểm tra bản cập nhật",
"upToDate": "Bạn đang dùng phiên bản mới nhất",
diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json
index cc42040e0..22dce406f 100644
--- a/webui/src/i18n/locales/zh-CN/common.json
+++ b/webui/src/i18n/locales/zh-CN/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "通过{{method}}更新",
+ "methods": {
+ "managed": "nanobot 安装器",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "源码",
+ "container": "容器部署",
+ "system": "系统包管理器"
+ },
+ "host": "网关:{{host}}",
+ "where": "请在这台机器的终端,用原安装账户操作。远程网关请通过 SSH 或服务器控制台连接,不是在浏览器所在的电脑上操作。这里的命令只供复制,不会自动执行。",
+ "containerHost": "这是容器的名称和内部路径,不是部署主机。请在管理此容器的服务器或托管控制台操作,不要在运行中的容器内升级。",
+ "beforeTitle": "准备并停止服务",
+ "before": "完成任务,备份配置、聊天记录和工作区数据。通过原启动器或服务管理器,停止共用此安装的所有网关。保留原配置路径和启动参数。",
+ "installTitle": "在 {{shell}} 中更新",
+ "inspectCommand": "检查此安装",
+ "updateCommand": "更新命令",
+ "versionCommand": "已安装的版本",
+ "reasons": {
+ "restart": "目标版本的文件已安装,无需再次安装。请停止旧网关,用原启动器和配置重新启动,再核对实际运行版本。",
+ "registry": "沿用原软件源和凭据。包管理器会保留记录的可选依赖和版本约束,实际选中的稳定版可能与提示不同。请检查命令输出,失败时不要强制覆盖。",
+ "preview": "Preview 通过 GitHub 分发,不一定在你的软件源中。选择本次发布中适合网关 Python 和平台的 wheel,校验文件后用原安装工具安装,并保留可选依赖。普通 upgrade 命令不能保证装到此 Preview。",
+ "policy": "安装记录包含固定版本、锁文件、固定来源、版本约束或无法识别的选项。请先检查,再沿用原流程更新,保留可选依赖和注入的包。不要为了更新直接解除限制。",
+ "extras": "此 pip 环境未记录最初选择的可选依赖。请先检查下面的包信息,再给原 pip 安装命令加上 --upgrade 和目标版本,保留可选依赖与软件源参数。这里不会猜测安装命令。",
+ "manager": "未能确认包管理器程序或环境布局。请用原安装账户和管理器设置,定位上面的安装路径;不要使用 PATH 中其他环境的 pip 或 nanobot。",
+ "source": "先检查此工作区,保留本地修改并确认目标分支或版本,再按仓库流程更新代码、依赖及 WebUI/TUI 构建。不要用 PyPI 安装覆盖可编辑源码环境。",
+ "container": "在原 Compose 项目或托管控制台中选择目标镜像标签或摘要,拉取或构建后,只重建 nanobot 服务,保留原挂载、凭据和端口。先备份数据卷,切勿为更新删除它们。",
+ "system": "通过操作系统的包管理器更新,或请服务器管理员处理。不要使用 sudo pip,也不要绕过系统 Python 的托管限制。",
+ "review": "安装环境或更新检查已变化。请关闭弹窗重新检查,再复制更新命令。"
+ },
+ "verifyTitle": "原方式启动并验证",
+ "verify": "使用原启动器和配置启动。终端命令仅检查已安装文件;请重新连接同一网关,核对运行版本是否为 v{{version}},并确认聊天记录和设置仍在。",
+ "check": "检查运行中的网关",
+ "verified": "已确认:此网关正在运行 v{{version}}。",
+ "observed": "此网关报告 v{{version}},与提示的 v{{target}} 不同。请检查安装输出,并重启同一安装环境;包已更新不代表运行中的进程已更新。",
+ "checkFailed": "无法读取运行版本。请重新连接同一网关后重试,目前尚未确认更新成功。"
+ },
+ "automaticRecovery": "更新失败时,nanobot 会尝试自动恢复服务,安全时恢复原程序。聊天数据不会回退。",
+ "restored": "已恢复原版本",
+ "restoredDescription": "更新未完成,已重新运行 v{{version}}。配置和聊天记录未被回退。",
+ "recoveryBeforeInstall": "更新在安装前停止,尚未修改安装文件。请恢复原更新以继续。",
+ "channel": {
+ "settings": "更新设置",
+ "receivePreview": "接收预览更新",
+ "previewWarning": "这是预览版,可能存在问题。",
+ "preview": "预览版",
+ "hint": "提前体验新功能。",
+ "saving": "正在保存…",
+ "saved": "更新偏好已保存",
+ "ahead": "当前版本领先于所选频道,不会安装更旧的版本。",
+ "waiting_stable": "已退出预览更新。保留当前版本,等待更新的正式版。",
+ "withdrawn": "当前预览版已撤回。请在修复版可用时升级,不要直接降级覆盖当前数据。",
+ "unavailable": "暂时无法验证此频道,可能尚未开放。请检查网络后重试。",
+ "publishing": "新版本仍在发布中,请稍后再检查。",
+ "unsupported": "此 Python 版本或平台暂无兼容更新。",
+ "releaseNotes": "更新说明"
+ },
+ "reviewAgain": "重新确认更新",
+ "reviewAgainDescription": "尚未修改安装文件。请重新查看更新内容,再确认安装并重启。",
+ "settleFailed": "暂时无法安全结束上次更新。请重新检查状态,或按更新恢复说明处理。",
+ "ownerGuide": "查看此安装方式的更新说明",
+ "recoveryTitle": "在网关电脑上恢复",
+ "recoveryDescription": "在运行 nanobot 的电脑上打开终端并运行此命令。它会先显示原更新记录,再询问是否恢复。请保留原备份。",
+ "confirm": "现在更新 nanobot?",
+ "reviewingTitle": "正在检查更新…",
+ "preparing": "正在下载更新…",
+ "installing": "正在安装更新…",
+ "working": "正在更新 nanobot…",
+ "reconnecting": "正在重新连接…",
+ "done": "更新完成",
+ "failed": "更新未完成",
+ "confirmDescription": "更新至 v{{version}} 后将重启 {{host}} 上的 nanobot。请先结束正在运行的任务。",
+ "reviewing": "正在核对安装环境和目标版本,不会修改文件。",
+ "workingDescription": "正在准备并校验文件,随后备份并重启所选网关。",
+ "reconnectingDescription": "正在等待更新后的网关重新连接,请勿重复发起更新。",
+ "delayed": "重连时间较长。进度已保存,你可以关闭此窗口,稍后再检查。",
+ "doneDescription": "当前已运行 v{{version}}。",
+ "preparationFailed": "准备或停止网关时失败,尚未修改安装文件。请结束正在运行的任务后重新检查。",
+ "repairRequired": "安装或重启失败,备份和更新记录已保留。请按更新恢复流程处理,不要发起另一次安装。",
+ "reviewFailed": "无法核实这次更新。请检查连接,并确认网关由原安装环境支持的后台启动方式运行。",
+ "confirmationUnknown": "请求可能已被接收,正在核对已保存的进度,请勿重复提交。",
+ "statusFailed": "无法读取更新记录。请重新连接同一个网关后检查。",
+ "sharedInstallation": "此安装由 {{count}} 个运行中的网关共用,它们都会重启。",
+ "cancel": "取消",
+ "close": "关闭",
+ "hide": "收起",
+ "return": "完成",
+ "wait": "请稍候",
+ "checkAgain": "重新检查",
+ "apply": "更新并重启",
+ "blocked": {
+ "review_changed": "更新方案已变化或过期,请关闭后重新检查。",
+ "not_upgrade": "目标版本无需升级,不会修改文件。",
+ "installation_owner": "请使用原包管理器或部署工具更新此安装。",
+ "installation_policy": "此安装的来源、可选依赖或版本设置需要通过原安装方式更新。",
+ "external_restart": "此网关无法在这里重启。请通过原启动方式或部署工具停止、更新并重启。",
+ "permission": "请在网关本机打开 localhost,或允许远程安装后更新。"
+ }
+ },
"remote": {
"compatibility": {
"title": "版本检查",
@@ -942,10 +1044,16 @@
"noDescription": "暂无描述。"
},
"about": {
+ "updateNotice": "有可用更新",
+ "viewUpdateDetails": "查看详情",
+ "updateNow": "更新",
+ "dismissUpdate": "暂时收起提示",
+ "updateInstructions": "请在运行 nanobot 的电脑上,使用原安装方式更新。此页面不会自动安装或重启。",
+ "installationGuide": "安装指南",
"documentation": "官方文档",
"sourceCode": "代码仓库",
"reportIssue": "问题反馈",
- "version": "版本",
+ "version": "版本与更新",
"checking": "正在检查...",
"checkForUpdates": "检查更新",
"upToDate": "已是最新版本",
diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json
index 94de97792..17c0a8c87 100644
--- a/webui/src/i18n/locales/zh-TW/common.json
+++ b/webui/src/i18n/locales/zh-TW/common.json
@@ -1,4 +1,106 @@
{
+ "updates": {
+ "guide": {
+ "entry": "透過{{method}}更新",
+ "methods": {
+ "managed": "nanobot 安裝程式",
+ "uv": "uv",
+ "pipx": "pipx",
+ "pip": "pip",
+ "source": "原始碼",
+ "container": "容器部署",
+ "system": "系統套件管理員"
+ },
+ "host": "閘道:{{host}}",
+ "where": "請在這台機器的終端機,以原安裝帳戶操作。遠端閘道請透過 SSH 或伺服器主控台連線,不是在瀏覽器所在的電腦上操作。指令僅供複製,不會自動執行。",
+ "containerHost": "這是容器名稱與內部路徑,不是部署主機。請在管理此容器的伺服器或託管主控台操作,不要在執行中的容器內升級。",
+ "beforeTitle": "準備並停止服務",
+ "before": "完成工作,備份設定、聊天記錄及工作區資料。透過原啟動器或服務管理員停止共用此安裝的所有閘道。保留設定路徑與啟動參數。",
+ "installTitle": "在 {{shell}} 中更新",
+ "inspectCommand": "檢查此安裝",
+ "updateCommand": "更新指令",
+ "versionCommand": "已安裝版本",
+ "reasons": {
+ "restart": "目標版本的檔案已安裝,無須再次安裝。請停止舊閘道,以原啟動器與設定重新啟動,再核對執行版本。",
+ "registry": "沿用原套件來源與憑證。套件管理員會保留記錄的選用依賴與版本限制,實際選取的穩定版可能與提示不同。請檢查輸出,失敗時不要強制覆寫。",
+ "preview": "Preview 透過 GitHub 分發,不一定在套件來源中。選擇適合閘道 Python 與平台的 wheel,驗證檔案後用原工具安裝並保留選用依賴。一般 upgrade 指令無法保證安裝此 Preview。",
+ "policy": "安裝記錄含固定版本、鎖定檔、固定來源、版本限制或不明選項。請先檢查,再沿用原流程更新,保留選用依賴及注入的套件。不要直接解除限制。",
+ "extras": "此 pip 環境未記錄原先的選用依賴。檢查套件資訊後,在原 pip 安裝指令加上 --upgrade 與目標版本,保留依賴及來源參數。不提供猜測的安裝指令。",
+ "manager": "無法確認套件管理程式或環境配置。請以原帳戶及管理員設定定位上述路徑,不要使用 PATH 中其他環境的 pip 或 nanobot。",
+ "source": "先檢查工作區,保留本機修改並確認目標分支或版本,再依倉庫流程更新程式碼、依賴及 WebUI/TUI 建置。不要用 PyPI 套件覆蓋可編輯環境。",
+ "container": "在原 Compose 專案或託管主控台選擇目標映像標籤或摘要,拉取或建置後只重建 nanobot 服務,保留掛載、憑證與連接埠。先備份資料卷,切勿刪除。",
+ "system": "使用作業系統套件管理員更新,或請伺服器管理員處理。不要使用 sudo pip 或繞過系統 Python 的管理限制。",
+ "review": "安裝環境或檢查已變更。請關閉對話框並重新檢查,再複製更新指令。"
+ },
+ "verifyTitle": "原方式啟動並驗證",
+ "verify": "使用原啟動器與設定啟動。終端指令只檢查已安裝檔案;重新連線同一閘道,核對執行版本是否為 v{{version}},並確認聊天與設定仍在。",
+ "check": "檢查執行中的閘道",
+ "verified": "已確認:此閘道正在執行 v{{version}}。",
+ "observed": "此閘道回報 v{{version}},與提示的 v{{target}} 不同。請檢查安裝輸出並重新啟動同一環境;套件更新不代表執行中的程序已更新。",
+ "checkFailed": "無法讀取執行版本。請重新連線同一閘道後再試,目前尚未確認更新成功。"
+ },
+ "automaticRecovery": "更新失敗時,nanobot 會嘗試自動恢復服務,安全時恢復原程式。聊天資料不會回退。",
+ "restored": "已恢復原版本",
+ "restoredDescription": "更新未完成,已重新執行 v{{version}}。設定和聊天記錄未被回復為舊資料。",
+ "recoveryBeforeInstall": "更新在安裝前停止,尚未修改安裝檔案。請復原原更新以繼續。",
+ "channel": {
+ "settings": "更新設定",
+ "receivePreview": "接收預覽更新",
+ "previewWarning": "這是預覽版,可能存在問題。",
+ "preview": "預覽版",
+ "hint": "提前體驗新功能。",
+ "saving": "正在儲存…",
+ "saved": "更新偏好已儲存",
+ "ahead": "目前版本領先於所選頻道,不會安裝較舊版本。",
+ "waiting_stable": "已退出預覽更新。保留目前版本,等待更新的正式版。",
+ "withdrawn": "目前預覽版已撤回。請在修正版可用時升級,不要直接降級覆寫目前資料。",
+ "unavailable": "暫時無法驗證此頻道,可能尚未開放。請檢查網路後重試。",
+ "publishing": "新版本仍在發布中,請稍後再檢查。",
+ "unsupported": "此 Python 版本或平台暫無相容更新。",
+ "releaseNotes": "更新說明"
+ },
+ "reviewAgain": "重新確認更新",
+ "reviewAgainDescription": "尚未修改安裝檔案。請重新查看更新內容,再確認安裝並重新啟動。",
+ "settleFailed": "暫時無法安全結束上次更新。請重新檢查狀態,或依更新復原說明處理。",
+ "ownerGuide": "查看此安裝方式的更新說明",
+ "recoveryTitle": "在閘道電腦上復原",
+ "recoveryDescription": "在執行 nanobot 的電腦上開啟終端機並執行此命令。它會先顯示原更新記錄,再詢問是否復原。請保留原備份。",
+ "confirm": "現在更新 nanobot?",
+ "reviewingTitle": "正在檢查更新…",
+ "preparing": "正在下載更新…",
+ "installing": "正在安裝更新…",
+ "working": "正在更新 nanobot…",
+ "reconnecting": "正在重新連線…",
+ "done": "更新完成",
+ "failed": "更新未完成",
+ "confirmDescription": "更新至 v{{version}} 後將重新啟動 {{host}} 上的 nanobot。請先結束正在執行的工作。",
+ "reviewing": "正在核對安裝環境與目標版本,不會修改檔案。",
+ "workingDescription": "正在準備並驗證檔案,隨後備份並重新啟動所選閘道。",
+ "reconnectingDescription": "正在等待更新後的閘道重新連線,請勿重複發起更新。",
+ "delayed": "重新連線時間較長。進度已儲存,你可以關閉此視窗,稍後再檢查。",
+ "doneDescription": "目前已執行 v{{version}}。",
+ "preparationFailed": "準備或停止閘道時失敗,尚未修改安裝檔案。請結束執行中的工作後重新檢查。",
+ "repairRequired": "安裝或重新啟動失敗,備份與更新記錄已保留。請依更新復原流程處理,不要發起另一次安裝。",
+ "reviewFailed": "無法核實此次更新。請檢查連線,並確認閘道以原安裝環境支援的背景方式啟動。",
+ "confirmationUnknown": "請求可能已被接收,正在核對已儲存的進度,請勿重複提交。",
+ "statusFailed": "無法讀取更新記錄。請重新連線至同一個閘道後檢查。",
+ "sharedInstallation": "此安裝由 {{count}} 個執行中的閘道共用,它們都會重新啟動。",
+ "cancel": "取消",
+ "close": "關閉",
+ "hide": "收起",
+ "return": "完成",
+ "wait": "請稍候",
+ "checkAgain": "重新檢查",
+ "apply": "更新並重啟",
+ "blocked": {
+ "review_changed": "更新方案已變更或過期,請關閉後重新檢查。",
+ "not_upgrade": "目標版本無需升級,不會修改檔案。",
+ "installation_owner": "請使用原套件管理器或部署工具更新此安裝。",
+ "installation_policy": "此安裝的來源、選用依賴或版本設定需要透過原安裝方式更新。",
+ "external_restart": "此閘道無法在這裡重新啟動。請透過原啟動方式或部署工具停止、更新並重新啟動。",
+ "permission": "請在閘道本機開啟 localhost,或允許遠端安裝後更新。"
+ }
+ },
"remote": {
"compatibility": {
"title": "版本檢查",
@@ -983,10 +1085,16 @@
"noDescription": "目前沒有描述。"
},
"about": {
+ "updateNotice": "有可用更新",
+ "viewUpdateDetails": "查看詳情",
+ "updateNow": "更新",
+ "dismissUpdate": "暫時收起提示",
+ "updateInstructions": "請在執行 nanobot 的電腦上,使用原安裝方式更新。此頁面不會自動安裝或重新啟動。",
+ "installationGuide": "安裝指南",
"documentation": "官方文件",
"sourceCode": "程式碼儲存庫",
"reportIssue": "問題回報",
- "version": "版本",
+ "version": "版本與更新",
"checking": "正在檢查…",
"checkForUpdates": "檢查更新",
"upToDate": "已是最新版本",
diff --git a/webui/src/lib/api.ts b/webui/src/lib/api.ts
index 68b3db80c..91a6ea904 100644
--- a/webui/src/lib/api.ts
+++ b/webui/src/lib/api.ts
@@ -763,26 +763,42 @@ export async function fetchSettingsUsage(
);
}
+export type UpdateChannel = "stable" | "preview";
+export interface ReleaseStatus {
+ channel: UpdateChannel;
+ revision: number;
+ currentVersion: string;
+ state: "available" | "current" | "ahead" | "waiting_stable" | "withdrawn" | "unavailable" | "publishing" | "unsupported";
+}
export interface VersionCheckResult {
+ installation_method?: UpdateMethod | null;
+ releaseStatus?: ReleaseStatus;
+ can_change_channel?: boolean;
updateAvailable: {
currentVersion: string;
latestVersion: string;
pypiUrl?: string;
+ releaseUrl?: string;
} | null;
}
export async function checkVersion(
token: string,
base: string = "",
+ channelStatus = false,
): Promise {
return request(
- `${base}/api/settings/version-check`,
+ `${base}/api/settings/version-check${channelStatus ? "?channel_status=1" : ""}`,
token,
undefined,
- 10_000,
+ 90_000,
);
}
+export function changeUpdateChannel(transport: WebUIMutationTransport, channel: UpdateChannel, revision: number): Promise<{ channel: UpdateChannel; revision: number }> {
+ return mutation(transport, "settings.nanobot.update.channel", { channel, revision });
+}
+
export async function fetchWorkspaces(
token: string,
base: string = "",
@@ -795,6 +811,73 @@ export async function fetchWorkspaces(
);
}
+export type UpdateMethod = "managed" | "uv" | "pipx" | "pip" | "source" | "container" | "system";
+export interface UpdateGuide {
+ method: UpdateMethod;
+ host: string;
+ environment: string;
+ shell: "sh" | "powershell";
+ inspect_command: string | null;
+ update_command: string | null;
+ verify_command: string | null;
+ reason: "registry" | "preview" | "policy" | "extras" | "manager" | "source" | "container" | "system" | "review" | "restart";
+}
+export interface UpdateReview {
+ id: string;
+ installation_id: string;
+ host: string;
+ running_version: string;
+ target_version: string;
+ channel?: UpdateChannel;
+ action: "upgrade" | "downgrade" | "restart" | "none";
+ validity: "current" | "expired" | "installation_changed" | "profiles_changed" | "channel_changed";
+ execution_blocked_reason: string | null;
+ automatic_recovery?: boolean;
+ guide?: UpdateGuide | null;
+ profiles: { id: string; workspace: string; reviewed_state: string; stop: boolean; restart: boolean }[];
+}
+export interface UpdateReviewResponse {
+ plan: UpdateReview;
+ installation_allowed: boolean;
+ execution_available: boolean;
+}
+export type UpdateJobPhase = "preparation_requested" | "preparing" | "preparation_failed" | "ready"
+ | "checking" | "stopping" | "handoff_failed" | "backing_up" | "installing" | "verifying"
+ | "installed" | "restarting" | "activating" | "finalizing" | "restart_failed" | "succeeded" | "failed" | "cancelled";
+export interface UpdateJob {
+ id: string;
+ installation_id: string;
+ target_version: string;
+ running_version: string;
+ recorded_phase: UpdateJobPhase;
+ recovery_active?: boolean;
+ service_restored?: boolean;
+ automatic_recovery?: boolean;
+ previous_version?: string;
+ mutation_started: boolean;
+ execution_confirmation_id: string | null;
+ recovery_command?: string;
+}
+export function createUpdateReview(transport: WebUIMutationTransport): Promise {
+ return mutation(transport, "settings.nanobot.update.plan", { restart_running: true }, 60_000);
+}
+export function readUpdateReview(token: string, id: string): Promise {
+ return request(`/api/settings/nanobot-update/plan?id=${encodeURIComponent(id)}`, token, undefined, API_READ_TIMEOUT_MS);
+}
+export function readUpdateJob(token: string, id: string): Promise<{ job: UpdateJob }> {
+ return request(`/api/settings/nanobot-update/job?id=${encodeURIComponent(id)}`, token, undefined, API_READ_TIMEOUT_MS);
+}
+export function prepareUpdate(transport: WebUIMutationTransport, id: string): Promise<{ job: UpdateJob }> {
+ return mutation(transport, "settings.nanobot.update.prepare", { id });
+}
+export function settleUpdate(transport: WebUIMutationTransport, id: string): Promise<{ job: UpdateJob }> {
+ return mutation(transport, "settings.nanobot.update.settle", { id });
+}
+export function executeUpdate(transport: WebUIMutationTransport, id: string, previousConfirmation?: string): Promise<{ job: UpdateJob }> {
+ return mutation(transport, previousConfirmation ? "settings.nanobot.update.retry" : "settings.nanobot.update.execute",
+ { id, confirm_restart: true, ...(previousConfirmation ? { previous_confirmation_id: previousConfirmation } : {}) });
+}
+
export async function fetchWorkspaceDirectories(
token: string,
path: string,
diff --git a/webui/src/providers/ClientProvider.tsx b/webui/src/providers/ClientProvider.tsx
index 8e16ed3f0..18a11923d 100644
--- a/webui/src/providers/ClientProvider.tsx
+++ b/webui/src/providers/ClientProvider.tsx
@@ -9,6 +9,8 @@ import {
import type { NanobotClient } from "@/lib/nanobot-client";
import type { WebUIIngressLimits } from "@/lib/types";
+import { VersionCheckProvider } from "@/providers/VersionCheckProvider";
+import { UpdateFlowProvider } from "@/providers/UpdateFlowProvider";
interface ClientContextValue {
client: NanobotClient;
@@ -27,6 +29,8 @@ export function ClientProvider({
modelName = null,
ingressLimits = null,
webuiCapabilities = [],
+ checkUpdatesOnConnect = false,
+ allowUpdateFlow = true,
children,
}: {
client: NanobotClient;
@@ -34,6 +38,8 @@ export function ClientProvider({
modelName?: string | null;
ingressLimits?: WebUIIngressLimits | null;
webuiCapabilities?: string[];
+ checkUpdatesOnConnect?: boolean;
+ allowUpdateFlow?: boolean;
children: ReactNode;
}) {
const tokenRef = useRef(token);
@@ -46,7 +52,13 @@ export function ClientProvider({
return (
- {children}
+
+
+ {children}
+
+
);
}
diff --git a/webui/src/providers/UpdateFlowProvider.tsx b/webui/src/providers/UpdateFlowProvider.tsx
new file mode 100644
index 000000000..2af968557
--- /dev/null
+++ b/webui/src/providers/UpdateFlowProvider.tsx
@@ -0,0 +1,332 @@
+import { createContext, useCallback, useContext, useEffect, useRef, useState, type ReactNode } from "react";
+import { useTranslation } from "react-i18next";
+import { Loader2 } from "lucide-react";
+
+import { AlertDialog, AlertDialogContent, AlertDialogTitle, AlertDialogDescription } from "@/components/ui/alert-dialog";
+import { Button } from "@/components/ui/button";
+import { Textarea } from "@/components/ui/textarea";
+import { UpdateGuide } from "@/components/UpdateGuide";
+import { ApiError, createUpdateReview, readUpdateReview, readUpdateJob, prepareUpdate, executeUpdate, settleUpdate,
+ type UpdateReviewResponse, type UpdateJob } from "@/lib/api";
+import type { NanobotClient } from "@/lib/nanobot-client";
+
+const STORAGE_KEY = "nanobot.pending-update.v1";
+const RECOVERY_KEY = "nanobot.pending-update-recovery.v1";
+const terminal = new Set(["preparation_failed", "handoff_failed", "restart_failed", "succeeded", "failed", "cancelled"]);
+const UpdateFlowContext = createContext<{ open: (() => void) | undefined; pending: boolean }>({ open: undefined, pending: false });
+
+function savedJob(): string | null {
+ try {
+ const id = sessionStorage.getItem(STORAGE_KEY);
+ return id && /^[0-9a-f-]{36}$/.test(id) ? id : null;
+ } catch { return null; }
+}
+function remember(id: string | null) {
+ try { if (id) sessionStorage.setItem(STORAGE_KEY, id); else { sessionStorage.removeItem(STORAGE_KEY); sessionStorage.removeItem(RECOVERY_KEY); } } catch { /* Memory state still works. */ }
+}
+
+export function UpdateFlowProvider({ client, token, enabled, canSettleHandoff = false, children }: {
+ client: NanobotClient; token: string; enabled: boolean; canSettleHandoff?: boolean; children: ReactNode;
+}) {
+ const { t } = useTranslation();
+ const [open, setOpen] = useState(false);
+ const [review, setReview] = useState(null);
+ const [job, setJob] = useState(null);
+ const [pendingId, setPendingId] = useState(null);
+ const [submitting, setSubmitting] = useState(false);
+ const [checkingStatus, setCheckingStatus] = useState(false);
+ const [error, setError] = useState("");
+ const [offline, setOffline] = useState(false);
+ const [delayed, setDelayed] = useState(false);
+ const [pollAttempt, setPollAttempt] = useState(0);
+ const [recovery, setRecovery] = useState("");
+ const [automaticRecovery, setAutomaticRecovery] = useState(false);
+ const generation = useRef(0);
+ const approved = useRef(null);
+ const trigger = useRef(null);
+ const heading = useRef(null);
+ const inFlight = useRef(false);
+
+ // Credentials/host changes revoke this client's unconsumed consent. Restoring
+ // a durable job is a read only; READY after refresh needs another button press.
+ useEffect(() => {
+ generation.current++;
+ approved.current = null;
+ inFlight.current = false;
+ setSubmitting(false);
+ setCheckingStatus(false);
+ setReview(null);
+ setJob(null);
+ setError("");
+ const id = enabled ? savedJob() : null;
+ // Retain a plain-text host command for an offline gateway, never consent.
+ // It is displayed, not executed by the browser.
+ try {
+ const saved = JSON.parse(sessionStorage.getItem(RECOVERY_KEY) || "null");
+ setRecovery(saved?.id === id && typeof saved.command === "string" ? saved.command : "");
+ setAutomaticRecovery(saved?.id === id && saved.automatic === true);
+ } catch { setRecovery(""); setAutomaticRecovery(false); }
+ setPendingId(id);
+ setOpen(!!id);
+ }, [client, token, enabled]);
+
+ const execute = useCallback(async (id: string) => {
+ if (inFlight.current) return;
+ inFlight.current = true;
+ setSubmitting(true);
+ const current = generation.current;
+ approved.current = null; // Consume once before the request, including a lost response.
+ try {
+ const response = await executeUpdate(client, id);
+ if (generation.current === current) setJob(response.job);
+ } catch {
+ // The gateway may already be shutting down. Read the journal before
+ // offering a fresh confirmation; never replay execution automatically.
+ if (generation.current === current) setError(t("updates.confirmationUnknown"));
+ } finally {
+ if (generation.current === current) { inFlight.current = false; setSubmitting(false); }
+ }
+ }, [client, t]);
+
+ useEffect(() => {
+ if (!enabled || !pendingId) return;
+ let active = true;
+ let timer: ReturnType;
+ let missingSince = 0;
+ const reconnecting = () => {
+ missingSince ||= Date.now();
+ setOffline(true);
+ setDelayed(Date.now() - missingSince > 120_000);
+ };
+ const refresh = async (manual = false) => {
+ const feedback = manual ? new Promise(resolve => setTimeout(resolve, 600)) : Promise.resolve();
+ try {
+ // API tokens belong to a gateway process. Let the client's authenticated
+ // reconnect replace them before reading the new process's update journal.
+ if (client.status !== "open") {
+ reconnecting();
+ timer = setTimeout(() => void refresh(), 1500);
+ return;
+ }
+ const { job: next } = await readUpdateJob(token, pendingId).finally(() => feedback);
+ if (!active) return;
+ setJob(next);
+ setAutomaticRecovery(next.automatic_recovery === true);
+ if (next.recovery_command) {
+ setRecovery(next.recovery_command);
+ try { sessionStorage.setItem(RECOVERY_KEY, JSON.stringify({ id: next.id, command: next.recovery_command, automatic: next.automatic_recovery === true })); } catch { /* Still available until reload. */ }
+ }
+ setOffline(false);
+ setDelayed(false);
+ missingSince = 0;
+ setError("");
+ if (next.recorded_phase === "ready" && approved.current === next.id) {
+ await execute(next.id);
+ }
+ if (!active) return;
+ if (!next.recovery_active && terminal.has(next.recorded_phase)
+ && !(next.recorded_phase === "succeeded" && next.running_version !== next.target_version)
+ && !(next.service_restored && next.running_version !== next.previous_version)) return;
+ // A refresh can recover files already staged, but not installation consent.
+ if (next.recorded_phase === "ready" && !next.execution_confirmation_id) {
+ try {
+ const restored = await readUpdateReview(token, next.id);
+ if (active) setReview(restored);
+ } catch { if (active) setError(t("updates.reviewFailed")); }
+ }
+ } catch (reason) {
+ if (!active) return;
+ if (reason instanceof ApiError && ([403, 404, 409].includes(reason.status)
+ || (reason.status === 401 && client.status === "open"))) {
+ // Do not discard an unknown mutation outcome or create a second job.
+ approved.current = null;
+ setOffline(false);
+ setDelayed(false);
+ setError(t("updates.statusFailed"));
+ return;
+ }
+ reconnecting();
+ } finally {
+ if (manual) {
+ // A repeated terminal result still needs a visible acknowledgement.
+ await feedback;
+ if (active) setCheckingStatus(false);
+ }
+ }
+ if (active) timer = setTimeout(() => void refresh(), 1500);
+ };
+ void refresh(pollAttempt > 0);
+ return () => { active = false; clearTimeout(timer); };
+ }, [client, enabled, pendingId, token, execute, t, pollAttempt]);
+
+ const inspect = async (retireId?: string) => {
+ if (inFlight.current) return;
+ inFlight.current = true;
+ const current = ++generation.current;
+ approved.current = null;
+ setSubmitting(true);
+ setError("");
+ let retired = !retireId;
+ try {
+ if (retireId) {
+ // Only the gateway can establish that no old worker can still execute.
+ // A lost/refused response keeps the original job and recovery entry.
+ const response = await settleUpdate(client, retireId);
+ if (generation.current !== current) return;
+ if ((response.job.recorded_phase !== "cancelled" && response.job.recorded_phase !== "preparation_failed")
+ || response.job.mutation_started) throw new Error("Update not settled");
+ retired = true;
+ }
+ setJob(null);
+ setReview(null);
+ setRecovery("");
+ setAutomaticRecovery(false);
+ setPendingId(null);
+ remember(null);
+ const next = await createUpdateReview(client);
+ if (generation.current === current) setReview(next);
+ } catch {
+ if (generation.current === current) setError(t(retired ? "updates.reviewFailed" : "updates.settleFailed"));
+ } finally {
+ if (generation.current === current) { setSubmitting(false); inFlight.current = false; }
+ }
+ };
+ const show = () => {
+ trigger.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
+ setOpen(true);
+ if (!pendingId) void inspect();
+ };
+ const confirm = async () => {
+ if (inFlight.current || !review?.execution_available || !review.installation_allowed) return;
+ const id = review.plan.id;
+ if (job?.recorded_phase === "ready") {
+ if (job.execution_confirmation_id) return;
+ await execute(id);
+ setPollAttempt(value => value + 1);
+ return;
+ }
+ inFlight.current = true;
+ const current = generation.current;
+ approved.current = id;
+ setSubmitting(true);
+ setError("");
+ remember(id);
+ setAutomaticRecovery(review.plan.automatic_recovery === true);
+ try { sessionStorage.setItem(RECOVERY_KEY, JSON.stringify({ id, automatic: review.plan.automatic_recovery === true })); } catch { /* Memory state still works. */ }
+ try {
+ const response = await prepareUpdate(client, id);
+ if (generation.current === current) { setJob(response.job); setPendingId(id); }
+ } catch (reason) {
+ if (generation.current === current) {
+ approved.current = null;
+ // A completed rejection (for example, a channel change in another tab)
+ // plus a missing journal permits a new review, never automatic retry.
+ // A timeout/lost response or an unreadable/existing job is still unknown.
+ if (reason instanceof ApiError && reason.status >= 400 && reason.status < 500) {
+ try {
+ const response = await readUpdateJob(token, id);
+ if (generation.current === current) setJob(response.job);
+ } catch (readError) {
+ if (generation.current !== current) return;
+ if (readError instanceof ApiError && readError.status === 404) {
+ remember(null);
+ setReview(null);
+ setError(t("updates.reviewAgainDescription"));
+ return;
+ }
+ }
+ }
+ if (generation.current === current) setPendingId(id);
+ }
+ } finally {
+ if (generation.current === current) { setSubmitting(false); inFlight.current = false; }
+ }
+ };
+
+ const phase = job?.recorded_phase;
+ const restored = job?.service_restored && job.running_version === job.previous_version;
+ const done = restored || (phase === "succeeded" && job?.running_version === job?.target_version);
+ const awaitingRestart = phase === "succeeded" && !done;
+ const failed = !job?.recovery_active && !job?.service_restored && !!phase && terminal.has(phase) && phase !== "succeeded";
+ // Backup can fail after shutdown/admission but before any package mutation.
+ // That saved job still needs the standalone recovery path, not another update.
+ const needsRecovery = failed && (job?.mutation_started || phase === "failed");
+ const preparing = phase === "preparation_requested" || phase === "preparing";
+ // The base update flow can settle preparation, but only the gateway's leases
+ // establish abandonment. Keep this tab's confirmed preparation uninterrupted.
+ const reviewAgain = job && !job.mutation_started && ((enabled && preparing && approved.current !== job.id)
+ || (canSettleHandoff && (phase === "handoff_failed" || phase === "cancelled"
+ || (phase === "ready" && review && review.plan.validity !== "current"))));
+ const restoringReview = !!pendingId && phase === "ready" && !job?.execution_confirmation_id && !review && !error;
+ const reviewing = (submitting && (!review || !!reviewAgain)) || restoringReview;
+ const busy = checkingStatus || submitting || restoringReview || (!!pendingId && !reviewAgain && !error && !failed && !done && (phase !== "ready" || !!job?.execution_confirmation_id));
+ const title = restored ? "restored" : done ? "done" : offline || awaitingRestart ? "reconnecting" : reviewing ? "reviewingTitle" : busy ? preparing ? "preparing" : phase === "installing" ? "installing" : "working" : failed ? "failed" : "confirm";
+ const blocked = !reviewAgain && !job?.execution_confirmation_id && review && (!review.installation_allowed ? "permission" : review.plan.execution_blocked_reason);
+ const guide = blocked && !busy && !error && !pendingId && review && ["upgrade", "restart"].includes(review.plan.action)
+ && review.plan.validity === "current" ? review.plan.guide : null;
+ const description = delayed ? t(automaticRecovery ? "updates.automaticRecovery" : "updates.delayed") : error || (restored ? t("updates.restoredDescription", { version: job?.previous_version }) : done ? t("updates.doneDescription", { version: job?.target_version })
+ : offline || awaitingRestart ? t("updates.reconnectingDescription") : reviewing ? t("updates.reviewing")
+ : reviewAgain ? t("updates.reviewAgainDescription") : failed ? t(job?.mutation_started ? "updates.repairRequired" : needsRecovery ? "updates.recoveryBeforeInstall" : "updates.preparationFailed")
+ : busy ? t("updates.workingDescription") : guide?.reason === "restart" ? t("updates.guide.reasons.restart") : blocked ? t(`updates.blocked.${blocked}`)
+ : review ? t("updates.confirmDescription", { version: review.plan.target_version, host: review.plan.host }) : t("updates.reviewing"));
+ const startAgain = !pendingId || (failed && !needsRecovery && !job?.execution_confirmation_id);
+ const primary = () => {
+ if (checkingStatus) return;
+ if (done) close();
+ else if (reviewAgain && !error) {
+ void inspect(job.id);
+ } else if (error || failed) {
+ if (startAgain) void inspect();
+ else { setCheckingStatus(true); setPollAttempt(value => value + 1); }
+ } else void confirm();
+ };
+ const close = () => { setOpen(false); if (done) { remember(null); setPendingId(null); window.location.reload(); } };
+ const ownerInstructions = {t("updates.ownerGuide")};
+
+ return
+ {children}
+
+ { event.preventDefault(); heading.current?.focus(); }}
+ onCloseAutoFocus={(event) => { event.preventDefault(); if (trigger.current?.isConnected) trigger.current.focus(); }}>
+