// Claude Desktop — Tauri Backend // Hauptmodul für die Rust-Seite der App use tauri::Manager; mod claude; mod memory; mod audit; /// Initialisiert die App #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_shell::init()) .invoke_handler(tauri::generate_handler![ // Claude SDK claude::send_message, claude::stop_all_agents, claude::get_agent_status, // Gedächtnis-System memory::load_memory, memory::get_sticky_context, memory::save_pattern, memory::detect_issue, // Audit-Log audit::get_audit_log, audit::add_audit_entry, audit::get_audit_stats, ]) .setup(|app| { let handle = app.handle().clone(); println!("🤖 Claude Desktop gestartet"); // Gedächtnis-System beim Start laden tauri::async_runtime::spawn(async move { println!("🧠 Initialisiere Gedächtnis-System..."); // TODO: memory::load_memory aufrufen }); Ok(()) }) .run(tauri::generate_context!()) .expect("Fehler beim Starten der App"); }