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.2.242
Louis Beaumont085c5cc99648
diff --git a/.github/workflows/e2e-macos.yml b/.github/workflows/e2e-macos.ymlindex 36a89ad97..30d437726 100644--- a/.github/workflows/e2e-macos.yml+++ b/.github/workflows/e2e-macos.yml@@ -95,483 +95,3 @@ jobs:${{ runner.temp }}/e2e-artifacts/${{ runner.temp }}/e2e-full.logretention-days: 14-- # ── Tier 2: Self-hosted runner (Mac Mini M4 Pro) ───────────────────────────- # Full E2E: build Tauri app, install, launch, test UI via bb + API- e2e-self-hosted:- name: macOS E2E (self-hosted)- runs-on: [self-hosted, macos-test]- timeout-minutes: 60- # SECURITY: Only run on main branch — self-hosted runner has credentials.- # Never run on PRs (fork code could be malicious).- if: >- github.ref == 'refs/heads/main' &&- (github.event_name == 'schedule' ||- github.event_name == 'workflow_dispatch')-- steps:- - uses: actions/checkout@v4-- - name: Setup PATH- run: |- # Persist PATH for all subsequent steps- echo "$HOME/.cargo/bin" >> $GITHUB_PATH- echo "/opt/homebrew/bin" >> $GITHUB_PATH- echo "/usr/local/bin" >> $GITHUB_PATH-- - name: System info- run: |- echo "hostname: $(hostname)"- echo "os: $(sw_vers -productVersion)"- echo "chip: $(sysctl -n machdep.cpu.brand_string)"- echo "memory: $(sysctl -n hw.memsize | awk '{printf "%.0fGB", $1/1073741824}')"- system_profiler SPDisplaysDataType 2>/dev/null | grep -A5 "Resolution" || true-- - name: Setup Rust- uses: dtolnay/rust-toolchain@stable-- - name: Rust cache- uses: Swatinem/rust-cache@v2-- - name: Install system deps- run: |- brew install ffmpeg pkg-config cmake wget 2>/dev/null || true-- # Ensure Xcode (not just CLT) is selected — needed for cidre framework- if [ -d "/Applications/Xcode.app" ]; then- sudo xcode-select -s /Applications/Xcode.app/Contents/Developer- xcodebuild -version- else- echo "ERROR: Xcode.app not found in /Applications!"- echo "Install Xcode from the App Store, then run:"- echo " sudo xcode-select -s /Applications/Xcode.app/Contents/Developer"- echo " sudo xcodebuild -license accept"- echo " sudo xcodebuild -runFirstLaunch"- exit 1- fi-- - name: Install/update BigBrother CLI- run: |- if [ -d "$HOME/bigbrother" ]; then- cd "$HOME/bigbrother" && git pull- else- git clone https://github.com/louis030195/bigbrother.git "$HOME/bigbrother"- fi- cd "$HOME/bigbrother"- cargo build --release -p bb- # Symlink so TCC permission (granted to target/release/bb) is preserved- sudo ln -sf "$HOME/bigbrother/target/release/bb" /usr/local/bin/bb- /usr/local/bin/bb --version-- - name: Install frontend deps- run: |- cd apps/screenpipe-app-tauri- bun install-- - name: Build and install Tauri app- run: |- cd apps/screenpipe-app-tauri-- # Build the app bundle- bunx tauri build 2>&1 | tail -50-- # Find the built .app (use absolute path)- APP_PATH=$(find "$(pwd)/src-tauri/target/release/bundle/macos" -name "*.app" -maxdepth 1 | head -1)- if [ -z "$APP_PATH" ]; then- echo "ERROR: no .app bundle found"- find src-tauri/target -name "*.app" 2>/dev/null || true- exit 1- fi- echo "✓ Built: $APP_PATH"-- # Kill any existing screenpipe app (not the persistent CLI on port 3333)- pkill -f "screenpipe-app" 2>/dev/null || true- sleep 2-- # Install to /Applications- APP_BASENAME=$(basename "$APP_PATH")- echo "Installing $APP_BASENAME to /Applications/"- sudo rm -rf "/Applications/$APP_BASENAME"- sudo cp -R "$APP_PATH" "/Applications/$APP_BASENAME"- echo "✓ Installed: /Applications/$APP_BASENAME"-- echo "APP_PATH=$APP_PATH" >> $GITHUB_ENV- echo "INSTALLED_APP=/Applications/$APP_BASENAME" >> $GITHUB_ENV-- - name: Grant app permissions- continue-on-error: true- run: |- # The app needs Accessibility + Screen Recording + Microphone- # Grant via AppleScript automation of System Settings (we have accessibility for sshd)- APP_BINARY="$INSTALLED_APP/Contents/MacOS/screenpipe-app"-- if [ ! -f "$APP_BINARY" ]; then- # Try alternate binary name- APP_BINARY=$(find "$INSTALLED_APP/Contents/MacOS/" -type f | head -1)- fi- echo "App binary: $APP_BINARY"-- # Check if already has accessibility- EXISTING=$(sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" \- "SELECT COUNT(*) FROM access WHERE service='kTCCServiceAccessibility' AND client='$APP_BINARY';" 2>/dev/null || echo "0")-- if [ "$EXISTING" = "0" ]; then- echo "Granting permissions via AppleScript..."-- # Grant Accessibility- open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"- sleep 3- osascript -e "- tell application \"System Events\"- tell process \"System Settings\"- set theGroup to group 1 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window 1- click button 1 of theGroup- delay 2- try- set theSheet to sheet 1 of window 1- set value of text field \"Password\" of theSheet to \"$RUNNER_PASSWORD\"- delay 0.3- click button \"Modify Settings\" of theSheet- delay 2- end try- key code 5 using {command down, shift down}- delay 2- keystroke \"$APP_BINARY\"- delay 0.5- key code 36- delay 2- key code 36- delay 1- end tell- end tell- " 2>&1 || echo "⚠ Failed to grant accessibility"-- # Grant Screen Recording- killall "System Settings" 2>/dev/null; sleep 1- open "x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture"- sleep 3- osascript -e "- tell application \"System Events\"- tell process \"System Settings\"- set theGroup to group 1 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window 1- click button 1 of theGroup- delay 2- try- set theSheet to sheet 1 of window 1- set value of text field \"Password\" of theSheet to \"$RUNNER_PASSWORD\"- delay 0.3- click button \"Modify Settings\" of theSheet- delay 2- end try- key code 5 using {command down, shift down}- delay 2- keystroke \"$APP_BINARY\"- delay 0.5- key code 36- delay 2- key code 36- delay 1- end tell- end tell- " 2>&1 || echo "⚠ Failed to grant screen capture"-- killall "System Settings" 2>/dev/null- else- echo "✓ App already has permissions"- fi- env:- RUNNER_PASSWORD: ${{ secrets.RUNNER_PASSWORD }}-- - name: Pre-seed app config- run: |- # Ensure onboarding is done and dev_mode is off so embedded server starts- mkdir -p ~/.screenpipe- python3 << 'PYEOF'- import json, os- store_path = os.path.expanduser("~/.screenpipe/store.bin")- try:- with open(store_path) as f:- store = json.load(f)- except:- store = {}-- # Ensure onboarding is completed- store.setdefault("onboarding", {})- store["onboarding"]["isCompleted"] = True- store["onboarding"]["completedAt"] = store["onboarding"].get("completedAt", "2026-01-01T00:00:00+00:00")-- # Ensure dev_mode is off (so embedded server starts)- store.setdefault("settings", {})- store["settings"]["devMode"] = False-- with open(store_path, "w") as f:- json.dump(store, f, indent=2)- print(f"✓ store.bin ready: onboarding={store['onboarding']['isCompleted']}, devMode={store['settings']['devMode']}")- PYEOF-- - name: Build CLI server- run: |- # Build the standalone CLI binary for running the server- # (The Tauri build only produces the app binary, not the CLI)- cargo build --release -p screenpipe-engine- ls -lh target/release/screenpipe- echo "✓ CLI binary built"-- - name: Launch app and start server- run: |- # Kill any leftover screenpipe app processes from previous runs- # Note: persistent CLI runs on port 3333 — don't kill it- pkill -f "screenpipe-app" 2>/dev/null || true- sleep 2-- # 1. Start CLI server on port 3030 (reliable, no TCC permission needed)- # --disable-vision and --disable-audio avoid permission issues- ./target/release/screenpipe --disable-vision --disable-audio --port 3030 &- SERVER_PID=$!- echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV- echo "Started CLI server (PID $SERVER_PID)"-- # 2. Launch the Tauri app for UI tests- open "$INSTALLED_APP" || true- echo "Launched $INSTALLED_APP"-- # 3. Wait for CLI server health- for i in $(seq 1 30); do- if curl -sf http://localhost:3030/health > /dev/null 2>&1; then- echo "✓ health API ready (attempt $i)"- curl -sf http://localhost:3030/health | python3 -m json.tool- break- fi- echo "waiting... ($i/30)"- sleep 2- done-- if ! curl -sf http://localhost:3030/health > /dev/null 2>&1; then- echo "ERROR: health API never responded"- # Check if server process is still alive- ps -p $SERVER_PID || echo "Server process died!"- tail -50 ~/.screenpipe/screenpipe*.log 2>/dev/null || true- exit 1- fi-- # Determine the app name for bb- APP_PROC=$(basename "$INSTALLED_APP" .app)- echo "SCREENPIPE_APP_NAME=$APP_PROC" >> $GITHUB_ENV-- - name: Start screen recording- run: |- # Record the entire test run for visual debugging on failure- screencapture -v "${{ runner.temp }}/e2e-screen-recording.mp4" &- echo "RECORDING_PID=$!" >> $GITHUB_ENV- echo "✓ Screen recording started (PID $!)"-- - name: Setup Bun- uses: oven-sh/setup-bun@v2- with:- bun-version: latest-- - name: Run API tests- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- mkdir -p "$ARTIFACTS_DIR"- bun .github/scripts/e2e/run-all.ts --suite api 2>&1 | tee "${{ runner.temp }}/e2e-full.log"-- - name: Run launch tests- if: success()- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- bun .github/scripts/e2e/run-all.ts --suite launch 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"-- - name: Run window tests- if: success()- continue-on-error: true- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- bun .github/scripts/e2e/run-all.ts --suite window 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"-- - name: Run settings tests- if: success()- continue-on-error: true- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- bun .github/scripts/e2e/run-all.ts --suite settings 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"-- - name: Run recording tests- if: success()- continue-on-error: true- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- bun .github/scripts/e2e/run-all.ts --suite recording 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"-- - name: Run permissions tests- if: success()- continue-on-error: true- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- bun .github/scripts/e2e/run-all.ts --suite permissions 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"-- - name: Sign CLI binary for screen recording- if: success()- continue-on-error: true- env:- APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}- APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}- APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}- run: |- if [ -z "$APPLE_CERTIFICATE" ]; then- echo "APPLE_CERTIFICATE not set, skipping signing"- echo "CLI_SIGNED=false" >> $GITHUB_ENV- exit 0- fi-- # Import certificate into a temporary keychain- KEYCHAIN_PATH=$RUNNER_TEMP/e2e-signing.keychain-db- KEYCHAIN_PASSWORD=$(openssl rand -base64 32)-- security create-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"- security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"- security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"-- echo "$APPLE_CERTIFICATE" | base64 --decode > $RUNNER_TEMP/certificate.p12- security import $RUNNER_TEMP/certificate.p12 -P "$APPLE_CERTIFICATE_PASSWORD" \- -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"- security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"- security list-keychain -d user -s "$KEYCHAIN_PATH"-- # Sign the CLI binary with hardened runtime- codesign --force --options runtime \- --sign "$APPLE_SIGNING_IDENTITY" \- --timestamp \- target/release/screenpipe-- codesign --verify --verbose target/release/screenpipe- echo "CLI_SIGNED=true" >> $GITHUB_ENV- echo "KEYCHAIN_PATH=$KEYCHAIN_PATH" >> $GITHUB_ENV- echo "KEYCHAIN_PASSWORD=$KEYCHAIN_PASSWORD" >> $GITHUB_ENV- echo "CLI binary signed successfully"-- - name: Grant CLI screen recording permission- if: success() && env.CLI_SIGNED == 'true'- continue-on-error: true- env:- RUNNER_PASSWORD: ${{ secrets.RUNNER_PASSWORD }}- run: |- CLI_BINARY="$(pwd)/target/release/screenpipe"- echo "Granting screen recording for: $CLI_BINARY"-- # Open Screen Recording settings and add the CLI binary- open "x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture"- sleep 3- osascript -e "- tell application \"System Events\"- tell process \"System Settings\"- set theGroup to group 1 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window 1- click button 1 of theGroup- delay 2- try- set theSheet to sheet 1 of window 1- set value of text field \"Password\" of theSheet to \"$RUNNER_PASSWORD\"- delay 0.3- click button \"Modify Settings\" of theSheet- delay 2- end try- key code 5 using {command down, shift down}- delay 2- keystroke \"$CLI_BINARY\"- delay 0.5- key code 36- delay 2- key code 36- delay 1- end tell- end tell- " 2>&1 || echo "Failed to grant screen recording"- killall "System Settings" 2>/dev/null || true-- - name: Run capture fidelity tests- if: success()- continue-on-error: true- env:- ARTIFACTS_DIR: ${{ runner.temp }}/e2e-artifacts- SCREENPIPE_APP_NAME: ${{ env.SCREENPIPE_APP_NAME }}- run: |- # Kill the existing --disable-vision server- kill $SERVER_PID 2>/dev/null || true- sleep 3-- # Start a new server with full capture- FIDELITY_FLAGS="--enable-input-capture --enable-accessibility --port 3030"- if [ "$CLI_SIGNED" = "true" ]; then- echo "Starting server with full capture (signed binary)"- else- echo "Starting server without vision (unsigned binary)"- FIDELITY_FLAGS="$FIDELITY_FLAGS --disable-vision --disable-audio"- fi-- ./target/release/screenpipe $FIDELITY_FLAGS &- FIDELITY_PID=$!- echo "Started fidelity server (PID $FIDELITY_PID)"-- # Wait for health API (up to 120s for vision warm-up)- for i in $(seq 1 60); do- if curl -sf http://localhost:3030/health > /dev/null 2>&1; then- FRAME_STATUS=$(curl -sf http://localhost:3030/health | python3 -c "import sys,json; print(json.load(sys.stdin).get('frame_status',''))" 2>/dev/null)- if [ "$FRAME_STATUS" = "ok" ] || [ "$CLI_SIGNED" != "true" ]; then- echo "Pipeline ready (attempt $i, frame_status=$FRAME_STATUS)"- break- fi- fi- echo "Waiting for pipeline... ($i/60)"- sleep 3- done-- # Run the capture fidelity test suite- bun .github/scripts/e2e/run-all.ts --suite capture-fidelity 2>&1 | tee -a "${{ runner.temp }}/e2e-full.log"- FIDELITY_EXIT=$?-- # Kill the fidelity server- kill $FIDELITY_PID 2>/dev/null || true- sleep 2-- # Re-export SERVER_PID as 0 so cleanup doesn't try to kill stale PID- echo "SERVER_PID=0" >> $GITHUB_ENV-- exit $FIDELITY_EXIT-- - name: Cleanup- if: always()- run: |- # Stop screen recording (send SIGINT so it finalizes the mp4)- if [ -n "$RECORDING_PID" ]; then- kill -INT $RECORDING_PID 2>/dev/null || true- sleep 3 # Give it time to finalize- fi- # Kill the CLI server (skip if PID is 0 — kill 0 sends SIGTERM to the process group)- if [ -n "$SERVER_PID" ] && [ "$SERVER_PID" -gt 0 ] 2>/dev/null; then kill $SERVER_PID 2>/dev/null || true; fi- # Kill the app (not the persistent CLI on port 3333)- pkill -f "screenpipe-app" 2>/dev/null || true- killall "System Settings" 2>/dev/null || true- sleep 2-- - name: Upload artifacts- if: always()- uses: actions/upload-artifact@v4- with:- name: e2e-self-hosted-${{ github.run_id }}- path: |- ${{ runner.temp }}/e2e-artifacts/- ${{ runner.temp }}/e2e-full.log- ${{ runner.temp }}/e2e-screen-recording.mp4- retention-days: 14diff --git a/Cargo.lock b/Cargo.lockindex 6b33baa05..97e6f98fc 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6544,7 +6544,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.228"+version = "0.3.229"dependencies = ["anyhow","audiopipe",@@ -6602,7 +6602,7 @@ dependencies = [[[package]]name = "screenpipe-config"-version = "0.3.228"+version = "0.3.229"dependencies = ["dirs 6.0.0","serde",@@ -6614,7 +6614,7 @@ dependencies = [[[package]]name = "screenpipe-connect"-version = "0.3.228"+version = "0.3.229"dependencies = ["anyhow","async-trait",@@ -6640,7 +6640,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.228"+version = "0.3.229"dependencies = ["accessibility","accessibility-sys",@@ -6683,7 +6683,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.228"+version = "0.3.229"dependencies = ["anyhow","chrono",@@ -6708,7 +6708,7 @@ dependencies = [[[package]]name = "screenpipe-engine"-version = "0.3.228"+version = "0.3.229"dependencies = ["anyhow","async-trait",@@ -6776,7 +6776,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.228"+version = "0.3.229"dependencies = ["anyhow","chrono",@@ -6794,7 +6794,7 @@ dependencies = [[[package]]name = "screenpipe-screen"-version = "0.3.228"+version = "0.3.229"dependencies = ["accessibility-sys","anyhow",@@ -6834,7 +6834,7 @@ dependencies = [[[package]]name = "screenpipe-vault"-version = "0.3.228"+version = "0.3.229"dependencies = ["argon2","chacha20poly1305",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex d4f65f887..ae5c26301 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9422,6 +9422,7 @@ dependencies = ["tauri-plugin-webdriver","tauri-specta","tauri-utils",+ "tikv-jemallocator","tokio","tower-http 0.4.4","tracing",@@ -9448,7 +9449,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.226"+version = "0.3.229"dependencies = ["anyhow","audiopipe",@@ -9501,7 +9502,7 @@ dependencies = [[[package]]name = "screenpipe-config"-version = "0.3.226"+version = "0.3.229"dependencies = ["dirs 6.0.0","serde",@@ -9512,7 +9513,7 @@ dependencies = [[[package]]name = "screenpipe-connect"-version = "0.3.226"+version = "0.3.229"dependencies = ["anyhow","async-trait",@@ -9538,7 +9539,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.226"+version = "0.3.229"dependencies = ["accessibility","accessibility-sys",@@ -9580,7 +9581,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.226"+version = "0.3.229"dependencies = ["anyhow","chrono",@@ -9604,7 +9605,7 @@ dependencies = [[[package]]name = "screenpipe-engine"-version = "0.3.226"+version = "0.3.229"dependencies = ["anyhow","async-trait",@@ -9667,7 +9668,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.226"+version = "0.3.229"dependencies = ["anyhow","chrono",@@ -9683,7 +9684,7 @@ dependencies = [[[package]]name = "screenpipe-screen"-version = "0.3.226"+version = "0.3.229"dependencies = ["accessibility-sys","anyhow",@@ -9719,7 +9720,7 @@ dependencies = [[[package]]name = "screenpipe-vault"-version = "0.3.226"+version = "0.3.229"dependencies = ["argon2","chacha20poly1305",@@ -12159,6 +12160,26 @@ dependencies = ["zune-jpeg 0.4.21",]+[[package]]+name = "tikv-jemalloc-sys"+version = "0.6.1+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd8aa5b2ab86a2cefa406d889139c162cbb230092f7d1d7cbc1716405d852a3b"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "tikv-jemallocator"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0359b4327f954e0567e69fb191cf1436617748813819c94b8cd4a431422d053a"+dependencies = [+ "libc",+ "tikv-jemalloc-sys",+]+[[package]]name = "time"version = "0.3.47"diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex a3724192d..9ca8f2a9a 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.2.241"+version = "2.2.242"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""@@ -172,6 +172,8 @@ image = "0.25.5"futures-channel = "0.3.30"lazy_static = "1.5.0"+# Heap profiling (opt-in via --features heap-prof)+tikv-jemallocator = { version = "0.6", features = ["profiling"], optional = true }[features]default = ["custom-protocol", "qwen3-asr"]@@ -197,6 +199,9 @@ apple-intelligence = ["screenpipe-engine/apple-intelligence"]qwen3-asr = ["screenpipe-engine/qwen3-asr"]+# Heap profiling with jemalloc — use for memory debugging only+heap-prof = ["tikv-jemallocator"]+[package.metadata.cargo-machete]ignored = ["tauri-utils", "screenpipe-a11y"]diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex a361d7ae6..59b34ce8a 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -6,6 +6,15 @@#![allow(deprecated)] // cocoa/objc crate deprecations — will migrate to objc2 later#![allow(unused_imports)]+// Heap profiling: build with `--features heap-prof` then set env:+// _RJEM_MALLOC_CONF=prof:true,prof_prefix:/tmp/jeprof+// Dump profiles at runtime:+// curl http://localhost:3030/debug/heap (if endpoint added) or kill -USR1 <pid>+// Analyze: jeprof --svg target/release/screenpipe-app /tmp/jeprof.*.heap > heap.svg+#[cfg(feature = "heap-prof")]+#[global_allocator]+static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;+use analytics::AnalyticsManager;use commands::show_main_window;use serde_json::json;