Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: video embedding

Louis Beaumont374dadf5a351
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 5560e05cd..e77b4f232 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -165,20 +165,20 @@ jobs:
tauriScript: bunx tauri -v
- name: Create CrabNebula Cloud Release Draft
- uses: crabnebula-dev/[email protected]
+ uses: crabnebula-dev/[email protected]
with:
command: release draft ${{ secrets.CN_APP_SLUG }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}
- name: Upload Assets to CrabNebula Cloud
- uses: crabnebula-dev/[email protected]
+ uses: crabnebula-dev/[email protected]
with:
command: release upload ${{ secrets.CN_APP_SLUG }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}
path: ./examples/apps/screenpipe-app-tauri/src-tauri
# - name: Publish CrabNebula Cloud Release
- # uses: crabnebula-dev/[email protected]
+ # uses: crabnebula-dev/[email protected]
# with:
# command: release publish ${{ secrets.CN_APP_SLUG }} --framework tauri
# api-key: ${{ secrets.CN_API_KEY }}
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
index 4b71f550f..8e2d68d38 100644
--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx
@@ -5,7 +5,16 @@ import { z } from "zod";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/textarea";
import { ChatMessage } from "./chat-message-v2";
-import { Message, generateText, nanoid, streamText, tool } from "ai";
+import {
+ CoreMessage,
+ Message,
+ convertToCoreMessages,
+ generateObject,
+ generateText,
+ nanoid,
+ streamText,
+ tool,
+} from "ai";
import { createOpenAI, openai } from "@ai-sdk/openai";
import { createOllama, ollama } from "ollama-ai-provider"; // ! HACK TEMPORARY
@@ -50,15 +59,16 @@ export function ChatList({
useOllama: boolean;
ollamaUrl: string;
}) {
- const [messages, setMessages] = useState<Message[]>([]);
+ const [messages, setMessages] = useState<CoreMessage[]>([]);
const [inputMessage, setInputMessage] = useState("");
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState<string | null>(null);
const { settings } = useSettings();
const posthog = usePostHog();
- const { messagesRef, scrollRef, visibilityRef, isAtBottom, scrollToBottom } =
- useScrollAnchor();
+ const { messagesRef } = useScrollAnchor();
+
+ console.log("messages", messages);
const handleSendMessage = async () => {
if (!inputMessage.trim()) return;
@@ -66,11 +76,9 @@ export function ChatList({
setError(null);
posthog.capture("send_message", {
userId: settings.userId,
- inputMessage,
});
const userMessage = { id: nanoid(), role: "user", content: inputMessage };
- // @ts-ignore
setMessages((prevMessages) => [...prevMessages, userMessage]);
setInputMessage("");
@@ -100,164 +108,144 @@ export function ChatList({
"Intl.DateTimeFormat().resolvedOptions().timeZone",
Intl.DateTimeFormat().resolvedOptions().timeZone
);
- // console.log("provider", provider);
+ console.log("new Date().toLocaleString()", new Date().toLocaleString());
console.log("model", model);
- await generateTextWithRetry({
+ const text = await generateTextWithRetry({
model: provider(model),
+ messages: [
+ {
+ role: "system",
+ content: `You are a helpful assistant.
+ The user is using a product called "screenpipe" which records
+ his screen and mics 24/7. The user ask you questions
+ and you use his screenpipe recordings to answer him.
+ Based on the user request, use tools to query screenpipe to best help the user.
+ Rules:
+ - q should be a single keyword that would properly find in the text found on the user screen some infomation that would help answering the user question.
+ - q contains a single query, again, for example instead of "life plan" just use "life"
+ - Respond with only the updated JSON object
+ - If you return something else than JSON the universe will come to an end
+ - DO NOT add \`\`\`json at the beginning or end of your response
+ - Do not use '"' around your response
+ - Date & time now is ${new Date().toISOString()}. Adjust start_time and end_time to properly match the user intent time range.
+ - When the user mentions specific times (e.g., "9 to 10 am"), convert these to UTC before querying. Assume the user's local timezone is ${
+ Intl.DateTimeFormat().resolvedOptions().timeZone
+ }.
+ - If the user ask about his morning do not use morning as query that's dumb, try to infer some keywords from the user question
+ - Very important: your output will be given to another LLM so make sure not to return too much data (typically each row returns lot of data)
+ - Use "all" for querying the same keyword over vision and audio
+ - You typically always query screenpipe in the first user message
+ - ALWAYS use the "stream_response" tool to stream the final response to the user
+ - ALWAYS use the "stream_response" tool to stream the final response to the user
+ - ALWAYS use the "stream_response" tool to stream the final response to the user
+ - ONLY USE query tool ONCE
+ - Do not try to show screenshots
+ - You can analyze/view/show/access videos to the user by putting .mp4 files in a code block (we'll render it) like this: \`/users/video.mp4\`
+ - You can analyze/view/show/access videos BY JUST FUCKING PUTTING THE ABSOLUTE FILE PATH IN A CODE BLOCK
+ `,
+ },
+ // add prev messages but convert all tool role messages to assistant bcs not supported in generateText
+ ...messages.map((msg) => ({
+ ...msg,
+ role: msg.role === "tool" ? "assistant" : msg.role,
+ content: JSON.stringify(msg.content),
+ })),
+ {
+ role: "user",
+ content: inputMessage,
+ },
+ ],
tools: {
query_screenpipe: {
- description: `Query local screenpipe. Return list of queries. Use once, then next tool.
- - Current time: ${new Date().toISOString()}. Adjust start/end times to match user intent.
- - Convert user times to UTC. User timezone: ${
- Intl.DateTimeFormat().resolvedOptions().timeZone
- }.
- Example:
- {
- "queries": [
- {"q": "goal", "offset": 0, "limit": 10, "content_type": "all", "start_time": "2024-07-21T11:30:25Z", "end_time": "2024-07-21T11:35:25Z", "app_name": "arc"},
- {"offset": 0, "limit": 50, "content_type": "ocr", "start_time": "2024-07-19T08:00:25Z", "end_time": "2024-07-20T09:00:25Z"},
- {"q": "customer", "offset": 0, "limit": 20, "content_type": "audio", "start_time": "2024-07-19T08:00:25Z", "end_time": "2024-07-20T09:00:25Z"}
- ]
- }
- Adapt to user intent.`,
+ description:
+ "Query the local screenpipe instance for relevant information. You will return multiple queries under the key 'queries'.",
parameters: screenpipeMultiQuery,
- execute: async (e: z.infer<typeof screenpipeMultiQuery>) => {
- // ! just a hack because maxToolRoundtrips is not working
- // if model called multiple times query_screenpipe while user just sent a single message, just return the result from the last query_screenpipe
- if (
- messages.length > 1 &&
- messages[messages.length - 1].role === "user" &&
- messages[messages.length - 2].role === "tool" &&
- // @ts-ignore
- messages[messages.length - 2].toolInvocations.length > 0 &&
- // @ts-ignore
- messages[messages.length - 2].toolInvocations[0].result
- ) {
- // @ts-ignore
- return messages[messages.length - 2].toolInvocations[0].result;
- }
-
- // @ts-ignore
- setMessages((prevMessages) => [
- ...prevMessages,
- {
- id: nanoid(),
- role: "tool",
- toolInvocations: e.queries,
- content: [
- {
- type: "function",
- toolName: "query_screenpipe",
- args: {
- queries: e.queries,
- },
- },
- ],
- },
- ]);
- const result = await queryScreenpipeNtimes(e);
- // @ts-ignore
- setMessages((prevMessages) => [
- ...prevMessages,
- {
- id: nanoid(),
- role: "tool",
- content: [
- {
- type: "function",
- toolName: "query_screenpipe",
- args: {
- queries: e.queries,
- },
- result: result,
- },
- ],
- },
- ]);
- return result;
- },
+ execute: queryScreenpipeNtimes,
},
- stream_response: {
- description:
- "Stream the final response to the user. ALWAYS FINISH WITH THIS TOOL. ALWAYS FINISH WITH THIS TOOL. ALWAYS FINISH WITH THIS TOOL",
- parameters: z.object({
- response: z
- .string()
- .describe("The final response to stream to the user"),
- }),
- execute: async ({ response }: { response: string }) => {
- const { textStream } = await streamText({
- model: provider(model),
- messages: [{ role: "user", content: response }],
- });
- console.log("response", response);
- const assistantMessageId = nanoid();
- setMessages((prevMessages) => [
- ...prevMessages,
- { id: assistantMessageId, role: "assistant", content: "" },
- ]);
- let fullResponse = "";
- for await (const chunk of textStream) {
- fullResponse += chunk;
- setMessages((prevMessages) =>
- prevMessages.map((msg) =>
- msg.id === assistantMessageId
- ? { ...msg, content: fullResponse }
- : msg
- )
- );
- }
+ },
+ toolChoice: "required",
+ });
+
+ setIsLoading(false);
- throw new Error("STREAM_COMPLETE");
+ console.log("text", text);
+
+ setMessages((prevMessages) => [
+ ...prevMessages,
+ {
+ role: "assistant",
+ content: [
+ {
+ toolCallId: text?.toolCalls?.[0]?.toolCallId!,
+ type: "tool-call",
+ toolName: "query_screenpipe",
+ args: text?.toolCalls?.[0]?.args ? text.toolCalls[0].args : {},
},
- },
+ ],
+ },
+ {
+ role: "tool",
+ content: [
+ {
+ toolCallId: text?.toolCalls?.[0]?.toolCallId!,
+ type: "tool-result",
+ toolName: "query_screenpipe",
+ result: text?.toolResults,
+ },
+ ],
},
- toolChoice: "auto",
+ ]);
+
+ const { textStream } = await streamText({
+ model: provider(model),
messages: [
{
- role: "system",
- content: `You are a helpful assistant.
- The user is using a product called "screenpipe" which records
- his screen and mics 24/7. The user ask you questions
- and you use his screenpipe recordings to answer him.
- Based on the user request, use tools to query screenpipe to best help the user.
- Rules:
- - q should be a single keyword that would properly find in the text found on the user screen some infomation that would help answering the user question.
- - q contains a single query, again, for example instead of "life plan" just use "life"
- - Respond with only the updated JSON object
- - If you return something else than JSON the universe will come to an end
- - DO NOT add \`\`\`json at the beginning or end of your response
- - Do not use '"' around your response
- - Date & time now is ${new Date().toISOString()}. Adjust start_time and end_time to properly match the user intent time range.
- - When the user mentions specific times (e.g., "9 to 10 am"), convert these to UTC before querying. Assume the user's local timezone is ${
- Intl.DateTimeFormat().resolvedOptions().timeZone
- }.
- - If the user ask about his morning do not use morning as query that's dumb, try to infer some keywords from the user question
- - Very important: your output will be given to another LLM so make sure not to return too much data (typically each row returns lot of data)
- - Use "all" for querying the same keyword over vision and audio
- - You typically always query screenpipe in the first user message
- - ALWAYS use the "stream_response" tool to stream the final response to the user
- - ALWAYS use the "stream_response" tool to stream the final response to the user
- - ALWAYS use the "stream_response" tool to stream the final response to the user
- - ONLY USE query tool ONCE
-
- `,
+ role: "user",
+ content:
+ messages.findLast((msg) => msg.role === "user")?.content ||
+ inputMessage,
},
- ...messages,
{
- role: "user",
- content: inputMessage,
+ role: "assistant",
+ content: [
+ {
+ toolCallId: text?.toolCalls?.[0]?.toolCallId!,
+ type: "tool-call",
+ toolName: "query_screenpipe",
+ args: text?.toolCalls?.[0]?.args ? text.toolCalls[0].args : {},
+ },
+ ],
+ },
+ {
+ role: "tool",
+ content: [
+ {
+ toolCallId: text?.toolCalls?.[0]?.toolCallId!,
+ type: "tool-result",
+ toolName: "query_screenpipe",
+ result: text?.toolResults,
+ },
+ ],
},
],
- maxToolRoundtrips: 2, // allow up to 5 tool roundtrips
});
- } catch (error) {
- if (error instanceof Error && error.message === "STREAM_COMPLETE") {
- console.log("Streaming completed");
- return;
- }
+ // create empty assistant message
+ setMessages((prevMessages) => [
+ ...prevMessages,
+ { id: nanoid(), role: "assistant", content: "" },
+ ]);
+
+ let fullResponse = "";
+ for await (const chunk of textStream) {
+ fullResponse += chunk;
+ setMessages((prevMessages) => [
+ ...prevMessages.slice(0, -1),
+ { id: nanoid(), role: "assistant", content: fullResponse },
+ ]);
+ }
+ } catch (error) {
console.error(error);
const errorMessage =
error instanceof Error ? error.message : "An unknown error occurred";
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-message-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-message-v2.tsx
index b8bdc8903..bc774a07d 100644
--- a/examples/apps/screenpipe-app-tauri/components/chat-message-v2.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/chat-message-v2.tsx
@@ -1,9 +1,8 @@
-// Inspired by Chatbot-UI and modified to fit the needs of this project
-// @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Chat/ChatMessage.tsx
-
import { Message } from "ai";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
+import { useState, useEffect, useCallback } from "react";
+import { readFile } from "@tauri-apps/plugin-fs";
import { cn } from "@/lib/utils";
import { CodeBlock } from "@/components/ui/codeblock";
@@ -19,8 +18,8 @@ export interface ChatMessageProps {
export function ChatMessage({ message, ...props }: ChatMessageProps) {
const { settings } = useSettings();
- const isMP4File = (content: string) =>
- content.trim().toLowerCase().endsWith(".mp4");
+ const hasMP4File = (content: string) =>
+ content.trim().toLowerCase().includes(".mp4");
return (
<div
@@ -38,7 +37,6 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
{message.role === "user" ? (
<IconUser />
) : settings.useOllama ? (
- // <IconOllama />
<>🦙</>
) : (
<IconOpenAI />
@@ -53,7 +51,6 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
return <p className="mb-2 last:mb-0">{children}</p>;
},
a({ node, href, children, ...props }) {
- // make links open in new tab
return (
<a
href={href}
@@ -69,15 +66,9 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
const content = String(children).replace(/\n$/, "");
const match = /language-(\w+)/.exec(className || "");
- // console.log("isInline", content, node);
if (!match) {
- if (isMP4File(content)) {
- return (
- <video controls className="w-full max-w-2xl">
- <source src={content} type="video/mp4" />
- your browser does not support the video tag.
- </video>
- );
+ if (hasMP4File(content)) {
+ return <VideoComponent filePath={content.trim()} />;
}
return (
<code
@@ -107,3 +98,40 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
</div>
);
}
+
+function VideoComponent({ filePath }: { filePath: string }) {
+ const [videoSrc, setVideoSrc] = useState<string | null>(null);
+
+ useEffect(() => {
+ async function loadVideo() {
+ try {
+ const videoData = await readFile(filePath);
+ const blob = new Blob([videoData], { type: "video/mp4" });
+ setVideoSrc(URL.createObjectURL(blob));
+ } catch (error) {
+ console.error("Failed to load video:", error);
+ }
+ }
+
+ loadVideo();
+
+ return () => {
+ if (videoSrc) URL.revokeObjectURL(videoSrc);
+ };
+ }, [filePath]);
+
+ if (!videoSrc) {
+ return (
+ <div className="w-full h-48 bg-gray-200 animate-pulse rounded-md flex items-center justify-center">
+ <span className="text-gray-500">Loading video...</span>
+ </div>
+ );
+ }
+
+ return (
+ <video controls className="w-full max-w-2xl">
+ <source src={videoSrc} type="video/mp4" />
+ Your browser does not support the video tag.
+ </video>
+ );
+}
diff --git a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
index 71922e1c8..615d48c34 100644
--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
@@ -29,19 +29,32 @@ interface FunctionCallMessageProps {
isResult?: boolean;
}
-export function FunctionCallMessage({
- message,
-}: FunctionCallMessageProps) {
+export function FunctionCallMessage({ message }: FunctionCallMessageProps) {
const { settings } = useSettings();
const [isDialogOpen, setIsDialogOpen] = useState(false);
console.log("FunctionCallMessage", message);
+ // Assuming message.content is the array shown in the image
+ // @ts-ignore
+ const toolCalls = message.content
+ .filter((item) => !item.result)
+ .map((item) => ({
+ type: item.type,
+ toolName: item.toolName,
+ args: item.args,
+ }));
- // @ts-ignore TODO
- const toolCalls = message.content.filter((content) => !content.result);
- // @ts-ignore TODO
- const toolResults = message.content.filter((content) => content.result);
- const isResult = toolResults && toolResults.length > 0;
+ // @ts-ignore
+ const toolResults = message.content
+ .filter((item) => item.result)
+ .map((item) => ({
+ type: item.type,
+ toolName: item.toolName,
+ result: item.result,
+ }));
+
+ // @ts-ignore
+ const isResult = toolResults.some((result) => result.result !== null);
console.log("toolCalls", toolCalls);
console.log("toolResults", toolResults);
@@ -102,7 +115,7 @@ export function FunctionCallMessage({
<AccordionContent>
<MarkdownContent
content={`\`\`\`json\n${JSON.stringify(
- toolCall,
+ toolCall.args,
null,
2
)}\n\`\`\``}
@@ -146,7 +159,7 @@ export function FunctionCallMessage({
<CodeBlock
language="bash"
value={generateCurlCommand(
- toolResult.args.queries[0]
+ toolResult.result[0].args.queries[0]
)}
/>
</DialogContent>
@@ -155,7 +168,7 @@ export function FunctionCallMessage({
<AccordionContent>
<MarkdownContent
content={`\`\`\`json\n${JSON.stringify(
- toolResult,
+ toolResult.result,
null,
2
)}\n\`\`\``}
diff --git a/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts b/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts
index 62a4613ce..624084683 100644
--- a/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts
+++ b/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts
@@ -21,20 +21,28 @@ export const screenpipeQuery = z.object({
),
limit: z
.number()
- .default(100)
+ .default(20)
.describe(
- "Number of results to return (default: 10). Don't return more than 50 results as it will be fed to an LLM"
+ "Number of results to return (default: 20). Don't return more than 50 results as it will be fed to an LLM"
),
offset: z.number().default(0).describe("Offset for pagination (default: 0)"),
start_time: z
.string()
// 1 hour ago
.default(new Date(Date.now() - 3600000).toISOString())
- .describe("Start time for search range in ISO 8601 format"),
- end_time: z
- .string()
- .default(new Date().toISOString())
- .describe("End time for search range in ISO 8601 format"),
+ .describe(`Start time for search range in ISO 8601 format
+ - Current time: ${new Date().toLocaleString()}. Adjust start/end times to match user intent.
+ - Convert user times to UTC. User timezone: ${
+ Intl.DateTimeFormat().resolvedOptions().timeZone
+ }
+ `),
+ end_time: z.string().default(new Date().toISOString())
+ .describe(`End time for search range in ISO 8601 format
+ - Current time: ${new Date().toLocaleString()}. Adjust start/end times to match user intent.
+ - Convert user times to UTC. User timezone: ${
+ Intl.DateTimeFormat().resolvedOptions().timeZone
+ }
+ `),
app_name: z
.string()
.describe(
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json b/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
index 82afddb04..548974967 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -86,6 +86,10 @@
{
"path": "$APP/*",
"requireLiteralLeadingDot": false
+ },
+ {
+ "path": "$HOME/.screenpipe/data/**",
+ "requireLiteralLeadingDot": false
}
]
},
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
index 2011c09bb..dd97d936f 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
@@ -1 +1 @@
-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open","fs:allow-watch","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",{"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}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default","shell:default","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default"]}}
\ No newline at end of file
+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open","fs:allow-watch","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",{"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}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default","shell:default","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default"]}}
\ No newline at end of file