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
Bump app to v2.4.269: wire async text-PII worker to v45 phase 3 ONNX
Louis Beaumont82bdec044045
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex d8b98b2d0..bdc9b656e 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -10876,7 +10876,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.4.267"+version = "2.4.268"dependencies = ["aes 0.8.4","aes-gcm 0.10.3",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 3e5bad15d..c2ac742d8 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -2,7 +2,7 @@[package]name = "screenpipe-app"-version = "2.4.268"+version = "2.4.269"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rsindex 164be1637..f499cabe5 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs@@ -523,6 +523,7 @@ impl ServerCore {let redact_shutdown = Arc::new(Notify::new());if config.async_pii_redaction {+ use screenpipe_redact::adapters::onnx::{OnnxConfig, OnnxRedactor};use screenpipe_redact::adapters::opf::{OpfAdapter, OpfConfig};use screenpipe_redact::adapters::tinfoil::{TinfoilConfig, TinfoilRedactor};use screenpipe_redact::pipeline::{Pipeline, PipelineConfig};@@ -568,27 +569,51 @@ impl ServerCore {let pool = db.pool.clone();let shutdown = redact_shutdown.clone();tokio::spawn(async move {+ // Prefer v45 phase 3 ONNX (~278 MB INT8, HIPAA 90.2%,+ // sub-10 ms p50, gets CoreML on macOS / DirectML on+ // Windows / CPU on Linux via the redact-onnx-* CI+ // feature). Fall back to the legacy OPF v6 candle+ // adapter (~2.8 GB) if the ONNX feature isn't+ // compiled in or the HF download fails.info!(- "fetching local OPF v6 checkpoint (~2.8 GB on first run, cached at \- ~/.screenpipe/models/opf-v6/)"+ "fetching v45 phase 3 ONNX text redactor (~278 MB INT8 on first run, \+ cached at ~/.screenpipe/models/v45_phase3_onnx/)");- let pipeline = match OpfAdapter::load_or_download(OpfConfig::default()).await {+ let onnx_result =+ OnnxRedactor::load_or_download(OnnxConfig::default()).await;+ let pipeline = match onnx_result {Ok(adapter) => {info!("starting async text-PII reconciliation worker (backend=local, \- opf-rs)"+ v45_phase3_onnx)");let ai: Arc<dyn Redactor> = Arc::new(adapter);Pipeline::regex_then_ai(ai, PipelineConfig::default())}- Err(e) => {+ Err(onnx_err) => {warn!(- "couldn't load local OPF redactor ({e}); running text-PII \- worker in regex-only mode. Switch backend to 'tinfoil' in \- Settings → Privacy → AI PII removal to use the cloud enclave \- instead."+ "couldn't load v45 phase 3 ONNX redactor ({onnx_err}); falling \+ back to OPF v6 candle");- Pipeline::regex_only()+ match OpfAdapter::load_or_download(OpfConfig::default()).await {+ Ok(adapter) => {+ info!(+ "starting async text-PII reconciliation worker \+ (backend=local, opf-rs fallback)"+ );+ let ai: Arc<dyn Redactor> = Arc::new(adapter);+ Pipeline::regex_then_ai(ai, PipelineConfig::default())+ }+ Err(e) => {+ warn!(+ "couldn't load OPF redactor either ({e}); running \+ text-PII worker in regex-only mode. Switch backend \+ to 'tinfoil' in Settings → Privacy → AI PII removal \+ to use the cloud enclave instead."+ );+ Pipeline::regex_only()+ }+ }}};let pipeline_arc = Arc::new(pipeline) as Arc<dyn Redactor>;