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
feat: add animations and misc fixes
Louis Beaumonte9784a31ce7b
diff --git a/.gitignore b/.gitignoreindex 6372a0148..7ecdf308e 100644--- a/.gitignore+++ b/.gitignore@@ -59,3 +59,4 @@ app.py*.py3z__pycache__/+screenpipe-app-tauri/src-tauri/.next/diff --git a/screenpipe-app-tauri/components/onboarding/status.tsx b/screenpipe-app-tauri/components/onboarding/status.tsxindex 36476facb..070fcb063 100644--- a/screenpipe-app-tauri/components/onboarding/status.tsx+++ b/screenpipe-app-tauri/components/onboarding/status.tsx@@ -7,12 +7,15 @@ import { usePlatform } from "@/lib/hooks/use-platform";import { commands, type OSPermissionsCheck } from "@/lib/utils/tauri";import { motion } from "framer-motion";import { useSettings, DEFAULT_PROMPT } from "@/lib/hooks/use-settings";-import { open as openPath, open as openUrl } from "@tauri-apps/plugin-shell";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { revealItemInDir } from "@tauri-apps/plugin-opener";import { homeDir, join } from "@tauri-apps/api/path";import { TimelineAIDemo } from "./timeline-ai-demo";import { readTextFile } from "@tauri-apps/plugin-fs";import { getVersion } from "@tauri-apps/api/app";import { version as osVersion, platform as osPlatform } from "@tauri-apps/plugin-os";+import Lottie from "lottie-react";+import pipeFlowAnimation from "@/public/animations/pipe-flow.json";// Format shortcut for display (platform-aware)function formatShortcut(shortcut: string, isMac: boolean): string {@@ -288,7 +291,7 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({try {const home = await homeDir();const screenpipeDir = await join(home, ".screenpipe");- await openPath(screenpipeDir);+ await revealItemInDir(screenpipeDir);} catch (error) {console.error("Failed to open logs folder:", error);}@@ -338,7 +341,11 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({initial={{ opacity: 0 }}animate={{ opacity: 1 }}>- <div className="w-6 h-6 border border-foreground border-t-transparent animate-spin" />+ <Lottie+ animationData={pipeFlowAnimation}+ loop={true}+ className="w-24 h-10"+ /><p className="font-mono text-sm text-muted-foreground">checking permissions...</p></motion.div>)}@@ -437,7 +444,11 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({initial={{ opacity: 0 }}animate={{ opacity: 1 }}>- <div className="w-6 h-6 border border-foreground border-t-transparent animate-spin" />+ <Lottie+ animationData={pipeFlowAnimation}+ loop={true}+ className="w-32 h-12"+ /><div className="text-center space-y-2"><p className="font-mono text-sm text-foreground">starting screenpipe...</p><p className="font-mono text-xs text-muted-foreground">downloading AI models</p>@@ -492,6 +503,17 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({<Calendar className="w-3 h-3 mr-1" />book a call for help</Button>+ <Button+ variant="default"+ size="sm"+ onClick={() => {+ posthog.capture("onboarding_startup_skipped");+ handleComplete();+ }}+ className="font-mono text-xs mt-2"+ >+ skip waiting →+ </Button></div></motion.div>)}@@ -568,7 +590,11 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({initial={{ opacity: 0 }}animate={{ opacity: 1 }}>- <div className="w-6 h-6 border border-foreground border-t-transparent animate-spin" />+ <Lottie+ animationData={pipeFlowAnimation}+ loop={true}+ className="w-32 h-12"+ /><p className="font-mono text-sm text-muted-foreground">starting screenpipe...</p>{isStuck && (@@ -632,6 +658,17 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({<Calendar className="w-3 h-3 mr-1" />book a call for help</Button>+ <Button+ variant="default"+ size="sm"+ onClick={() => {+ posthog.capture("onboarding_startup_skipped");+ handleComplete();+ }}+ className="font-mono text-xs mt-2"+ >+ skip waiting →+ </Button></div></motion.div>)}diff --git a/screenpipe-app-tauri/public/animations/pipe-flow.json b/screenpipe-app-tauri/public/animations/pipe-flow.jsonnew file mode 100644index 000000000..42bba2039--- /dev/null+++ b/screenpipe-app-tauri/public/animations/pipe-flow.json@@ -0,0 +1,439 @@+{+ "v": "5.7.4",+ "fr": 60,+ "ip": 0,+ "op": 120,+ "w": 120,+ "h": 40,+ "nm": "Pipe Flow",+ "ddd": 0,+ "assets": [],+ "layers": [+ {+ "ddd": 0,+ "ind": 1,+ "ty": 4,+ "nm": "Pipe",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [60, 20, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [100, 8] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 4 },+ "nm": "Pipe Background"+ },+ {+ "ty": "st",+ "c": { "a": 0, "k": [0.4, 0.4, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "w": { "a": 0, "k": 1.5 },+ "lc": 2,+ "lj": 2,+ "nm": "Pipe Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.15, 0.15, 0.15, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Pipe Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Pipe Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 2,+ "ty": 4,+ "nm": "Data 1",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 0, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 15, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 105, "s": [100] },+ { "t": 120, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.2, "y": 1 }, "o": { "x": 0.8, "y": 0 }, "t": 0, "s": [10, 20, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 120, "s": [110, 20, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [6, 4] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Data Rect"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [1, 1, 1, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Data Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Data Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 3,+ "ty": 4,+ "nm": "Data 2",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 30, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 45, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 105, "s": [100] },+ { "t": 120, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.2, "y": 1 }, "o": { "x": 0.8, "y": 0 }, "t": 30, "s": [10, 20, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 120, "s": [95, 20, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [6, 4] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Data Rect"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.8, 0.8, 0.8, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Data Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Data Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 4,+ "ty": 4,+ "nm": "Data 3",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 60, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 75, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 105, "s": [100] },+ { "t": 120, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.2, "y": 1 }, "o": { "x": 0.8, "y": 0 }, "t": 60, "s": [10, 20, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 120, "s": [75, 20, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [6, 4] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Data Rect"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.6, 0.6, 0.6, 1] },+ "o": { "a": 0, "k": [100] },+ "r": 1,+ "nm": "Data Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Data Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 5,+ "ty": 4,+ "nm": "Data 4",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 90, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 105, "s": [100] },+ { "t": 120, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.2, "y": 1 }, "o": { "x": 0.8, "y": 0 }, "t": 90, "s": [10, 20, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 120, "s": [50, 20, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [6, 4] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Data Rect"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.5, 0.5, 0.5, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Data Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Data Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 6,+ "ty": 4,+ "nm": "Left Cap",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [10, 20, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [4, 14] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Cap Rect"+ },+ {+ "ty": "st",+ "c": { "a": 0, "k": [0.5, 0.5, 0.5, 1] },+ "o": { "a": 0, "k": 100 },+ "w": { "a": 0, "k": 1.5 },+ "lc": 2,+ "lj": 2,+ "nm": "Cap Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.2, 0.2, 0.2, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Cap Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Cap Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 7,+ "ty": 4,+ "nm": "Right Cap",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [110, 20, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [100, 100, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [4, 14] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Cap Rect"+ },+ {+ "ty": "st",+ "c": { "a": 0, "k": [0.5, 0.5, 0.5, 1] },+ "o": { "a": 0, "k": 100 },+ "w": { "a": 0, "k": 1.5 },+ "lc": 2,+ "lj": 2,+ "nm": "Cap Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.2, 0.2, 0.2, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Cap Fill"+ },+ {+ "ty": "tr",+ "p": { "a": 0, "k": [0, 0] },+ "a": { "a": 0, "k": [0, 0] },+ "s": { "a": 0, "k": [100, 100] },+ "r": { "a": 0, "k": 0 },+ "o": { "a": 0, "k": 100 }+ }+ ],+ "nm": "Cap Group"+ }+ ],+ "ip": 0,+ "op": 120,+ "st": 0+ }+ ],+ "markers": []+}diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex 9bfa0bffe..6881e0878 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -5629,7 +5629,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-app"-version = "2.0.91"+version = "2.0.93"dependencies = ["anyhow","async-stream",diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rsindex cadf271a8..a64dbb401 100644--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs@@ -142,15 +142,17 @@ pub async fn stop_screenpipe(}}}- match tokio::process::Command::new("pkill")- .arg("-9")- .arg("-f")- .arg("screenpipe")+ // Use pgrep + kill instead of pkill -f to avoid killing screenpipe-app+ // -x matches exact process name, so "screenpipe" won't match "screenpipe-app"+ let command = "pgrep -x screenpipe | xargs -r kill -9 2>/dev/null || true";+ match tokio::process::Command::new("sh")+ .arg("-c")+ .arg(command).output().await{Ok(_) => {- debug!("Successfully killed screenpipe processes");+ debug!("Successfully killed screenpipe sidecar processes");Ok(())}Err(e) => {