mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-12-03 02:00:16 +08:00
* Add instance transfer between OpenBot computers (#1952) Settings > Transfer exports the agents and app settings of this computer to one .zip file and imports such a file on another computer. Each agent keeps its profile, model, skills, routines, memories, avatar and, optionally, its workspace files. Settings add MCP servers, custom providers and agents, the default model, preferences, sidebar sections and routine flows. No secret goes into the file. The result lists the providers to sign in to again. The archive checks of the Grok Bot import move to agent-archive.ts, so both imports refuse the same entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep transfer texts from breaking the main bundle The CommonJS shim of electron-vite reads a string that ends with the word "import" as an import statement and inserts its code inside the string, so the main process did not build. Two Transfer texts are reworded, and a comment in the catalog names the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove secrets from transfer arguments and URLs, and add MCP servers off An MCP server, custom agent or custom provider can keep a token in an argument or a URL. The export now empties the value of a flag or name=value argument whose name says it is a secret, and removes the user, password, query and fragment of a URL. The manifest names each changed item, and the import asks for those values again. A transfer file can name any command, so an imported MCP server is added turned off until the user checks it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove passwords from URL arguments in a transfer export A connection string such as postgresql://user:pass@host/db is often an MCP argument, as a positional value or after a flag like --dsn=. Each argument and each name=value value now goes through the URL redaction, so its user, password, query and fragment stay out of the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Export only the origin of an MCP address, and show a failed summary Some hosted MCP services keep the access key in the path of their address, so the export now keeps only the origin and the import asks for the full address again. When the agent summary fails, the export screen showed only "Reading your agents…". The error now shows outside the summary, and a file that a running agent deletes during the walk is skipped and does not fail the summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Leave the shared tables database out of a transfer Shared/Data holds agent-data.db, which is open while the app runs and whose owner records name agent ids of the old computer. The export now skips Shared/Data, and the import does not write it, as the docs say. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep an export going when a file disappears, and use catalog text A running agent can delete a file after the walk. The export now skips that file, finishes, and shows how many files it left out on the "Export saved" screen. Import warnings for the default model, the app preferences and a routine flow now have their own catalog keys, and a provider shows its name, not its id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Do not run a file's custom agent command on a schedule A custom ACP agent has no off state, so an imported agent on a custom agent from the file could run that command with its first routine. The import now adds the routines of such an agent turned off, and a warning names the command of each custom agent it adds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Do not write OpenBot state or skill folders from a transfer file The export leaves out .openbot/ and the skill folders of a workspace, but the import wrote them when an edited file had them. The import now drops these paths with the same check, so a file cannot change the skill lock or add a skill that skips the library checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Ignore case in transfer folder checks, and keep a staged file A disk that ignores case writes .OpenBot/ into .openbot/, so the checks for OpenBot's workspace folders and for Shared/Data now ignore case. A transfer file that fails its checks no longer drops the file that was read before, so the open preview still imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Say that an agent on an imported provider starts on the default model A custom provider save does not wait for model discovery, and an imported provider has no key, so its models are not listed when the agents import. The docs and the code comment said the order lets an agent keep such a model. They now say that the agent starts on the default model, and the warning asks the user to choose the model again when its provider is ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Do not import custom ACP agents from a transfer file Saving a custom agent reloads the custom agents, and the model listing starts the command of each one. So a file could run its command during the import, before the user saw it. The import now never saves a custom agent: a warning names the agent and its command, and the user adds it again after checking it. The routine guard for such agents goes away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove unused transfer type exports knip reports four exported types that nothing imports. Two aliases are unused, and two interfaces are used only in their own module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Reword two transfer warnings that matched another template i18n:check maps a main-process text back to one key. "The default model is not imported" and "A routine flow is not imported" also matched "{name} is not imported", so the two texts are reworded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Export at most the skills that an import accepts The import refuses an agent with more than 32 skills, but the export copied every skill folder of a workspace. Such an agent was lost on the new computer. The export now keeps the first 32 skills by name, and the "Export saved" screen names the agent and the number left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Move Transfer to Server settings, and transfer a joined server too The Transfer section moves from app Settings to Server settings, and a file now holds one server: its agents and its server settings (MCP servers, custom providers, sidebar sections, routine flows). App preferences, the default model and the providers that are off belong to the app, so they are no longer in the file. The new optional capability instance-transfer-v1 lets an owner or admin of a joined server export and import over the Team API. It is protocol 7 only, every file is at most 100 MB (one WebRTC file transfer), and a staged upload belongs to its caller and is removed after 30 minutes. The web client does not show the section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Send the avatar hue as a number in instance-transfer-v1 The summary codec read avatarHue as text, but an agent's hue is a number. A joined server with a colored agent answered "Request failed." on Export. The tests now use a hue. The Transfer section moved to Server settings, so its switches and counts now say "server settings", not "app settings". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use the caller's timezone in instance-transfer-v1 apply The apply codec requires timezone, but the host dropped it and gave a routine with no valid zone the host's zone. The host now uses the caller's zone, and its own zone when the caller's is not valid, as agent import does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Reject a host error in a joined-server transfer over WebRTC Over WebRTC, the client answers a host error as a response, not as a failure. The export saved that JSON error as the .zip and showed "Export saved", and the import showed "Invalid transfer preview." instead of the host's reason. Both now fail with the host's error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
4.2 KiB
4.2 KiB
OpenBot architecture
OpenBot is a Bun workspace with desktop, browser, and mobile applications, two Cloudflare Workers, a self-hosted Signal service, and shared packages.
The architecture notes are in one file for each topic: