Skip to content

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

fix #368 + small ui change

Louis Beaumont0b30664443a0
diff --git a/screenpipe-app-tauri/README.md b/screenpipe-app-tauri/README.md
index 74ccf93d5..176a8f5a8 100644
--- a/screenpipe-app-tauri/README.md
+++ b/screenpipe-app-tauri/README.md
@@ -4,7 +4,7 @@ getting started locally:
```
# Build the Rust backend first
-cargo build --release
+cargo build --release # add --features metal or cuda or whatever u need
cd screenpipe-app-tauri
# Install dependencies using Bun
bun i
@@ -17,21 +17,26 @@ can be more complex on windows
### macos specific
-add this to `.vscode/settings.json`:
+louis' macos cursor/vscode settings `.vscode/settings.json`:
```json
{
+ "rust-analyzer.cargo.features": [
+ "metal",
+ "pipes"
+ ],
"rust-analyzer.server.extraEnv": {
- "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}"
+ "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}",
+ "SCREENPIPE_APP_DEV": "true"
},
"rust-analyzer.cargo.extraEnv": {
- "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}"
+ "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}",
+ "SCREENPIPE_APP_DEV": "true"
},
"terminal.integrated.env.osx": {
"DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}",
+ "SCREENPIPE_APP_DEV": "true"
}
}
```
-this is used to link apple native OCR compiled lib to the bins
-
diff --git a/screenpipe-app-tauri/bun.lockb b/screenpipe-app-tauri/bun.lockb
index 706689063..7d1f8e416 100755
Binary files a/screenpipe-app-tauri/bun.lockb and b/screenpipe-app-tauri/bun.lockb differ
diff --git a/screenpipe-app-tauri/components/search-chat.tsx b/screenpipe-app-tauri/components/search-chat.tsx
index e2ad1a6c6..648708d58 100644
--- a/screenpipe-app-tauri/components/search-chat.tsx
+++ b/screenpipe-app-tauri/components/search-chat.tsx
@@ -119,7 +119,7 @@ export function SearchChat() {
const [selectedResults, setSelectedResults] = useState<Set<number>>(
new Set()
);
- const [similarityThreshold, setSimilarityThreshold] = useState(0.9);
+ const [similarityThreshold, setSimilarityThreshold] = useState(1);
const [hoveredResult, setHoveredResult] = useState<number | null>(null);
const [isCurlDialogOpen, setIsCurlDialogOpen] = useState(false);
@@ -201,6 +201,11 @@ export function SearchChat() {
}, [debouncedThreshold, results]);
const handleFilterDuplicates = async () => {
+ if (similarityThreshold === 1) {
+ setSelectedResults(new Set(results.map((_, index) => index)));
+ setSelectAll(true);
+ return;
+ }
setIsFiltering(true);
// simulate a delay to show loading state
await new Promise((resolve) => setTimeout(resolve, 100));
diff --git a/screenpipe-app-tauri/components/updater.tsx b/screenpipe-app-tauri/components/updater.tsx
index cb913f4ca..3712e4d17 100644
--- a/screenpipe-app-tauri/components/updater.tsx
+++ b/screenpipe-app-tauri/components/updater.tsx
@@ -23,9 +23,10 @@ Release notes: ${update.body}
if (yes) {
// on windows only - TODO shouldnt be necessary
- // const os = platform();
- // if (os === "windows") {
- // await invoke("kill_all_sreenpipes");
+ const os = platform();
+ if (os === "windows") {
+ await invoke("kill_all_sreenpipes");
+ }
const toastId = toast({
title: "Updating...",
diff --git a/screenpipe-app-tauri/package-lock.json b/screenpipe-app-tauri/package-lock.json
index 13f265b92..80e439728 100644
--- a/screenpipe-app-tauri/package-lock.json
+++ b/screenpipe-app-tauri/package-lock.json
@@ -38,6 +38,7 @@
"@tauri-apps/plugin-shell": "2.0.0-beta.8",
"@tauri-apps/plugin-store": "2.0.0-beta.7",
"@tauri-apps/plugin-updater": "2.0.0-beta.7",
+ "@types/js-levenshtein": "^1.1.3",
"ai": "^3.3",
"ansi-to-html": "^0.7.2",
"class-variance-authority": "^0.7.0",
@@ -45,6 +46,7 @@
"cmdk": "1.0.0",
"date-fns": "^3.6.0",
"framer-motion": "^11.5.4",
+ "js-levenshtein": "^1.1.6",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
"lucide-react": "^0.414.0",
@@ -3314,6 +3316,11 @@
"@types/unist": "*"
}
},
+ "node_modules/@types/js-levenshtein": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.3.tgz",
+ "integrity": "sha512-jd+Q+sD20Qfu9e2aEXogiO3vpOC1PYJOUdyN9gvs4Qrvkg4wF43L5OhqrPeokdv8TL0/mXoYfpkcoGZMNN2pkQ=="
+ },
"node_modules/@types/json-schema": {
"version": "7.0.15",
"license": "MIT",
@@ -7091,6 +7098,14 @@
"jiti": "bin/jiti.js"
}
},
+ "node_modules/js-levenshtein": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz",
+ "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/js-tokens": {
"version": "4.0.0",
"license": "MIT"
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 02947f21d..24934139c 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.2.80"
+version = "0.2.81"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.json
index 8707d2653..6effe87eb 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json
@@ -99,7 +99,7 @@
"tauri://localhost",
"http://tauri.localhost"
],
- "media-src": "'self' mediadevices: asset: http://asset.localhost file: blob: tauri://localhost",
+ "media-src": "'self' mediadevices: asset: http://asset.localhost file: blob: tauri://localhost file: blob: https://youtu* file: blob: https://github*",
"img-src": "'self' asset: http://asset.localhost blob: data: https://*.githubusercontent.com https://*.github.com https://github.com https://*.s3.amazonaws.com",
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
"frame-src": "https://www.youtube.com"