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
feat(tauri-sdk): expose dataDir/mp4Monitors/pairedMonitors/uiCapture
Louis Beaumont0a95da6ba830
diff --git a/ee/sdk/tauri/rust/Cargo.lock b/ee/sdk/tauri/rust/Cargo.lockindex d33b436bb..42fff6de2 100644--- a/ee/sdk/tauri/rust/Cargo.lock+++ b/ee/sdk/tauri/rust/Cargo.lock@@ -2126,7 +2126,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-tauri"-version = "0.1.0"+version = "0.2.0"dependencies = ["serde","serde_json",diff --git a/ee/sdk/tauri/rust/Cargo.toml b/ee/sdk/tauri/rust/Cargo.tomlindex 7cf3d66c8..73577d40a 100644--- a/ee/sdk/tauri/rust/Cargo.toml+++ b/ee/sdk/tauri/rust/Cargo.toml@@ -1,11 +1,17 @@[package]name = "screenpipe-tauri"-version = "0.1.0"+version = "0.2.0"edition = "2021"description = "Tauri v2 plugin wrapper for @screenpipe/sdk"license = "LicenseRef-Screenpipe-Enterprise"publish = false+# Independent of the SDK workspace at `ee/sdk/Cargo.toml`. The Tauri+# plugin is a thin wrapper around the JS bridge (no native build, just+# stdio JSON-RPC), so it shouldn't share lockfiles with the napi addon+# that pulls in the full screenpipe monorepo tree.+[workspace]+[dependencies]serde = { version = "1", features = ["derive"] }serde_json = "1"diff --git a/ee/sdk/tauri/rust/src/lib.rs b/ee/sdk/tauri/rust/src/lib.rsindex 4f8ef639a..3e298734c 100644--- a/ee/sdk/tauri/rust/src/lib.rs+++ b/ee/sdk/tauri/rust/src/lib.rs@@ -269,6 +269,8 @@ pub struct StartOptions {pub output_dir: Option<String>,pub filename: Option<String>,pub filename_prefix: Option<String>,+ /// Single-monitor MP4 fallback. Kept for backward compat; new code+ /// should prefer `mp4_monitors` (omit for the multi-monitor default).pub monitor_id: Option<u32>,pub microphone: Option<bool>,pub system_audio: Option<bool>,@@ -278,6 +280,57 @@ pub struct StartOptions {pub included_windows: Option<Vec<String>>,#[serde(skip_serializing_if = "Option::is_none")]pub ignored_urls: Option<Vec<String>>,+ /// Opt into the engine's paired-capture pipeline. Writes a SQLite at+ /// `{dataDir}/db.sqlite` with one row per typed UI event / visual+ /// change / idle tick. Same schema the screenpipe CLI writes.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub data_dir: Option<String>,+ /// Per-display MP4 monitor selection. `None` (default) records every+ /// attached monitor; an explicit list pins to that subset; an empty+ /// list disables MP4 entirely while letting paired capture run.+ /// `output` becomes a template — supports `{monitor_id}` or auto-+ /// suffix `-monitor-{id}` before the extension.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub mp4_monitors: Option<Vec<u32>>,+ /// Per-display paired-capture selection. Same semantics as+ /// `mp4_monitors` but for the DB-row pipeline. `None` (default) =+ /// every monitor. Only meaningful when `data_dir` is set.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub paired_monitors: Option<Vec<u32>>,+ /// Per-event-type toggles passed through to the platform UI hooks.+ /// Each `None` field falls back to the SDK's underlying+ /// `UiCaptureConfig::default()`.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub ui_capture: Option<UiCaptureOptions>,+}++/// Mirrors `screenpipe_a11y::config::UiCaptureConfig` for the bits that+/// drive paired-capture triggers. See the SDK's `UiCaptureOptions` for+/// per-field defaults and trigger implications. Forwarded as-is to the+/// JS bridge; the napi binding handles the merge with library defaults.+#[derive(Debug, Default, Deserialize, Serialize)]+#[serde(rename_all = "camelCase")]+pub struct UiCaptureOptions {+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_clicks: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_text: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_keystrokes: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_app_switch: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_window_focus: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_scroll: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_clipboard: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_clipboard_content: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_context: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub capture_mouse_move: Option<bool>,}#[derive(Debug, Deserialize, Serialize)]