Download, verify, and install the browser engine

Each host build pins one engine version in src-tauri/browser-engine.json.
The new engine manager downloads that ZIP over HTTPS, makes sure that its
size and SHA-256 match the pin, extracts it safely to the local app data
folder, and marks the installation last. It can also install a local
ZIP, cancel, report progress, and remove the engine. The host refuses an
engine that sends another protocol with its ready event.
This commit is contained in:
Knotty Wyvern
2026-10-29 00:57:51 -07:00
parent 48b8249ba6
commit 6004e126f7
16 changed files with 815 additions and 33 deletions
+7
View File
@@ -6,6 +6,7 @@ mod plugins;
mod plugin_sources;
mod workspace;
mod browser;
mod browser_engine;
mod git;
mod completion;
mod settings;
@@ -30,6 +31,7 @@ pub fn run() {
.manage(PtyState::new())
.manage(plugins::PluginState::default())
.manage(browser::BrowserState::default())
.manage(browser_engine::EngineState::default())
.manage(completion::CompletionState::default())
.manage(settings::SettingsState::default())
.manage(preferences::PreferencesState::default())
@@ -68,6 +70,11 @@ pub fn run() {
browser::browser_request,
browser::browser_connect,
browser::browser_stop,
browser_engine::browser_engine_status,
browser_engine::browser_engine_install,
browser_engine::browser_engine_install_file,
browser_engine::browser_engine_cancel,
browser_engine::browser_engine_remove,
git::git_status,
git::git_diff,
git::git_stage,