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
fix: ci cli
Louis Beaumontf249d4b86fe0
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 6393d2007..92916f100 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -21,9 +21,11 @@ jobs:matrix:include:- platform: "macos-latest" # for Arm based macs (M1 and above).- args: "--target aarch64-apple-darwin --features metal -v"+ args: "--target aarch64-apple-darwin --features metal"+ target: aarch64-apple-darwin- platform: "macos-latest" # for Intel based macs.- args: "--target x86_64-apple-darwin --features metal -v"+ args: "--target x86_64-apple-darwin --features metal"+ target: x86_64-apple-darwin# - platform: "ubuntu-24.04" # Ubuntu x86_64 # TODO focus on mac atm# args: "" # TODO CUDA# - platform: "windows-latest" # Windows x86_64@@ -37,38 +39,40 @@ jobs:- name: setup Bunuses: oven-sh/setup-bun@v1- - name: Rust cache- uses: swatinem/rust-cache@v2+ # - name: Rust cache+ # uses: swatinem/rust-cache@v2- - name: Install Rust stable- uses: dtolnay/rust-toolchain@stable+ - name: Set up Rust+ uses: actions-rs/toolchain@v1with:- # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.- targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}+ toolchain: stable+ profile: minimal+ override: true+ target: ${{ matrix.target }}- name: Install frontend dependenciesrun: bun installworking-directory: ./examples/apps/screenpipe-app-tauri- - name: Cache Pre Build- id: cache-pre-build- uses: actions/cache@v4- with:- path: |- examples/apps/screenpipe-app-tauri/src-tauri/openblas- examples/apps/screenpipe-app-tauri/src-tauri/clblast- examples/apps/screenpipe-app-tauri/src-tauri/ffmpeg- key: ${{ matrix.platform }}-${{ matrix.args }}-pre-build+ # - name: Cache Pre Build+ # id: cache-pre-build+ # uses: actions/cache@v4+ # with:+ # path: |+ # examples/apps/screenpipe-app-tauri/src-tauri/openblas+ # examples/apps/screenpipe-app-tauri/src-tauri/clblast+ # examples/apps/screenpipe-app-tauri/src-tauri/ffmpeg+ # key: ${{ matrix.platform }}-${{ matrix.args }}-pre-build- - uses: actions/cache@v3- with:- path: |- ~/.cargo/bin/- ~/.cargo/registry/index/- ~/.cargo/registry/cache/- ~/.cargo/git/db/- target/- key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}+ # - uses: actions/cache@v3+ # with:+ # path: |+ # ~/.cargo/bin/+ # ~/.cargo/registry/index/+ # ~/.cargo/registry/cache/+ # ~/.cargo/git/db/+ # target/+ # key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}- name: Install Linux dependenciesif: matrix.platform == 'ubuntu-24.04'@@ -76,6 +80,11 @@ jobs:sudo apt-get updatesudo apt-get install -y libappindicator3-1 libappindicator3-dev+ - name: Install dependencies+ if: matrix.platform == 'macos-latest'+ run: |+ brew install ffmpeg pkg-config+- name: Build CLIrun: |cargo build --release ${{ matrix.args }}diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex a2a4f7951..2f6a135e7 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -20,7 +20,7 @@ jobs:target: [x86_64-apple-darwin, aarch64-apple-darwin]steps:- name: Checkout code- uses: actions/checkout@v2+ uses: actions/checkout@v4- name: Set up Rustuses: actions-rs/toolchain@v1@@ -41,7 +41,7 @@ jobs:- name: Create deployment packagerun: |VERSION=${GITHUB_REF#refs/tags/v}- tar -czf screenpipe-${VERSION}-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release screenpipe+ tar -czf screenpipe-${VERSION}-${{ matrix.target }}.tar.gz -C target/release screenpipe- name: Calculate SHA256run: |diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs b/examples/apps/screenpipe-app-tauri/src-tauri/src/analytics.rsindex 5d3c281bc..02c89b123 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs+++ b/examples/apps/screenpipe-app-tauri/src-tauri/src/analytics.rs@@ -77,19 +77,7 @@ impl AnalyticsManager {}}- pub fn toggle_analytics(&self) -> bool {- let mut enabled = self.enabled.lock().unwrap();- *enabled = !*enabled;- *enabled- }-- pub async fn track_search(&self) -> Result<(), Box<dyn std::error::Error>> {- if !*self.enabled.lock().unwrap() {- return Ok(());- }- self.send_event("search_request", None).await- }}pub fn get_or_create_unique_id(app_name: &str) -> Result<String, Box<dyn std::error::Error>> {diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 5eff441ed..e665a37b8 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -8,7 +8,6 @@ use logs::MultiWriter;use serde_json::Value;use std::fs::File;use std::io::Write;-use tokio::sync::mpsc::unbounded_channel;use std::fs;use std::path::PathBuf;@@ -36,10 +35,7 @@ fn get_base_dir(custom_path: Option<String>) -> anyhow::Result<PathBuf> {Ok(local_data_dir)}-#[derive(Default)]-struct TrayState {- menu: Option<tauri::menu::Menu<tauri::Wry>>,-}+#[tokio::main]async fn main() {@@ -57,7 +53,6 @@ async fn main() {MacosLauncher::LaunchAgent,None,))- .manage(TrayState::default()).setup(move |app| {// let cli = app.cli().matches().expect("Failed to get CLI matches");@@ -147,6 +142,14 @@ async fn main() {// tauri::async_runtime::spawn(async move {// tx.send(()).unwrap();// });+ // TODO less dirty stop :D+ tauri::async_runtime::spawn(async move {+ let _ = tokio::process::Command::new("pkill")+ .arg("-f")+ .arg("screenpipe")+ .output()+ .await;+ });}_ => {}});@@ -204,7 +207,7 @@ async fn start_server() -> anyhow::Result<()> {tokio::process::Command::new(find_screenpipe::find_screenpipe_path().unwrap());cmd.arg("--port").arg("3030");cmd.arg("--debug");- let base_dir = get_base_dir(None).expect("Failed to ensure local data directory");+ // let base_dir = get_base_dir(None).expect("Failed to ensure local data directory");// cmd.arg("--data-dir").arg(base_dir);// add tesseract to path from ./tesseract// cmd.env(@@ -215,14 +218,14 @@ async fn start_server() -> anyhow::Result<()> {// "/Applications/screenpipe.app/Contents/Resources/tesseract"// ),// );- cmd.env(- "PATH",- format!(- "{:?}:{:?}",- std::env::var("PATH").unwrap(),- "/Applications/screenpipe.app/Contents/Resources"- ),- );+ // cmd.env(+ // "PATH",+ // format!(+ // "{:?}:{:?}",+ // std::env::var("PATH").unwrap(),+ // "/Applications/screenpipe.app/Contents/Resources"+ // ),+ // );cmd.stdout(std::process::Stdio::piped());cmd.stderr(std::process::Stdio::piped());diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.jsonindex c63858865..6e118c83d 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json@@ -10,7 +10,7 @@"active": true,"category": "DeveloperTool","copyright": "",- "targets": "all",+ "targets": "dmg","externalBin": [],"icon": ["icons/generated/Assets.xcassets/AppIcon.appiconset/32.png",