fix(plugins): complete runtime wiring and trust release store key

This commit is contained in:
t8y2
2026-09-13 01:10:13 +08:00
parent 9cec60f1e4
commit 8c939a02e1
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1347,6 +1347,7 @@ impl AppState {
app_version: impl Into<String>,
) -> Self {
let data_dir = storage.data_dir().to_path_buf();
let app_version = app_version.into();
Self {
connections: Arc::new(RwLock::new(ConnectionPoolRegistry::new())),
task_supervisor: TaskSupervisor::new(),
@@ -1359,8 +1360,8 @@ impl AppState {
proxy_tunnels: ProxyTunnelManager::new(),
http_tunnels: HttpTunnelManager::new(),
storage,
plugins: PluginRegistry::new(plugin_dir.clone()),
plugin_host: PluginHost::new(PluginRegistry::new(plugin_dir)),
plugins: PluginRegistry::new_with_app_version(plugin_dir.clone(), app_version.clone()),
plugin_host: PluginHost::new(PluginRegistry::new_with_app_version(plugin_dir, app_version.clone())),
agent_manager: crate::agent_manager::AgentManager::new_with_base_dir_and_app_version(
agent_dir,
app_version,
+1 -1
View File
@@ -30,7 +30,7 @@ const OFFICIAL_CATALOG_URL: &str = "https://raw.githubusercontent.com/t8y2/dbx-s
const ADDITIONAL_OFFICIAL_TRUSTED_KEYS_JSON: Option<&str> = option_env!("DBX_PLUGIN_MARKETPLACE_TRUSTED_KEYS_JSON");
const BUILTIN_OFFICIAL_TRUSTED_KEYS: &[(&str, &str)] = &[
("dbx-store-preview-2026", "VRb0VscZfWwuFa7LYfeD/wEOJeyNP8wPGND9br8Icmk="),
("dbx-store-release-2026", "9Ew1pCeGfTzg2Ltiqw7siiQlLsR+HK1MGqwsSVSC8ng"),
("dbx-store-release-2026", "9Ew1pCeGfTzg2Ltiqw7siiQlLsR+HK1MGqwsSVSC8ng="),
];
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
+1
View File
@@ -1604,6 +1604,7 @@ pub fn run() {
}));
let state = Arc::new(state);
app.manage(state.clone());
commands::plugins::install_plugin_event_bridge(app.handle(), state.clone());
let mcp_http_server = Arc::new(commands::mcp_http_server::McpHttpServerState::new(data_dir.clone()));
app.manage(mcp_http_server.clone());
let mcp_http_state = state.clone();