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: multiple TypeScript build errors
Louis Beaumont9a9b34b2dce7
diff --git a/content/docs-mintlify-mig-tmp/docs.json b/content/docs-mintlify-mig-tmp/docs.jsonindex 1fac5dab7..6f5a413d0 100644--- a/content/docs-mintlify-mig-tmp/docs.json+++ b/content/docs-mintlify-mig-tmp/docs.json@@ -31,7 +31,7 @@},{"group": "integrations",- "pages": ["claude-code", "opencode", "moltbot", "cline", "continue", "gemini-cli", "obsidian"]+ "pages": ["claude-code", "opencode", "openclaw", "cline", "continue", "gemini-cli", "obsidian"]},{"group": "reference",diff --git a/content/docs-mintlify-mig-tmp/moltbot.mdx b/content/docs-mintlify-mig-tmp/openclaw.mdxsimilarity index 100%rename from content/docs-mintlify-mig-tmp/moltbot.mdxrename to content/docs-mintlify-mig-tmp/openclaw.mdxdiff --git a/docs/plans/remote-agent-service.md b/docs/plans/remote-agent-service.mdindex 548c7f396..5c3066176 100644--- a/docs/plans/remote-agent-service.md+++ b/docs/plans/remote-agent-service.md@@ -6,7 +6,7 @@Turn screenpipe from "search your screen history" into "AI assistant that knows everything you do and can act on it."-Every user gets their own Clawdbot-like agent:+Every user gets their own OpenClaw-like agent:- Runs 24/7 on a VM (not their laptop)- Has full context from their daily screenpipe summaries- Chat via Telegram/WhatsApp/SMS from phone@@ -28,7 +28,7 @@ Every user gets their own Clawdbot-like agent:```┌─────────────────┐ hourly sync ┌─────────────────────┐│ User's Mac │ ───────────────────▶ │ User's Agent VM │-│ (screenpipe) │ summaries.md │ (clawdbot) │+│ (screenpipe) │ summaries.md │ (openclaw) │└─────────────────┘ └──────────┬──────────┘││ chat@@ -45,7 +45,7 @@ Every user gets their own Clawdbot-like agent:- API to create/destroy agent VMs- Options: Hetzner ($4/mo), Fly.io, Railway, or self-hosted- Each user gets isolated container/VM-- Pre-configured with clawdbot + Telegram bot+- Pre-configured with openclaw + Telegram bot### 2. Onboarding Flow (in screenpipe app)```@@ -80,7 +80,7 @@ Margin: ~$15/user (VM costs ~$5/mo)## Implementation Phases### Phase 1: MVP (2 weeks)-- [ ] Agent provisioning API (create VM, deploy clawdbot)+- [ ] Agent provisioning API (create VM, deploy openclaw)- [ ] Telegram bot setup flow in screenpipe app- [ ] Sync to user's agent VM- [ ] Basic chat working@@ -113,7 +113,7 @@ Margin: ~$15/user (VM costs ~$5/mo)- Alternative: Hetzner for cost ($4/mo vs $7/mo)### Agent Runtime-**Recommendation: Clawdbot/OpenClaw**+**Recommendation: OpenClaw/OpenClaw**- Already battle-tested (Louis uses it)- Native Telegram/WhatsApp support- Cron, memory, skills systemdiff --git a/packages/agent/README.md b/packages/agent/README.mdindex a29a339c5..71d95a037 100644--- a/packages/agent/README.md+++ b/packages/agent/README.md@@ -2,13 +2,13 @@**One-liner to connect Screenpipe to your AI agent.**-Set up full Screenpipe integration with any AI agent (Clawdbot, Moltbot, etc.) in one command. Includes data sync, skills, and optional morning summaries.+Set up full Screenpipe integration with any AI agent (OpenClaw, etc.) in one command. Includes data sync, skills, and optional morning summaries.## Quick Start```bash# Full setup with morning summaries at 8am-bunx @screenpipe/agent --setup clawdbot --morning 08:00+bunx @screenpipe/agent --setup openclaw --morning 08:00# That's it! You'll get daily briefings via Telegram/WhatsApp/etc.```@@ -55,7 +55,7 @@ bunx @screenpipe/agent --remove user@server- [Screenpipe](https://screenpi.pe) running locally- SSH access to your agent server-- AI agent that supports skills (Clawdbot, Moltbot, etc.)+- AI agent that supports skills (OpenClaw, etc.)## What You Get@@ -95,7 +95,7 @@ Your Computer Your Agent Server▼┌─────────────────┐│ AI Agent │- │ (Clawdbot) │+ │ (OpenClaw) ││ ││ Skills query ││ the database │diff --git a/packages/agent/package.json b/packages/agent/package.jsonindex 39d265b17..284c8aea5 100644--- a/packages/agent/package.json+++ b/packages/agent/package.json@@ -17,8 +17,7 @@"keywords": ["screenpipe","ai-agent",- "clawdbot",- "moltbot",+ "openclaw","memory","morning-summary"],diff --git a/packages/agent/src/index.ts b/packages/agent/src/index.tsindex 06894b32f..3bd5d65d9 100644--- a/packages/agent/src/index.ts+++ b/packages/agent/src/index.ts@@ -3,8 +3,8 @@* @screenpipe/agent - One-liner to connect Screenpipe to your AI agent** Usage:- * bunx @screenpipe/agent --setup clawdbot --morning 08:00- * bunx @screenpipe/agent --remove clawdbot+ * bunx @screenpipe/agent --setup openclaw --morning 08:00+ * bunx @screenpipe/agent --remove openclaw*/import { execSync, spawn } from "child_process";@@ -100,13 +100,13 @@ OPTIONS:EXAMPLES:# Full setup with morning summaries at 8am- bunx @screenpipe/agent --setup clawdbot --morning 08:00+ bunx @screenpipe/agent --setup openclaw --morning 08:00# Setup with custom sync interval (30 min)bunx @screenpipe/agent --setup [email protected] --morning 07:30 --sync-interval 1800# Remove integration- bunx @screenpipe/agent --remove clawdbot+ bunx @screenpipe/agent --remove openclawWHAT IT DOES:1. Sets up screen data sync daemon (survives reboot)@@ -249,7 +249,7 @@ chmod +x ~/clawd/screenpipe-morning-trigger.sh"`,async function setup(config: Config) {if (!config.remote) {- console.error("Error: --setup requires a host (e.g., --setup clawdbot)");+ console.error("Error: --setup requires a host (e.g., --setup openclaw)");process.exit(1);}diff --git a/packages/skills/README.md b/packages/skills/README.mdindex b1b3ffeb6..6aa960ee9 100644--- a/packages/skills/README.md+++ b/packages/skills/README.md@@ -2,13 +2,13 @@**Screenpipe skills for AI agents.**-One-liner to install Screenpipe skills to your AI agent (Clawdbot, Claude Code, etc). Your agent can then query your screen history, get daily digests, and search memories.+One-liner to install Screenpipe skills to your AI agent (OpenClaw, Claude Code, etc). Your agent can then query your screen history, get daily digests, and search memories.## Quick Start```bash-# Install to remote agent (e.g., Clawdbot)-bunx @screenpipe/skills install --remote clawdbot+# Install to remote agent (e.g., OpenClaw)+bunx @screenpipe/skills install --remote openclaw# Install locallybunx @screenpipe/skills install@@ -36,10 +36,10 @@ bunx @screenpipe/skills list```bash# 1. Sync your screen data to the agent-bunx @screenpipe/sync --daemon --remote clawdbot:~/.screenpipe/+bunx @screenpipe/sync --daemon --remote openclaw:~/.screenpipe/# 2. Install skills-bunx @screenpipe/skills install --remote clawdbot+bunx @screenpipe/skills install --remote openclaw# 3. Ask your agent"What was I doing at 3pm yesterday?"diff --git a/packages/skills/package.json b/packages/skills/package.jsonindex fd981b586..d19b8dc57 100644--- a/packages/skills/package.json+++ b/packages/skills/package.json@@ -1,7 +1,7 @@{"name": "@screenpipe/skills","version": "0.1.1",- "description": "Screenpipe skills for AI agents (Clawdbot, Claude Code, etc). Query your screen history, get daily digests, search memories.",+ "description": "Screenpipe skills for AI agents (OpenClaw, Claude Code, etc). Query your screen history, get daily digests, search memories.","type": "module","bin": {"screenpipe-skills": "dist/index.js"@@ -18,7 +18,7 @@"keywords": ["screenpipe","ai-agent",- "clawdbot",+ "openclaw","skills","memory","screen-recording"diff --git a/packages/skills/src/index.ts b/packages/skills/src/index.tsindex d0d8543f9..fe7b7fb2b 100644--- a/packages/skills/src/index.ts+++ b/packages/skills/src/index.ts@@ -4,7 +4,7 @@** Usage:* bunx @screenpipe/skills install # Install locally- * bunx @screenpipe/skills install --remote clawdbot # Install to remote+ * bunx @screenpipe/skills install --remote openclaw # Install to remote* bunx @screenpipe/skills list # List available skills*/@@ -76,16 +76,16 @@ COMMANDS:list List available skillsOPTIONS:- -r, --remote <host> Install to remote server via SSH (e.g., clawdbot)+ -r, --remote <host> Install to remote server via SSH (e.g., openclaw)-o, --output <dir> Local output directory (default: ~/clawd/skills/screenpipe)-v, --verbose Show debug outputEXAMPLES:- # Install to local Clawdbot+ # Install to local OpenClawbunx @screenpipe/skills install# Install to remote server- bunx @screenpipe/skills install --remote clawdbot+ bunx @screenpipe/skills install --remote openclaw# Install to custom directorybunx @screenpipe/skills install --output ~/.claude/skills/screenpipediff --git a/packages/sync/README.md b/packages/sync/README.mdindex 9dbc1fd7c..ffaf9848e 100644--- a/packages/sync/README.md+++ b/packages/sync/README.md@@ -2,7 +2,7 @@**Sync your Screenpipe data to remote AI agents.**-One-liner to sync daily summaries to a remote server (e.g., [Clawdbot](https://github.com/clawdbot/clawdbot)). Uses Claude Code CLI for AI-powered extraction.+One-liner to sync daily summaries to a remote server (e.g., [OpenClaw](https://openclaw.ai)). Uses Claude Code CLI for AI-powered extraction.## Quick Start@@ -86,19 +86,19 @@ claude --versionFalls back to structured extraction (no AI) if CLI not found.-## Clawdbot Integration+## OpenClaw IntegrationFor daily digests via Telegram:1. **Local Mac** syncs summaries hourly:```bash-bunx @screenpipe/sync --daemon --output /tmp/summaries --remote clawdbot:~/clawd/screenpipe-pkm+bunx @screenpipe/sync --daemon --output /tmp/summaries --remote openclaw:~/openclaw/screenpipe-pkm```-2. **Clawdbot** has native cron that reads files and sends digest:+2. **OpenClaw** has native cron that reads files and sends digest:```bash# Already configured - runs at 9pm PT-sudo docker exec moltbot-gateway node dist/index.js cron list+openclaw cron list```## Use Casesdiff --git a/packages/sync/src/index.ts b/packages/sync/src/index.tsindex 4439fc7b0..40fd5815b 100644--- a/packages/sync/src/index.ts+++ b/packages/sync/src/index.ts@@ -170,11 +170,11 @@ EXAMPLES:# Save daily summaries locallybunx @screenpipe/sync --output ~/Documents/brain/context --git- # Sync raw database to remote (e.g., Clawdbot)- bunx @screenpipe/sync --db --remote user@clawdbot:~/.screenpipe/+ # Sync raw database to remote (e.g., OpenClaw)+ bunx @screenpipe/sync --db --remote user@openclaw:~/.screenpipe/# Full sync: DB + daily summary- bunx @screenpipe/sync --db -r clawdbot:~/.screenpipe && bunx @screenpipe/sync -o ~/context -g+ bunx @screenpipe/sync --db -r openclaw:~/.screenpipe && bunx @screenpipe/sync -o ~/context -g# ONE-LINER: Permanent background sync (survives reboot)bunx @screenpipe/sync --daemon --remote user@server:~/.screenpipe/diff --git a/screenpipe-app-tauri/app/permission-recovery/page.tsx b/screenpipe-app-tauri/app/permission-recovery/page.tsxindex 9d162d6ec..1382180ab 100644--- a/screenpipe-app-tauri/app/permission-recovery/page.tsx+++ b/screenpipe-app-tauri/app/permission-recovery/page.tsx@@ -172,7 +172,7 @@ export default function PermissionRecoveryPage() {posthog.capture("permission_recovery_reset_fix", { permission });setFixingPermission(permission);try {- await commands.resetAndRequestPermission(permission);+ await commands.requestPermission(permission);// The polling will detect when it's fixed// Add timeout fallback - if not fixed after 10s, clear the fixing statesetTimeout(() => {diff --git a/screenpipe-app-tauri/bun.lock b/screenpipe-app-tauri/bun.lockindex a8b49a85e..d42171a30 100644--- a/screenpipe-app-tauri/bun.lock+++ b/screenpipe-app-tauri/bun.lock@@ -5,7 +5,7 @@"": {"name": "screenpipe-app","dependencies": {- "@opencode-ai/sdk": "^1.1.44",+ "@opencode-ai/sdk": "^1.1.48","@patternfly/react-core": "^6.1.0","@patternfly/react-log-viewer": "^6.1.0","@radix-ui/react-accordion": "^1.2.0",@@ -361,7 +361,7 @@"@nodelib/fs.walk": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, ""],- "@opencode-ai/sdk": ["@opencode-ai/[email protected]", "", {}, "sha512-coQgtSSCbY46/GY+M5zG0rChiLSJWSjPERRt5L1hbjvDWvErelVV0ILPbd1+3CwJLFTedBYgotby2TcO8U0IfQ=="],+ "@opencode-ai/sdk": ["@opencode-ai/[email protected]", "", {}, "sha512-j5/79X45fUPWVD2Ffm/qvwLclDCdPeV+TYMDrm9to0p4pmzhmeKevCsyiRdLg0o0HE3AFRUnOo2rdO9NetN79A=="],"@opentelemetry/api": ["@opentelemetry/[email protected]", "", {}, ""],diff --git a/screenpipe-app-tauri/components/global-chat.tsx b/screenpipe-app-tauri/components/global-chat.tsxindex 6b2cb2789..cc9b98364 100644--- a/screenpipe-app-tauri/components/global-chat.tsx+++ b/screenpipe-app-tauri/components/global-chat.tsx@@ -1120,7 +1120,7 @@ export function GlobalChat() {}} else {// Not running or different project, start with selected directory- const startResult = await commands.opencodeStart(opencodeProjectDir, settings.user?.token || undefined);+ const startResult = await commands.opencodeStart(opencodeProjectDir, settings.user?.token ?? null);if (startResult.status === "ok" && startResult.data.running && startResult.data.baseUrl) {setOpencodeInfo(startResult.data);const client = createOpencodeClient({ baseUrl: startResult.data.baseUrl });@@ -1382,7 +1382,7 @@ export function GlobalChat() {// Add placeholder for streaming responsesetMessages((prev) => [...prev,- { id: assistantMessageId, role: "assistant", content: "" },+ { id: assistantMessageId, role: "assistant", content: "", timestamp: Date.now() },]);// Send to OpenCodediff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsxindex e326e7cd3..43a9893e5 100644--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx@@ -29,6 +29,7 @@ const providerIcons = {"screenpipe-cloud": <Image src="/images/screenpipe.png" alt="Screenpipe Cloud" width={16} height={16} />,"native-ollama": <Image src="/images/ollama.png" alt="Ollama" width={16} height={16} />,custom: <Image src="/images/custom.png" alt="Custom" width={16} height={16} />,+ opencode: <Image src="/images/opencode.png" alt="OpenCode" width={16} height={16} />,};const getPresetProviderIcon = (provider: AIPreset["provider"]) => {diff --git a/screenpipe-app-tauri/components/settings/shortcut-row.tsx b/screenpipe-app-tauri/components/settings/shortcut-row.tsxindex d4881ad5f..822e3ff72 100644--- a/screenpipe-app-tauri/components/settings/shortcut-row.tsx+++ b/screenpipe-app-tauri/components/settings/shortcut-row.tsx@@ -36,11 +36,6 @@ const ShortcutRow = ({useEffect(() => {if (!isRecording) return;- // Suspend global shortcuts while recording to prevent them from triggering- commands.suspendGlobalShortcuts().catch((e) => {- console.error("failed to suspend shortcuts:", e);- });-const handleKeyDown = (event: KeyboardEvent) => {event.preventDefault();@@ -86,10 +81,6 @@ const ShortcutRow = ({target.tagName === "TEXTAREA");};- // Resume global shortcuts after recording ends- commands.resumeGlobalShortcuts().catch((e) => {- console.error("failed to resume shortcuts:", e);- });};}, [isRecording]);diff --git a/screenpipe-app-tauri/components/settings/sync-settings.tsx b/screenpipe-app-tauri/components/settings/sync-settings.tsxindex 0d6ee13ea..b463f663e 100644--- a/screenpipe-app-tauri/components/settings/sync-settings.tsx+++ b/screenpipe-app-tauri/components/settings/sync-settings.tsx@@ -17,10 +17,14 @@ import {Lock,Unlock,HardDrive,- Clock,- AlertCircle,+ Shield,+ Zap,+ Smartphone,CheckCircle2,+ AlertCircle,Loader2,+ ArrowRight,+ Sparkles,} from "lucide-react";import { toast } from "@/components/ui/use-toast";import { invoke } from "@tauri-apps/api/core";@@ -43,6 +47,10 @@ import {SelectValue,} from "@/components/ui/select";import { Input } from "@/components/ui/input";+import { useSettings } from "@/lib/hooks/use-settings";+import { motion } from "framer-motion";+import Lottie from "lottie-react";+import cloudSyncAnimation from "@/public/animations/cloud-sync.json";interface SyncStatus {enabled: boolean;@@ -75,6 +83,12 @@ interface SyncConfig {syncFrames: boolean;}+interface SubscriptionStatus {+ hasSubscription: boolean;+ tier: string | null;+ status: string | null;+}+function formatBytes(bytes: number): string {if (bytes === 0) return "0 B";const k = 1024;@@ -97,195 +111,231 @@ function formatRelativeTime(dateString: string): string {return `${diffDays}d ago`;}-export function SyncSettings() {- const [status, setStatus] = useState<SyncStatus | null>(null);- const [devices, setDevices] = useState<SyncDevice[]>([]);- const [config, setConfig] = useState<SyncConfig | null>(null);- const [isLoading, setIsLoading] = useState(true);- const [isSyncing, setIsSyncing] = useState(false);- const [showPasswordDialog, setShowPasswordDialog] = useState(false);- const [password, setPassword] = useState("");- const [isInitializing, setIsInitializing] = useState(false);-- useEffect(() => {- loadSyncData();- }, []);-- const loadSyncData = async () => {- try {- setIsLoading(true);- const [statusResult, configResult, devicesResult] = await Promise.all([- invoke<SyncStatus>("get_sync_status"),- invoke<SyncConfig>("get_sync_config"),- invoke<SyncDevice[]>("get_sync_devices"),- ]);- setStatus(statusResult);- setConfig(configResult);- setDevices(devicesResult);- } catch (error) {- console.error("failed to load sync data:", error);- toast({- title: "failed to load sync settings",- description: String(error),- variant: "destructive",- });- } finally {- setIsLoading(false);- }- };-- const handleToggleSync = async (enabled: boolean) => {- if (enabled && !status?.enabled) {- // Need to initialize sync- setShowPasswordDialog(true);- return;- }-- try {- await invoke("set_sync_enabled", { enabled });- setStatus((prev) => (prev ? { ...prev, enabled } : null));- toast({- title: enabled ? "sync enabled" : "sync disabled",- description: enabled- ? "your data will now sync to the cloud"- : "sync has been paused",- });- } catch (error) {- toast({- title: "failed to update sync",- description: String(error),- variant: "destructive",- });- }- };-- const handleInitSync = async () => {- if (!password) {- toast({- title: "password required",- description: "please enter a password to encrypt your data",- variant: "destructive",- });- return;- }+// Cloud animation component using Lottie+function CloudSyncAnimation() {+ return (+ <div className="w-72 h-40 mx-auto">+ <Lottie+ animationData={cloudSyncAnimation}+ loop={true}+ autoplay={true}+ style={{ width: "100%", height: "100%" }}+ />+ </div>+ );+}- try {- setIsInitializing(true);- const isNewUser = await invoke<boolean>("init_sync", { password });- setShowPasswordDialog(false);- setPassword("");+// Benefits section+function SyncBenefits() {+ const benefits = [+ {+ icon: <Shield className="w-5 h-5" />,+ title: "zero-knowledge encryption",+ description: "your data is encrypted before it leaves your device. we can never see your data.",+ },+ {+ icon: <Smartphone className="w-5 h-5" />,+ title: "access anywhere",+ description: "search and access your memory from any device - desktop, phone, or web.",+ },+ {+ icon: <Zap className="w-5 h-5" />,+ title: "automatic backup",+ description: "never lose your data. continuous sync keeps everything safe in the cloud.",+ },+ ];- toast({- title: isNewUser ? "sync initialized" : "sync connected",- description: isNewUser- ? "your encryption keys have been generated"- : "connected to your existing sync data",- });+ return (+ <div className="grid gap-4 mt-6">+ {benefits.map((benefit, i) => (+ <motion.div+ key={i}+ initial={{ opacity: 0, x: -20 }}+ animate={{ opacity: 1, x: 0 }}+ transition={{ delay: i * 0.1 }}+ className="flex items-start gap-3"+ >+ <div className="p-2 rounded-lg bg-primary/10 text-primary">+ {benefit.icon}+ </div>+ <div>+ <h4 className="text-sm font-medium">{benefit.title}</h4>+ <p className="text-xs text-muted-foreground">{benefit.description}</p>+ </div>+ </motion.div>+ ))}+ </div>+ );+}- await loadSyncData();- } catch (error) {- toast({- title: "failed to initialize sync",- description: String(error),- variant: "destructive",- });- } finally {- setIsInitializing(false);- }- };+// Onboarding/upgrade prompt+function SyncOnboarding({ onSubscribe, isLoading }: { onSubscribe: () => void; isLoading: boolean }) {+ return (+ <div className="space-y-6">+ <div className="text-center">+ <CloudSyncAnimation />+ <h3 className="text-xl font-semibold mt-4">cloud sync</h3>+ <p className="text-sm text-muted-foreground mt-2">+ sync your screenpipe data across all your devices with end-to-end encryption+ </p>+ </div>- const handleTriggerSync = async () => {- try {- setIsSyncing(true);- await invoke("trigger_sync");- toast({- title: "sync started",- description: "syncing your data to the cloud",- });+ <SyncBenefits />- // Poll for completion- const checkSync = async () => {- const newStatus = await invoke<SyncStatus>("get_sync_status");- setStatus(newStatus);- if (newStatus.isSyncing) {- setTimeout(checkSync, 1000);- } else {- setIsSyncing(false);- toast({- title: "sync complete",- description: "your data has been synced",- });- }- };- setTimeout(checkSync, 1000);- } catch (error) {- setIsSyncing(false);- toast({- title: "sync failed",- description: String(error),- variant: "destructive",- });- }- };+ <Card className="p-4 bg-primary/5 border-primary/20">+ <div className="flex items-center justify-between">+ <div>+ <div className="flex items-center gap-2">+ <Sparkles className="w-4 h-4 text-primary" />+ <span className="font-medium">screenpipe pro</span>+ </div>+ <p className="text-sm text-muted-foreground mt-1">+ 50GB storage • 3 devices • priority support+ </p>+ </div>+ <div className="text-right">+ <div className="text-lg font-bold">$49<span className="text-sm font-normal text-muted-foreground">/mo</span></div>+ <div className="text-xs text-muted-foreground">or $399/year</div>+ </div>+ </div>+ <Button+ className="w-full mt-4"+ onClick={onSubscribe}+ disabled={isLoading}+ >+ {isLoading ? (+ <Loader2 className="w-4 h-4 animate-spin mr-2" />+ ) : null}+ get cloud sync+ <ArrowRight className="w-4 h-4 ml-2" />+ </Button>+ <a+ href={`https://chatgpt.com/?hints=search&q=${encodeURIComponent("analyze this encryption code and verify it's true end-to-end encryption where the server cannot see user data: https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-app-tauri/src-tauri/src/sync.rs")}`}+ target="_blank"+ rel="noopener noreferrer"+ className="text-xs text-center text-muted-foreground mt-2 block hover:text-primary underline"+ >+ ask chatgpt about the encryption source code+ </a>+ </Card>+ </div>+ );+}- const handleUpdateConfig = async (updates: Partial<SyncConfig>) => {- if (!config) return;+// Password setup step+function PasswordSetup({ onSubmit, isLoading }: { onSubmit: (password: string) => void; isLoading: boolean }) {+ const [password, setPassword] = useState("");+ const [confirmPassword, setConfirmPassword] = useState("");- const newConfig = { ...config, ...updates };- try {- await invoke("update_sync_config", { config: newConfig });- setConfig(newConfig);- } catch (error) {+ const handleSubmit = () => {+ if (password !== confirmPassword) {toast({- title: "failed to update settings",- description: String(error),+ title: "passwords don't match",+ description: "please make sure your passwords match",variant: "destructive",});+ return;}- };-- const handleRemoveDevice = async (deviceId: string) => {- try {- await invoke("remove_sync_device", { deviceId });- setDevices((prev) => prev.filter((d) => d.deviceId !== deviceId));+ if (password.length < 8) {toast({- title: "device removed",- description: "the device has been unlinked from your sync",- });- } catch (error) {- toast({- title: "failed to remove device",- description: String(error),+ title: "password too short",+ description: "password must be at least 8 characters",variant: "destructive",});+ return;}+ onSubmit(password);};- const handleDeleteCloudData = async () => {- try {- await invoke("delete_cloud_data");- toast({- title: "cloud data deleted",- description: "all your cloud data has been permanently deleted",- });- await loadSyncData();- } catch (error) {- toast({- title: "failed to delete data",- description: String(error),- variant: "destructive",- });- }- };+ return (+ <div className="space-y-6">+ <div className="text-center">+ <div className="w-16 h-16 mx-auto rounded-full bg-primary/10 flex items-center justify-center">+ <Lock className="w-8 h-8 text-primary" />+ </div>+ <h3 className="text-xl font-semibold mt-4">set your encryption password</h3>+ <p className="text-sm text-muted-foreground mt-2">+ this password encrypts your data locally before syncing.+ we never see your password or your data.+ </p>+ </div>- if (isLoading) {- return (- <div className="flex items-center justify-center p-8">- <Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="password">encryption password</Label>+ <Input+ id="password"+ type="password"+ placeholder="enter a strong password"+ value={password}+ onChange={(e) => setPassword(e.target.value)}+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="confirm-password">confirm password</Label>+ <Input+ id="confirm-password"+ type="password"+ placeholder="confirm your password"+ value={confirmPassword}+ onChange={(e) => setConfirmPassword(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === "Enter") handleSubmit();+ }}+ />+ </div></div>- );- }+ <Card className="p-3 bg-yellow-500/10 border-yellow-500/20">+ <div className="flex gap-2">+ <AlertCircle className="w-4 h-4 text-yellow-500 flex-shrink-0 mt-0.5" />+ <p className="text-xs text-yellow-700 dark:text-yellow-400">+ <strong>important:</strong> if you forget this password, your cloud data cannot be recovered.+ consider using a password manager.+ </p>+ </div>+ </Card>++ <Button+ className="w-full"+ onClick={handleSubmit}+ disabled={isLoading || !password || !confirmPassword}+ >+ {isLoading ? (+ <Loader2 className="w-4 h-4 animate-spin mr-2" />+ ) : (+ <Unlock className="w-4 h-4 mr-2" />+ )}+ {isLoading ? "setting up..." : "enable cloud sync"}+ </Button>+ </div>+ );+}++// Main sync settings (shown when subscribed and initialized)+function ActiveSyncSettings({+ status,+ config,+ devices,+ onToggleSync,+ onTriggerSync,+ onUpdateConfig,+ onRemoveDevice,+ onDeleteCloudData,+ onLockSync,+ isSyncing,+}: {+ status: SyncStatus;+ config: SyncConfig;+ devices: SyncDevice[];+ onToggleSync: (enabled: boolean) => void;+ onTriggerSync: () => void;+ onUpdateConfig: (updates: Partial<SyncConfig>) => void;+ onRemoveDevice: (deviceId: string) => void;+ onDeleteCloudData: () => void;+ onLockSync: () => void;+ isSyncing: boolean;+}) {const storagePercent =status?.storageUsed && status?.storageLimit? (status.storageUsed / status.storageLimit) * 100@@ -310,7 +360,7 @@ export function SyncSettings() {</div><Switchchecked={status?.enabled ?? false}- onCheckedChange={handleToggleSync}+ onCheckedChange={onToggleSync}/></div>@@ -348,7 +398,7 @@ export function SyncSettings() {<Buttonvariant="outline"size="sm"- onClick={handleTriggerSync}+ onClick={onTriggerSync}disabled={isSyncing || status.isSyncing}><RefreshCw@@ -389,91 +439,87 @@ export function SyncSettings() {</Card>{/* Sync Options */}- {config && (- <>- <Separator />- <div className="space-y-4">- <h4 className="text-sm font-medium">sync options</h4>-- <div className="space-y-3">- <div className="flex items-center justify-between">- <Label htmlFor="sync-transcripts" className="text-sm">- transcripts- </Label>- <Switch- id="sync-transcripts"- checked={config.syncTranscripts}- onCheckedChange={(checked) =>- handleUpdateConfig({ syncTranscripts: checked })- }- />- </div>-- <div className="flex items-center justify-between">- <Label htmlFor="sync-ocr" className="text-sm">- OCR text- </Label>- <Switch- id="sync-ocr"- checked={config.syncOcr}- onCheckedChange={(checked) =>- handleUpdateConfig({ syncOcr: checked })- }- />- </div>+ <Separator />+ <div className="space-y-4">+ <h4 className="text-sm font-medium">sync options</h4>++ <div className="space-y-3">+ <div className="flex items-center justify-between">+ <Label htmlFor="sync-transcripts" className="text-sm">+ transcripts+ </Label>+ <Switch+ id="sync-transcripts"+ checked={config.syncTranscripts}+ onCheckedChange={(checked) =>+ onUpdateConfig({ syncTranscripts: checked })+ }+ />+ </div>- <div className="flex items-center justify-between">- <Label htmlFor="sync-audio" className="text-sm">- audio recordings- </Label>- <Switch- id="sync-audio"- checked={config.syncAudio}- onCheckedChange={(checked) =>- handleUpdateConfig({ syncAudio: checked })- }- />- </div>+ <div className="flex items-center justify-between">+ <Label htmlFor="sync-ocr" className="text-sm">+ OCR text+ </Label>+ <Switch+ id="sync-ocr"+ checked={config.syncOcr}+ onCheckedChange={(checked) =>+ onUpdateConfig({ syncOcr: checked })+ }+ />+ </div>- <div className="flex items-center justify-between">- <Label htmlFor="sync-frames" className="text-sm">- screen frames- </Label>- <Switch- id="sync-frames"- checked={config.syncFrames}- onCheckedChange={(checked) =>- handleUpdateConfig({ syncFrames: checked })- }- />- </div>- </div>+ <div className="flex items-center justify-between">+ <Label htmlFor="sync-audio" className="text-sm">+ audio recordings+ </Label>+ <Switch+ id="sync-audio"+ checked={config.syncAudio}+ onCheckedChange={(checked) =>+ onUpdateConfig({ syncAudio: checked })+ }+ />+ </div>- <div className="flex items-center justify-between">- <Label htmlFor="sync-interval" className="text-sm">- sync frequency- </Label>- <Select- value={String(config.syncIntervalMinutes)}- onValueChange={(value) =>- handleUpdateConfig({ syncIntervalMinutes: parseInt(value) })- }- >- <SelectTrigger className="w-32">- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="1">1 minute</SelectItem>- <SelectItem value="5">5 minutes</SelectItem>- <SelectItem value="15">15 minutes</SelectItem>- <SelectItem value="30">30 minutes</SelectItem>- <SelectItem value="60">1 hour</SelectItem>- </SelectContent>- </Select>- </div>+ <div className="flex items-center justify-between">+ <Label htmlFor="sync-frames" className="text-sm">+ screen frames+ </Label>+ <Switch+ id="sync-frames"+ checked={config.syncFrames}+ onCheckedChange={(checked) =>+ onUpdateConfig({ syncFrames: checked })+ }+ /></div>- </>- )}+ </div>++ <div className="flex items-center justify-between">+ <Label htmlFor="sync-interval" className="text-sm">+ sync frequency+ </Label>+ <Select+ value={String(config.syncIntervalMinutes)}+ onValueChange={(value) =>+ onUpdateConfig({ syncIntervalMinutes: parseInt(value) })+ }+ >+ <SelectTrigger className="w-32">+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="1">1 minute</SelectItem>+ <SelectItem value="5">5 minutes</SelectItem>+ <SelectItem value="15">15 minutes</SelectItem>+ <SelectItem value="30">30 minutes</SelectItem>+ <SelectItem value="60">1 hour</SelectItem>+ </SelectContent>+ </Select>+ </div>+ </div>{/* Devices */}{devices.length > 0 && (@@ -509,7 +555,7 @@ export function SyncSettings() {<Buttonvariant="ghost"size="sm"- onClick={() => handleRemoveDevice(device.deviceId)}+ onClick={() => onRemoveDevice(device.deviceId)}><Trash2 className="h-4 w-4 text-muted-foreground" /></Button>@@ -543,12 +589,7 @@ export function SyncSettings() {</AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>cancel</AlertDialogCancel>- <AlertDialogAction- onClick={async () => {- await invoke("lock_sync");- await loadSyncData();- }}- >+ <AlertDialogAction onClick={onLockSync}>lock</AlertDialogAction></AlertDialogFooter>@@ -574,7 +615,7 @@ export function SyncSettings() {<AlertDialogFooter><AlertDialogCancel>cancel</AlertDialogCancel><AlertDialogAction- onClick={handleDeleteCloudData}+ onClick={onDeleteCloudData}className="bg-destructive text-destructive-foreground hover:bg-destructive/90">delete forever@@ -586,46 +627,304 @@ export function SyncSettings() {</div></>)}-- {/* Password Dialog */}- <AlertDialog open={showPasswordDialog} onOpenChange={setShowPasswordDialog}>- <AlertDialogContent>- <AlertDialogHeader>- <AlertDialogTitle>set up cloud sync</AlertDialogTitle>- <AlertDialogDescription>- enter a password to encrypt your data. this password is used to- derive encryption keys - we never see your password or your data.- </AlertDialogDescription>- </AlertDialogHeader>- <div className="py-4">- <Input- type="password"- placeholder="enter encryption password"- value={password}- onChange={(e) => setPassword(e.target.value)}- onKeyDown={(e) => {- if (e.key === "Enter") handleInitSync();- }}- />- <p className="text-xs text-muted-foreground mt-2">- ⚠️ if you forget this password, your cloud data cannot be recovered- </p>- </div>- <AlertDialogFooter>- <AlertDialogCancel onClick={() => setPassword("")}>- cancel- </AlertDialogCancel>- <AlertDialogAction onClick={handleInitSync} disabled={isInitializing}>- {isInitializing ? (- <Loader2 className="h-4 w-4 animate-spin mr-2" />- ) : (- <Unlock className="h-4 w-4 mr-2" />- )}- {isInitializing ? "initializing..." : "enable sync"}- </AlertDialogAction>- </AlertDialogFooter>- </AlertDialogContent>- </AlertDialog></div>);}++export function SyncSettings() {+ const { settings } = useSettings();+ const [step, setStep] = useState<"loading" | "onboarding" | "password" | "active">("loading");+ const [subscription, setSubscription] = useState<SubscriptionStatus | null>(null);+ const [status, setStatus] = useState<SyncStatus | null>(null);+ const [devices, setDevices] = useState<SyncDevice[]>([]);+ const [config, setConfig] = useState<SyncConfig | null>(null);+ const [isLoading, setIsLoading] = useState(false);+ const [isSyncing, setIsSyncing] = useState(false);++ useEffect(() => {+ checkSubscriptionAndLoad();+ }, []);++ const checkSubscriptionAndLoad = async () => {+ try {+ // Check subscription status via API+ const token = settings.user?.token;+ if (!token) {+ setStep("onboarding");+ return;+ }++ const response = await fetch("https://screenpi.pe/api/cloud-sync/checkout?userId=" + settings.user?.id, {+ headers: {+ "Authorization": `Bearer ${token}`,+ },+ });++ if (response.ok) {+ const data = await response.json();+ setSubscription({+ hasSubscription: data.hasSubscription,+ tier: data.subscription?.tier || null,+ status: data.subscription?.status || null,+ });++ if (data.hasSubscription) {+ // Load sync data+ const [statusResult, configResult, devicesResult] = await Promise.all([+ invoke<SyncStatus>("get_sync_status"),+ invoke<SyncConfig>("get_sync_config"),+ invoke<SyncDevice[]>("get_sync_devices"),+ ]);+ setStatus(statusResult);+ setConfig(configResult);+ setDevices(devicesResult);++ // If sync is already enabled, show active view+ // Otherwise show password setup+ if (statusResult.enabled) {+ setStep("active");+ } else {+ setStep("password");+ }+ } else {+ setStep("onboarding");+ }+ } else {+ setStep("onboarding");+ }+ } catch (error) {+ console.error("failed to check subscription:", error);+ setStep("onboarding");+ }+ };++ const handleSubscribe = async () => {+ try {+ setIsLoading(true);+ const token = settings.user?.token;+ const userId = settings.user?.id;++ if (!token || !userId) {+ toast({+ title: "please log in first",+ description: "you need to be logged in to subscribe",+ variant: "destructive",+ });+ return;+ }++ const response = await fetch("https://screenpi.pe/api/cloud-sync/checkout", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ "Authorization": `Bearer ${token}`,+ },+ body: JSON.stringify({+ tier: "pro",+ billingPeriod: "monthly",+ userId,+ email: settings.user?.email,+ }),+ });++ const data = await response.json();++ if (data.url) {+ // Open Stripe checkout+ const { open } = await import("@tauri-apps/plugin-shell");+ await open(data.url);++ toast({+ title: "checkout opened",+ description: "complete your purchase in the browser, then return here",+ });++ // Poll for subscription status+ const checkInterval = setInterval(async () => {+ await checkSubscriptionAndLoad();+ if (subscription?.hasSubscription) {+ clearInterval(checkInterval);+ }+ }, 3000);++ // Stop polling after 5 minutes+ setTimeout(() => clearInterval(checkInterval), 300000);+ } else {+ throw new Error(data.error || "failed to create checkout");+ }+ } catch (error) {+ toast({+ title: "failed to start checkout",+ description: String(error),+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ }+ };++ const handlePasswordSubmit = async (password: string) => {+ try {+ setIsLoading(true);+ await invoke<boolean>("init_sync", { password });++ toast({+ title: "cloud sync enabled",+ description: "your data is now syncing securely",+ });++ await checkSubscriptionAndLoad();+ setStep("active");+ } catch (error) {+ toast({+ title: "failed to initialize sync",+ description: String(error),+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ }+ };++ const handleToggleSync = async (enabled: boolean) => {+ try {+ await invoke("set_sync_enabled", { enabled });+ setStatus((prev) => (prev ? { ...prev, enabled } : null));+ toast({+ title: enabled ? "sync enabled" : "sync disabled",+ description: enabled+ ? "your data will now sync to the cloud"+ : "sync has been paused",+ });+ } catch (error) {+ toast({+ title: "failed to update sync",+ description: String(error),+ variant: "destructive",+ });+ }+ };++ const handleTriggerSync = async () => {+ try {+ setIsSyncing(true);+ await invoke("trigger_sync");+ toast({+ title: "sync started",+ description: "syncing your data to the cloud",+ });++ const checkSync = async () => {+ const newStatus = await invoke<SyncStatus>("get_sync_status");+ setStatus(newStatus);+ if (newStatus.isSyncing) {+ setTimeout(checkSync, 1000);+ } else {+ setIsSyncing(false);+ toast({+ title: "sync complete",+ description: "your data has been synced",+ });+ }+ };+ setTimeout(checkSync, 1000);+ } catch (error) {+ setIsSyncing(false);+ toast({+ title: "sync failed",+ description: String(error),+ variant: "destructive",+ });+ }+ };++ const handleUpdateConfig = async (updates: Partial<SyncConfig>) => {+ if (!config) return;++ const newConfig = { ...config, ...updates };+ try {+ await invoke("update_sync_config", { config: newConfig });+ setConfig(newConfig);+ } catch (error) {+ toast({+ title: "failed to update settings",+ description: String(error),+ variant: "destructive",+ });+ }+ };++ const handleRemoveDevice = async (deviceId: string) => {+ try {+ await invoke("remove_sync_device", { deviceId });+ setDevices((prev) => prev.filter((d) => d.deviceId !== deviceId));+ toast({+ title: "device removed",+ description: "the device has been unlinked from your sync",+ });+ } catch (error) {+ toast({+ title: "failed to remove device",+ description: String(error),+ variant: "destructive",+ });+ }+ };++ const handleDeleteCloudData = async () => {+ try {+ await invoke("delete_cloud_data");+ toast({+ title: "cloud data deleted",+ description: "all your cloud data has been permanently deleted",+ });+ await checkSubscriptionAndLoad();+ } catch (error) {+ toast({+ title: "failed to delete data",+ description: String(error),+ variant: "destructive",+ });+ }+ };++ const handleLockSync = async () => {+ await invoke("lock_sync");+ await checkSubscriptionAndLoad();+ };++ if (step === "loading") {+ return (+ <div className="flex items-center justify-center p-8">+ <Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />+ </div>+ );+ }++ if (step === "onboarding") {+ return <SyncOnboarding onSubscribe={handleSubscribe} isLoading={isLoading} />;+ }++ if (step === "password") {+ return <PasswordSetup onSubmit={handlePasswordSubmit} isLoading={isLoading} />;+ }++ if (step === "active" && status && config) {+ return (+ <ActiveSyncSettings+ status={status}+ config={config}+ devices={devices}+ onToggleSync={handleToggleSync}+ onTriggerSync={handleTriggerSync}+ onUpdateConfig={handleUpdateConfig}+ onRemoveDevice={handleRemoveDevice}+ onDeleteCloudData={handleDeleteCloudData}+ onLockSync={handleLockSync}+ isSyncing={isSyncing}+ />+ );+ }++ return null;+}diff --git a/screenpipe-app-tauri/lib/hooks/use-opencode.tsx b/screenpipe-app-tauri/lib/hooks/use-opencode.tsxindex f5a815c92..54a285253 100644--- a/screenpipe-app-tauri/lib/hooks/use-opencode.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-opencode.tsx@@ -53,7 +53,7 @@ export function useOpencode(): UseOpencodeResult {setError(null);setLogs([]);try {- const result = await commands.opencodeStart(projectDir);+ const result = await commands.opencodeStart(projectDir, null);if (result.status === "ok") {setInfo(result.data);return result.data;diff --git a/screenpipe-app-tauri/lib/hooks/use-permission-monitor.tsx b/screenpipe-app-tauri/lib/hooks/use-permission-monitor.tsxindex 83f298821..4af237def 100644--- a/screenpipe-app-tauri/lib/hooks/use-permission-monitor.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-permission-monitor.tsx@@ -61,7 +61,7 @@ export function usePermissionMonitor() {// Show the permission recovery windowtry {- await commands.showPermissionRecoveryWindow();+ await commands.showWindow("PermissionRecovery");} catch (error) {console.error("Failed to show permission recovery window:", error);}diff --git a/screenpipe-app-tauri/lib/utils/tauri.ts b/screenpipe-app-tauri/lib/utils/tauri.tsindex 8d11848d7..c9da52ac6 100644--- a/screenpipe-app-tauri/lib/utils/tauri.ts+++ b/screenpipe-app-tauri/lib/utils/tauri.ts@@ -28,35 +28,6 @@ async checkMicrophonePermission() : Promise<OSPermissionStatus> {async checkAccessibilityPermissionCmd() : Promise<OSPermissionStatus> {return await TAURI_INVOKE("check_accessibility_permission_cmd");},-/**- * Reset a permission using tccutil and re-request it- * This removes the app from the TCC database and triggers a fresh permission request- */-async resetAndRequestPermission(permission: OSPermission) : Promise<Result<null, string>> {- try {- return { status: "ok", data: await TAURI_INVOKE("reset_and_request_permission", { permission }) };-} catch (e) {- if(e instanceof Error) throw e;- else return { status: "error", error: e as any };-}-},-/**- * Get list of missing permissions- */-async getMissingPermissions() : Promise<OSPermission[]> {- return await TAURI_INVOKE("get_missing_permissions");-},-/**- * Show the permission recovery window- */-async showPermissionRecoveryWindow() : Promise<Result<null, string>> {- try {- return { status: "ok", data: await TAURI_INVOKE("show_permission_recovery_window") };-} catch (e) {- if(e instanceof Error) throw e;- else return { status: "error", error: e as any };-}-},async getEnv(name: string) : Promise<string> {return await TAURI_INVOKE("get_env", { name });},@@ -108,9 +79,9 @@ async stopScreenpipe() : Promise<Result<null, string>> {else return { status: "error", error: e as any };}},-async getDiskUsage() : Promise<Result<JsonValue, string>> {+async getDiskUsage(forceRefresh: boolean | null) : Promise<Result<JsonValue, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("get_disk_usage") };+ return { status: "ok", data: await TAURI_INVOKE("get_disk_usage", { forceRefresh }) };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };@@ -221,7 +192,7 @@ async hideShortcutReminder() : Promise<Result<null, string>> {}},/**- * Register window-specific shortcuts (Escape, Ctrl+Cmd+K) when main window is visible+ * Register window-specific shortcuts (Escape, search shortcut) when main window is visible* These should only be active when the overlay is open to avoid blocking other apps*/async registerWindowShortcuts() : Promise<Result<null, string>> {@@ -234,7 +205,7 @@ async registerWindowShortcuts() : Promise<Result<null, string>> {},/*** Unregister window-specific shortcuts when main window is hidden- * This allows Escape, Ctrl+Cmd+K to work normally in other apps+ * This allows Escape and search shortcut to work normally in other apps*/async unregisterWindowShortcuts() : Promise<Result<null, string>> {try {@@ -251,30 +222,118 @@ async setTrayHealthIcon() : Promise<void> {await TAURI_INVOKE("set_tray_health_icon");},/**- * Suspend all global shortcuts (for shortcut recording mode)- * Call this before entering shortcut recording to prevent existing shortcuts from triggering+ * Get current sync status.+ */+async getSyncStatus() : Promise<Result<SyncStatusResponse, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("get_sync_status") };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Enable or disable sync.+ */+async setSyncEnabled(enabled: boolean) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("set_sync_enabled", { enabled }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Trigger an immediate sync.+ */+async triggerSync() : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("trigger_sync") };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Get sync configuration.+ */+async getSyncConfig() : Promise<Result<SyncConfig, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("get_sync_config") };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Update sync configuration.+ */+async updateSyncConfig(config: SyncConfig) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("update_sync_config", { config }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Get list of registered devices.+ */+async getSyncDevices() : Promise<Result<SyncDeviceInfo[], string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("get_sync_devices") };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Remove a device from sync.+ */+async removeSyncDevice(deviceId: string) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("remove_sync_device", { deviceId }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Initialize sync with password.+ */+async initSync(password: string) : Promise<Result<boolean, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("init_sync", { password }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+/**+ * Lock sync (clear keys from memory).*/-async suspendGlobalShortcuts() : Promise<Result<null, string>> {+async lockSync() : Promise<Result<null, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("suspend_global_shortcuts") };+ return { status: "ok", data: await TAURI_INVOKE("lock_sync") };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };}},/**- * Resume all global shortcuts (after shortcut recording mode)- * Call this after exiting shortcut recording to re-register all shortcuts+ * Delete all cloud data.*/-async resumeGlobalShortcuts() : Promise<Result<null, string>> {+async deleteCloudData() : Promise<Result<null, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("resume_global_shortcuts") };+ return { status: "ok", data: await TAURI_INVOKE("delete_cloud_data") };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };}},-// OpenCode commands+/**+ * Get OpenCode info+ */async opencodeInfo() : Promise<Result<OpencodeInfo, string>> {try {return { status: "ok", data: await TAURI_INVOKE("opencode_info") };@@ -283,7 +342,11 @@ async opencodeInfo() : Promise<Result<OpencodeInfo, string>> {else return { status: "error", error: e as any };}},-async opencodeStart(projectDir: string, userToken?: string) : Promise<Result<OpencodeInfo, string>> {+/**+ * Start the OpenCode sidecar+ * user_token: The user's screenpipe auth token for API access+ */+async opencodeStart(projectDir: string, userToken: string | null) : Promise<Result<OpencodeInfo, string>> {try {return { status: "ok", data: await TAURI_INVOKE("opencode_start", { projectDir, userToken }) };} catch (e) {@@ -291,6 +354,9 @@ async opencodeStart(projectDir: string, userToken?: string) : Promise<Result<Opeelse return { status: "error", error: e as any };}},+/**+ * Stop the OpenCode sidecar+ */async opencodeStop() : Promise<Result<OpencodeInfo, string>> {try {return { status: "ok", data: await TAURI_INVOKE("opencode_stop") };@@ -299,6 +365,9 @@ async opencodeStop() : Promise<Result<OpencodeInfo, string>> {else return { status: "error", error: e as any };}},+/**+ * Check if opencode is available (either as sidecar or in PATH)+ */async opencodeCheck() : Promise<Result<OpencodeCheckResult, string>> {try {return { status: "ok", data: await TAURI_INVOKE("opencode_check") };@@ -307,6 +376,10 @@ async opencodeCheck() : Promise<Result<OpencodeCheckResult, string>> {else return { status: "error", error: e as any };}},+/**+ * Install opencode via bun (runs in background)+ * Returns immediately, installation happens async+ */async opencodeInstall() : Promise<Result<null, string>> {try {return { status: "ok", data: await TAURI_INVOKE("opencode_install") };@@ -342,22 +415,32 @@ export type OnboardingStore = { isCompleted: boolean; completedAt: string | null* Used to resume after app restart (e.g., after granting permissions)*/currentStep?: string | null }+export type OpencodeCheckResult = { available: boolean; sidecarAvailable: boolean; pathAvailable: boolean }+export type OpencodeInfo = { running: boolean; baseUrl: string | null; port: number | null; projectDir: string | null; pid: number | null }export type SettingsStore = { aiPresets: AIPreset[]; deepgramApiKey: string; isLoading: boolean; userId: string;/*** Persistent analytics ID used for PostHog tracking (both frontend and backend)*/-analyticsId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; showChatShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean; showShortcutOverlay?: boolean;+analyticsId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; ignoredUrls?: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; showChatShortcut: string; searchShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean; showShortcutOverlay?: boolean;/*** Unique device ID for AI usage tracking (generated on first launch)*/deviceId?: string }export type ShowRewindWindow = "Main" | { Settings: { page: string | null } } | { Search: { query: string | null } } | "Onboarding" | "Chat" | "PermissionRecovery"+/**+ * Sync configuration.+ */+export type SyncConfig = { enabled: boolean; syncIntervalMinutes: number; syncTranscripts: boolean; syncOcr: boolean; syncAudio: boolean; syncFrames: boolean }+/**+ * Device information.+ */+export type SyncDeviceInfo = { id: string; deviceId: string; deviceName: string | null; deviceOs: string; lastSyncAt: string | null; createdAt: string; isCurrent: boolean }+/**+ * Sync status response.+ */+export type SyncStatusResponse = { enabled: boolean; isSyncing: boolean; lastSync: string | null; lastError: string | null; storageUsed: bigint | null; storageLimit: bigint | null; deviceCount: number | null; deviceLimit: number | null; syncTier: string | null; machineId: string }export type User = { id: string | null; name: string | null; email: string | null; image: string | null; token: string | null; clerk_id: string | null; api_key: string | null; credits: Credits | null; stripe_connected: boolean | null; stripe_account_status: string | null; github_username: string | null; bio: string | null; website: string | null; contact: string | null; cloud_subscribed: boolean | null }-// OpenCode types-export type OpencodeInfo = { running: boolean; baseUrl: string | null; port: number | null; projectDir: string | null; pid: number | null }-export type OpencodeCheckResult = { available: boolean; sidecarAvailable: boolean; pathAvailable: boolean }-/** tauri-specta globals **/import {diff --git a/screenpipe-app-tauri/package.json b/screenpipe-app-tauri/package.jsonindex 187b64f84..11b60fc25 100644--- a/screenpipe-app-tauri/package.json+++ b/screenpipe-app-tauri/package.json@@ -14,7 +14,7 @@"clean": "rm -rf out && cargo clean && rm -rf src-tauri/{screenpipe-*,tesseract-*,ffmpeg*,bun*,ollama*,ui_monitor*} node_modules"},"dependencies": {- "@opencode-ai/sdk": "^1.1.44",+ "@opencode-ai/sdk": "^1.1.48","@patternfly/react-core": "^6.1.0","@patternfly/react-log-viewer": "^6.1.0","@radix-ui/react-accordion": "^1.2.0",diff --git a/screenpipe-app-tauri/public/animations/cloud-sync.json b/screenpipe-app-tauri/public/animations/cloud-sync.jsonnew file mode 100644index 000000000..86b1e3cab--- /dev/null+++ b/screenpipe-app-tauri/public/animations/cloud-sync.json@@ -0,0 +1,793 @@+{+ "v": "5.7.4",+ "fr": 60,+ "ip": 0,+ "op": 180,+ "w": 280,+ "h": 160,+ "nm": "Cloud Sync",+ "ddd": 0,+ "assets": [],+ "layers": [+ {+ "ddd": 0,+ "ind": 1,+ "ty": 4,+ "nm": "Left Device",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [45, 100, 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": [50, 35] },+ "p": { "a": 0, "k": [0, -5] },+ "r": { "a": 0, "k": 4 },+ "nm": "Screen"+ },+ {+ "ty": "st",+ "c": { "a": 0, "k": [0.4, 0.4, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "w": { "a": 0, "k": 2 },+ "lc": 2,+ "lj": 2,+ "nm": "Screen Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.15, 0.15, 0.2, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Screen 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": "Screen Group"+ },+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [60, 6] },+ "p": { "a": 0, "k": [0, 16] },+ "r": { "a": 0, "k": 2 },+ "nm": "Base"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.3, 0.35, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Base 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": "Base Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 2,+ "ty": 4,+ "nm": "Cloud",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [140, 55, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 60, "s": [100, 100, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 75, "s": [108, 108, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 90, "s": [100, 100, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 120, "s": [100, 100, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 135, "s": [108, 108, 100] },+ { "t": 150, "s": [100, 100, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "el",+ "s": { "a": 0, "k": [35, 28] },+ "p": { "a": 0, "k": [0, 5] },+ "nm": "Cloud Main"+ },+ {+ "ty": "el",+ "s": { "a": 0, "k": [25, 22] },+ "p": { "a": 0, "k": [-18, 8] },+ "nm": "Cloud Left"+ },+ {+ "ty": "el",+ "s": { "a": 0, "k": [22, 20] },+ "p": { "a": 0, "k": [16, 10] },+ "nm": "Cloud Right"+ },+ {+ "ty": "el",+ "s": { "a": 0, "k": [20, 18] },+ "p": { "a": 0, "k": [-8, -2] },+ "nm": "Cloud Top Left"+ },+ {+ "ty": "el",+ "s": { "a": 0, "k": [22, 20] },+ "p": { "a": 0, "k": [8, -3] },+ "nm": "Cloud Top Right"+ },+ {+ "ty": "mm",+ "mm": 1,+ "nm": "Merge"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.4, 0.6, 1, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Cloud 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": "Cloud Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 3,+ "ty": 4,+ "nm": "Right Device 1",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [235, 85, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": { "a": 0, "k": [80, 80, 100] }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [50, 35] },+ "p": { "a": 0, "k": [0, -5] },+ "r": { "a": 0, "k": 4 },+ "nm": "Screen"+ },+ {+ "ty": "st",+ "c": { "a": 0, "k": [0.4, 0.4, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "w": { "a": 0, "k": 2 },+ "lc": 2,+ "lj": 2,+ "nm": "Screen Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.15, 0.15, 0.2, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Screen 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": "Screen Group"+ },+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [60, 6] },+ "p": { "a": 0, "k": [0, 16] },+ "r": { "a": 0, "k": 2 },+ "nm": "Base"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.3, 0.35, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Base 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": "Base Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 4,+ "ty": 4,+ "nm": "Right Device 2 Phone",+ "sr": 1,+ "ks": {+ "o": { "a": 0, "k": 100 },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [235, 130, 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": [18, 32] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 4 },+ "nm": "Phone Body"+ },+ {+ "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": "Phone Stroke"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.15, 0.15, 0.2, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Phone 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": "Phone Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 5,+ "ty": 4,+ "nm": "Lock Icon",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 0, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 20, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 40, "s": [0] },+ { "t": 180, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [45, 98, 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": [10, 8] },+ "p": { "a": 0, "k": [0, 2] },+ "r": { "a": 0, "k": 2 },+ "nm": "Lock Body"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.4, 0.8, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Lock 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": "Lock Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 6,+ "ty": 4,+ "nm": "Data Packet 1",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 20, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 30, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 70, "s": [100] },+ { "t": 80, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 20, "s": [70, 95, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 50, "s": [100, 70, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 80, "s": [140, 55, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 20, "s": [100, 100, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 50, "s": [80, 80, 100] },+ { "t": 80, "s": [60, 60, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [12, 10] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 3 },+ "nm": "Packet"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.7, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Packet 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": "Packet Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 7,+ "ty": 4,+ "nm": "Data Packet 2",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 35, "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": 85, "s": [100] },+ { "t": 95, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 35, "s": [70, 100, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 65, "s": [105, 75, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 95, "s": [140, 55, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 35, "s": [100, 100, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 65, "s": [80, 80, 100] },+ { "t": 95, "s": [60, 60, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [10, 8] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Packet"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.5, 0.8, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Packet 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": "Packet Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 8,+ "ty": 4,+ "nm": "Sync Packet to Device 1",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 100, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 110, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 145, "s": [100] },+ { "t": 155, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 100, "s": [140, 55, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 130, "s": [185, 70, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 155, "s": [235, 85, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 100, "s": [60, 60, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 130, "s": [80, 80, 100] },+ { "t": 155, "s": [100, 100, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [10, 8] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Packet"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.7, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Packet 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": "Packet Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 9,+ "ty": 4,+ "nm": "Sync Packet to Phone",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 115, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 125, "s": [100] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 160, "s": [100] },+ { "t": 170, "s": [0] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": {+ "a": 1,+ "k": [+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 115, "s": [140, 55, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "i": { "x": 0.3, "y": 1 }, "o": { "x": 0.7, "y": 0 }, "t": 145, "s": [190, 95, 0], "to": [0, 0, 0], "ti": [0, 0, 0] },+ { "t": 170, "s": [235, 130, 0] }+ ]+ },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 115, "s": [60, 60, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 145, "s": [75, 75, 100] },+ { "t": 170, "s": [80, 80, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "rc",+ "d": 1,+ "s": { "a": 0, "k": [8, 6] },+ "p": { "a": 0, "k": [0, 0] },+ "r": { "a": 0, "k": 2 },+ "nm": "Packet"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.3, 0.5, 0.8, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Packet 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": "Packet Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 10,+ "ty": 4,+ "nm": "Check Mark Device 1",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 155, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 165, "s": [100] },+ { "t": 180, "s": [100] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [235, 85, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 155, "s": [50, 50, 100] },+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 165, "s": [120, 120, 100] },+ { "t": 175, "s": [100, 100, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "el",+ "s": { "a": 0, "k": [16, 16] },+ "p": { "a": 0, "k": [0, 0] },+ "nm": "Circle"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.2, 0.8, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Circle 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": "Check Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ },+ {+ "ddd": 0,+ "ind": 11,+ "ty": 4,+ "nm": "Check Mark Phone",+ "sr": 1,+ "ks": {+ "o": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 170, "s": [0] },+ { "i": { "x": [0.4], "y": [1] }, "o": { "x": [0.6], "y": [0] }, "t": 180, "s": [100] }+ ]+ },+ "r": { "a": 0, "k": 0 },+ "p": { "a": 0, "k": [235, 130, 0] },+ "a": { "a": 0, "k": [0, 0, 0] },+ "s": {+ "a": 1,+ "k": [+ { "i": { "x": [0.4, 0.4, 0.4], "y": [1, 1, 1] }, "o": { "x": [0.6, 0.6, 0.6], "y": [0, 0, 0] }, "t": 170, "s": [50, 50, 100] },+ { "t": 180, "s": [100, 100, 100] }+ ]+ }+ },+ "ao": 0,+ "shapes": [+ {+ "ty": "gr",+ "it": [+ {+ "ty": "el",+ "s": { "a": 0, "k": [12, 12] },+ "p": { "a": 0, "k": [0, 0] },+ "nm": "Circle"+ },+ {+ "ty": "fl",+ "c": { "a": 0, "k": [0.2, 0.8, 0.4, 1] },+ "o": { "a": 0, "k": 100 },+ "r": 1,+ "nm": "Circle 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": "Check Group"+ }+ ],+ "ip": 0,+ "op": 180,+ "st": 0+ }+ ],+ "markers": []+}diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex fa3d4230f..cc6eba3cc 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -6733,7 +6733,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"[[package]]name = "screenpipe-app"-version = "2.0.164"+version = "2.0.173"dependencies = ["anyhow","async-stream",@@ -6809,7 +6809,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.5"+version = "0.3.6"dependencies = ["accessibility","accessibility-sys",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 995e1b00c..c4f02354f 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 = "2.0.172"+version = "2.0.173"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""