YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
update tagline + rustfmt event_driven_capture
Louis Beaumontd3571ddc21b7
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rsindex b346fcd5f..9beea2089 100644--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs@@ -922,7 +922,7 @@ async fn main() -> anyhow::Result<()> {println!("\n\n{}", DISPLAY.truecolor(147, 112, 219).bold());println!("\n{}",- "build ai apps that have the full context"+ "power AI by everything you've seen, said or heard".bright_yellow().italic());diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rsindex 3efaa9304..9a38c0025 100644--- a/crates/screenpipe-engine/src/cli/mod.rs+++ b/crates/screenpipe-engine/src/cli/mod.rs@@ -142,7 +142,7 @@ pub enum OutputFormat {#[command(author,version,- about = "screenpipe: build ai apps that have the full context",+ about = "screenpipe: power AI by everything you've seen, said or heard",long_about = None,name = "screenpipe")]diff --git a/crates/screenpipe-engine/src/event_driven_capture.rs b/crates/screenpipe-engine/src/event_driven_capture.rsindex 46d7b03ce..bc8e8adbb 100644--- a/crates/screenpipe-engine/src/event_driven_capture.rs+++ b/crates/screenpipe-engine/src/event_driven_capture.rs@@ -268,7 +268,9 @@ pub async fn event_driven_capture_loop({// Small delay to let the monitor settle after startuptokio::time::sleep(Duration::from_millis(500)).await;- state.last_capture = Instant::now().checked_sub(Duration::from_millis(500)).unwrap_or(Instant::now()); // allow capture+ state.last_capture = Instant::now()+ .checked_sub(Duration::from_millis(500))+ .unwrap_or(Instant::now()); // allow capturematch do_capture(&db,&monitor,@@ -338,7 +340,10 @@ pub async fn event_driven_capture_loop(// the next capture picks up fresh frames instead of stale ones.#[cfg(target_os = "macos")]if screenpipe_screen::stream_invalidation::take() {- info!("invalidating persistent streams after unlock/wake for monitor {}", monitor_id);+ info!(+ "invalidating persistent streams after unlock/wake for monitor {}",+ monitor_id+ );screenpipe_screen::stream_invalidation::invalidate_streams();}@@ -987,7 +992,9 @@ mod tests {assert!(!state.needs_idle_capture());// Simulate waiting- state.last_capture = Instant::now().checked_sub(Duration::from_millis(150)).unwrap_or(Instant::now());+ state.last_capture = Instant::now()+ .checked_sub(Duration::from_millis(150))+ .unwrap_or(Instant::now());assert!(state.needs_idle_capture());}@@ -999,7 +1006,9 @@ mod tests {};let mut state = EventDrivenCapture::new(config);- state.last_capture = Instant::now().checked_sub(Duration::from_millis(150)).unwrap_or(Instant::now());+ state.last_capture = Instant::now()+ .checked_sub(Duration::from_millis(150))+ .unwrap_or(Instant::now());assert!(state.needs_idle_capture());state.mark_captured();