feat(app): real daemon health footer (live, uptime, version)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-10 12:09:35 +07:00
parent f7763a84fc
commit defceb1169
5 changed files with 53 additions and 12 deletions
+5
View File
@@ -311,3 +311,8 @@ pub async fn mark_read(state: BridgeState<'_>, target: Value) -> Result<Value, S
let target: spacesh_proto::MarkReadTarget = serde_json::from_value(target).map_err(|e| format!("invalid mark_read target: {e}"))?;
data_of(state.request(Cmd::MarkRead { target }).await.map_err(|e| e.to_string())?)
}
#[tauri::command]
pub async fn health(state: BridgeState<'_>) -> Result<Value, String> {
data_of(state.request(Cmd::Health).await.map_err(|e| e.to_string())?)
}
+1
View File
@@ -51,6 +51,7 @@ pub fn run() {
bridge::focus,
bridge::event_log,
bridge::mark_read,
bridge::health,
])
.run(tauri::generate_context!())
.expect("error while running spacesh");