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
style: cargo fmt --all
Louis Beaumont9beaf4f3111e
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rsindex 12347786d..cdbfbd896 100644--- a/crates/screenpipe-config/src/recording.rs+++ b/crates/screenpipe-config/src/recording.rs@@ -295,10 +295,8 @@ impl Default for RecordingSettings {fn default() -> Self {Self {disable_audio: false,- audio_transcription_engine: crate::best_engine_for_platform(- crate::detect_tier(),- )- .to_string(),+ audio_transcription_engine: crate::best_engine_for_platform(crate::detect_tier())+ .to_string(),transcription_mode: "batch".to_string(),audio_devices: vec![],use_system_default_audio: true,diff --git a/crates/screenpipe-connect/src/connections/airtable.rs b/crates/screenpipe-connect/src/connections/airtable.rsindex 821b6590c..e001be9fc 100644--- a/crates/screenpipe-connect/src/connections/airtable.rs+++ b/crates/screenpipe-connect/src/connections/airtable.rs@@ -51,7 +51,12 @@ impl Integration for Airtable {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;let resp: Value = client.get("https://api.airtable.com/v0/meta/bases")diff --git a/crates/screenpipe-connect/src/connections/asana.rs b/crates/screenpipe-connect/src/connections/asana.rsindex 84fa6fd80..919ea5908 100644--- a/crates/screenpipe-connect/src/connections/asana.rs+++ b/crates/screenpipe-connect/src/connections/asana.rs@@ -42,7 +42,12 @@ impl Integration for Asana {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "api_token")?.trim();let resp = client.get("https://app.asana.com/api/1.0/users/me")diff --git a/crates/screenpipe-connect/src/connections/brex.rs b/crates/screenpipe-connect/src/connections/brex.rsindex a10ba6900..2efd4f495 100644--- a/crates/screenpipe-connect/src/connections/brex.rs+++ b/crates/screenpipe-connect/src/connections/brex.rs@@ -42,7 +42,12 @@ impl Integration for Brex {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;let resp: Value = client.get("https://platform.brexapis.com/v2/accounts")diff --git a/crates/screenpipe-connect/src/connections/calcom.rs b/crates/screenpipe-connect/src/connections/calcom.rsindex dcf661408..c18072741 100644--- a/crates/screenpipe-connect/src/connections/calcom.rs+++ b/crates/screenpipe-connect/src/connections/calcom.rs@@ -51,7 +51,12 @@ impl Integration for CalCom {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::read_oauth_token_instance(secret_store, "calcom", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect with Cal.com' button"))?;diff --git a/crates/screenpipe-connect/src/connections/calendly.rs b/crates/screenpipe-connect/src/connections/calendly.rsindex 7e61d27e0..6123d382b 100644--- a/crates/screenpipe-connect/src/connections/calendly.rs+++ b/crates/screenpipe-connect/src/connections/calendly.rs@@ -51,7 +51,12 @@ impl Integration for Calendly {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::read_oauth_token_instance(secret_store, "calendly", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect with Calendly' button"))?;diff --git a/crates/screenpipe-connect/src/connections/clickup.rs b/crates/screenpipe-connect/src/connections/clickup.rsindex d5a786499..c4f0e708c 100644--- a/crates/screenpipe-connect/src/connections/clickup.rs+++ b/crates/screenpipe-connect/src/connections/clickup.rs@@ -43,7 +43,12 @@ impl Integration for ClickUp {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;let resp: Value = client.get("https://api.clickup.com/api/v2/user")diff --git a/crates/screenpipe-connect/src/connections/confluence.rs b/crates/screenpipe-connect/src/connections/confluence.rsindex df5f7c6ba..45568b080 100644--- a/crates/screenpipe-connect/src/connections/confluence.rs+++ b/crates/screenpipe-connect/src/connections/confluence.rs@@ -59,7 +59,12 @@ impl Integration for Confluence {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let domain = require_str(creds, "domain")?.trim_end_matches('/');let email = require_str(creds, "email")?;let api_token = require_str(creds, "api_token")?;diff --git a/crates/screenpipe-connect/src/connections/discord.rs b/crates/screenpipe-connect/src/connections/discord.rsindex 6d9dcf32c..0fd2ab891 100644--- a/crates/screenpipe-connect/src/connections/discord.rs+++ b/crates/screenpipe-connect/src/connections/discord.rs@@ -31,7 +31,12 @@ impl Integration for Discord {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/email.rs b/crates/screenpipe-connect/src/connections/email.rsindex de01011e9..03dadf457 100644--- a/crates/screenpipe-connect/src/connections/email.rs+++ b/crates/screenpipe-connect/src/connections/email.rs@@ -68,7 +68,12 @@ impl Integration for Email {&DEF}- async fn test(&self, _client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ _client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {use lettre::transport::smtp::authentication::Credentials;use lettre::{message::header::ContentType, Message, SmtpTransport, Transport};diff --git a/crates/screenpipe-connect/src/connections/github_issues.rs b/crates/screenpipe-connect/src/connections/github_issues.rsindex e9af972bd..e8e600074 100644--- a/crates/screenpipe-connect/src/connections/github_issues.rs+++ b/crates/screenpipe-connect/src/connections/github_issues.rs@@ -51,7 +51,12 @@ impl Integration for GithubIssues {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::read_oauth_token_instance(secret_store, "github", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect with GitHub' button"))?;diff --git a/crates/screenpipe-connect/src/connections/glean.rs b/crates/screenpipe-connect/src/connections/glean.rsindex 148ee2a10..1bfa1d0c8 100644--- a/crates/screenpipe-connect/src/connections/glean.rs+++ b/crates/screenpipe-connect/src/connections/glean.rs@@ -62,7 +62,12 @@ impl Integration for Glean {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let instance = require_str(creds, "instance")?;let token = require_str(creds, "indexing_token")?;let resp: Value = clientdiff --git a/crates/screenpipe-connect/src/connections/gmail.rs b/crates/screenpipe-connect/src/connections/gmail.rsindex 4694b7e9b..cc81a6d75 100644--- a/crates/screenpipe-connect/src/connections/gmail.rs+++ b/crates/screenpipe-connect/src/connections/gmail.rs@@ -65,7 +65,12 @@ impl Integration for Gmail {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::get_valid_token_instance(secret_store, client, "gmail", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect with Gmail' button"))?;diff --git a/crates/screenpipe-connect/src/connections/google_calendar.rs b/crates/screenpipe-connect/src/connections/google_calendar.rsindex 1ee17dad1..6ec12fa8a 100644--- a/crates/screenpipe-connect/src/connections/google_calendar.rs+++ b/crates/screenpipe-connect/src/connections/google_calendar.rs@@ -62,7 +62,12 @@ impl Integration for GoogleCalendar {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::get_valid_token_instance(secret_store, client, "google-calendar", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect Google Calendar' button"))?;diff --git a/crates/screenpipe-connect/src/connections/granola.rs b/crates/screenpipe-connect/src/connections/granola.rsindex 8390555d6..908cc4fd7 100644--- a/crates/screenpipe-connect/src/connections/granola.rs+++ b/crates/screenpipe-connect/src/connections/granola.rs@@ -42,7 +42,12 @@ impl Integration for Granola {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;let resp: Value = client.get("https://public-api.granola.ai/v1/notes")diff --git a/crates/screenpipe-connect/src/connections/hubspot.rs b/crates/screenpipe-connect/src/connections/hubspot.rsindex fbe4da9f3..a67ce8256 100644--- a/crates/screenpipe-connect/src/connections/hubspot.rs+++ b/crates/screenpipe-connect/src/connections/hubspot.rs@@ -42,7 +42,12 @@ impl Integration for HubSpot {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;client.get("https://api.hubapi.com/crm/v3/objects/contacts?limit=1")diff --git a/crates/screenpipe-connect/src/connections/intercom.rs b/crates/screenpipe-connect/src/connections/intercom.rsindex 6cd290048..312d918db 100644--- a/crates/screenpipe-connect/src/connections/intercom.rs+++ b/crates/screenpipe-connect/src/connections/intercom.rs@@ -42,7 +42,12 @@ impl Integration for Intercom {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;let resp: Value = client.get("https://api.intercom.io/me")diff --git a/crates/screenpipe-connect/src/connections/jira.rs b/crates/screenpipe-connect/src/connections/jira.rsindex 51ad88421..451cc1954 100644--- a/crates/screenpipe-connect/src/connections/jira.rs+++ b/crates/screenpipe-connect/src/connections/jira.rs@@ -59,7 +59,12 @@ impl Integration for Jira {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let domain = require_str(creds, "domain")?;let email = require_str(creds, "email")?;let api_token = require_str(creds, "api_token")?;diff --git a/crates/screenpipe-connect/src/connections/limitless.rs b/crates/screenpipe-connect/src/connections/limitless.rsindex 7d2dc35bd..b9ee861c9 100644--- a/crates/screenpipe-connect/src/connections/limitless.rs+++ b/crates/screenpipe-connect/src/connections/limitless.rs@@ -43,7 +43,12 @@ impl Integration for Limitless {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;let resp: Value = client.get("https://api.limitless.ai/v1/lifelogs?limit=1")diff --git a/crates/screenpipe-connect/src/connections/linear.rs b/crates/screenpipe-connect/src/connections/linear.rsindex 011cb4eea..c69654832 100644--- a/crates/screenpipe-connect/src/connections/linear.rs+++ b/crates/screenpipe-connect/src/connections/linear.rs@@ -43,7 +43,12 @@ impl Integration for Linear {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?.trim();let resp = client.post("https://api.linear.app/graphql")diff --git a/crates/screenpipe-connect/src/connections/logseq.rs b/crates/screenpipe-connect/src/connections/logseq.rsindex dce255aba..ec75eb4fc 100644--- a/crates/screenpipe-connect/src/connections/logseq.rs+++ b/crates/screenpipe-connect/src/connections/logseq.rs@@ -31,7 +31,12 @@ impl Integration for Logseq {&DEF}- async fn test(&self, _client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ _client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let graph_path = require_str(creds, "graph_path")?;let p = std::path::Path::new(graph_path);if !p.exists() {diff --git a/crates/screenpipe-connect/src/connections/make.rs b/crates/screenpipe-connect/src/connections/make.rsindex 188f1fb74..5c0f7394f 100644--- a/crates/screenpipe-connect/src/connections/make.rs+++ b/crates/screenpipe-connect/src/connections/make.rs@@ -31,7 +31,12 @@ impl Integration for Make {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/microsoft365.rs b/crates/screenpipe-connect/src/connections/microsoft365.rsindex 38c16e986..085913849 100644--- a/crates/screenpipe-connect/src/connections/microsoft365.rs+++ b/crates/screenpipe-connect/src/connections/microsoft365.rs@@ -42,7 +42,12 @@ impl Integration for Microsoft365 {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "access_token")?;let resp: Value = client.get("https://graph.microsoft.com/v1.0/me")diff --git a/crates/screenpipe-connect/src/connections/mod.rs b/crates/screenpipe-connect/src/connections/mod.rsindex d528495c7..5d4dd9f25 100644--- a/crates/screenpipe-connect/src/connections/mod.rs+++ b/crates/screenpipe-connect/src/connections/mod.rs@@ -510,8 +510,11 @@ pub async fn render_context(let integrations = all_integrations();// Credential-based integrations- let mut cred_connected: Vec<(&dyn Integration, &'static IntegrationDef, Map<String, Value>)> =- Vec::new();+ let mut cred_connected: Vec<(+ &dyn Integration,+ &'static IntegrationDef,+ Map<String, Value>,+ )> = Vec::new();for i in integrations.iter().filter(|i| i.oauth_config().is_none()) {let def = i.def();if let Some(conn) = load_connection(secret_store, screenpipe_dir, def.id).await {diff --git a/crates/screenpipe-connect/src/connections/monday.rs b/crates/screenpipe-connect/src/connections/monday.rsindex 85ef36622..7a2aad067 100644--- a/crates/screenpipe-connect/src/connections/monday.rs+++ b/crates/screenpipe-connect/src/connections/monday.rs@@ -43,7 +43,12 @@ impl Integration for Monday {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "api_token")?;let resp: Value = client.post("https://api.monday.com/v2")diff --git a/crates/screenpipe-connect/src/connections/n8n.rs b/crates/screenpipe-connect/src/connections/n8n.rsindex efe8c6bb1..0fefa6ae3 100644--- a/crates/screenpipe-connect/src/connections/n8n.rs+++ b/crates/screenpipe-connect/src/connections/n8n.rs@@ -32,7 +32,12 @@ impl Integration for N8n {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/notion.rs b/crates/screenpipe-connect/src/connections/notion.rsindex b02fc4fc7..4539855c7 100644--- a/crates/screenpipe-connect/src/connections/notion.rs+++ b/crates/screenpipe-connect/src/connections/notion.rs@@ -48,7 +48,12 @@ impl Integration for Notion {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, _creds: &Map<String, Value>, secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ _creds: &Map<String, Value>,+ secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = oauth::read_oauth_token_instance(secret_store, "notion", None).await.ok_or_else(|| anyhow!("not connected — use 'Connect with Notion' button"))?;diff --git a/crates/screenpipe-connect/src/connections/ntfy.rs b/crates/screenpipe-connect/src/connections/ntfy.rsindex 101cf8a15..3416c0d3c 100644--- a/crates/screenpipe-connect/src/connections/ntfy.rs+++ b/crates/screenpipe-connect/src/connections/ntfy.rs@@ -31,7 +31,12 @@ impl Integration for Ntfy {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let topic_url = require_str(creds, "topic_url")?;client.post(topic_url)diff --git a/crates/screenpipe-connect/src/connections/obsidian.rs b/crates/screenpipe-connect/src/connections/obsidian.rsindex bfe353046..afc5305e0 100644--- a/crates/screenpipe-connect/src/connections/obsidian.rs+++ b/crates/screenpipe-connect/src/connections/obsidian.rs@@ -40,7 +40,12 @@ impl Integration for Obsidian {&DEF}- async fn test(&self, _client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ _client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let vault_path = require_str(creds, "vault_path")?;let path = std::path::Path::new(vault_path);diff --git a/crates/screenpipe-connect/src/connections/perplexity.rs b/crates/screenpipe-connect/src/connections/perplexity.rsindex 5ebd56767..778fade8a 100644--- a/crates/screenpipe-connect/src/connections/perplexity.rs+++ b/crates/screenpipe-connect/src/connections/perplexity.rs@@ -42,7 +42,12 @@ impl Integration for Perplexity {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;client.post("https://api.perplexity.ai/chat/completions")diff --git a/crates/screenpipe-connect/src/connections/pipedrive.rs b/crates/screenpipe-connect/src/connections/pipedrive.rsindex 3fbfe05b5..634a8da0f 100644--- a/crates/screenpipe-connect/src/connections/pipedrive.rs+++ b/crates/screenpipe-connect/src/connections/pipedrive.rs@@ -51,7 +51,12 @@ impl Integration for Pipedrive {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;let domain = require_str(creds, "domain")?;let resp: Value = clientdiff --git a/crates/screenpipe-connect/src/connections/pushover.rs b/crates/screenpipe-connect/src/connections/pushover.rsindex f3acce0a6..9da064266 100644--- a/crates/screenpipe-connect/src/connections/pushover.rs+++ b/crates/screenpipe-connect/src/connections/pushover.rs@@ -40,7 +40,12 @@ impl Integration for Pushover {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "api_token")?;let user_key = require_str(creds, "user_key")?;clientdiff --git a/crates/screenpipe-connect/src/connections/salesforce.rs b/crates/screenpipe-connect/src/connections/salesforce.rsindex e443b8b86..0857fad2d 100644--- a/crates/screenpipe-connect/src/connections/salesforce.rs+++ b/crates/screenpipe-connect/src/connections/salesforce.rs@@ -51,7 +51,12 @@ impl Integration for Salesforce {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let instance_url = require_str(creds, "instance_url")?.trim_end_matches('/');let token = require_str(creds, "access_token")?;let resp: Value = clientdiff --git a/crates/screenpipe-connect/src/connections/sentry.rs b/crates/screenpipe-connect/src/connections/sentry.rsindex 6cffc8e42..4c08ab6b7 100644--- a/crates/screenpipe-connect/src/connections/sentry.rs+++ b/crates/screenpipe-connect/src/connections/sentry.rs@@ -51,7 +51,12 @@ impl Integration for Sentry {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let auth_token = require_str(creds, "auth_token")?;let org = require_str(creds, "organization")?;let resp: Value = clientdiff --git a/crates/screenpipe-connect/src/connections/slack.rs b/crates/screenpipe-connect/src/connections/slack.rsindex 29ee62f3a..10cb89562 100644--- a/crates/screenpipe-connect/src/connections/slack.rs+++ b/crates/screenpipe-connect/src/connections/slack.rs@@ -31,7 +31,12 @@ impl Integration for Slack {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/stripe.rs b/crates/screenpipe-connect/src/connections/stripe.rsindex e0976b3e3..08a3664cc 100644--- a/crates/screenpipe-connect/src/connections/stripe.rs+++ b/crates/screenpipe-connect/src/connections/stripe.rs@@ -42,7 +42,12 @@ impl Integration for Stripe {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;let resp: Value = client.get("https://api.stripe.com/v1/balance")diff --git a/crates/screenpipe-connect/src/connections/teams.rs b/crates/screenpipe-connect/src/connections/teams.rsindex f35940906..f52a6e477 100644--- a/crates/screenpipe-connect/src/connections/teams.rs+++ b/crates/screenpipe-connect/src/connections/teams.rs@@ -31,7 +31,12 @@ impl Integration for Teams {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/telegram.rs b/crates/screenpipe-connect/src/connections/telegram.rsindex faf6a4d29..497d29e8f 100644--- a/crates/screenpipe-connect/src/connections/telegram.rs+++ b/crates/screenpipe-connect/src/connections/telegram.rs@@ -40,7 +40,12 @@ impl Integration for Telegram {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "bot_token")?;let chat_id = require_str(creds, "chat_id")?;let url = format!("https://api.telegram.org/bot{}/sendMessage", token);diff --git a/crates/screenpipe-connect/src/connections/todoist.rs b/crates/screenpipe-connect/src/connections/todoist.rsindex fa1e3b71c..1610b6b35 100644--- a/crates/screenpipe-connect/src/connections/todoist.rs+++ b/crates/screenpipe-connect/src/connections/todoist.rs@@ -42,7 +42,12 @@ impl Integration for Todoist {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "api_token")?;let resp = client.get("https://api.todoist.com/api/v1/projects")diff --git a/crates/screenpipe-connect/src/connections/toggl.rs b/crates/screenpipe-connect/src/connections/toggl.rsindex fdc071e64..cf2b90afd 100644--- a/crates/screenpipe-connect/src/connections/toggl.rs+++ b/crates/screenpipe-connect/src/connections/toggl.rs@@ -43,7 +43,12 @@ impl Integration for Toggl {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let token = require_str(creds, "api_token")?;let resp: Value = client.get("https://api.track.toggl.com/api/v9/me")diff --git a/crates/screenpipe-connect/src/connections/trello.rs b/crates/screenpipe-connect/src/connections/trello.rsindex 85d60b46b..1e53a7900 100644--- a/crates/screenpipe-connect/src/connections/trello.rs+++ b/crates/screenpipe-connect/src/connections/trello.rs@@ -40,7 +40,12 @@ impl Integration for Trello {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_key = require_str(creds, "api_key")?;let api_token = require_str(creds, "api_token")?;let resp: Value = clientdiff --git a/crates/screenpipe-connect/src/connections/vercel.rs b/crates/screenpipe-connect/src/connections/vercel.rsindex 19ed18a74..a7c175a95 100644--- a/crates/screenpipe-connect/src/connections/vercel.rs+++ b/crates/screenpipe-connect/src/connections/vercel.rs@@ -42,7 +42,12 @@ impl Integration for Vercel {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let api_token = require_str(creds, "api_token")?;let resp: Value = client.get("https://api.vercel.com/v9/projects")diff --git a/crates/screenpipe-connect/src/connections/whatsapp.rs b/crates/screenpipe-connect/src/connections/whatsapp.rsindex c3ba3f941..e2012146c 100644--- a/crates/screenpipe-connect/src/connections/whatsapp.rs+++ b/crates/screenpipe-connect/src/connections/whatsapp.rs@@ -51,7 +51,12 @@ impl Integration for WhatsApp {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let phone_number_id = require_str(creds, "phone_number_id")?;let access_token = require_str(creds, "access_token")?;let url = format!("https://graph.facebook.com/v21.0/{}", phone_number_id);diff --git a/crates/screenpipe-connect/src/connections/zapier.rs b/crates/screenpipe-connect/src/connections/zapier.rsindex 7ab6c6033..c2c73ee35 100644--- a/crates/screenpipe-connect/src/connections/zapier.rs+++ b/crates/screenpipe-connect/src/connections/zapier.rs@@ -32,7 +32,12 @@ impl Integration for Zapier {&DEF}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let url = require_str(creds, "webhook_url")?;client.post(url)diff --git a/crates/screenpipe-connect/src/connections/zendesk.rs b/crates/screenpipe-connect/src/connections/zendesk.rsindex f2f2c928b..eea60e79d 100644--- a/crates/screenpipe-connect/src/connections/zendesk.rs+++ b/crates/screenpipe-connect/src/connections/zendesk.rs@@ -59,7 +59,12 @@ impl Integration for Zendesk {Some(&CFG)}- async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>, _secret_store: Option<&SecretStore>) -> Result<String> {+ async fn test(+ &self,+ client: &reqwest::Client,+ creds: &Map<String, Value>,+ _secret_store: Option<&SecretStore>,+ ) -> Result<String> {let subdomain = require_str(creds, "subdomain")?;let email = require_str(creds, "email")?;let api_token = require_str(creds, "api_token")?;diff --git a/crates/screenpipe-connect/src/whatsapp/mod.rs b/crates/screenpipe-connect/src/whatsapp/mod.rsindex 47a9f272c..b995b698f 100644--- a/crates/screenpipe-connect/src/whatsapp/mod.rs+++ b/crates/screenpipe-connect/src/whatsapp/mod.rs@@ -448,14 +448,17 @@ impl WhatsAppGateway {let mut lines = reader.lines();while let Ok(Some(line)) = lines.next_line().await {// Only WARN for actual errors. Bun prints noisy warnings- // (e.g. "ws.WebSocket 'upgrade' event is not implemented")- // and info messages to stderr that aren't actionable.- let lower = line.to_lowercase();- if lower.contains("error") || lower.contains("fatal") || lower.contains("panic") {- warn!("whatsapp gateway stderr: {}", line);- } else {- debug!("whatsapp gateway stderr: {}", line);- }+ // (e.g. "ws.WebSocket 'upgrade' event is not implemented")+ // and info messages to stderr that aren't actionable.+ let lower = line.to_lowercase();+ if lower.contains("error")+ || lower.contains("fatal")+ || lower.contains("panic")+ {+ warn!("whatsapp gateway stderr: {}", line);+ } else {+ debug!("whatsapp gateway stderr: {}", line);+ }}});diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex 1ea88b7ca..5e5e310a7 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -33,7 +33,10 @@ pub async fn screenpipe_cloud_models(api_url: &str, token: Option<&str>) -> serd}/// Fetch models from the gateway and transform into Pi's format.-async fn fetch_models_from_gateway(api_url: &str, token: Option<&str>) -> Option<serde_json::Value> {+async fn fetch_models_from_gateway(+ api_url: &str,+ token: Option<&str>,+) -> Option<serde_json::Value> {let url = format!("{}/models", api_url.trim_end_matches('/'));let client = reqwest::Client::builder().timeout(std::time::Duration::from_secs(5))@@ -59,14 +62,23 @@ async fn fetch_models_from_gateway(api_url: &str, token: Option<&str>) -> Option.map(|m| {let id = m.get("id").and_then(|v| v.as_str()).unwrap_or("");let name = m.get("name").and_then(|v| v.as_str()).unwrap_or(id);- let ctx = m.get("context_window").and_then(|v| v.as_u64()).unwrap_or(128000);- let intelligence = m.get("intelligence").and_then(|v| v.as_str()).unwrap_or("standard");+ let ctx = m+ .get("context_window")+ .and_then(|v| v.as_u64())+ .unwrap_or(128000);+ let intelligence = m+ .get("intelligence")+ .and_then(|v| v.as_str())+ .unwrap_or("standard");let reasoning = intelligence == "highest" || intelligence == "high";// Determine input modalities from best_for/tagslet best_for = m.get("best_for").and_then(|v| v.as_array());let has_vision = best_for- .map(|arr| arr.iter().any(|v| v.as_str().map_or(false, |s| s.contains("vision"))))+ .map(|arr| {+ arr.iter()+ .any(|v| v.as_str().map_or(false, |s| s.contains("vision")))+ }).unwrap_or(false);let input = if has_vision {json!(["text", "image"])@@ -865,7 +877,8 @@ impl AgentExecutor for PiExecutor {provider,Some(model),provider_url,- ).await?;+ )+ .await?;// Use filtered skills if permissions are configured, unfiltered otherwiseSelf::ensure_screenpipe_skill_auto(working_dir)?;@@ -920,7 +933,8 @@ impl AgentExecutor for PiExecutor {provider,Some(&resolved_model),provider_url,- ).await?;+ )+ .await?;return self.spawn_pi(&pi_path,@@ -961,7 +975,8 @@ impl AgentExecutor for PiExecutor {provider,Some(&resolved_model),provider_url,- ).await?;+ )+ .await?;// Use filtered skills if permissions are configured, unfiltered otherwiseSelf::ensure_screenpipe_skill_auto(working_dir)?;Self::ensure_web_search_extension(working_dir, Some(&resolved_provider))?;@@ -1009,7 +1024,8 @@ impl AgentExecutor for PiExecutor {provider,Some(&resolved_model),provider_url,- ).await?;+ )+ .await?;return self.spawn_pi_streaming(&pi_path,diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex aedfa2ec8..9dfa1d0ea 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -757,8 +757,7 @@ fn read_chatgpt_token_from_secrets() -> Option<String> {.await.ok()?;let bytes = store.get("oauth:chatgpt").await.ok()??;- let mut token_data: serde_json::Value =- serde_json::from_slice(&bytes).ok()?;+ let mut token_data: serde_json::Value = serde_json::from_slice(&bytes).ok()?;let now = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH)@@ -833,13 +832,10 @@ fn refresh_chatgpt_token(token_data: &mut serde_json::Value, now: u64) {.get("refresh_token").and_then(|t| t.as_str()).unwrap_or(refresh_token.as_str());- let new_expires_in = v- .get("expires_in")- .and_then(|t| t.as_u64())- .unwrap_or(3600);+ let new_expires_in =+ v.get("expires_in").and_then(|t| t.as_u64()).unwrap_or(3600);- token_data["access_token"] =- serde_json::Value::String(new_token.to_string());+ token_data["access_token"] = serde_json::Value::String(new_token.to_string());token_data["refresh_token"] =serde_json::Value::String(new_refresh.to_string());token_data["expires_at"] = serde_json::json!(now + new_expires_in);@@ -1851,7 +1847,9 @@ impl PipeManager {run_provider.as_deref(),Some(&run_model),run_provider_url.as_deref(),- ).await {+ )+ .await+ {warn!("failed to pre-configure pi provider: {}", e);}@@ -2325,7 +2323,9 @@ impl PipeManager {run_provider.as_deref(),Some(&run_model),run_provider_url.as_deref(),- ).await {+ )+ .await+ {warn!("failed to pre-configure pi provider: {}", e);}@@ -3302,7 +3302,9 @@ impl PipeManager {provider.as_deref(),Some(&model),provider_url.as_deref(),- ).await {+ )+ .await+ {warn!("scheduler: failed to pre-configure pi provider: {}", e);}diff --git a/crates/screenpipe-db/src/write_queue.rs b/crates/screenpipe-db/src/write_queue.rsindex 290bb5a82..e1e208d0c 100644--- a/crates/screenpipe-db/src/write_queue.rs+++ b/crates/screenpipe-db/src/write_queue.rs@@ -405,7 +405,10 @@ async fn drain_loop(// during sleep transitions.if WRITE_PAUSED.load(Ordering::SeqCst) {if !batch.is_empty() {- info!("write_queue: paused for sleep, holding {} writes", batch.len());+ info!(+ "write_queue: paused for sleep, holding {} writes",+ batch.len()+ );}let notify = RESUME_NOTIFY.get_or_init(|| tokio::sync::Notify::new());tokio::select! {diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rsindex f15e0e786..a476e788d 100644--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs@@ -930,7 +930,8 @@ async fn main() -> anyhow::Result<()> {_ => None,}};- let secret_store_result = screenpipe_secrets::SecretStore::new(db.pool.clone(), secret_key).await;+ let secret_store_result =+ screenpipe_secrets::SecretStore::new(db.pool.clone(), secret_key).await;match secret_store_result {Ok(store) => {// Run startup permission sweep@@ -1130,7 +1131,11 @@ async fn main() -> anyhow::Result<()> {);println!("│ api auth │ {:<34} │",- if record_args.api_auth { "enabled" } else { "disabled" }+ if record_args.api_auth {+ "enabled"+ } else {+ "disabled"+ });println!("│ encrypt secrets │ {:<34} │",diff --git a/crates/screenpipe-engine/src/connections_api.rs b/crates/screenpipe-engine/src/connections_api.rsindex 664c29411..8e21b1a35 100644--- a/crates/screenpipe-engine/src/connections_api.rs+++ b/crates/screenpipe-engine/src/connections_api.rs@@ -238,7 +238,10 @@ async fn connect_instance(Json(body): Json<ConnectRequest>,) -> (StatusCode, Json<Value>) {let mgr = state.cm.lock().await;- match mgr.connect_instance(&id, Some(&instance), body.credentials).await {+ match mgr+ .connect_instance(&id, Some(&instance), body.credentials)+ .await+ {Ok(()) => (StatusCode::OK, Json(json!({ "success": true }))),Err(e) => (StatusCode::BAD_REQUEST,diff --git a/crates/screenpipe-engine/src/permission_monitor.rs b/crates/screenpipe-engine/src/permission_monitor.rsindex ab0fb7f67..a74279260 100644--- a/crates/screenpipe-engine/src/permission_monitor.rs+++ b/crates/screenpipe-engine/src/permission_monitor.rs@@ -69,7 +69,10 @@ struct LastKnown {impl LastKnown {const fn new(granted: bool) -> Self {- Self { granted, last_lost_at: None }+ Self {+ granted,+ last_lost_at: None,+ }}}@@ -143,7 +146,10 @@ pub fn report_state(kind: PermissionKind, now_granted: bool, reason: Option<Stri// be picked up by the next poll once the grace expires.if let Some(until) = state.wake_grace_until {if Instant::now() < until {- debug!(?kind, now_granted, "permission change suppressed (wake grace)");+ debug!(+ ?kind,+ now_granted, "permission change suppressed (wake grace)"+ );return;}}@@ -184,7 +190,11 @@ pub fn report_state(kind: PermissionKind, now_granted: bool, reason: Option<Striinfo!(?kind, "permission restored");PermissionEvent::restored(kind)} else {- info!(?kind, reason = reason.as_deref().unwrap_or("(unknown)"), "permission lost");+ info!(+ ?kind,+ reason = reason.as_deref().unwrap_or("(unknown)"),+ "permission lost"+ );PermissionEvent::lost(kind, reason)};let _ = send_event(evt.event_name(), evt);@@ -196,7 +206,10 @@ pub fn report_state(kind: PermissionKind, now_granted: bool, reason: Option<Stripub fn notify_wake() {let mut state = STATE.lock().unwrap_or_else(|e| e.into_inner());state.wake_grace_until = Some(Instant::now() + WAKE_GRACE);- debug!("permission monitor: wake grace period started ({:?})", WAKE_GRACE);+ debug!(+ "permission monitor: wake grace period started ({:?})",+ WAKE_GRACE+ );}async fn run() {diff --git a/crates/screenpipe-engine/src/pipes_api.rs b/crates/screenpipe-engine/src/pipes_api.rsindex 8744cede2..4f7406622 100644--- a/crates/screenpipe-engine/src/pipes_api.rs+++ b/crates/screenpipe-engine/src/pipes_api.rs@@ -170,14 +170,11 @@ pub async fn run_pipe_now(let ss = secret_store.as_ref().map(|e| e.0.as_ref());let mut missing = Vec::new();for conn_id in required {- let configured = screenpipe_connect::connections::load_connection(- ss,- &screenpipe_dir,- conn_id,- )- .await- .map(|c| c.enabled && !c.credentials.is_empty())- .unwrap_or(false);+ let configured =+ screenpipe_connect::connections::load_connection(ss, &screenpipe_dir, conn_id)+ .await+ .map(|c| c.enabled && !c.credentials.is_empty())+ .unwrap_or(false);if !configured {missing.push(conn_id.as_str());}diff --git a/crates/screenpipe-engine/src/sleep_monitor.rs b/crates/screenpipe-engine/src/sleep_monitor.rsindex 9c5291116..4cd98808a 100644--- a/crates/screenpipe-engine/src/sleep_monitor.rs+++ b/crates/screenpipe-engine/src/sleep_monitor.rs@@ -721,8 +721,14 @@ mod tests {tokio::time::sleep(std::time::Duration::from_millis(200)).await;}- assert!(saw_locked, "Screen lock was NOT detected — did you lock the screen?");- assert!(saw_unlocked_after_lock, "Screen unlock was NOT detected after lock");+ assert!(+ saw_locked,+ "Screen lock was NOT detected — did you lock the screen?"+ );+ assert!(+ saw_unlocked_after_lock,+ "Screen unlock was NOT detected after lock"+ );eprintln!("============================================");eprintln!(" LOCK/UNLOCK DETECTION PASSED");diff --git a/crates/screenpipe-events/src/custom_events/permissions.rs b/crates/screenpipe-events/src/custom_events/permissions.rsindex 97821a535..20d4bec38 100644--- a/crates/screenpipe-events/src/custom_events/permissions.rs+++ b/crates/screenpipe-events/src/custom_events/permissions.rs@@ -56,11 +56,19 @@ pub struct PermissionEvent {impl PermissionEvent {pub fn lost(kind: PermissionKind, reason: impl Into<Option<String>>) -> Self {- Self { kind, state: PermissionState::Lost, reason: reason.into() }+ Self {+ kind,+ state: PermissionState::Lost,+ reason: reason.into(),+ }}pub fn restored(kind: PermissionKind) -> Self {- Self { kind, state: PermissionState::Restored, reason: None }+ Self {+ kind,+ state: PermissionState::Restored,+ reason: None,+ }}/// Event name to publish on the bus. Split by state so subscribers candiff --git a/crates/screenpipe-secrets/src/keychain.rs b/crates/screenpipe-secrets/src/keychain.rsindex 72af8069e..e9dbe2c87 100644--- a/crates/screenpipe-secrets/src/keychain.rs+++ b/crates/screenpipe-secrets/src/keychain.rs@@ -162,14 +162,7 @@ enum KeychainLookup {#[cfg(target_os = "macos")]fn get_password_from_keychain() -> KeychainLookup {let output = match std::process::Command::new("security")- .args([- "find-generic-password",- "-s",- SERVICE,- "-a",- KEY_NAME,- "-w",- ])+ .args(["find-generic-password", "-s", SERVICE, "-a", KEY_NAME, "-w"]).output(){Ok(o) => o,diff --git a/crates/screenpipe-secrets/src/migration.rs b/crates/screenpipe-secrets/src/migration.rsindex dc8e4560e..effbbd302 100644--- a/crates/screenpipe-secrets/src/migration.rs+++ b/crates/screenpipe-secrets/src/migration.rs@@ -101,7 +101,10 @@ pub async fn migrate_legacy_secrets(report.migrated.push(format!("{} -> {}", filename, store_key));- info!("migrated {} -> {} (file kept for legacy readers)", filename, store_key);+ info!(+ "migrated {} -> {} (file kept for legacy readers)",+ filename, store_key+ );}}Err(e) => {@@ -126,8 +129,7 @@ pub async fn migrate_legacy_secrets(for (name, value) in obj {// Migrate the full connection entry under cred:{name}let cred_key = format!("cred:{}", name);- let value_bytes =- serde_json::to_vec(value).unwrap_or_default();+ let value_bytes = serde_json::to_vec(value).unwrap_or_default();let should_import = match store.get(&cred_key).await {Ok(Some(_)) => {@@ -161,22 +163,16 @@ pub async fn migrate_legacy_secrets(};if should_import && !value_bytes.is_empty() {- if let Err(e) =- store.set(&cred_key, &value_bytes).await- {- report.errors.push(format!(- "connections.json/{}: {}",- name, e- ));+ if let Err(e) = store.set(&cred_key, &value_bytes).await {+ report+ .errors+ .push(format!("connections.json/{}: {}", name, e));} else {report.migrated.push(format!("connections.json/{} -> {}",name, cred_key));- info!(- "migrated connections.json/{} -> {}",- name, cred_key- );+ info!("migrated connections.json/{} -> {}", name, cred_key);}}}@@ -355,8 +351,7 @@ mod tests {// Verify the values were storedlet slack_val = store.get("cred:slack").await.unwrap().unwrap();- let slack_json: serde_json::Value =- serde_json::from_slice(&slack_val).unwrap();+ let slack_json: serde_json::Value = serde_json::from_slice(&slack_val).unwrap();assert_eq!(slack_json["credentials"]["token"], "xoxb-123");}diff --git a/crates/screenpipe-secrets/src/store.rs b/crates/screenpipe-secrets/src/store.rsindex f2295d46e..b6ba0e746 100644--- a/crates/screenpipe-secrets/src/store.rs+++ b/crates/screenpipe-secrets/src/store.rs@@ -337,7 +337,10 @@ mod tests {// Re-encrypt with a keylet key = [99u8; 32];- let count = plain_store.reencrypt_unencrypted_secrets(&key).await.unwrap();+ let count = plain_store+ .reencrypt_unencrypted_secrets(&key)+ .await+ .unwrap();assert_eq!(count, 3);// Verify the encrypted store can read them back@@ -351,7 +354,10 @@ mod tests {.fetch_one(&pool).await.unwrap();- assert!(!row.0.iter().all(|&b| b == 0), "nonce should be non-zero after re-encryption");+ assert!(+ !row.0.iter().all(|&b| b == 0),+ "nonce should be non-zero after re-encryption"+ );// Re-encrypt again should be a no-op (already encrypted)let count2 = enc_store.reencrypt_unencrypted_secrets(&key).await.unwrap();