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 claude connections
Anshgrover23bcafd06c2467
diff --git a/apps/screenpipe-app-tauri/components/onboarding/connect-apps.tsx b/apps/screenpipe-app-tauri/components/onboarding/connect-apps.tsxindex a345f2d40..88ac2d5fb 100644--- a/apps/screenpipe-app-tauri/components/onboarding/connect-apps.tsx+++ b/apps/screenpipe-app-tauri/components/onboarding/connect-apps.tsx@@ -10,8 +10,9 @@ import { motion, AnimatePresence } from "framer-motion";import { commands } from "@/lib/utils/tauri";import { useSettings } from "@/lib/hooks/use-settings";import { openUrl } from "@tauri-apps/plugin-opener";-import { readTextFile, writeFile } from "@tauri-apps/plugin-fs";-import { homeDir, join } from "@tauri-apps/api/path";+import { readTextFile, writeFile, mkdir } from "@tauri-apps/plugin-fs";+import { homeDir, join, dirname } from "@tauri-apps/api/path";+import { platform } from "@tauri-apps/plugin-os";import posthog from "posthog-js";// ─── Icons ───────────────────────────────────────────────────────────────────@@ -87,6 +88,8 @@ async function readMcpConfig(configPath: string): Promise<Record<string, unknownasync function writeMcpConfig(configPath: string, config: Record<string, unknown>): Promise<void> {if (!config.mcpServers || typeof config.mcpServers !== "object") config.mcpServers = {};(config.mcpServers as Record<string, unknown>).screenpipe = SCREENPIPE_MCP_CONFIG;+ // Ensure parent directory exists (Claude Desktop may not have created it yet)+ await mkdir(await dirname(configPath), { recursive: true });await writeFile(configPath, new TextEncoder().encode(JSON.stringify(config, null, 2)));}@@ -109,6 +112,43 @@ async function installCursorMcp(): Promise<void> {await writeMcpConfig(configPath, config);}+// Claude Desktop+async function getClaudeMcpConfigPath(): Promise<string> {+ const home = await homeDir();+ const os = platform();+ console.log("[claude-mcp] platform:", os, "home:", home);+ if (os === "windows") {+ return join(home, "AppData", "Roaming", "Claude", "claude_desktop_config.json");+ }+ return join(home, "Library", "Application Support", "Claude", "claude_desktop_config.json");+}++async function isClaudeMcpInstalled(): Promise<boolean> {+ try {+ const configPath = await getClaudeMcpConfigPath();+ console.log("[claude-mcp] checking install at:", configPath);+ const content = await readTextFile(configPath);+ return !!JSON.parse(content)?.mcpServers?.screenpipe;+ } catch (e) {+ console.log("[claude-mcp] isInstalled check failed:", e);+ return false;+ }+}++async function installClaudeMcp(): Promise<void> {+ const configPath = await getClaudeMcpConfigPath();+ console.log("[claude-mcp] installing to:", configPath);+ const config = await readMcpConfig(configPath);+ console.log("[claude-mcp] existing config:", JSON.stringify(config));+ try {+ await writeMcpConfig(configPath, config);+ console.log("[claude-mcp] write succeeded");+ } catch (e) {+ console.error("[claude-mcp] write failed:", e);+ throw e;+ }+}+// ─── Types ───────────────────────────────────────────────────────────────────interface Integration {@@ -118,7 +158,7 @@ interface Integration {valueProp: string;ahaCopy: string;isPro: boolean;- type: "oauth" | "mcp" | "chatgpt" | "lmstudio";+ type: "oauth" | "mcp" | "chatgpt" | "claude";}type CardState = "idle" | "connecting" | "connected" | "error";@@ -156,15 +196,6 @@ const PRO_INTEGRATIONS: Integration[] = [];const FREE_INTEGRATIONS: Integration[] = [- {- id: "github",- cardKey: "github",- name: "GitHub",- valueProp: "link commits & PRs to work context",- ahaCopy: "code context active",- isPro: false,- type: "oauth",- },{id: "cursor",cardKey: "cursor",@@ -184,29 +215,29 @@ const FREE_INTEGRATIONS: Integration[] = [type: "chatgpt",},{- id: "lmstudio",- cardKey: "lmstudio",- name: "LM Studio",- valueProp: "run local AI models with full screen context",- ahaCopy: "local AI connected",+ id: "claude",+ cardKey: "claude",+ name: "Claude",+ valueProp: "give Claude Desktop full memory of your screen",+ ahaCopy: "MCP installed — restart Claude",isPro: false,- type: "lmstudio",+ type: "claude",},];-// Pro user "also free" section — GitHub, Cursor, ChatGPT (no LM Studio, it's a free-tier highlight)+// Pro user "also free" section — Claude, Cursor, ChatGPTconst PRO_FREE_SECTION: Integration[] = [- FREE_INTEGRATIONS[0], // GitHub- FREE_INTEGRATIONS[1], // Cursor- FREE_INTEGRATIONS[2], // ChatGPT+ FREE_INTEGRATIONS[2], // Claude+ FREE_INTEGRATIONS[0], // Cursor+ FREE_INTEGRATIONS[1], // ChatGPT];-// Free-user view: 2×2 grid — Cursor, Gmail (locked teaser), ChatGPT, LM Studio+// Free-user view: 2×2 grid — Cursor, Gmail (locked teaser), ChatGPT, Claudeconst FREE_USER_ORDER: Integration[] = [- FREE_INTEGRATIONS[1], // Cursor+ FREE_INTEGRATIONS[0], // CursorPRO_INTEGRATIONS[0], // Gmail (locked teaser)- FREE_INTEGRATIONS[2], // ChatGPT- FREE_INTEGRATIONS[3], // LM Studio+ FREE_INTEGRATIONS[1], // ChatGPT+ FREE_INTEGRATIONS[2], // Claude];const ICONS: Record<string, React.ReactNode> = {@@ -219,15 +250,11 @@ const ICONS: Record<string, React.ReactNode> = {// eslint-disable-next-line @next/next/no-img-element<img src="/images/notion.svg" alt="Notion" className="w-5 h-5 dark:invert" />),- github: (- // eslint-disable-next-line @next/next/no-img-element- <img src="/images/github.png" alt="GitHub" className="w-5 h-5 rounded" />- ),cursor: <CursorIcon className="w-5 h-5 rounded" />,chatgpt: <ChatGptIcon className="w-5 h-5" />,- lmstudio: (+ claude: (// eslint-disable-next-line @next/next/no-img-element- <img src="/images/lmstudio.png" alt="LM Studio" className="w-5 h-5 rounded" />+ <img src="/images/claude-ai.svg" alt="Claude" className="w-5 h-5 rounded" />),};@@ -509,11 +536,10 @@ export default function ConnectApps({ handleNextSlide }: ConnectAppsProps) {if (await isCursorMcpInstalled()) stateUpdates["cursor"] = "connected";} catch { /* ignore */ }- // LM Studio — check if local server is reachable+ // Claude Desktop MCPtry {- const res = await fetch("http://localhost:1234/v1/models", { signal: AbortSignal.timeout(1500) });- if (res.ok) stateUpdates["lmstudio"] = "connected";- } catch { /* not running */ }+ if (await isClaudeMcpInstalled()) stateUpdates["claude"] = "connected";+ } catch { /* ignore */ }if (Object.keys(stateUpdates).length > 0)setCardStates((prev) => ({ ...prev, ...stateUpdates }));@@ -622,31 +648,6 @@ export default function ConnectApps({ handleNextSlide }: ConnectAppsProps) {setCardState(integration.cardKey, "connecting");try {- if (integration.type === "lmstudio") {- const deeplink = "lmstudio://add_mcp?name=screenpipe&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNjcmVlbnBpcGUtbWNwIl19";- await openUrl(deeplink);- // Poll localhost:1234 for up to 8s to confirm LM Studio is running- let connected = false;- for (let i = 0; i < 8; i++) {- await new Promise((r) => setTimeout(r, 1000));- try {- const res = await fetch("http://localhost:1234/v1/models", { signal: AbortSignal.timeout(800) });- if (res.ok) { connected = true; break; }- } catch { /* still starting */ }- }- if (connected) {- setCardState("lmstudio", "connected");- setDisplayNames((prev) => ({ ...prev, lmstudio: "LM Studio" }));- posthog.capture("onboarding_integration_connected", { integration: "lmstudio" });- } else {- // Deeplink was opened but LM Studio not detected running — treat as connected optimistically- setCardState("lmstudio", "connected");- setDisplayNames((prev) => ({ ...prev, lmstudio: "MCP added" }));- posthog.capture("onboarding_integration_connected", { integration: "lmstudio", optimistic: true });- }- return;- }-if (integration.type === "chatgpt") {const res = await commands.chatgptOauthLogin();if (res.status === "ok" && res.data) {@@ -666,8 +667,23 @@ export default function ConnectApps({ handleNextSlide }: ConnectAppsProps) {return;}- // Standard OAuth- const res = await commands.oauthConnect(integration.id, null);+ if (integration.type === "claude") {+ await installClaudeMcp();+ setCardState(integration.cardKey, "connected");+ posthog.capture("onboarding_integration_connected", { integration: integration.id });+ return;+ }++ // Standard OAuth — race against a 2-min timeout so closing the browser+ // tab doesn't leave the card stuck in "connecting" forever.+ const OAUTH_TIMEOUT_MS = 120_000;+ const timeoutPromise = new Promise<never>((_, reject) =>+ setTimeout(() => reject(new Error("oauth_timeout")), OAUTH_TIMEOUT_MS)+ );+ const res = await Promise.race([+ commands.oauthConnect(integration.id, null),+ timeoutPromise,+ ]);if (res.status === "ok" && res.data.connected) {setCardState(integration.cardKey, "connected");if (res.data.display_name) {@@ -682,8 +698,13 @@ export default function ConnectApps({ handleNextSlide }: ConnectAppsProps) {setCardState(integration.cardKey, "idle");}} catch (err) {- setCardState(integration.cardKey, "error");- setTimeout(() => setCardState(integration.cardKey, "idle"), 3000);+ // Timeout = user closed the browser tab — silently go back to idle+ if (err instanceof Error && err.message === "oauth_timeout") {+ setCardState(integration.cardKey, "idle");+ } else {+ setCardState(integration.cardKey, "error");+ setTimeout(() => setCardState(integration.cardKey, "idle"), 3000);+ }}},[isPro, setCardState]@@ -808,7 +829,7 @@ export default function ConnectApps({ handleNextSlide }: ConnectAppsProps) {</div></div>) : (- /* Free layout: 2×2 — Cursor, Gmail (locked teaser), ChatGPT, LM Studio */+ /* Free layout: 2×2 — Cursor, Gmail (locked teaser), ChatGPT, Claude */<><div className="grid grid-cols-2 gap-2 w-full">{FREE_USER_ORDER.map((integration, i) => (diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex e50bc5946..906bd60e8 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -16,13 +16,13 @@ import { useSettings, getStore } from "@/lib/hooks/use-settings";import { ensureChatGptPreset } from "@/lib/utils/chatgpt-preset";import { showChatWithPrefill } from "@/lib/chat-utils";import { Command } from "@tauri-apps/plugin-shell";-import { openUrl, revealItemInDir } from "@tauri-apps/plugin-opener";+import { openUrl } from "@tauri-apps/plugin-opener";import { message } from "@tauri-apps/plugin-dialog";import { localFetch } from "@/lib/api";-import { writeFile, readTextFile } from "@tauri-apps/plugin-fs";+import { writeFile, readTextFile, mkdir } from "@tauri-apps/plugin-fs";import { fetch as tauriFetch } from "@tauri-apps/plugin-http";import { platform } from "@tauri-apps/plugin-os";-import { join, homeDir, tempDir } from "@tauri-apps/api/path";+import { join, homeDir, tempDir, dirname } from "@tauri-apps/api/path";import { AppleIntelligenceCard } from "./apple-intelligence-card";import { CalendarCard } from "./calendar-card";import { GoogleCalendarCard } from "./google-calendar-card";@@ -384,46 +384,63 @@ function Tile({ tile, selected, onClick }: {// Expanded panels for each connection type// ----------------------------------------------------------------------------function ClaudePanel({ onConnected }: { onConnected?: () => void }) {- const [downloadState, setDownloadState] = useState<"idle" | "downloading" | "downloaded">("idle");- const [versionInfo, setVersionInfo] = useState<McpVersionInfo>({ available: null, installed: null });- const [mcpbPath, setMcpbPath] = useState<string>("");+async function uninstallClaudeMcp(): Promise<void> {+ const configPath = await getClaudeConfigPath();+ if (!configPath) return;+ let config: Record<string, unknown> = {};+ try { config = JSON.parse(await readTextFile(configPath)); } catch { return; }+ const servers = config.mcpServers as Record<string, unknown> | undefined;+ if (!servers?.screenpipe) return;+ delete servers.screenpipe;+ await writeFile(configPath, new TextEncoder().encode(JSON.stringify(config, null, 2)));+}++async function uninstallCursorMcp(): Promise<void> {+ const configPath = await getCursorMcpConfigPath();+ let config: Record<string, unknown> = {};+ try { config = JSON.parse(await readTextFile(configPath)); } catch { return; }+ const servers = config.mcpServers as Record<string, unknown> | undefined;+ if (!servers?.screenpipe) return;+ delete servers.screenpipe;+ await writeFile(configPath, new TextEncoder().encode(JSON.stringify(config, null, 2)));+}++function ClaudePanel({ onConnected, onDisconnected }: { onConnected?: () => void; onDisconnected?: () => void }) {+ const [state, setState] = useState<"idle" | "connecting" | "connected">("idle");useEffect(() => {- Promise.all([- getLatestMcpRelease().catch(() => null),- getInstalledMcpVersion(),- ]).then(([release, installed]) => {- setVersionInfo({ available: release?.version || null, installed });- }).catch(() => {});- }, [downloadState]);+ getInstalledMcpVersion().then(v => { if (v) setState("connected"); }).catch(() => {});+ }, []);const handleConnect = async () => {try {- setDownloadState("downloading");- const release = await getLatestMcpRelease();- const response = await tauriFetch(release.url, { method: "GET" });- if (!response.ok) throw new Error("failed to download .mcpb file");- const data = new Uint8Array(await response.arrayBuffer());- const tmp = await tempDir();- const filePath = await join(tmp, "screenpipe.mcpb");- await writeFile(filePath, data);- setMcpbPath(filePath);- const os = platform();- if (os === "macos") await Command.create("open", [filePath]).execute();- else if (os === "windows") await Command.create("cmd", ["/c", "start", "", filePath]).execute();- setDownloadState("downloaded");+ setState("connecting");+ const configPath = await getClaudeConfigPath();+ if (!configPath) throw new Error("unsupported platform");+ let config: Record<string, unknown> = {};+ try { config = JSON.parse(await readTextFile(configPath)); } catch { /* fresh */ }+ if (!config.mcpServers || typeof config.mcpServers !== "object") config.mcpServers = {};+ (config.mcpServers as Record<string, unknown>).screenpipe = { command: "npx", args: ["-y", "screenpipe-mcp"] };+ await mkdir(await dirname(configPath), { recursive: true });+ await writeFile(configPath, new TextEncoder().encode(JSON.stringify(config, null, 2)));+ setState("connected");onConnected?.();} catch (error) {console.error("failed to install claude mcp:", error instanceof Error ? error.message : String(error));await message(- "could not connect to claude desktop.\n\nmake sure claude desktop is installed and has been opened at least once, then try again.\n\ndownload: https://claude.ai/download",+ "could not write Claude Desktop config.\n\nmake sure claude desktop is installed and has been opened at least once, then try again.\n\ndownload: https://claude.ai/download",{ title: "claude mcp setup", kind: "error" });- setDownloadState("idle");+ setState("idle");}};+ const handleDisconnect = async () => {+ try { await uninstallClaudeMcp(); } catch (e) { console.warn("claude config remove failed:", e); }+ setState("idle");+ onDisconnected?.();+ };+const openClaude = async () => {try {const os = platform();@@ -442,40 +459,29 @@ function ClaudePanel({ onConnected }: { onConnected?: () => void }) {Search your screen recordings and audio with natural language.</p><div className="flex flex-wrap gap-2">- <Button onClick={handleConnect} disabled={downloadState === "downloading"} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">- {downloadState === "downloading" ? (<><Loader2 className="h-3 w-3 animate-spin" />connecting...</>)- : downloadState === "downloaded" || versionInfo.installed ? (<><Check className="h-3 w-3" />{downloadState === "downloaded" ? "connected" : "reconnect"}</>)- : (<><Download className="h-3 w-3" />connect</>)}- </Button>+ {state === "connected" ? (+ <Button onClick={handleDisconnect} variant="outline" size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">+ <LogOut className="h-3 w-3" />disconnect+ </Button>+ ) : (+ <Button onClick={handleConnect} disabled={state === "connecting"} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">+ {state === "connecting" ? (<><Loader2 className="h-3 w-3 animate-spin" />connecting...</>) : (<><Download className="h-3 w-3" />connect</>)}+ </Button>+ )}<Button variant="outline" onClick={openClaude} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal"><ExternalLink className="h-3 w-3" />open claude</Button></div>- {downloadState === "downloaded" && (- <div className="p-3 bg-muted border border-border rounded-lg space-y-2">- <p className="text-xs"><strong>connected!</strong> restart claude if it was running. try: "what did I do in the last 5 minutes?"</p>- <details className="text-xs text-muted-foreground">- <summary className="cursor-pointer hover:text-foreground">didn't work? troubleshooting steps</summary>- <ol className="mt-1.5 ml-4 list-decimal space-y-1">- <li>- open claude desktop → developer → extensions- </li>- <li>- <button className="underline hover:text-foreground" onClick={() => mcpbPath && revealItemInDir(mcpbPath)}>- click here to show the .mcpb file- </button>- {" "}then drag it into the extensions panel- </li>- <li>if nothing works, reinstall claude desktop to fix file associations</li>- </ol>- </details>- </div>+ {state === "connected" && (+ <p className="text-xs text-muted-foreground">+ <strong>connected!</strong> restart claude if it was running. try: "what did I do in the last 5 minutes?"+ </p>)}</div>);}-function CursorPanel() {+function CursorPanel({ onConnected, onDisconnected }: { onConnected?: () => void; onDisconnected?: () => void }) {const [state, setState] = useState<"idle" | "installing" | "installed">("idle");useEffect(() => { isCursorMcpInstalled().then(ok => { if (ok) setState("installed"); }); }, []);@@ -484,6 +490,7 @@ function CursorPanel() {setState("installing");await installCursorMcp();setState("installed");+ onConnected?.();} catch (error) {console.error("failed to install cursor mcp:", error);await message(@@ -495,6 +502,12 @@ function CursorPanel() {}};+ const handleDisconnect = async () => {+ try { await uninstallCursorMcp(); } catch (e) { console.warn("cursor config remove failed:", e); }+ setState("idle");+ onDisconnected?.();+ };+const openCursor = async () => {try {const os = platform();@@ -508,11 +521,15 @@ function CursorPanel() {<div className="space-y-3"><p className="text-xs text-muted-foreground">Give Cursor access to your screen & audio history via MCP.</p><div className="flex flex-wrap gap-2">- <Button onClick={handleConnect} disabled={state === "installing"} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">- {state === "installing" ? (<><Loader2 className="h-3 w-3 animate-spin" />installing...</>)- : state === "installed" ? (<><Check className="h-3 w-3" />connected</>)- : (<><Download className="h-3 w-3" />connect</>)}- </Button>+ {state === "installed" ? (+ <Button onClick={handleDisconnect} variant="outline" size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">+ <LogOut className="h-3 w-3" />disconnect+ </Button>+ ) : (+ <Button onClick={handleConnect} disabled={state === "installing"} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal">+ {state === "installing" ? (<><Loader2 className="h-3 w-3 animate-spin" />installing...</>) : (<><Download className="h-3 w-3" />connect</>)}+ </Button>+ )}<Button variant="outline" onClick={openCursor} size="sm" className="gap-1.5 h-7 text-xs normal-case font-sans tracking-normal"><ExternalLink className="h-3 w-3" />open cursor</Button>@@ -1424,7 +1441,7 @@ function ApiIntegrationPanel({ integration, onRefresh }: {export function ConnectionsSection() {const [search, setSearch] = useState("");const [selected, setSelected] = useState<string | null>(() => {- // Auto-select if navigated from pipes config "setup" link+ if (typeof window === "undefined") return null;const pending = sessionStorage.getItem("openConnection");if (pending) {sessionStorage.removeItem("openConnection");@@ -1565,8 +1582,14 @@ export function ConnectionsSection() {const renderPanel = () => {if (!selected) return null;switch (selected) {- case "claude": return <ClaudePanel onConnected={() => { localStorage.setItem("screenpipe_claude_connected", "true"); setClaudeInstalled(true); }} />;- case "cursor": return <CursorPanel />;+ case "claude": return <ClaudePanel+ onConnected={() => { localStorage.setItem("screenpipe_claude_connected", "true"); setClaudeInstalled(true); }}+ onDisconnected={() => { localStorage.removeItem("screenpipe_claude_connected"); setClaudeInstalled(false); }}+ />;+ case "cursor": return <CursorPanel+ onConnected={() => setCursorInstalled(true)}+ onDisconnected={() => setCursorInstalled(false)}+ />;case "claude-code": return <ClaudeCodePanel />;case "chatgpt": return <ChatGptPanel />;case "browser-extension": return <BrowserExtensionPanel connected={browserExtConnected} onRefresh={refreshStatus} />;diff --git a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.jsonindex 1d36d920a..7e660f4b1 100644--- a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json+++ b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json@@ -166,6 +166,14 @@{"path": "$APPDATA/Claude/**","requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/AppData/Roaming/Claude",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/AppData/Roaming/Claude/**",+ "requireLiteralLeadingDot": false}]},diff --git a/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.jsonindex d0c41787b..171bbca74 100644--- a/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json+++ b/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json@@ -1 +1 @@-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*","https://api.openai.com/*","https://*.openai.com/*","https://api.screenpi.pe/*","https://*.anthropic.com/*","https://*.ollama.ai/*","https://*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default",{"identifier":"shell:allow-open","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"}]},"store:default","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default",{"identifier":"opener:allow-open-url","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"},{"url":"^obsidian://.*"}]},"core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$TEMP"},{"path":"$TEMP/*"},{"path":"$TEMP/**"}]},"opener:default",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"open","name":"open","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"cmd","name":"cmd","sidecar":false}]}]}}\ No newline at end of file+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*","https://api.openai.com/*","https://*.openai.com/*","https://api.screenpi.pe/*","https://*.anthropic.com/*","https://*.ollama.ai/*","https://*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default",{"identifier":"shell:allow-open","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"}]},"store:default","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default",{"identifier":"opener:allow-open-url","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"},{"url":"^obsidian://.*"}]},"core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$TEMP"},{"path":"$TEMP/*"},{"path":"$TEMP/**"}]},"opener:default",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"open","name":"open","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"cmd","name":"cmd","sidecar":false}]}]}}\ No newline at end of file