32 lines
921 B
Rust
32 lines
921 B
Rust
//! 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()
|
|
}
|