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
forgot one file
matthew-heartful6499978a4120
diff --git a/screenpipe-vision/src/bin/screenpipe-vision.rs b/screenpipe-vision/src/bin/screenpipe-vision.rsindex 4a682bcf7..cc6969df7 100644--- a/screenpipe-vision/src/bin/screenpipe-vision.rs+++ b/screenpipe-vision/src/bin/screenpipe-vision.rs@@ -1,14 +1,27 @@use screenpipe_vision::{continuous_capture, ControlMessage};use std::time::Duration;use tokio::sync::mpsc::channel;+use clap::Parser;++#[derive(Parser)]+#[command(author, version, about, long_about = None)]+struct Cli {+ /// Save text files+ #[arg(long, default_value_t = false)]+ save_text_files: bool,+}#[tokio::main]async fn main() {+ let cli = Cli::parse();+let (control_tx, mut control_rx) = channel(512);let (result_tx, mut result_rx) = channel(512);+ let save_text_files = cli.save_text_files;+let capture_thread = tokio::spawn(async move {- continuous_capture(&mut control_rx, result_tx, Duration::from_secs(1)).await+ continuous_capture(&mut control_rx, result_tx, Duration::from_secs(1), save_text_files).await});// Example: Process results for 10 seconds, then pause for 5 seconds, then stop@@ -30,4 +43,4 @@ async fn main() {}capture_thread.await.unwrap();-}+}\ No newline at end of file