feat(update): integrate managed installs and recoverable in-app updates (#6168)

Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.

Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.

This code integration does not publish packages, enable signing or advance the public update channel.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
This commit is contained in:
Xubin Renandchengyongru authored and GitHub committed 2026-10-21 19:16:56 +08:00
1 parent 76da55994b
commit fbb61a373f
216 files changed
+27948 -1084

No files matched your search

+109 -1
View File
@@ -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",