sandspy 0.1.1

Real-time security monitor for AI coding agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// sandspy::alerts — Desktop notification system

use anyhow::Result;
use notify_rust::Notification;

pub fn notify(title: &str, body: &str) -> Result<()> {
    (|| -> Result<()> {
        Notification::new().summary(title).body(body).show()?;
        Ok(())
    })()
    .unwrap_or_else(|e| {
        tracing::warn!("notification failed: {e}");
    });

    Ok(())
}