pub mod commands; pub mod db; pub mod llama; pub mod sidecar; pub mod state; use commands::ai::{ai_chat, ai_configure, ai_list_providers}; use commands::export::export_transcript; use commands::project::{create_project, get_project, list_projects}; use commands::settings::{load_settings, save_settings}; use commands::system::{get_data_dir, llama_list_models, llama_start, llama_status, llama_stop}; use commands::transcribe::{run_pipeline, transcribe_file}; use state::AppState; #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { let app_state = AppState::new().expect("Failed to initialize app state"); tauri::Builder::default() .plugin(tauri_plugin_opener::init()) .plugin(tauri_plugin_dialog::init()) .manage(app_state) .invoke_handler(tauri::generate_handler![ create_project, get_project, list_projects, transcribe_file, run_pipeline, export_transcript, ai_chat, ai_list_providers, ai_configure, llama_start, llama_stop, llama_status, llama_list_models, get_data_dir, load_settings, save_settings, ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); }