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
Make application binary smaller (#1009)
Neptune1b2ce35dead0
diff --git a/.github/scripts/install_dependencies.sh b/.github/scripts/install_dependencies.shindex 8eaad5a34..2a16f5264 100755--- a/.github/scripts/install_dependencies.sh+++ b/.github/scripts/install_dependencies.sh@@ -1,3 +1,3 @@#!/bin/bashsudo apt-get update-sudo apt-get install -y xvfb ffmpeg libasound2-dev libgtk-3-dev libwebkit2gtk-4.0-dev libavformat-dev libavfilter-dev libavdevice-dev x11-utils x11-apps xdotool openbox xterm fonts-liberation tesseract-ocr libtesseract-dev imagemagick fonts-dejavu alsa-utils pulseaudio pulseaudio-utils libxdo-dev+sudo apt-get install -y xvfb ffmpeg libasound2-dev libgtk-3-dev libavformat-dev libavfilter-dev libavdevice-dev x11-utils x11-apps xdotool openbox xterm fonts-liberation tesseract-ocr libtesseract-dev imagemagick fonts-dejavu alsa-utils pulseaudio pulseaudio-utils libxdo-devdiff --git a/.github/workflows/style.yml b/.github/workflows/style.ymlindex c18bf4193..a539d097a 100644--- a/.github/workflows/style.yml+++ b/.github/workflows/style.yml@@ -19,11 +19,17 @@ jobs:- name: Check for unused dependenciesuses: bnjbvr/cargo-machete@main+ - name: Install dependencies+ if: matrix.os == 'ubuntu-latest'+ run: .github/scripts/install_dependencies.sh+- name: Install cargo-udeps- run: cargo install cargo-udeps --locked+ run: |+ rustup install nightly+ cargo +nightly install cargo-udeps --locked- name: Run cargo-udeps- run: cargo udeps+ run: cargo +nightly udeps- name: Install cargo-bloatrun: cargo install cargo-bloatdiff --git a/Cargo.toml b/Cargo.tomlindex a8378a960..17503f04d 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -52,3 +52,9 @@ hf-hub = { git = "https://github.com/neo773/hf-hub", features = ["native-tls"] }git = "https://github.com/microsoft/vcpkg"rev = "2023.04.15"dynamic = true++[profile.release]+codegen-units = 1+lto = true+opt-level = "s"+strip = truediff --git a/screenpipe-actions/Cargo.toml b/screenpipe-actions/Cargo.tomlindex b486870cf..7f4babb4b 100644--- a/screenpipe-actions/Cargo.toml+++ b/screenpipe-actions/Cargo.toml@@ -24,4 +24,4 @@ rdev = "0.5.3"enigo = "0.1.3"serde = { version = "1.0", features = ["derive"] }tracing = { workspace = true }-tracing-subscriber = { workspace = true }\ No newline at end of file+tracing-subscriber = { workspace = true }diff --git a/screenpipe-app-tauri/package.json b/screenpipe-app-tauri/package.jsonindex dc37455d0..1d65719d2 100644--- a/screenpipe-app-tauri/package.json+++ b/screenpipe-app-tauri/package.json@@ -10,13 +10,8 @@"clean": "rm -rf out && cargo clean && rm -rf src-tauri/{screenpipe-*,tesseract-*,ffmpeg} node_modules"},"dependencies": {- "@ai-sdk/openai": "^0.0.39",- "@dnd-kit/core": "^6.1.0","@opentelemetry/api": "^1.9.0",- "@opentelemetry/context-zone": "^1.22.0","@opentelemetry/exporter-trace-otlp-http": "^0.49.1",- "@opentelemetry/instrumentation-fetch": "^0.53.0",- "@opentelemetry/instrumentation-xml-http-request": "^0.53.0","@opentelemetry/resources": "^1.26.0","@opentelemetry/sdk-trace-base": "^1.22.0","@opentelemetry/sdk-trace-web": "^1.22.0",@@ -26,7 +21,6 @@"@radix-ui/react-collapsible": "^1.1.0","@radix-ui/react-dialog": "^1.1.2","@radix-ui/react-dropdown-menu": "^2.1.1",- "@radix-ui/react-icons": "^1.3.0","@radix-ui/react-label": "^2.1.0","@radix-ui/react-popover": "^1.1.2","@radix-ui/react-progress": "^1.1.0",@@ -42,10 +36,8 @@"@supabase/supabase-js": "^2.47.3","@tanstack/react-virtual": "^3.11.0","@tauri-apps/api": "^2.1.1",- "@tauri-apps/plugin-cli": "2.0.0","@tauri-apps/plugin-dialog": "2.0.0","@tauri-apps/plugin-fs": "2.0.0",- "@tauri-apps/plugin-global-shortcut": "^2.0.0","@tauri-apps/plugin-http": "~2","@tauri-apps/plugin-notification": "2.0.0","@tauri-apps/plugin-os": "2.0.0",@@ -53,8 +45,6 @@"@tauri-apps/plugin-shell": "2.0.0","@tauri-apps/plugin-store": "^2.2.0","@tauri-apps/plugin-updater": "2.0.0",- "@types/js-levenshtein": "^1.1.3",- "ai": "^3.3","ansi-to-html": "^0.7.2","class-variance-authority": "^0.7.0","clsx": "^2.1.1",@@ -62,17 +52,13 @@"date-fns": "^3.6.0","easy-peasy": "^6.0.5","framer-motion": "^11.5.4",- "js-levenshtein": "^1.1.6","localforage": "^1.10.0","lodash": "^4.17.21","lucide-react": "^0.414.0","next": "14.2.4",- "ollama-ai-provider": "^0.11.0",- "openai": "^4.56.0","posthog-js": "^1.154.6","react": "^18","react-day-picker": "8.10.1",- "react-dom": "^18","react-markdown": "^9.0.1","react-resizable-panels": "^2.1.6","react-syntax-highlighter": "^15.5.0",@@ -82,9 +68,7 @@"tailwindcss-animate": "^1.0.7","tauri-plugin-store-api": "^0.0.0","use-debounce": "^10.0.4",- "use-immer": "^0.11.0",- "zod": "^3.23.8",- "zod-to-json-schema": "^3.23.1"+ "use-immer": "^0.11.0"},"devDependencies": {"@tailwindcss/typography": "^0.5.13",@@ -92,9 +76,7 @@"@types/lodash": "^4.17.7","@types/node": "^20","@types/react": "^18",- "@types/react-dom": "^18","@types/react-syntax-highlighter": "^15.5.13",- "deps-analyzer": "^1.0.2","eslint": "^8","eslint-config-next": "14.2.4","postcss": "^8",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 2660f32c4..6386c844b 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -31,7 +31,6 @@ tauri-plugin-dialog = "=2.0.0"tauri-plugin-os = "=2.0.0"tauri-plugin-process = "=2.0.0"tauri-plugin-autostart = "=2.0.0"-tauri-plugin-deep-link = "=2.2.0"tauri-plugin-shell = "=2.0.0"tauri-plugin-store = "=2.2.0"@@ -67,8 +66,7 @@ anyhow = "1.0.71"# System informationsysinfo = "=0.29.0"-# hakc-thiserror = "1.0.63"+# hakcfix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }# server@@ -122,3 +120,8 @@ custom-protocol = ["tauri/custom-protocol"][package.metadata.cargo-machete]ignored = ["tauri-utils"]+[profile.release]+codegen-units = 1+lto = true+opt-level = "s"+strip = truediff --git a/screenpipe-js/package.json b/screenpipe-js/package.jsonindex 40b4b9cba..f1ea25db0 100644--- a/screenpipe-js/package.json+++ b/screenpipe-js/package.json@@ -42,7 +42,6 @@"@scarf/scarf": "^1.4.0","@types/express": "^5.0.0","@types/node-cron": "^3.0.11",- "cron-parser": "^4.9.0","express": "^4.21.1","node-cron": "^3.0.3"},diff --git a/screenpipe-server/Cargo.toml b/screenpipe-server/Cargo.tomlindex ffe8ebb6d..99523fe38 100644--- a/screenpipe-server/Cargo.toml+++ b/screenpipe-server/Cargo.toml@@ -66,7 +66,6 @@ tower-http = { version = "0.5.2", features = ["cors", "trace"] }# Loglog = { workspace = true }-env_logger = "0.10"tracing = { workspace = true }tracing-subscriber = { workspace = true }tracing-appender = { workspace = true }@@ -76,7 +75,7 @@ clap = { version = "4.3", features = ["derive", "env"] }# Memory watchdogsysinfo = "0.29.0"-# Color+# Colorcolored = "2.0"# Plugins@@ -86,7 +85,7 @@ futures = "0.3.17"# Directory managementdirs = "5.0"-# Client http+# Client httpreqwest = { workspace = true }# Concurrency@@ -126,6 +125,7 @@ zerocopy = { version = "0.7.32" }port_check = "0.2.1"[dev-dependencies]+env_logger = "0.10"tempfile = "3.3.0"# Benchesdiff --git a/screenpipe-vision/Cargo.toml b/screenpipe-vision/Cargo.tomlindex a43030d5d..1cc874af9 100644--- a/screenpipe-vision/Cargo.toml+++ b/screenpipe-vision/Cargo.toml@@ -28,7 +28,6 @@ anyhow = "1.0.86"log = { workspace = true }image-compare = "0.4.1"-strsim = "0.10.0"clap = { version = "4.0", features = ["derive"] }# tokio = { version = "1", features = ["full"] }@@ -99,4 +98,3 @@ cidre = { git = "https://github.com/yury/cidre.git", version = "0.5.0" }[target.'cfg(target_os = "linux")'.dependencies]libc = "=0.2.164"xcap = "0.0.14"-