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

chore: ui improvement in playground

Louis Beaumontd4dc845f9b7f
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 bbb29e1aa..92fa64d8a 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
@@ -16,82 +16,8 @@ import { FunctionCallMessage } from "./function-call-message";
import { EmptyScreen } from "./empty-screen";
import { useSettings } from "@/lib/hooks/use-settings";
import { usePostHog } from "posthog-js/react";
-
-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(5)
- .describe(
- "Number of results to return (default: 5). 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."
- )
- .optional(),
-});
-const screenpipeMultiQuery = z.object({
- queries: z.array(screenpipeQuery),
-});
-
-async function queryScreenpipeNtimes(
- params: z.infer<typeof screenpipeMultiQuery>
-) {
- return Promise.all(params.queries.map(queryScreenpipe));
-}
-
-// Add this new function to handle screenpipe requests
-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();
- throw new Error(`HTTP error! status: ${response.status} ${text}`);
- }
- const result = await response.json();
- console.log("result", result);
- return result;
- } catch (error) {
- console.error("Error querying screenpipe:", error);
- return null;
- }
-}
+import * as Sentry from "@sentry/nextjs";
+import { queryScreenpipeNtimes, screenpipeMultiQuery } from "@/lib/screenpipe";
// Add this function outside of the ChatList component
async function generateTextWithRetry(
@@ -103,6 +29,10 @@ async function generateTextWithRetry(
try {
return await generateText(params);
} catch (error) {
+ // ignore if the error is "STREAM_COMPLETE"
+ if (error instanceof Error && error.message === "STREAM_COMPLETE") {
+ return;
+ }
console.error(`Attempt ${i + 1} failed:`, error);
if (i === maxRetries - 1) throw error;
// sleep
@@ -169,17 +99,103 @@ export function ChatList({
// console.log("provider", provider);
console.log("model", model);
- const text = await generateTextWithRetry({
+ generateTextWithRetry({
model: provider(model),
tools: {
query_screenpipe: {
- description:
- "Query the local screenpipe instance for relevant information. You will return multiple queries under the key 'queries'.",
+ description: `Query the local screenpipe instance for relevant information.
+ You will return multiple queries under the key 'queries'.
+ Make sure to return a list of queries, not a single query.
+
+ - MAKE SURE TO RETURN AN ARRAY OF QUERIES e.g. {"queries": [ ... ]}
+
+ Example answers from you:
+ "{
+ "queries": [
+ {"q": "goal", "offset": 0, "limit": 10, "content_type": "all", "start_date": "2024-07-21T11:30:25Z", "end_date": "2024-07-21T11:35:25Z", "app_name": "arc"},
+ {"offset": 0, "limit": 50, "content_type": "ocr", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z"},
+ {"q": "customer", "offset": 0, "limit": 20, "content_type": "audio", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z"}
+ ]
+ }"
+
+ `,
parameters: screenpipeMultiQuery,
- execute: queryScreenpipeNtimes,
+ execute: async (e: z.infer<typeof screenpipeMultiQuery>) => {
+ // @ts-ignore
+ setMessages((prevMessages) => [
+ ...prevMessages,
+ {
+ id: nanoid(),
+ role: "toolCall",
+ content: [
+ {
+ type: "function",
+ toolName: "query_screenpipe",
+ args: {
+ queries: e.queries,
+ },
+ },
+ ],
+ },
+ ]);
+ const result = await queryScreenpipeNtimes(e);
+ // @ts-ignore
+ setMessages((prevMessages) => [
+ ...prevMessages,
+ {
+ id: nanoid(),
+ role: "toolResult",
+ content: [
+ {
+ type: "function",
+ toolName: "query_screenpipe",
+ args: {
+ queries: e.queries,
+ },
+ result: result,
+ },
+ ],
+ },
+ ]);
+ return result;
+ },
+ },
+ stream_response: {
+ description:
+ "Stream the final response to the user. 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
+ )
+ );
+ }
+
+ throw new Error("STREAM_COMPLETE");
+ },
},
},
- toolChoice: "required",
+ toolChoice: "auto",
messages: [
{
role: "system",
@@ -188,7 +204,6 @@ export function ChatList({
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.
- Each query should have "q", "offset", "limit", "start_date", "end_date", and "content_type" fields.
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.
Return a list of objects with the key "queries"
@@ -202,28 +217,10 @@ export function ChatList({
- 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 between 2-5 queries with very different keywords that could maximally match the user's screen text or audio transcript
- Use "all" for querying the same keyword over vision and audio
- - MAKE SURE TO RETURN AN ARRAY OF QUERIES e.g. {"queries": [ ... ]}
- - MAKE SURE TO RETURN AN ARRAY OF QUERIES e.g. {"queries": [ ... ]}
- - MAKE SURE TO RETURN AN ARRAY OF QUERIES e.g. {"queries": [ ... ]}
- You typically always query screenpipe in the first user message
-
- Example answers from you:
- "{
- "queries": [
- {"q": "goal", "offset": 0, "limit": 10, "content_type": "all", "start_date": "2024-07-21T11:30:25Z", "end_date": "2024-07-21T11:35:25Z", "app_name": "arc"},
- {"offset": 0, "limit": 50, "content_type": "ocr", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z"},
- {"q": "customer", "offset": 0, "limit": 20, "content_type": "audio", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z"}
- ]
- }"
-
- or
- "{
- "queries": [
- {"q": "sales", "offset": 0, "limit": 10, "content_type": "all", "start_date": "2024-07-21T11:30:25Z", "end_date": "2024-07-21T11:35:25Z"},
- {"q": "customer", "offset": 0, "limit": 20, "content_type": "all", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z"},
- {"offset": 0, "limit": 10, "content_type": "all", "start_date": "2024-07-19T08:00:25Z", "end_date": "2024-07-20T09:00:25Z", "app_name": "notes"}
- ]
- }"
+ - 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
`,
},
@@ -233,100 +230,20 @@ export function ChatList({
content: inputMessage,
},
],
- // maxToolRoundtrips: 2, // allow up to 5 tool roundtrips
- // prompt: inputMessage,
+ maxToolRoundtrips: 3, // allow up to 5 tool roundtrips
});
-
- setIsLoading(false);
-
- console.log("text", text);
-
- // @ts-ignore
- setMessages((prevMessages) => [
- ...prevMessages,
- { id: nanoid(), role: "assistant", content: text!.toolCalls },
- { id: nanoid(), role: "tool", content: text!.toolResults },
- ]);
-
- console.log("streaming now");
-
- // console.log("toolCalls", text.toolCalls);
- // console.log("toolResults", text.toolResults);
-
- const { textStream } = useOllama
- ? await streamText({
- model: provider(model),
- prompt: JSON.stringify([
- {
- role: "user",
- content:
- messages.findLast((msg) => msg.role === "user")?.content ||
- inputMessage,
- },
- {
- role: "assistant",
- content: text!.toolCalls,
- },
- {
- role: "tool",
- content: text!.toolResults,
- },
- // just a hack because ollama is drunk
- {
- role: "user",
- content: "MAKE SURE TO ANSWER THE USER QUESTION ROLE 'USER'",
- },
- ]),
- })
- : await streamText({
- model: provider(model),
- messages: [
- {
- role: "user",
- content:
- messages.findLast((msg) => msg.role === "user")?.content ||
- inputMessage,
- },
- {
- role: "assistant",
- content: text!.toolCalls,
- },
- {
- role: "tool",
- content: text!.toolResults,
- },
- ],
- });
-
- // console.log("textStream", textStream);
-
- // create new assistant
- const assistantMessageId = nanoid();
- setMessages((prevMessages) => [
- ...prevMessages,
- { id: assistantMessageId, role: "assistant", content: "" },
- ]);
-
- let fullResponse = "";
- for await (const chunk of textStream) {
- fullResponse += chunk;
- // console.log("fullResponse", fullResponse);
- setMessages((prevMessages) =>
- prevMessages.map((msg) =>
- msg.id === assistantMessageId
- ? { ...msg, content: fullResponse }
- : msg
- )
- );
- }
} catch (error) {
+ if (error instanceof Error && error.message === "STREAM_COMPLETE") {
+ console.log("Streaming completed");
+ return;
+ }
+
console.error(error);
const errorMessage =
error instanceof Error ? error.message : "An unknown error occurred";
- const assistantMessageId = nanoid();
setMessages((prevMessages) => [
...prevMessages,
- { id: assistantMessageId, role: "assistant", content: errorMessage },
+ { id: nanoid(), role: "assistant", content: errorMessage },
]);
if (errorMessage === "Cannot reach local Ollama instance") {
@@ -337,6 +254,8 @@ export function ChatList({
{ id: nanoid(), role: "assistant", content: ollamaErrorMessage },
]);
}
+
+ Sentry.captureException(error);
} finally {
setIsLoading(false);
}
@@ -349,7 +268,7 @@ export function ChatList({
return (
<div className="flex flex-col h-full">
- <div className="flex-1 overflow-y-auto pb-32">
+ <div className="flex-1 pb-32">
{messages.length === 0 ? (
<EmptyScreen onSuggestionClick={handleSuggestionClick} />
) : (
@@ -363,13 +282,9 @@ export function ChatList({
(msg.role === "assistant" && typeof msg.content === "string")
) {
return <ChatMessage key={index} message={msg} />;
- } else if (
- msg.role === "assistant" &&
- msg.content &&
- typeof msg.content === "object"
- ) {
+ } else if (msg.role === "toolCall") {
return <FunctionCallMessage key={index} message={msg} />;
- } else if (msg.role === "tool") {
+ } else if (msg.role === "toolResult") {
return (
<FunctionCallMessage key={index} message={msg} isResult />
);
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 662c14a68..f35af111a 100644
--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx
@@ -35,14 +35,14 @@ export function FunctionCallMessage({
}: FunctionCallMessageProps) {
const { settings } = useSettings();
const [isDialogOpen, setIsDialogOpen] = useState(false);
- // console.log("FunctionCallMessage", message);
+ console.log("FunctionCallMessage", message);
// @ts-ignore TODO
const toolCalls = message.content.filter((content) => !content.result);
// @ts-ignore TODO
const toolResults = message.content.filter((content) => content.result);
- // console.log("toolCalls", toolCalls);
- // console.log("toolResults", toolResults);
+ console.log("toolCalls", toolCalls);
+ console.log("toolResults", toolResults);
// message.content.find((content) => content.args.queries
return (
<div className="group relative mb-4 flex items-start md:-ml-12">
@@ -220,8 +220,9 @@ function generateCurlCommand(query: any): string {
content_type: query.contentType || "all",
limit: query.limit?.toString() || "10",
offset: query.offset?.toString() || "0",
- start_time: query.startTime || "",
- end_time: query.endTime || "",
+ start_time: query.start_time || "",
+ end_time: query.end_time || "",
+ app_name: query.app_name || "",
}).toString();
return `curl "${baseUrl}/search?\\
diff --git a/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx b/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx
index fd82d4367..ee00ae3fc 100644
--- a/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx
@@ -297,7 +297,7 @@ export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {
}, [isStreaming, meetingStartTime, settings]);
return (
- <div className="flex flex-col h-full overflow-y-auto">
+ <div className="flex flex-col h-full ">
<h2 className="text-2xl font-bold mb-2">
Local First Meeting Summarizer
</h2>
@@ -338,7 +338,7 @@ export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {
)}
</TabsList>
<div className="flex-grow overflow-hidden">
- <TabsContent value="controls" className="h-full overflow-y-auto">
+ <TabsContent value="controls" className="h-full ">
<p className="mb-4">{pipe.description}</p>
<div className="flex space-x-2 mb-4">
<Button onClick={handleStartMeeting} disabled={isStreaming}>
@@ -354,7 +354,7 @@ export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {
</p>
)}
</TabsContent>
- <TabsContent value="transcript" className="h-full overflow-y-auto">
+ <TabsContent value="transcript" className="h-full ">
<div className="space-y-4 space-x-4">
<Button
variant="outline"
diff --git a/examples/apps/screenpipe-app-tauri/components/settings.tsx b/examples/apps/screenpipe-app-tauri/components/settings.tsx
index fa41e32f4..6c0dc49d1 100644
--- a/examples/apps/screenpipe-app-tauri/components/settings.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/settings.tsx
@@ -114,7 +114,7 @@ export function Settings({ className }: { className?: string }) {
</div>
<p className="text-sm text-muted-foreground text-center">
{localSettings.useOllama
- ? "recommended: llama3.1 for ollama"
+ ? "recommended: llama3.1 for ollama (we only support models supporting tools like llama3.1, mistral-nemo, etc.)"
: "recommended: gpt-4o for openai"}
</p>
</div>
@@ -220,8 +220,8 @@ export function Settings({ className }: { className?: string }) {
</div>
{/* add small text to indicate only port 11434 is supported for security reasons */}
<p className="mt-1 text-sm text-muted-foreground text-center">
- For now only port 11434 is supported for security
- reasons.
+ For now only port 11434 and 9000 are supported for
+ security reasons.
</p>
</div>
</div>
diff --git a/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts b/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts
new file mode 100644
index 000000000..da51e38f5
--- /dev/null
+++ b/examples/apps/screenpipe-app-tauri/lib/screenpipe.ts
@@ -0,0 +1,90 @@
+import { z } from "zod";
+
+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
+ Other example: 'what did i do this morning?' do not use any keywords, just look at everything
+ `
+ )
+ .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(100)
+ .describe(
+ "Number of results to return (default: 10). 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.
+ Other apps can be 'whatsapp', 'obsidian', etc.
+ `
+ )
+ .optional(),
+});
+export const screenpipeMultiQuery = z.object({
+ queries: z.array(screenpipeQuery),
+});
+
+export async function queryScreenpipeNtimes(
+ params: z.infer<typeof screenpipeMultiQuery>
+) {
+ 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();
+ throw new Error(`HTTP error! status: ${response.status} ${text}`);
+ }
+ const result = await response.json();
+ console.log("result", result);
+ return result;
+ } catch (error) {
+ console.error("Error querying screenpipe:", error);
+ return null;
+ }
+}
diff --git a/examples/apps/screenpipe-app-tauri/package.json b/examples/apps/screenpipe-app-tauri/package.json
index ac4408560..73e811df3 100644
--- a/examples/apps/screenpipe-app-tauri/package.json
+++ b/examples/apps/screenpipe-app-tauri/package.json
@@ -34,7 +34,7 @@
"@tauri-apps/plugin-shell": "2.0.0-beta.8",
"@tauri-apps/plugin-store": "2.0.0-beta.7",
"@tauri-apps/plugin-updater": "2.0.0-beta.7",
- "ai": "^3.2.35",
+ "ai": "^3.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.414.0",
diff --git a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml b/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml
index e362597f3..fc7323ffa 100644
--- a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml
+++ b/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml
@@ -78,8 +78,8 @@ dependencies:
specifier: 2.0.0-beta.7
version: 2.0.0-beta.7
ai:
- specifier: ^3.2.35
+ specifier: ^3.3
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0
@@ -212,6 +212,22 @@ packages:
zod: 3.23.8
dev: false
+ resolution: {integrity: sha512-yfdanjUiCJbtGoRGXrcrmXn0pTyDfRIeY6ozDG96D66f2wupZaZvAgKptUa3zDYXtUCQQvcNJ+tipBBfQD/UYA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.0.0
+ peerDependenciesMeta:
+ zod:
+ optional: true
+ dependencies:
+ '@ai-sdk/provider': 0.0.17
+ eventsource-parser: 1.1.2
+ nanoid: 3.3.6
+ secure-json-parse: 2.7.0
+ zod: 3.23.8
+ dev: false
+
resolution: {integrity: sha512-RBstpG/3RqVBBJgTvjZpou/+1fNQMDIwB9enqQPXqr0MoCrJHscLD2Zsfr6cKM5HFfY1D4KhdSPTycCDebVGlQ==}
engines: {node: '>=18'}
@@ -226,8 +242,15 @@ packages:
json-schema: 0.4.0
dev: false
- resolution: {integrity: sha512-wOYtnXKGWjgO8jEX059GFAa8Jys2vrA8CUKxvfO1dD3GTyb7oiRZ9eVjtGEM5wQ2fepX2xIQj8oDxJh0EjKiNA==}
+ /@ai-sdk/[email protected]:
+ resolution: {integrity: sha512-f9j+P5yYRkqKFHxvWae5FI0j6nqROPCoPnMkpc2hc2vC7vKjqzrxBJucD8rpSaUjqiBnY/QuRJ0QeV717Uz5tg==}
+ engines: {node: '>=18'}
+ dependencies:
+ json-schema: 0.4.0
+ dev: false
+
+ resolution: {integrity: sha512-T4M/73Ye/5dU8Ub4qnqPPhAX+KGMj4bhbRNESEuWv/NQPK2OLhAU+1mmLl2LkRwgP6qfFcILWaYssULuJ7ihcQ==}
engines: {node: '>=18'}
peerDependencies:
react: ^18 || ^19
@@ -238,15 +261,15 @@ packages:
zod:
optional: true
dependencies:
- '@ai-sdk/provider-utils': 1.0.4([email protected])
- '@ai-sdk/ui-utils': 0.0.19([email protected])
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
+ '@ai-sdk/ui-utils': 0.0.29([email protected])
react: 18.3.1
swr: 2.2.5([email protected])
zod: 3.23.8
dev: false
- resolution: {integrity: sha512-5uF4AGy2jk9j8sMu2cebfWregaXiebV1N/l/5wGW01Y+7NvGNHUuVC/aSVcF5BvXGZiKjwkVvoU7h5VQIq+IZw==}
+ resolution: {integrity: sha512-cYtidoiI6V0gFpUfF5223CUGz6TZJiJdbYDZta985dnT9aGKSIg0rVl+7E6FLoPPqGSclJ+Omh/TAMvXXTknyw==}
engines: {node: '>=18'}
peerDependencies:
solid-js: ^1.7.7
@@ -254,13 +277,14 @@ packages:
solid-js:
optional: true
dependencies:
- '@ai-sdk/ui-utils': 0.0.19([email protected])
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
+ '@ai-sdk/ui-utils': 0.0.29([email protected])
transitivePeerDependencies:
- zod
dev: false
- resolution: {integrity: sha512-ij5rNA+QSSstcOit+p5EWvyujz368u73K6QrwCpMPMEUNoyxJbazVdU79PlMviFHRsrjA9I7WmEDIXH/YBKZCQ==}
+ resolution: {integrity: sha512-9WlpChuCnVQgcqRuHIcDDFeswmaGUUzFddLqYTDo5bP/mmeWvFm5RD+fnJ6AiHrsALbrOnUusDwxXvW6ydTz2A==}
engines: {node: '>=18'}
peerDependencies:
svelte: ^3.0.0 || ^4.0.0
@@ -268,16 +292,16 @@ packages:
svelte:
optional: true
dependencies:
- '@ai-sdk/provider-utils': 1.0.4([email protected])
- '@ai-sdk/ui-utils': 0.0.19([email protected])
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
+ '@ai-sdk/ui-utils': 0.0.29([email protected])
sswr: 2.1.0([email protected])
svelte: 4.2.18
transitivePeerDependencies:
- zod
dev: false
- resolution: {integrity: sha512-nLCUNoQ4hY+v/5pMLz7mIe8ZUW6tR644Zaqh9gg8ScKVfc3EMvyxJ/AoAjcgD00iXOmbT1/xTsF6TkXRGExZ1Q==}
+ resolution: {integrity: sha512-1d+8ogA/xm8xiVdKQt2uJ5HDbkowMYUDS4a30kYkaGNXk7JHy65feEtDHQnnUZKqHdqAruyPB8sLNA75gi6OHQ==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.0.0
@@ -285,13 +309,14 @@ packages:
zod:
optional: true
dependencies:
- '@ai-sdk/provider-utils': 1.0.4([email protected])
+ '@ai-sdk/provider': 0.0.17
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
secure-json-parse: 2.7.0
zod: 3.23.8
dev: false
- resolution: {integrity: sha512-01zCo6mJJSPwDYjjUvSqWebGAjqUNOb6qzd/ZVPB77mW2XEYVXxBoOSBv5ARPIH3cRwovj7YQVvgh9oKGgE+3A==}
+ resolution: {integrity: sha512-P+grVsbH/QoKiC/8Efc/bUdYpd8ySXXaeV8BAwp3Y2A6P745Kifw/J5MIirHBVSdZulcLcsMFIpnpm4Xc280IA==}
engines: {node: '>=18'}
peerDependencies:
vue: ^3.3.4
@@ -299,8 +324,8 @@ packages:
vue:
optional: true
dependencies:
- '@ai-sdk/provider-utils': 1.0.4([email protected])
- '@ai-sdk/ui-utils': 0.0.19([email protected])
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
+ '@ai-sdk/ui-utils': 0.0.29([email protected])
swrv: 1.0.4([email protected])
vue: 3.4.34([email protected])
transitivePeerDependencies:
@@ -2798,8 +2823,8 @@ packages:
humanize-ms: 1.2.1
dev: false
- resolution: {integrity: sha512-H4/gAuum6kL4NP22ZoBPKzp9/uCLUUW6r6L0+ll1WihgbNBUhH2ahxDG+y4p7H7DJOEoUwHlqQ9u/1evPxXtDQ==}
+ resolution: {integrity: sha512-aIWnEVL0BN/dSsQGYKoKsV9CInnl7bdKUsXLLFRfiAFfBH1Vu/azMCVRNf1PIS+MCR4GTtjN4c1URgMthfivdg==}
engines: {node: '>=18'}
peerDependencies:
openai: ^4.42.0
@@ -2819,13 +2844,13 @@ packages:
zod:
optional: true
dependencies:
- '@ai-sdk/provider': 0.0.13
- '@ai-sdk/provider-utils': 1.0.4([email protected])
- '@ai-sdk/react': 0.0.28([email protected])([email protected])
- '@ai-sdk/solid': 0.0.21([email protected])
- '@ai-sdk/svelte': 0.0.22([email protected])([email protected])
- '@ai-sdk/ui-utils': 0.0.19([email protected])
- '@ai-sdk/vue': 0.0.23([email protected])([email protected])
+ '@ai-sdk/provider': 0.0.17
+ '@ai-sdk/provider-utils': 1.0.9([email protected])
+ '@ai-sdk/react': 0.0.41([email protected])([email protected])
+ '@ai-sdk/solid': 0.0.32([email protected])
+ '@ai-sdk/svelte': 0.0.34([email protected])([email protected])
+ '@ai-sdk/ui-utils': 0.0.29([email protected])
+ '@ai-sdk/vue': 0.0.33([email protected])([email protected])
'@opentelemetry/api': 1.9.0
eventsource-parser: 1.1.2
json-schema: 0.4.0