mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(plugins): complete runtime wiring and trust release store key
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user