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
cleanup: remove unused imports and suppress deprecated field warnings
Louis Beaumontbd6602e702cc
diff --git a/crates/screenpipe-audio/src/utils/ffmpeg.rs b/crates/screenpipe-audio/src/utils/ffmpeg.rsindex 0063cdd5e..34110998b 100644--- a/crates/screenpipe-audio/src/utils/ffmpeg.rs+++ b/crates/screenpipe-audio/src/utils/ffmpeg.rs@@ -6,11 +6,9 @@ use anyhow::Result;use chrono::{DateTime, Utc};use screenpipe_core::find_ffmpeg_path;use std::io::Write;+use std::path::Path;use std::path::PathBuf;-use std::{- path::Path,- process::{Command, Stdio},-};+use std::process::Stdio;use tracing::debug;use tracing::error;diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rsindex 463cb3444..a348c0d56 100644--- a/crates/screenpipe-config/src/recording.rs+++ b/crates/screenpipe-config/src/recording.rs@@ -307,7 +307,9 @@ impl Default for RecordingSettings {use_chinese_mirror: false,analytics_enabled: true,analytics_id: String::new(),+ #[allow(deprecated)]enable_input_capture: true,+ #[allow(deprecated)]enable_accessibility: true,enable_workflow_events: false,device_tier: None,diff --git a/crates/screenpipe-core/src/ffmpeg.rs b/crates/screenpipe-core/src/ffmpeg.rsindex 507218223..68a62982e 100644--- a/crates/screenpipe-core/src/ffmpeg.rs+++ b/crates/screenpipe-core/src/ffmpeg.rs@@ -23,6 +23,7 @@ pub fn find_ffmpeg_path() -> Option<PathBuf> {/// Create a `std::process::Command` for ffmpeg with `CREATE_NO_WINDOW` on Windows.pub fn ffmpeg_cmd(path: impl AsRef<std::ffi::OsStr>) -> std::process::Command {+ #[allow(unused_mut)]let mut cmd = std::process::Command::new(path);#[cfg(windows)]{@@ -34,6 +35,7 @@ pub fn ffmpeg_cmd(path: impl AsRef<std::ffi::OsStr>) -> std::process::Command {/// Create a `tokio::process::Command` for ffmpeg with `CREATE_NO_WINDOW` on Windows.pub fn ffmpeg_cmd_async(path: impl AsRef<std::ffi::OsStr>) -> tokio::process::Command {+ #[allow(unused_mut)]let mut cmd = tokio::process::Command::new(path);#[cfg(windows)]{diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rsindex 0b1ecbe87..3efaa9304 100644--- a/crates/screenpipe-engine/src/cli/mod.rs+++ b/crates/screenpipe-engine/src/cli/mod.rs@@ -380,8 +380,10 @@ impl RecordArgs {disable_vision: self.disable_vision,use_pii_removal: self.use_pii_removal,filter_music: self.filter_music,- enable_input_capture: true, // legacy field, always true- enable_accessibility: true, // legacy field, always true+ #[allow(deprecated)]+ enable_input_capture: true,+ #[allow(deprecated)]+ enable_accessibility: true,audio_transcription_engine: engine_str.to_string(),transcription_mode: mode_str.to_string(),audio_devices: self.audio_device.clone(),diff --git a/crates/screenpipe-engine/src/drm_detector.rs b/crates/screenpipe-engine/src/drm_detector.rsindex 047e0e023..6f24d52de 100644--- a/crates/screenpipe-engine/src/drm_detector.rs+++ b/crates/screenpipe-engine/src/drm_detector.rs@@ -207,7 +207,7 @@ fn is_browser(app_name: &str) -> bool {/// (e.g. "Netflix - Comet" → synthesizes "https://netflix.com").#[cfg(target_os = "macos")]fn get_focused_app_info() -> Option<(String, Option<String>)> {- use cidre::{ax, cf, ns};+ use cidre::{ax, ns};let sys = ax::UiElement::sys_wide();let app = sys.focused_app().ok()?;diff --git a/crates/screenpipe-engine/src/video_utils.rs b/crates/screenpipe-engine/src/video_utils.rsindex 5472753b8..0c4c2b61f 100644--- a/crates/screenpipe-engine/src/video_utils.rs+++ b/crates/screenpipe-engine/src/video_utils.rs@@ -16,7 +16,6 @@ use std::path::Path;use std::path::PathBuf;use std::sync::LazyLock;use tokio::io::AsyncReadExt;-use tokio::process::Command;use tokio::sync::RwLock;use tracing::{debug, error, info};use uuid::Uuid;