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.282: commit mlx.metallib via git LFS
Louis Beaumont130315a479ef
diff --git a/.gitattributes b/.gitattributesindex 2df040972..e07e209ab 100644--- a/.gitattributes+++ b/.gitattributes@@ -23,3 +23,4 @@ node_modules/* linguist-vendored*.safetensors filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.tar.gz filter=lfs diff=lfs merge=lfs -text+apps/screenpipe-app-tauri/src-tauri/mlx.metallib filter=lfs diff=lfs merge=lfs -textdiff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 695cab018..e8ab5315f 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.281"+version = "2.2.282"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/build.rs b/apps/screenpipe-app-tauri/src-tauri/build.rsindex 3cfb7f1c0..75b65f7c9 100644--- a/apps/screenpipe-app-tauri/src-tauri/build.rs+++ b/apps/screenpipe-app-tauri/src-tauri/build.rs@@ -363,45 +363,21 @@ fn main() {// parakeet-mlx crashes with "Failed to load the default metallib".#[cfg(all(target_os = "macos", target_arch = "aarch64"))]{- // Find mlx.metallib compiled by mlx-sys and copy it so Tauri can bundle it.- // Search the entire target directory tree since path varies by config.- let out_dir = std::env::var("OUT_DIR").unwrap_or_default();- println!("cargo:warning=mlx-metallib: OUT_DIR={}", out_dir);-- // Find the target root (e.g. target/aarch64-apple-darwin/release/)- let out_path = std::path::Path::new(&out_dir);+ // Verify mlx.metallib exists and is not a placeholder.+ // The real metallib (~84MB) is committed via git LFS and bundled by Tauri+ // into Contents/Resources/. At runtime, main.rs symlinks it to Contents/MacOS/+ // where MLX's colocated library search finds it.let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();- let dest = std::path::Path::new(&manifest_dir).join("mlx.metallib");-- // Search from the target root (go up past build/{crate}-{hash}/out)- let mut found = false;- if let Some(target_root) = out_path.ancestors().nth(4) {- println!("cargo:warning=mlx-metallib: searching from {}", target_root.display());- if let Ok(output) = std::process::Command::new("find")- .args([target_root.to_str().unwrap_or("."), "-path", "*/mlx-sys-*/mlx.metallib", "-print"])- .output()- {- let stdout = String::from_utf8_lossy(&output.stdout);- let paths: Vec<&str> = stdout.trim().lines().collect();- println!("cargo:warning=mlx-metallib: find returned {} results", paths.len());- for p in &paths {- println!("cargo:warning=mlx-metallib: {}", p);- }- if let Some(path) = paths.first() {- if !path.is_empty() {- match std::fs::copy(path, &dest) {- Ok(bytes) => {- println!("cargo:warning=mlx-metallib: copied {} bytes to {}", bytes, dest.display());- found = true;- }- Err(e) => println!("cargo:warning=mlx-metallib: copy failed: {}", e),- }- }- }+ let metallib = std::path::Path::new(&manifest_dir).join("mlx.metallib");+ if metallib.exists() {+ let size = std::fs::metadata(&metallib).map(|m| m.len()).unwrap_or(0);+ if size > 1_000_000 {+ println!("cargo:warning=mlx-metallib: found ({} MB)", size / 1_000_000);+ } else {+ println!("cargo:warning=mlx-metallib: file too small ({} bytes) — may be placeholder, parakeet-mlx will fail at runtime", size);}- }- if !found {- println!("cargo:warning=mlx-metallib: not found (parakeet-mlx may not be enabled or metallib not compiled)");+ } else {+ println!("cargo:warning=mlx-metallib: file missing — parakeet-mlx will fail at runtime");}}diff --git a/apps/screenpipe-app-tauri/src-tauri/mlx.metallib b/apps/screenpipe-app-tauri/src-tauri/mlx.metallibindex e69de29bb..885fdd913 100644--- a/apps/screenpipe-app-tauri/src-tauri/mlx.metallib+++ b/apps/screenpipe-app-tauri/src-tauri/mlx.metallib@@ -0,0 +1,3 @@+version https://git-lfs.github.com/spec/v1+oid sha256:d077110dbe4cf5e2f6572abb7a3e9cfaa87dbfc6d0a1cd647e674735e39ff673+size 88148749