// thalamus/ — universal notification routing and channel infrastructure // // Contains the shared daemon protocol, notification system, channel // client/supervisor, and utility helpers used by both Claude-specific // code (in claude/) and the future substrate-independent consciousness // binary. pub mod channels; pub mod supervisor; pub mod notify; pub mod daemon_capnp { include!(concat!(env!("OUT_DIR"), "/schema/daemon_capnp.rs")); } use std::path::PathBuf; use std::time::{SystemTime, UNIX_EPOCH}; pub fn now() -> f64 { SystemTime::now() .duration_since(UNIX_EPOCH) .unwrap() .as_secs_f64() } pub fn home() -> PathBuf { PathBuf::from(std::env::var("HOME").unwrap_or_else(|_| "/root".into())) }