capri-perception: add crate root

This commit is contained in:
nocode committed 2026-11-11 20:20:48 +01:00
1 parent 0b87d80196
commit be26d7e379
1 file changed
+31
+31
View File
@@ -0,0 +1,31 @@
//! Capri perception: owner-consented screen capture, observation and vision prompts,
//! "clip that" screenshots, window/session awareness, initiative and resource sampling.
//! Also the Linux platform pieces shared with `capri-computer`: KWin scripting, i3 IPC, capture.
pub mod awareness;
pub mod capture;
pub mod clip;
pub mod i3;
pub mod identity;
pub mod imaging;
pub mod initiative;
pub mod kwin;
pub mod llm;
pub mod observation;
pub mod platform;
pub mod policy;
pub mod resources;
pub mod screen;
pub mod settings;
pub mod ui;
pub mod visual;
pub use observation::{ScreenContext, ScreenObservation};
pub use platform::Platform;
pub use policy::{CapturePolicy, UserGesture};
pub use screen::ScreenController;
pub use settings::{InitiativeSettings, ResourceSettings, ScreenSettings};
/// Milliseconds since the Unix epoch (Capri timestamps).
pub fn now_ms() -> i64 {
chrono::Utc::now().timestamp_millis()
}