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

progress on video embedding

Louis Beaumont072063ccaf27
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 7d0ffc5fb..82afddb04 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -32,46 +32,60 @@
"identifier": "fs:scope",
"allow": [
{
- "path": "$XDG_DATA_HOME"
+ "path": "$XDG_DATA_HOME",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$XDG_DATA_HOME/**"
+ "path": "$XDG_DATA_HOME/**",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$LOCALAPPDATA/*"
+ "path": "$LOCALAPPDATA/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$LOCALAPPDATA/**"
+ "path": "$LOCALAPPDATA/**",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APPLOCALDATA/*"
+ "path": "$APPLOCALDATA/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APPLOCALDATA/**"
+ "path": "$APPLOCALDATA/**",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APPDATA/*"
+ "path": "$APPDATA/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APPDATA/**"
+ "path": "$APPDATA/**",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APPCONFIG/*"
+ "path": "$APPCONFIG/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$RESOURCE/*"
+ "path": "$RESOURCE/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$RESOURCE/.screenpipe/*"
+ "path": "$RESOURCE/.screenpipe/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$HOME/*"
+ "path": "$HOME/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$HOME/.screenpipe/*"
+ "path": "$HOME/.screenpipe/*",
+ "requireLiteralLeadingDot": false
},
{
- "path": "$APP/*"
+ "path": "$APP/*",
+ "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 deeb783fd..2011c09bb 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"},{"path":"$XDG_DATA_HOME/**"},{"path":"$LOCALAPPDATA/*"},{"path":"$LOCALAPPDATA/**"},{"path":"$APPLOCALDATA/*"},{"path":"$APPLOCALDATA/**"},{"path":"$APPDATA/*"},{"path":"$APPDATA/**"},{"path":"$APPCONFIG/*"},{"path":"$RESOURCE/*"},{"path":"$RESOURCE/.screenpipe/*"},{"path":"$HOME/*"},{"path":"$HOME/.screenpipe/*"},{"path":"$APP/*"}]},{"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}]},{"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
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
index ce34599e3..b4a7f57ce 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
@@ -80,9 +80,12 @@
}
],
"security": {
+ "assetProtocol": {
+ "enable": false
+ },
"csp": {
"default-src": "'self' customprotocol: asset:",
- "connect-src": "ipc: http://ipc.localhost https://api.openai.com http://localhost:3030 https://web.crabnebula.cloud https://api.github.com https://eu.i.posthog.com https://github.com https://*.githubusercontent.com https://*.github.com http://*:11434",
+ "connect-src": "ipc: http://ipc.localhost https://api.openai.com http://localhost:3030 https://web.crabnebula.cloud https://api.github.com https://eu.i.posthog.com https://github.com https://*.githubusercontent.com https://*.github.com http://*:11434 http://*:9000",
"font-src": [
"https://fonts.gstatic.com",
"tauri://localhost",
diff --git a/examples/typescript/daily-detailed-activity-reporter/.gitignore b/examples/typescript/daily-detailed-activity-reporter/.gitignore
new file mode 100644
index 000000000..a56a7ef43
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+
diff --git a/examples/typescript/daily-detailed-activity-reporter/README.md b/examples/typescript/daily-detailed-activity-reporter/README.md
new file mode 100644
index 000000000..4844c0075
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/README.md
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+```bash
+pnpm i
+export OPENAI_API_KEY="<your key>"
+# or leave empty and use ollama (you will be prompted choice)
+pnpx tsx main.ts
+```
+
+i don't recommend using openai here, it could use lot of tokens
+
+bad experience with small ollama models (fail function calls)
+
+llama3.1, mistral-nemo are decent (7/13b)
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/typescript/daily-detailed-activity-reporter/main.ts b/examples/typescript/daily-detailed-activity-reporter/main.ts
new file mode 100644
index 000000000..2b9bedcf1
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/main.ts
@@ -0,0 +1,335 @@
+import { z } from "zod";
+import { createOpenAI } from "@ai-sdk/openai";
+import { generateObject, generateText, streamText } from "ai";
+import { queryScreenpipe } from "./screenpipe";
+// @ts-expect-error
+import * as fs from "fs/promises";
+import * as readline from "readline";
+import { createOllama } from "ollama-ai-provider";
+
+console.log("Starting daily tracker for freelancers");
+
+const TaskSchema = z.object({
+ topic: z
+ .string()
+ .optional()
+ .describe("The main topic or project area of the task, if identifiable"),
+ task: z
+ .string()
+ .optional()
+ .describe(
+ "A brief description of the specific task performed, if identifiable"
+ ),
+ unknown: z
+ .boolean()
+ .optional()
+ .describe("Set to true if the task cannot be classified"),
+});
+
+interface Task {
+ topic: string | undefined;
+ task: string | undefined;
+ startTime: string;
+ endTime: string;
+ duration: number;
+}
+
+interface DailyAnalysis {
+ tasks: Task[];
+ totalHours: number;
+}
+
+async function askForAIProvider(): Promise<{
+ provider: string;
+ model?: string;
+}> {
+ const rl = readline.createInterface({
+ // @ts-expect-error
+ input: process.stdin,
+ // @ts-expect-error
+ output: process.stdout,
+ });
+
+ const provider = await new Promise<string>((resolve) => {
+ rl.question(
+ "Which AI provider do you want to use? (ollama/openai): ",
+ (answer) => {
+ resolve(answer.toLowerCase());
+ }
+ );
+ });
+
+ let model: string | undefined;
+
+ if (provider === "ollama") {
+ model = await new Promise<string>((resolve) => {
+ rl.question(
+ "Which Ollama model do you want to use? (e.g., llama3.1, mistral-nemo, phi3, etc.): ",
+ (answer) => {
+ resolve(answer.toLowerCase());
+ }
+ );
+ });
+ }
+
+ rl.close();
+ return { provider, model };
+}
+
+async function dailyTracker() {
+ const { provider: aiProvider, model: ollamaModel } = await askForAIProvider();
+
+ let provider;
+
+ if (aiProvider === "ollama") {
+ console.log(`Using Ollama as the AI provider with model: ${ollamaModel}`);
+ console.log(
+ `Make sure to run \`ollama run ${ollamaModel}\` before running this script.`
+ );
+ provider = createOllama({ baseURL: "http://localhost:11434/api" })(
+ ollamaModel!
+ );
+ try {
+ await fetch(`http://localhost:11434/api/tags`);
+ } catch (error) {
+ console.log("error", error);
+ throw new Error(
+ "Cannot reach local Ollama instance at http://localhost:11434/api"
+ );
+ }
+ } else if (aiProvider === "openai") {
+ console.log("Using OpenAI as the AI provider.");
+ console.log(
+ "Make sure to set the OPENAI_API_KEY environment variable before running this script."
+ );
+ // @ts-expect-error
+ provider = createOpenAI({ apiKey: process.env.OPENAI_API_KEY })("gpt-4o");
+ } else {
+ console.log("Invalid AI provider. Exiting.");
+ return;
+ }
+
+ console.log(
+ "I'm going to crunch your daily activity and come back to you in a minute ..."
+ );
+
+ try {
+ await generateText({
+ model: provider,
+ tools: {
+ analyze_daily_activities: {
+ description: "Analyze daily activities and classify tasks",
+ parameters: z.object({}),
+ execute: async () => {
+ // daily time range
+ // start time is 12am today
+ // end time is now
+ const startTime = new Date();
+ startTime.setHours(0, 0, 0, 0);
+ const endTime = new Date();
+ const startTimeISO = startTime.toISOString();
+ const endTimeISO = endTime.toISOString();
+
+ console.log(
+ `Analyzing daily activities: ${startTime} to ${endTime}`
+ );
+ let tasks: Task[] = [];
+ let totalHours = 0;
+
+ const LIMIT = 5;
+ let offset = 0;
+ let hasMoreData = true;
+
+ while (hasMoreData) {
+ console.log(`Fetching data: offset ${offset}, limit ${LIMIT}`);
+ const result = await queryScreenpipe({
+ start_time: startTimeISO,
+ end_time: endTimeISO,
+ offset: offset,
+ limit: LIMIT,
+ content_type: "ocr",
+ });
+
+ const chunkContent = result.data
+ .map((entry) => JSON.stringify(entry.content))
+ .join(" ");
+
+ const classifiedTask = await generateObject({
+ model: provider,
+ schema: TaskSchema,
+ messages: [
+ {
+ role: "system",
+ content: `You are analyzing data from a productivity tool called Screenpipe. It captures screenshots of the user's digital activities throughout the day, including app usage. The tool then uses OCR (Optical Character Recognition) to extract text from these screenshots.
+
+Your task is to classify the following content into a task and topic, considering the context of a worker's typical workday. The content will be text extracted from screenshots, which may include snippets from various applications, websites, or documents the user interacted with.
+
+If you cannot identify a task or topic, set the 'unknown' field to true and other fields to undefined.
+
+Respond with a JSON object containing 'topic' and 'task' fields. Be specific and try to capture the essence of the worker's activity. Note that the OCR process may sometimes produce errors or incomplete text.
+
+Examples of tasks for workers:
+{
+ "topic": "Web Development",
+ "task": "Debugging a React component"
+}
+{
+ "topic": "Client Communication",
+ "task": "Reading project feedback emails"
+}
+{
+ "topic": "Graphic Design",
+ "task": "Creating logo mockups in Illustrator"
+}
+{
+ "topic": "Content Writing",
+ "task": "Researching SEO keywords for a blog post"
+}
+{
+ "topic": "Project Management",
+ "task": "Updating Trello board with new tasks"
+}
+
+Remember, the goal is to help workers understand their time usage and productivity patterns based on their screen activity.`,
+ },
+ { role: "user", content: chunkContent },
+ ],
+ });
+
+ const data = result.data.sort((a, b) => {
+ return (
+ new Date(a.content.timestamp).getTime() -
+ new Date(b.content.timestamp).getTime()
+ );
+ });
+ const firstResultTime = data[0].content.timestamp;
+ const lastResultTime = data[data.length - 1].content.timestamp;
+ const task = {
+ topic: classifiedTask.object.topic,
+ task: classifiedTask.object.task || "unknown",
+ startTime: firstResultTime,
+ endTime: lastResultTime,
+ duration: Math.max(
+ 0,
+ new Date(lastResultTime).getTime() -
+ new Date(firstResultTime).getTime()
+ ),
+ };
+ console.log(`task ${JSON.stringify(task)}`);
+
+ // @ts-expect-error
+ if (process.env.DEBUG) {
+ console.log(
+ `result.data[0] ${JSON.stringify(result.data[0].content)}`
+ );
+ }
+ tasks.push(task);
+ totalHours += task.duration;
+
+ offset += LIMIT;
+ hasMoreData = result.data.length === LIMIT;
+
+ console.log(
+ `Processed ${offset} entries. More data: ${hasMoreData}`
+ );
+ }
+
+ const dailyAnalysis: DailyAnalysis = { tasks, totalHours };
+ await fs.writeFile(
+ `daily_analysis_${new Date()
+ .toLocaleDateString("en-US")
+ .replace(/\//g, "_")}.json`,
+ JSON.stringify(dailyAnalysis, null, 2)
+ );
+ console.log("Daily analysis saved to daily_analysis.json");
+ return dailyAnalysis;
+ },
+ },
+ stream_response: {
+ description:
+ "Stream the final response to the user. Always use this tool to stream the final response to the user.",
+ parameters: z.object({
+ response: z
+ .string()
+ .describe("The final response to stream to the user"),
+ }),
+ execute: async ({ response }) => {
+ console.log("Streaming response to user");
+ const { textStream } = await streamText({
+ model: provider,
+ messages: [
+ {
+ role: "user",
+ content: response,
+ },
+ ],
+ });
+
+ for await (const chunk of textStream) {
+ // @ts-expect-error
+ process.stdout.write(chunk);
+ }
+ console.log("\nFinished streaming response");
+ throw new Error("STREAM_COMPLETE");
+ },
+ },
+ },
+ toolChoice: "required",
+ messages: [
+ {
+ role: "system",
+ content: `You are an AI assistant specialized in analyzing daily activities for workers.
+ This project uses Screenpipe to collect data about the worker's activities throughout the day,
+ including app usage, browser activity, and other digital interactions.
+
+ Always start by analyzing the data.
+ Always use the tool stream_response to stream the final response to the user
+
+ Your task is to process this data and provide meaningful insights about how the worker
+ spent their day. You'll analyze the collected data, classify tasks and topics, and generate
+ a comprehensive summary of the day's activities.
+
+ Key aspects of the project:
+ 1. Data collection: Uses Screenpipe to gather information about the user's digital activities.
+ 2. Task classification: Categorizes activities into tasks and topics.
+ 3. Daily summary: Provides an overview of time spent on different tasks and topics.
+
+ Your goal is to help workers understand their time usage and productivity patterns.
+
+ Rules:
+ - Provide a concise yet informative summary of the worker's day
+ - Highlight the main tasks and topics worked on
+ - Include the total hours worked
+ - Offer insights on time management and productivity if applicable
+ - Be objective and data-driven in your analysis
+ - Always start by analyzing the data using the tool analyze_daily_activities
+ - Always use the tool stream_response to stream the final response to the user`,
+ },
+ {
+ role: "user",
+ content: "Analyze my daily activities and provide a summary.",
+ },
+ ],
+ maxToolRoundtrips: 5,
+ });
+ } catch (error) {
+ if (error instanceof Error && error.message === "STREAM_COMPLETE") {
+ console.log("Daily tracking completed");
+ return;
+ }
+ throw error;
+ }
+}
+
+const main = async () => {
+ const startTime = new Date();
+ console.log(`Starting daily tracker at ${startTime.toISOString()}`);
+ await dailyTracker();
+ const endTime = new Date();
+ console.log(`Daily tracking completed at ${endTime.toISOString()}`);
+ console.log(
+ `Total execution time: ${endTime.getTime() - startTime.getTime()}ms`
+ );
+};
+
+main();
diff --git a/examples/typescript/daily-detailed-activity-reporter/package.json b/examples/typescript/daily-detailed-activity-reporter/package.json
new file mode 100644
index 000000000..298147b56
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/package.json
@@ -0,0 +1,12 @@
+{
+ "dependencies": {
+ "@ai-sdk/openai": "^0.0.40",
+ "ai": "^3.3.0",
+ "ollama-ai-provider": "^0.11.0",
+ "readline": "^1.3.0",
+ "zod": "^3.23.8"
+ },
+ "devDependencies": {
+ "@types/node": "^22.1.0"
+ }
+}
diff --git a/examples/typescript/daily-detailed-activity-reporter/pnpm-lock.yaml b/examples/typescript/daily-detailed-activity-reporter/pnpm-lock.yaml
new file mode 100644
index 000000000..33e6a5a02
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/pnpm-lock.yaml
@@ -0,0 +1,636 @@
+lockfileVersion: '6.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+dependencies:
+ '@ai-sdk/openai':
+ specifier: ^0.0.40
+ version: 0.0.40([email protected])
+ ai:
+ specifier: ^3.3.0
+ ollama-ai-provider:
+ specifier: ^0.11.0
+ version: 0.11.0([email protected])
+ readline:
+ specifier: ^1.3.0
+ version: 1.3.0
+ zod:
+ specifier: ^3.23.8
+ version: 3.23.8
+
+devDependencies:
+ '@types/node':
+ specifier: ^22.1.0
+ version: 22.1.0
+
+packages:
+
+ resolution: {integrity: sha512-9Iq1UaBHA5ZzNv6j3govuKGXrbrjuWvZIgWNJv4xzXlDMHu9P9hnqlBr/Aiay54WwCuTVNhTzAUTfFgnTs2kbQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.0.0
+ dependencies:
+ '@ai-sdk/provider': 0.0.14
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ zod: 3.23.8
+ dev: false
+
+ resolution: {integrity: sha512-XfOawxk95X3S43arn2iQIFyWGMi0DTxsf9ETc6t7bh91RPWOOPYN1tsmS5MTKD33OGJeaDQ/gnVRzXUCRBrckQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider': 0.0.14
+ eventsource-parser: 1.1.2
+ nanoid: 3.3.6
+ secure-json-parse: 2.7.0
+ zod: 3.23.8
+ dev: false
+
+ /@ai-sdk/[email protected]:
+ resolution: {integrity: sha512-gaQ5Y033nro9iX1YUjEDFDRhmMcEiCk56LJdIUbX5ozEiCNCfpiBpEqrjSp/Gp5RzBS2W0BVxfG7UGW6Ezcrzg==}
+ engines: {node: '>=18'}
+ dependencies:
+ json-schema: 0.4.0
+ dev: false
+
+ resolution: {integrity: sha512-LAxFLtHKN1BajTNP8YzyVIwXn45LSunmvm2Svrfq5oPOyJ2gUEjtaONnbme4mwRXJ1kk6b63SLrgOIXbz6XF/g==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ react: ^18 || ^19
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ react:
+ optional: true
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ '@ai-sdk/ui-utils': 0.0.24([email protected])
+ react: 18.3.1
+ swr: 2.2.5([email protected])
+ zod: 3.23.8
+ dev: false
+
+ resolution: {integrity: sha512-uEvlT7MBkRRZxk7teDgtrGe7G3U9tspgSJUvupdOE2d0a4vLlHrMqHb07ao97/Xo1aVHh7oBF9XIgRzKnFtbIQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ solid-js: ^1.7.7
+ peerDependenciesMeta:
+ solid-js:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ '@ai-sdk/ui-utils': 0.0.24([email protected])
+ transitivePeerDependencies:
+ - zod
+ dev: false
+
+ resolution: {integrity: sha512-7vrh61wXPVfy19nS4CqyAC3UWjsOgj/b94PCccVTGFoqbmVSa0VptXPYoFfgPTP/W71v7TjXqeq1ygLc4noTZw==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ svelte: ^3.0.0 || ^4.0.0
+ peerDependenciesMeta:
+ svelte:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ '@ai-sdk/ui-utils': 0.0.24([email protected])
+ sswr: 2.1.0([email protected])
+ svelte: 4.2.18
+ transitivePeerDependencies:
+ - zod
+ dev: false
+
+ resolution: {integrity: sha512-NBhhICWJ5vAkN4BJnP/MyT+fOB6rTlGlsKGQwvjlhNxdrY1/jXqe2ikNkCbCSEz20IDk82bmg2JJBM96g1O3Ig==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider': 0.0.14
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ secure-json-parse: 2.7.0
+ zod: 3.23.8
+ dev: false
+
+ resolution: {integrity: sha512-ZnDjkkUH/9xoXqJEmyrG9Z8z7DKBnp2uyCd9ZVI8QSqKOaP0jOwhv8THUXlIqDEF+ULLGMWm0XeY/L7i3CMYTA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ vue: ^3.3.4
+ peerDependenciesMeta:
+ vue:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ '@ai-sdk/ui-utils': 0.0.24([email protected])
+ swrv: 1.0.4([email protected])
+ vue: 3.4.35
+ transitivePeerDependencies:
+ - zod
+ dev: false
+
+ /@ampproject/[email protected]:
+ resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.5
+ '@jridgewell/trace-mapping': 0.3.25
+ dev: false
+
+ resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==}
+ engines: {node: '>=6.9.0'}
+ dev: false
+
+ resolution: {integrity: sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/types': 7.25.2
+ dev: false
+
+ resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==}
+ engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.24.8
+ '@babel/helper-validator-identifier': 7.24.7
+ to-fast-properties: 2.0.0
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}
+ engines: {node: '>=6.0.0'}
+ dependencies:
+ '@jridgewell/set-array': 1.2.1
+ '@jridgewell/sourcemap-codec': 1.5.0
+ '@jridgewell/trace-mapping': 0.3.25
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
+ engines: {node: '>=6.0.0'}
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
+ dev: false
+
+ /@jridgewell/[email protected]:
+ resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.0
+ dev: false
+
+ /@opentelemetry/[email protected]:
+ resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}
+ engines: {node: '>=8.0.0'}
+ dev: false
+
+ resolution: {integrity: sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==}
+ dev: false
+
+ resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
+ dev: false
+
+ resolution: {integrity: sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==}
+ dependencies:
+ undici-types: 6.13.0
+ dev: true
+
+ resolution: {integrity: sha512-gKp0zGoLnMYtw4uS/SJRRO7rsVggLjvot3mcctlMXunYNsX+aRJDqqw/lV5/gHK91nvaAAlWFgdVl020AW1Prg==}
+ dependencies:
+ '@babel/parser': 7.25.3
+ '@vue/shared': 3.4.35
+ entities: 4.5.0
+ estree-walker: 2.0.2
+ source-map-js: 1.2.0
+ dev: false
+
+ resolution: {integrity: sha512-pWIZRL76/oE/VMhdv/ovZfmuooEni6JPG1BFe7oLk5DZRo/ImydXijoZl/4kh2406boRQ7lxTYzbZEEXEhj9NQ==}
+ dependencies:
+ '@vue/compiler-core': 3.4.35
+ '@vue/shared': 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-xacnRS/h/FCsjsMfxBkzjoNxyxEyKyZfBch/P4vkLRvYJwe5ChXmZZrj8Dsed/752H2Q3JE8kYu9Uyha9J6PgA==}
+ dependencies:
+ '@babel/parser': 7.25.3
+ '@vue/compiler-core': 3.4.35
+ '@vue/compiler-dom': 3.4.35
+ '@vue/compiler-ssr': 3.4.35
+ '@vue/shared': 3.4.35
+ estree-walker: 2.0.2
+ magic-string: 0.30.11
+ postcss: 8.4.40
+ source-map-js: 1.2.0
+ dev: false
+
+ resolution: {integrity: sha512-7iynB+0KB1AAJKk/biENTV5cRGHRdbdaD7Mx3nWcm1W8bVD6QmnH3B4AHhQQ1qZHhqFwzEzMwiytXm3PX1e60A==}
+ dependencies:
+ '@vue/compiler-dom': 3.4.35
+ '@vue/shared': 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-Ggtz7ZZHakriKioveJtPlStYardwQH6VCs9V13/4qjHSQb/teE30LVJNrbBVs4+aoYGtTQKJbTe4CWGxVZrvEw==}
+ dependencies:
+ '@vue/shared': 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-D+BAjFoWwT5wtITpSxwqfWZiBClhBbR+bm0VQlWYFOadUUXFo+5wbe9ErXhLvwguPiLZdEF13QAWi2vP3ZD5tA==}
+ dependencies:
+ '@vue/reactivity': 3.4.35
+ '@vue/shared': 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-yGOlbos+MVhlS5NWBF2HDNgblG8e2MY3+GigHEyR/dREAluvI5tuUUgie3/9XeqhPE4LF0i2wjlduh5thnfOqw==}
+ dependencies:
+ '@vue/reactivity': 3.4.35
+ '@vue/runtime-core': 3.4.35
+ '@vue/shared': 3.4.35
+ csstype: 3.1.3
+ dev: false
+
+ resolution: {integrity: sha512-iZ0e/u9mRE4T8tNhlo0tbA+gzVkgv8r5BX6s1kRbOZqfpq14qoIvCZ5gIgraOmYkMYrSEZgkkojFPr+Nyq/Mnw==}
+ peerDependencies:
+ vue: 3.4.35
+ dependencies:
+ '@vue/compiler-ssr': 3.4.35
+ '@vue/shared': 3.4.35
+ vue: 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ==}
+ dev: false
+
+ resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+ dev: false
+
+ resolution: {integrity: sha512-ndW4G9jw8ImIsTWK2iderOWMVn4H3B6u+KHlZ7hJEvFBdBYTFQ62qTw10AmHsQefjwHRC/2evr9qf79EkSwo9Q==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ openai: ^4.42.0
+ react: ^18 || ^19
+ sswr: ^2.1.0
+ svelte: ^3.0.0 || ^4.0.0
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ openai:
+ optional: true
+ react:
+ optional: true
+ sswr:
+ optional: true
+ svelte:
+ optional: true
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider': 0.0.14
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ '@ai-sdk/react': 0.0.36([email protected])([email protected])
+ '@ai-sdk/solid': 0.0.27([email protected])
+ '@ai-sdk/svelte': 0.0.29([email protected])([email protected])
+ '@ai-sdk/ui-utils': 0.0.24([email protected])
+ '@ai-sdk/vue': 0.0.28([email protected])([email protected])
+ '@opentelemetry/api': 1.9.0
+ eventsource-parser: 1.1.2
+ json-schema: 0.4.0
+ jsondiffpatch: 0.6.0
+ nanoid: 3.3.6
+ react: 18.3.1
+ secure-json-parse: 2.7.0
+ svelte: 4.2.18
+ zod: 3.23.8
+ zod-to-json-schema: 3.22.5([email protected])
+ transitivePeerDependencies:
+ - solid-js
+ - vue
+ dev: false
+
+ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
+ dependencies:
+ dequal: 2.0.3
+ dev: false
+
+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
+ engines: {node: '>= 0.4'}
+ dev: false
+
+ resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+ dev: false
+
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+ dev: false
+
+ resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.0
+ '@types/estree': 1.0.5
+ acorn: 8.12.1
+ estree-walker: 3.0.3
+ periscopic: 3.1.0
+ dev: false
+
+ resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+ dependencies:
+ mdn-data: 2.0.30
+ source-map-js: 1.2.0
+ dev: false
+
+ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
+ dev: false
+
+ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
+ engines: {node: '>=6'}
+ dev: false
+
+ resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==}
+ dev: false
+
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+ dev: false
+
+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ dev: false
+
+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+ dependencies:
+ '@types/estree': 1.0.5
+ dev: false
+
+ resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==}
+ engines: {node: '>=14.18'}
+ dev: false
+
+ resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==}
+ dependencies:
+ '@types/estree': 1.0.5
+ dev: false
+
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+ dev: false
+
+ resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}
+ dev: false
+
+ resolution: {integrity: sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ dependencies:
+ '@types/diff-match-patch': 1.0.36
+ chalk: 5.3.0
+ diff-match-patch: 1.0.5
+ dev: false
+
+ resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}
+ dev: false
+
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+ dependencies:
+ js-tokens: 4.0.0
+ dev: false
+
+ resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.0
+ dev: false
+
+ resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
+ dev: false
+
+ resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+ dev: false
+
+ resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+ dev: false
+
+ resolution: {integrity: sha512-zobsS8pZJ7IUfqQF+QiqWBG92ocm4fHpV+iXUCXoFtNMSN65Nr3v0TyW2sTooku3BVm9EmOBeMenKSOIv7h5Sw==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider': 0.0.14
+ '@ai-sdk/provider-utils': 1.0.5([email protected])
+ partial-json: 0.1.7
+ zod: 3.23.8
+ dev: false
+
+ resolution: {integrity: sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==}
+ dev: false
+
+ resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==}
+ dependencies:
+ '@types/estree': 1.0.5
+ estree-walker: 3.0.3
+ is-reference: 3.0.2
+ dev: false
+
+ resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
+ dev: false
+
+ resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==}
+ engines: {node: ^10 || ^12 || >=14}
+ dependencies:
+ nanoid: 3.3.7
+ picocolors: 1.0.1
+ source-map-js: 1.2.0
+ dev: false
+
+ resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
+ engines: {node: '>=0.10.0'}
+ dependencies:
+ loose-envify: 1.4.0
+ dev: false
+
+ resolution: {integrity: sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==}
+ dev: false
+
+ resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}
+ dev: false
+
+ resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
+ engines: {node: '>=0.10.0'}
+ dev: false
+
+ resolution: {integrity: sha512-Cqc355SYlTAaUt8iDPaC/4DPPXK925PePLMxyBKuWd5kKc5mwsG3nT9+Mq2tyguL5s7b4Jg+IRMpTRsNTAfpSQ==}
+ peerDependencies:
+ svelte: ^4.0.0 || ^5.0.0-next.0
+ dependencies:
+ svelte: 4.2.18
+ swrev: 4.0.0
+ dev: false
+
+ resolution: {integrity: sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==}
+ engines: {node: '>=16'}
+ dependencies:
+ '@ampproject/remapping': 2.3.0
+ '@jridgewell/sourcemap-codec': 1.5.0
+ '@jridgewell/trace-mapping': 0.3.25
+ '@types/estree': 1.0.5
+ acorn: 8.12.1
+ aria-query: 5.3.0
+ axobject-query: 4.1.0
+ code-red: 1.0.4
+ css-tree: 2.3.1
+ estree-walker: 3.0.3
+ is-reference: 3.0.2
+ locate-character: 3.0.0
+ magic-string: 0.30.11
+ periscopic: 3.1.0
+ dev: false
+
+ resolution: {integrity: sha512-QtxqyclFeAsxEUeZIYmsaQ0UjimSq1RZ9Un7I68/0ClKK/U3LoyQunwkQfJZr2fc22DfIXLNDc2wFyTEikCUpg==}
+ peerDependencies:
+ react: ^16.11.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ client-only: 0.0.1
+ react: 18.3.1
+ use-sync-external-store: 1.2.2([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-LqVcOHSB4cPGgitD1riJ1Hh4vdmITOp+BkmfmXRh4hSF/t7EnS4iD+SOTmq7w5pPm/SiPeto4ADbKS6dHUDWFA==}
+ dev: false
+
+ resolution: {integrity: sha512-zjEkcP8Ywmj+xOJW3lIT65ciY/4AL4e/Or7Gj0MzU3zBJNMdJiT8geVZhINavnlHRMMCcJLHhraLTAiDOTmQ9g==}
+ peerDependencies:
+ vue: '>=3.2.26 < 4'
+ dependencies:
+ vue: 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
+ engines: {node: '>=4'}
+ dev: false
+
+ resolution: {integrity: sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==}
+ dev: true
+
+ resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ react: 18.3.1
+ dev: false
+
+ resolution: {integrity: sha512-+fl/GLmI4GPileHftVlCdB7fUL4aziPcqTudpTGXCT8s+iZWuOCeNEB5haX6Uz2IpRrbEXOgIFbe+XciCuGbNQ==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@vue/compiler-dom': 3.4.35
+ '@vue/compiler-sfc': 3.4.35
+ '@vue/runtime-dom': 3.4.35
+ '@vue/server-renderer': 3.4.35([email protected])
+ '@vue/shared': 3.4.35
+ dev: false
+
+ resolution: {integrity: sha512-+akaPo6a0zpVCCseDed504KBJUQpEW5QZw7RMneNmKw+fGaML1Z9tUNLnHHAC8x6dzVRO1eB2oEMyZRnuBZg7Q==}
+ peerDependencies:
+ zod: ^3.22.4
+ dependencies:
+ zod: 3.23.8
+ dev: false
+
+ resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
+ dev: false
diff --git a/examples/typescript/daily-detailed-activity-reporter/screenpipe.ts b/examples/typescript/daily-detailed-activity-reporter/screenpipe.ts
new file mode 100644
index 000000000..2ba5f2900
--- /dev/null
+++ b/examples/typescript/daily-detailed-activity-reporter/screenpipe.ts
@@ -0,0 +1,91 @@
+import { z } from "zod";
+import { openai } from "@ai-sdk/openai";
+import { generateText, streamText } from "ai";
+import * as readline from "readline";
+import { ollama } from "ollama-ai-provider";
+
+export const screenpipeQuery = z.object({
+ q: z
+ .string()
+ .describe(
+ "The search query matching exact keywords. Use a single keyword that best matches the user intent. This would match either audio transcription or OCR screen text. Example: do not use 'discuss' the user ask about conversation, this is dumb, won't return any result"
+ )
+ .optional(),
+ content_type: z
+ .enum(["ocr", "audio", "all"])
+ .default("all")
+ .describe(
+ "The type of content to search for: screenshot data or audio transcriptions"
+ ),
+ limit: z
+ .number()
+ .default(20)
+ .describe(
+ "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"),
+ app_name: z
+ .string()
+ .describe(
+ "The name of the app the user was using. This filter out all audio conversations. Only works with screen text. Use this to filter on the app context that would give context matching the user intent. For example 'cursor'. Use lower case. Browser is usually 'arc', 'chrome', 'safari', etc. Do not use thing like 'mail' because the user use the browser to read the mail."
+ )
+ .optional(),
+});
+export const screenpipeMultiQuery = z.object({
+ queries: z.array(screenpipeQuery),
+});
+
+export async function queryScreenpipeNtimes(
+ params: z.infer<typeof screenpipeMultiQuery>
+) {
+ console.log(
+ "Using tool queryScreenpipeNtimes with params:",
+ JSON.stringify(params)
+ );
+ return Promise.all(params.queries.map(queryScreenpipe));
+}
+
+// Add this new function to handle screenpipe requests
+export async function queryScreenpipe(params: z.infer<typeof screenpipeQuery>) {
+ try {
+ console.log("params", params);
+ const queryParams = new URLSearchParams(
+ Object.entries({
+ q: params.q,
+ offset: params.offset.toString(),
+ limit: params.limit.toString(),
+ start_date: params.start_time,
+ end_date: params.end_time,
+ content_type: params.content_type,
+ app_name: params.app_name,
+ }).filter(([_, v]) => v != null) as [string, string][]
+ );
+ console.log("calling screenpipe", JSON.stringify(params));
+ const response = await fetch(`http://localhost:3030/search?${queryParams}`);
+ if (!response.ok) {
+ const text = await response.text();
+ console.log("error", text);
+ throw new Error(`HTTP error! status: ${response.status} ${text}`);
+ }
+ const result = await response.json();
+ console.log("result", result.data.length);
+ // log all without .data
+ console.log("result", {
+ ...result,
+ data: undefined,
+ });
+ return result;
+ } catch (error) {
+ console.error("Error querying screenpipe:", error);
+ return null;
+ }
+}