初始化web服务功能

This commit is contained in:
xintaofei
2026-03-25 14:26:26 +08:00
parent ae70f17d2e
commit ac09d3db9e
99 changed files with 3253 additions and 304 deletions

View File

@@ -3,7 +3,7 @@ use std::fs;
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
use tauri::{Emitter, State};
use tauri::State;
use crate::acp::binary_cache;
use crate::acp::error::AcpError;
@@ -32,7 +32,8 @@ fn emit_acp_agents_updated(
reason: &'static str,
agent_type: Option<AgentType>,
) {
let _ = app.emit(
crate::web::event_bridge::emit_event(
app,
ACP_AGENTS_UPDATED_EVENT,
AcpAgentsUpdatedEventPayload { reason, agent_type },
);