aidaemon 0.11.12

A personal AI agent that runs as a background daemon, accessible via Telegram, Slack, or Discord, with tool use, MCP integration, and persistent memory
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

#[test]
fn test_touch_heartbeat_updates_timestamp() {
    let hb = Arc::new(AtomicU64::new(0));
    touch_heartbeat(&Some(hb.clone()));
    let val = hb.load(Ordering::Relaxed);
    assert!(val > 0, "heartbeat should be updated to current time");
}

#[test]
fn test_touch_heartbeat_none_is_noop() {
    // Should not panic
    touch_heartbeat(&None);
}