use crate::core::{ notification::{self, PendingFailure}, runstate::{RUN_STATE, RunStateView}, }; /// Returns one coherent core/service snapshot instead of independently refreshed state. #[tauri::command] #[specta::specta] pub async fn get_runtime_state() -> Result { Ok(RUN_STATE.settled().await.to_view()) } #[tauri::command] #[specta::specta] pub async fn get_pending_failures() -> Vec { notification::pending_failures() }