feat: 新增 Computer Use Agent 初步支持

This commit is contained in:
mofeng-git
2026-06-15 22:24:40 +08:00
parent 5c98aea7e3
commit 4b7be20fe0
20 changed files with 2518 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
use crate::atx::AtxController;
use crate::audio::{AudioController, AudioControllerConfig, AudioQuality};
use crate::auth::{SessionStore, UserStore};
use crate::computer_use::ComputerUseManager;
use crate::config::{self, AppConfig, ConfigStore};
use crate::db::DatabasePool;
use crate::events::EventBus;
@@ -461,6 +462,7 @@ async fn build_app_state(
};
let update_service = Arc::new(UpdateService::new(data_dir.join("updates")));
let computer_use = ComputerUseManager::new(config_store.clone(), hid.clone());
let state = AppState::new(
db,
config_store.clone(),
@@ -470,6 +472,7 @@ async fn build_app_state(
stream_manager,
webrtc_streamer,
hid,
computer_use,
msd,
atx,
audio,