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 cli
Louis Beaumont1b76f6cb6546
diff --git a/Cargo.toml b/Cargo.tomlindex 2f7b8de87..3a6aee33c 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -7,8 +7,8 @@ members = []exclude = [- "examples/apps/screenpipe-app-tauri/src-tauri",- "examples/apps/screenpipe-app-dioxus",+ "examples/apps/screenpipe-app-tauri/src-tauri",+ "examples/apps/screenpipe-app-dioxus",]resolver = "2"diff --git a/examples/apps/screenpipe-app-dioxus/Cargo.toml b/examples/apps/screenpipe-app-dioxus/Cargo.tomlindex 3ee0f560a..21c3cfc25 100644--- a/examples/apps/screenpipe-app-dioxus/Cargo.toml+++ b/examples/apps/screenpipe-app-dioxus/Cargo.toml@@ -1,5 +1,5 @@[package]-name = "screenpipe-app"+name = "screenpipe-app-dioxus"version = "0.1.0"authors = ["Louis Beaumont <[email protected]>"]edition = "2021"diff --git a/examples/apps/screenpipe-app-tauri/app/page.tsx b/examples/apps/screenpipe-app-tauri/app/page.tsxindex e259eddde..254253e3d 100644--- a/examples/apps/screenpipe-app-tauri/app/page.tsx+++ b/examples/apps/screenpipe-app-tauri/app/page.tsx@@ -4,7 +4,6 @@ import { ChatList } from "@/components/chat-list-openai-v2";import Image from "next/image";import { Button } from "@/components/ui/button"; // Import Button from shadcnimport RagExample from "@/components/rag-example";-function Header() {return (<div>@@ -29,11 +28,14 @@ function Header() {<ButtonasChildclassName="cursor-pointer"- onClick={() =>- window.open(- "https://github.com/louis030195/screen-pipe/tree/main/examples/ts",- "_blank"- )+ onClick={+ () =>+ window.open(+ "https://github.com/louis030195/screen-pipe/tree/main/examples/ts"+ )+ // open(+ // "https://github.com/louis030195/screen-pipe/tree/main/examples/ts"+ // )}><h2 className="mb-3 text-2xl font-semibold">Examples</h2>@@ -43,8 +45,7 @@ function Header() {className="cursor-pointer"onClick={() =>window.open(- "mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe",- "_blank"+ "mailto:[email protected]?subject=Screenpipe%20Feedback&body=Please%20enter%20your%20feedback%20here...%0A%0A...%20or%20let's%20chat?%0Ahttps://cal.com/louis030195/screenpipe")}>@@ -56,42 +57,76 @@ function Header() {}import { useEffect, useState } from "react"; // Import useState+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+} from "@/components/ui/card";function Settings({ onKeyChange }: { onKeyChange: (key: string) => void }) {const [apiKey, setApiKey] = useState("");useEffect(() => {- const savedKey = localStorage.getItem("openaiApiKey"); // Load saved key from local storage+ const savedKey = localStorage.getItem("openaiApiKey");if (savedKey) {setApiKey(savedKey);- onKeyChange(savedKey); // Pass the loaded key to parent+ onKeyChange(savedKey);}}, [onKeyChange]);const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {const newKey = e.target.value;setApiKey(newKey);- localStorage.setItem("openaiApiKey", newKey); // Save key to local storage+ localStorage.setItem("openaiApiKey", newKey);onKeyChange(newKey);};return (- <div className="settings">- <input- type="text"- value={apiKey}- onChange={handleChange}- placeholder="Enter OpenAI API Key"- className="border p-2"- />- </div>+ <Card className="w-full max-w-md">+ <CardHeader>+ <CardTitle>OpenAI API Settings</CardTitle>+ <CardDescription>+ Enter your OpenAI API key to use the chat functionality.+ </CardDescription>+ </CardHeader>+ <CardContent>+ <div className="grid w-full items-center gap-4">+ <div className="flex flex-col space-y-1.5">+ <Label htmlFor="apiKey">API Key</Label>+ <Input+ id="apiKey"+ type="password"+ value={apiKey}+ onChange={handleChange}+ placeholder="Enter your OpenAI API Key"+ />+ </div>+ <p className="text-sm text-muted-foreground">+ Don't have an API key? Get one from{" "}+ <a+ href="https://platform.openai.com/api-keys"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary hover:underline"+ >+ OpenAI's website+ </a>+ .+ </p>+ </div>+ </CardContent>+ </Card>);}export default function Home() {const [openAiKey, setOpenAiKey] = useState("");return (- <main className="flex min-h-screen flex-col items-center justify-between p-8">+ <main className="flex min-h-screen flex-col items-center p-8"><Header /> {/* Use Header component */}{/* TODO for some reason code block style broken when built */}{/* <RagExample /> */}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.tsxindex 4334ffc3e..b9ce06cc3 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@@ -235,73 +235,35 @@ export function ChatList({ apiKey }: { apiKey: string }) {};return (- <div- className="grid md:grid-cols-[520] min-h-screen w-full"- ref={scrollRef}- >- <div className="flex flex-col">- <div className="sticky top-0 p-2">- <DropdownMenu>- <DropdownMenuTrigger asChild disabled>- <Button- variant="ghost"- className="gap-1 rounded-xl px-3 h-10 data-[state=open]:bg-muted text-lg"- >- llama <span className="text-muted-foreground">3.1-8B</span>- <ChevronDownIcon className="w-4 h-4 text-muted-foreground" />- </Button>- </DropdownMenuTrigger>- <DropdownMenuContent align="start" className="max-w-[300px]">- <DropdownMenuItem className="items-start gap-2">- <SparkleIcon className="w-4 h-4 mr-2 translate-y-1 shrink-0" />- <div>- <div className="font-medium">GPT-4</div>- <div className="text-muted-foreground/80">- With DALL-E, browing and analysis. Limit 40 messages / 3- hours- </div>- </div>- </DropdownMenuItem>- <DropdownMenuSeparator />- <DropdownMenuItem className="items-start gap-2">- <ZapIcon className="w-4 h-4 mr-2 translate-y-1 shrink-0" />- <div>- <div className="font-medium">GPT-3</div>- <div className="text-muted-foreground/80">- Great for everyday tasks- </div>- </div>- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- </div>- <div- className="flex flex-col items-start flex-1 max-w-2xl gap-8 px-4 mx-auto"- ref={messagesRef}- >- {messages.map((msg, index) => {- if (- msg.role === "user" ||- (msg.role === "assistant" && typeof msg.content === "string")- ) {- return <ChatMessage key={index} message={msg} />;- } else if (- msg.role === "assistant" &&- msg.content &&- typeof msg.content === "object"- ) {- return <FunctionCallMessage key={index} message={msg} />;- } else if (msg.role === "tool") {- return <FunctionCallMessage key={index} message={msg} isResult />;- }- return null;- })}- {isLoading && <SpinnerMessage />}- {error && <p className="text-red-500">{error}</p>}- </div>+ <div className="flex flex-col">+ <div+ className="flex flex-col items-start flex-1 max-w-2xl gap-8 px-4 mx-auto"+ ref={messagesRef}+ >+ {messages.map((msg, index) => {+ if (+ msg.role === "user" ||+ (msg.role === "assistant" && typeof msg.content === "string")+ ) {+ return <ChatMessage key={index} message={msg} />;+ } else if (+ msg.role === "assistant" &&+ msg.content &&+ typeof msg.content === "object"+ ) {+ return <FunctionCallMessage key={index} message={msg} />;+ } else if (msg.role === "tool") {+ return <FunctionCallMessage key={index} message={msg} isResult />;+ }+ return null;+ })}+ {isLoading && <SpinnerMessage />}+ {error && <p className="text-red-500">{error}</p>}+ </div>- {messages.length === 0 && (- <div className="max-w-2xl w-full sticky bottom-0 mx-auto py-2 flex flex-col gap-1.5 px-4 bg-background">+ {messages.length === 0 && (+ <div className="sticky bottom-0 bg-background p-4">+ <div className="max-w-2xl mx-auto"><div className="relative"><Textareaplaceholder="Message screenpipe..."@@ -329,13 +291,13 @@ export function ChatList({ apiKey }: { apiKey: string }) {<span className="sr-only">Send</span></Button></div>- <p className="text-xs font-medium text-center text-neutral-700">+ <p className="text-xs font-medium text-center text-neutral-700 mt-2">screenpipe is in beta, base its answer on your computer activityand can make errors.</p></div>- )}- </div>+ </div>+ )}</div>);}diff --git a/examples/apps/screenpipe-app-tauri/components/ui/input.tsx b/examples/apps/screenpipe-app-tauri/components/ui/input.tsxnew file mode 100644index 000000000..677d05fd6--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/input.tsx@@ -0,0 +1,25 @@+import * as React from "react"++import { cn } from "@/lib/utils"++export interface InputProps+ extends React.InputHTMLAttributes<HTMLInputElement> {}++const Input = React.forwardRef<HTMLInputElement, InputProps>(+ ({ className, type, ...props }, ref) => {+ return (+ <input+ type={type}+ className={cn(+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ ref={ref}+ {...props}+ />+ )+ }+)+Input.displayName = "Input"++export { Input }diff --git a/examples/apps/screenpipe-app-tauri/components/ui/label.tsx b/examples/apps/screenpipe-app-tauri/components/ui/label.tsxnew file mode 100644index 000000000..534182176--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/label.tsx@@ -0,0 +1,26 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const labelVariants = cva(+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"+)++const Label = React.forwardRef<+ React.ElementRef<typeof LabelPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &+ VariantProps<typeof labelVariants>+>(({ className, ...props }, ref) => (+ <LabelPrimitive.Root+ ref={ref}+ className={cn(labelVariants(), className)}+ {...props}+ />+))+Label.displayName = LabelPrimitive.Root.displayName++export { Label }diff --git a/examples/apps/screenpipe-app-tauri/components/ui/sheet.tsx b/examples/apps/screenpipe-app-tauri/components/ui/sheet.tsxnew file mode 100644index 000000000..a37f17ba0--- /dev/null+++ b/examples/apps/screenpipe-app-tauri/components/ui/sheet.tsx@@ -0,0 +1,140 @@+"use client"++import * as React from "react"+import * as SheetPrimitive from "@radix-ui/react-dialog"+import { cva, type VariantProps } from "class-variance-authority"+import { X } from "lucide-react"++import { cn } from "@/lib/utils"++const Sheet = SheetPrimitive.Root++const SheetTrigger = SheetPrimitive.Trigger++const SheetClose = SheetPrimitive.Close++const SheetPortal = SheetPrimitive.Portal++const SheetOverlay = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Overlay+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ ref={ref}+ />+))+SheetOverlay.displayName = SheetPrimitive.Overlay.displayName++const sheetVariants = cva(+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",+ {+ variants: {+ side: {+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",+ bottom:+ "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",+ right:+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",+ },+ },+ defaultVariants: {+ side: "right",+ },+ }+)++interface SheetContentProps+ extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,+ VariantProps<typeof sheetVariants> {}++const SheetContent = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Content>,+ SheetContentProps+>(({ side = "right", className, children, ...props }, ref) => (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ ref={ref}+ className={cn(sheetVariants({ side }), className)}+ {...props}+ >+ {children}+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ </SheetPrimitive.Content>+ </SheetPortal>+))+SheetContent.displayName = SheetPrimitive.Content.displayName++const SheetHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-2 text-center sm:text-left",+ className+ )}+ {...props}+ />+)+SheetHeader.displayName = "SheetHeader"++const SheetFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className+ )}+ {...props}+ />+)+SheetFooter.displayName = "SheetFooter"++const SheetTitle = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Title+ ref={ref}+ className={cn("text-lg font-semibold text-foreground", className)}+ {...props}+ />+))+SheetTitle.displayName = SheetPrimitive.Title.displayName++const SheetDescription = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+SheetDescription.displayName = SheetPrimitive.Description.displayName++export {+ Sheet,+ SheetPortal,+ SheetOverlay,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+}diff --git a/examples/apps/screenpipe-app-tauri/package.json b/examples/apps/screenpipe-app-tauri/package.jsonindex fa7b01904..54c5cf72b 100644--- a/examples/apps/screenpipe-app-tauri/package.json+++ b/examples/apps/screenpipe-app-tauri/package.json@@ -18,6 +18,7 @@"@radix-ui/react-dialog": "^1.1.1","@radix-ui/react-dropdown-menu": "^2.1.1","@radix-ui/react-icons": "^1.3.0",+ "@radix-ui/react-label": "^2.1.0","@radix-ui/react-slot": "^1.1.0","@tauri-apps/api": "^2.0.0-beta.9","@tauri-apps/plugin-cli": "2.0.0-beta.7",@@ -36,6 +37,7 @@"react-syntax-highlighter": "^15.5.0","remark-gfm": "^4.0.0","remark-math": "^6.0.0",+ "shell": "link:@tauri-apps/api/shell","tailwind-merge": "^2.4.0","tailwindcss-animate": "^1.0.7","zod": "^3.23.8",diff --git a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml b/examples/apps/screenpipe-app-tauri/pnpm-lock.yamlindex c15a7219d..0bb8973dc 100644--- a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml+++ b/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml@@ -5,18 +5,30 @@ settings:excludeLinksFromLockfile: falsedependencies:+ '@ai-sdk/openai':+ specifier: ^0.0.39+ version: 0.0.39([email protected])'@mlc-ai/web-llm':specifier: ^0.2.51version: 0.2.51+ '@radix-ui/react-accordion':+ specifier: ^1.2.0+ version: 1.2.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-avatar':specifier: ^1.1.0version: 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dialog':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-dropdown-menu':specifier: ^2.1.1version: 2.1.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-icons':specifier: ^1.3.0version: 1.3.0([email protected])+ '@radix-ui/react-label':+ specifier: ^2.1.0+ version: 2.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-slot':specifier: ^1.1.0version: 1.1.0(@types/[email protected])([email protected])@@ -35,6 +47,9 @@ dependencies:'@tauri-apps/plugin-updater':specifier: 2.0.0-beta.7version: 2.0.0-beta.7+ ai:+ specifier: ^3.2.35+ version: 3.2.35([email protected])([email protected])([email protected])([email protected])([email protected])class-variance-authority:specifier: ^0.7.0version: 0.7.0@@ -68,6 +83,9 @@ dependencies:remark-math:specifier: ^6.0.0version: 6.0.0+ shell:+ specifier: link:@tauri-apps/api/shell+ version: link:@tauri-apps/api/shelltailwind-merge:specifier: ^2.4.0version: 2.4.0@@ -118,10 +136,151 @@ devDependencies:packages:+ /@ai-sdk/[email protected]([email protected]):+ resolution: {integrity: sha512-UNkT7394/aG7s2VRY53mRqKlv2tBBuRGvIOuqMcpgfVquf+NRYWsDWAYM4UxqcK5uigSKk4uV/lIJX+fRUXszg==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.0.0+ dependencies:+ '@ai-sdk/provider': 0.0.13+ '@ai-sdk/provider-utils': 1.0.4([email protected])+ zod: 3.23.8+ dev: false++ /@ai-sdk/[email protected]([email protected]):+ resolution: {integrity: sha512-2TldHn54+HrvVHMCos9lrSMcDIp3cgnpphpYT/95RXcIzcGwAFM5MioDWnsrki3noplU5pVld6ylD3Vu/Xt3Vw==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.0.0+ peerDependenciesMeta:+ zod:+ optional: true+ dependencies:+ '@ai-sdk/provider': 0.0.13+ 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-RBstpG/3RqVBBJgTvjZpou/+1fNQMDIwB9enqQPXqr0MoCrJHscLD2Zsfr6cKM5HFfY1D4KhdSPTycCDebVGlQ==}+ engines: {node: '>=18'}+ dependencies:+ json-schema: 0.4.0+ dev: false++ resolution: {integrity: sha512-wOYtnXKGWjgO8jEX059GFAa8Jys2vrA8CUKxvfO1dD3GTyb7oiRZ9eVjtGEM5wQ2fepX2xIQj8oDxJh0EjKiNA==}+ 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.4([email protected])+ '@ai-sdk/ui-utils': 0.0.19([email protected])+ react: 18.3.1+ swr: 2.2.5([email protected])+ zod: 3.23.8+ dev: false++ /@ai-sdk/[email protected]([email protected]):+ resolution: {integrity: sha512-5uF4AGy2jk9j8sMu2cebfWregaXiebV1N/l/5wGW01Y+7NvGNHUuVC/aSVcF5BvXGZiKjwkVvoU7h5VQIq+IZw==}+ engines: {node: '>=18'}+ peerDependencies:+ solid-js: ^1.7.7+ peerDependenciesMeta:+ solid-js:+ optional: true+ dependencies:+ '@ai-sdk/ui-utils': 0.0.19([email protected])+ transitivePeerDependencies:+ - zod+ dev: false++ resolution: {integrity: sha512-ij5rNA+QSSstcOit+p5EWvyujz368u73K6QrwCpMPMEUNoyxJbazVdU79PlMviFHRsrjA9I7WmEDIXH/YBKZCQ==}+ engines: {node: '>=18'}+ peerDependencies:+ svelte: ^3.0.0 || ^4.0.0+ peerDependenciesMeta:+ svelte:+ optional: true+ dependencies:+ '@ai-sdk/provider-utils': 1.0.4([email protected])+ '@ai-sdk/ui-utils': 0.0.19([email protected])+ sswr: 2.1.0([email protected])+ svelte: 4.2.18+ transitivePeerDependencies:+ - zod+ dev: false++ /@ai-sdk/[email protected]([email protected]):+ resolution: {integrity: sha512-nLCUNoQ4hY+v/5pMLz7mIe8ZUW6tR644Zaqh9gg8ScKVfc3EMvyxJ/AoAjcgD00iXOmbT1/xTsF6TkXRGExZ1Q==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.0.0+ peerDependenciesMeta:+ zod:+ optional: true+ dependencies:+ '@ai-sdk/provider-utils': 1.0.4([email protected])+ secure-json-parse: 2.7.0+ zod: 3.23.8+ dev: false++ resolution: {integrity: sha512-01zCo6mJJSPwDYjjUvSqWebGAjqUNOb6qzd/ZVPB77mW2XEYVXxBoOSBv5ARPIH3cRwovj7YQVvgh9oKGgE+3A==}+ engines: {node: '>=18'}+ peerDependencies:+ vue: ^3.3.4+ peerDependenciesMeta:+ vue:+ optional: true+ dependencies:+ '@ai-sdk/provider-utils': 1.0.4([email protected])+ '@ai-sdk/ui-utils': 0.0.19([email protected])+ swrv: 1.0.4([email protected])+ vue: 3.4.34([email protected])+ transitivePeerDependencies:+ - zod+ dev: false+/@alloc/[email protected]:resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}engines: {node: '>=10'}+ /@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++ /@babel/[email protected]:+ resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==}+ engines: {node: '>=6.9.0'}+ dev: false++ /@babel/[email protected]:+ resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==}+ engines: {node: '>=6.9.0'}+ dev: false++ /@babel/[email protected]:+ resolution: {integrity: sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==}+ engines: {node: '>=6.0.0'}+ hasBin: true+ dependencies:+ '@babel/types': 7.24.9+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==}engines: {node: '>=6.9.0'}@@ -129,6 +288,15 @@ packages:regenerator-runtime: 0.14.1dev: false+ /@babel/[email protected]:+ resolution: {integrity: sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ==}+ 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+/@eslint-community/[email protected]([email protected]):resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -367,6 +535,11 @@ packages:'@nodelib/fs.scandir': 2.1.5fastq: 1.17.1+ /@opentelemetry/[email protected]:+ resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}+ engines: {node: '>=8.0.0'}+ dev: false+/@pkgjs/[email protected]:resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}@@ -377,6 +550,34 @@ packages:resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-HJOzSX8dQqtsp/3jVxCU3CXEONF7/2jlGAB28oX8TTw1Dz8JYbEI1UcL8355PuLBE41/IRRMvCw7VkiK/jcUOQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+ dependencies:+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-collapsible': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-FmlW1rCg7hBpEBwFbjHwCW6AmWLQM6g/v0Sn8XbP9NvmSZ2San1FpQeyPtufzOMSIx7Y4dzjlHoifhp+7NkZhw==}peerDependencies:@@ -420,6 +621,33 @@ packages:react-dom: 18.3.1([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-zQY7Epa8sTL0mq4ajSJpjgn2YmCgyrG7RsQgLp3C0LQVkG7+Tf6Pv1CeNWZLyqMjhdPkBa5Lx7wYBeSu7uCSTA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+ dependencies:+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}peerDependencies:@@ -469,6 +697,39 @@ packages:react: 18.3.1dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-zysS+iU4YP3STKNS6USvFVqI4qqx8EpiwmT5TuCApVEBca+eRCbONi4EgzfNSuVnOXvC5UPHHMjs8RXO6DH9Bg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+ dependencies:+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-focus-guards': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+ aria-hidden: 1.2.4+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ react-remove-scroll: 2.5.7(@types/[email protected])([email protected])+ dev: false+resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}peerDependencies:@@ -589,6 +850,26 @@ packages:react: 18.3.1dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-peLblDlFw/ngk3UWq0VnYaOLy6agTZZ+MUO/WhVfm14vJGML+xH4FAl2XQGLqdefjNb7ApRg6Yn7U42ZhmYXdw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+ dependencies:+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-oa3mXRRVjHi6DZu/ghuzdylyjaMXLymx83irM7hTxutQbD+7IhPKdMdRHD26Rm+kHRrWcrUkkRPv5pd47a2xFQ==}peerDependencies:@@ -1014,6 +1295,10 @@ packages:'@types/ms': 0.7.34dev: false+ /@types/[email protected]:+ resolution: {integrity: sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==}+ dev: false+/@types/[email protected]:resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==}dependencies:@@ -1167,6 +1452,80 @@ packages:/@ungap/[email protected]:resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}+ /@vue/[email protected]:+ resolution: {integrity: sha512-Z0izUf32+wAnQewjHu+pQf1yw00EGOmevl1kE+ljjjMe7oEfpQ+BI3/JNK7yMB4IrUsqLDmPecUrpj3mCP+yJQ==}+ dependencies:+ '@babel/parser': 7.24.8+ '@vue/shared': 3.4.34+ entities: 4.5.0+ estree-walker: 2.0.2+ source-map-js: 1.2.0+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-3PUOTS1h5cskdOJMExCu2TInXuM0j60DRPpSCJDqOCupCfUZCJoyQmKtRmA8EgDNZ5kcEE7vketamRZfrEuVDw==}+ dependencies:+ '@vue/compiler-core': 3.4.34+ '@vue/shared': 3.4.34+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-x6lm0UrM03jjDXTPZgD9Ad8bIVD1ifWNit2EaWQIZB5CULr46+FbLQ5RpK7AXtDHGjx9rmvC7QRCTjsiGkAwRw==}+ dependencies:+ '@babel/parser': 7.24.8+ '@vue/compiler-core': 3.4.34+ '@vue/compiler-dom': 3.4.34+ '@vue/compiler-ssr': 3.4.34+ '@vue/shared': 3.4.34+ estree-walker: 2.0.2+ magic-string: 0.30.10+ postcss: 8.4.39+ source-map-js: 1.2.0+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-8TDBcLaTrFm5rnF+Qm4BlliaopJgqJ28Nsrc80qazynm5aJO+Emu7y0RWw34L8dNnTRdcVBpWzJxhGYzsoVu4g==}+ dependencies:+ '@vue/compiler-dom': 3.4.34+ '@vue/shared': 3.4.34+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-ua+Lo+wBRlBEX9TtgPOShE2JwIO7p6BTZ7t1KZVPoaBRfqbC7N3c8Mpzicx173fXxx5VXeU6ykiHo7WgLzJQDA==}+ dependencies:+ '@vue/shared': 3.4.34+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-PXhkiRPwcPGJ1BnyBZFI96GfInCVskd0HPNIAZn7i3YOmLbtbTZpB7/kDTwC1W7IqdGPkTVC63IS7J2nZs4Ebg==}+ dependencies:+ '@vue/reactivity': 3.4.34+ '@vue/shared': 3.4.34+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-dXqIe+RqFAK2Euak4UsvbIupalrhc67OuQKpD7HJ3W2fv8jlqvI7szfBCsAEcE8o/wyNpkloxB6J8viuF/E3gw==}+ dependencies:+ '@vue/reactivity': 3.4.34+ '@vue/runtime-core': 3.4.34+ '@vue/shared': 3.4.34+ csstype: 3.1.3+ dev: false++ /@vue/[email protected]([email protected]):+ resolution: {integrity: sha512-GeyEUfMVRZMD/mZcNONEqg7MiU10QQ1DB3O/Qr6+8uXpbwdlmVgQ5Qs1/ZUAFX1X2UUtqMoGrDRbxdWfOJFT7Q==}+ peerDependencies:+ vue: 3.4.34+ dependencies:+ '@vue/compiler-ssr': 3.4.34+ '@vue/shared': 3.4.34+ vue: 3.4.34([email protected])+ dev: false++ /@vue/[email protected]:+ resolution: {integrity: sha512-x5LmiRLpRsd9KTjAB8MPKf0CDPMcuItjP0gbNqFCIgL1I8iYp4zglhj9w9FPCdIbHG2M91RVeIbArFfFTz9I3A==}+ dev: false+resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}engines: {node: '>=6.5'}@@ -1186,7 +1545,6 @@ packages:resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}engines: {node: '>=0.4.0'}hasBin: true- dev: trueresolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==}@@ -1195,6 +1553,50 @@ packages:humanize-ms: 1.2.1dev: false+ /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-H4/gAuum6kL4NP22ZoBPKzp9/uCLUUW6r6L0+ll1WihgbNBUhH2ahxDG+y4p7H7DJOEoUwHlqQ9u/1evPxXtDQ==}+ 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.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])+ '@opentelemetry/api': 1.9.0+ eventsource-parser: 1.1.2+ json-schema: 0.4.0+ jsondiffpatch: 0.6.0+ nanoid: 3.3.6+ openai: 4.53.0+ 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-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}dependencies:@@ -1252,6 +1654,12 @@ packages:deep-equal: 2.2.3dev: true+ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}+ dependencies:+ dequal: 2.0.3+ dev: false+resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==}engines: {node: '>= 0.4'}@@ -1381,6 +1789,11 @@ packages:deep-equal: 2.2.3dev: true+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}+ engines: {node: '>= 0.4'}+ dev: false+resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}dev: false@@ -1453,6 +1866,11 @@ packages:supports-color: 7.2.0dev: true+ resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}+ dev: false+resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}dev: false@@ -1515,6 +1933,16 @@ packages:engines: {node: '>=6'}dev: false+ resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}+ dependencies:+ '@jridgewell/sourcemap-codec': 1.4.15+ '@types/estree': 1.0.5+ acorn: 8.12.1+ estree-walker: 3.0.3+ periscopic: 3.1.0+ dev: false+resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}engines: {node: '>=7.0.0'}@@ -1560,6 +1988,14 @@ packages:shebang-command: 2.0.0which: 2.0.2+ 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-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}engines: {node: '>=4'}@@ -1696,6 +2132,10 @@ packages:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}+ resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==}+ dev: false+resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}engines: {node: '>=8'}@@ -1737,6 +2177,11 @@ packages:tapable: 2.2.1dev: true+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}+ engines: {node: '>=0.12'}+ dev: false+resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==}engines: {node: '>= 0.4'}@@ -2152,6 +2597,16 @@ packages:resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==}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-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}@@ -2162,6 +2617,11 @@ packages:engines: {node: '>=6'}dev: false+ resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==}+ engines: {node: '>=14.18'}+ dev: false+resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}dev: false@@ -2726,6 +3186,12 @@ packages:engines: {node: '>=12'}dev: false+ resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==}+ dependencies:+ '@types/estree': 1.0.5+ dev: false+resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}engines: {node: '>= 0.4'}@@ -2842,6 +3308,10 @@ packages:resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}dev: true+ resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}+ dev: false+resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}dev: true@@ -2853,6 +3323,16 @@ packages:minimist: 1.2.8dev: true+ 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-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}engines: {node: '>=4.0'}@@ -2906,6 +3386,10 @@ packages:resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}+ resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}+ dev: false+resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}engines: {node: '>=10'}@@ -2959,6 +3443,12 @@ packages:react: 18.3.1dev: false+ resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==}+ dependencies:+ '@jridgewell/sourcemap-codec': 1.4.15+ dev: false+resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}dev: false@@ -3160,6 +3650,10 @@ packages:'@types/mdast': 4.0.4dev: false+ resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}+ dev: false+resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}engines: {node: '>= 8'}@@ -3482,6 +3976,12 @@ packages:object-assign: 4.1.1thenify-all: 1.6.0+ 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}@@ -3747,6 +4247,14 @@ packages:engines: {node: '>=8'}dev: true+ 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==}@@ -4163,6 +4671,10 @@ packages:loose-envify: 1.4.0dev: false+ resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}+ dev: false+resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}hasBin: true@@ -4237,6 +4749,15 @@ packages:resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}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-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}engines: {node: '>= 0.4'}@@ -4393,6 +4914,48 @@ packages:resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==}+ engines: {node: '>=16'}+ dependencies:+ '@ampproject/remapping': 2.3.0+ '@jridgewell/sourcemap-codec': 1.4.15+ '@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.10+ 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.34([email protected])+ dev: false+resolution: {integrity: sha512-49AwoOQNKdqKPd9CViyH5wJoSKsCDjUlzL8DxuGp3P1FsGY36NJDAa18jLZcaHAUUuTj+JB8IAo8zWgBNvBF7A==}dev: false@@ -4455,6 +5018,11 @@ packages:dependencies:any-promise: 1.3.0+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}+ engines: {node: '>=4'}+ dev: false+resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}engines: {node: '>=8.0'}@@ -4558,7 +5126,6 @@ packages:resolution: {integrity: sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==}engines: {node: '>=14.17'}hasBin: true- dev: trueresolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}@@ -4661,6 +5228,14 @@ packages:tslib: 2.6.3dev: false+ 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-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -4679,6 +5254,22 @@ packages:vfile-message: 4.0.2dev: false+ resolution: {integrity: sha512-VZze05HWlA3ItreQ/ka7Sx7PoD0/3St8FEiSlSTVgb6l4hL+RjtP2/8g5WQBzZgyf8WG2f+g1bXzC7zggLhAJA==}+ peerDependencies:+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true+ dependencies:+ '@vue/compiler-dom': 3.4.34+ '@vue/compiler-sfc': 3.4.34+ '@vue/runtime-dom': 3.4.34+ '@vue/server-renderer': 3.4.34([email protected])+ '@vue/shared': 3.4.34+ typescript: 5.5.3+ dev: false+resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}@@ -4796,6 +5387,14 @@ packages:engines: {node: '>=10'}dev: true+ resolution: {integrity: sha512-+akaPo6a0zpVCCseDed504KBJUQpEW5QZw7RMneNmKw+fGaML1Z9tUNLnHHAC8x6dzVRO1eB2oEMyZRnuBZg7Q==}+ peerDependencies:+ zod: ^3.22.4+ dependencies:+ zod: 3.23.8+ dev: false+resolution: {integrity: sha512-oT9INvydob1XV0v1d2IadrR74rLtDInLvDFfAa1CG0Pmg/vxATk7I2gSelfj271mbzeM4Da0uuDQE/Nkj3DWNw==}peerDependencies:diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 321f6e697..397bb4e04 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,11 +1,11 @@[package]-name = "app"+name = "screenpipe-app"version = "0.1.0"description = "A Tauri App"authors = ["you"]license = ""repository = ""-default-run = "app"+default-run = "screenpipe-app"edition = "2021"rust-version = "1.60"diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json b/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.jsonindex bfd4dcd6d..ab9e5e392 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json+++ b/examples/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json@@ -18,6 +18,7 @@"store:allow-set","store:allow-save","store:allow-load",+ "shell:allow-open",{"identifier": "shell:allow-execute","allow": [@@ -34,6 +35,7 @@}]},- "cli:default"+ "cli:default",+ "shell:default"]}\ No newline at end of filediff --git a/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/examples/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.jsonindex ba28e3863..577d4f7be 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":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","shell:default","store:allow-get","store:allow-set","store:allow-save","store:allow-load",{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default"]}}\ No newline at end of file+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","shell:default","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open",{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},"cli:default","shell:default"]}}\ No newline at end of filediff --git a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 9965aebbe..eba7ebc10 100755--- a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -17,6 +17,8 @@ use tauri::Wry;use tauri_plugin_store::{with_store, StoreCollection};use tauri_plugin_autostart::MacosLauncher;+use tauri_plugin_autostart::ManagerExt;+mod analytics;use crate::analytics::start_analytics;@@ -55,6 +57,18 @@ async fn main() {.setup(move |app| {// let cli = app.cli().matches().expect("Failed to get CLI matches");+ // Get the autostart manager+ let autostart_manager = app.autolaunch();+ // Enable autostart+ let _ = autostart_manager.enable();+ // Check enable state+ debug!(+ "registered for autostart? {}",+ autostart_manager.is_enabled().unwrap()+ );+ // Disable autostart+ // let _ = autostart_manager.disable();+let base_dir = get_base_dir(None).expect("Failed to ensure local data directory");let port = 3030;@@ -123,18 +137,39 @@ async fn main() {Ok(())});+ let sidecar = app.shell().sidecar("screenpipe").unwrap();+ let (mut rx, _child) = sidecar+ .args(["--port", "3030", "--debug"]) // "--disable-audio"+ .spawn()+ .expect("Failed to spawn sidecar");++ tauri::async_runtime::spawn(async move {+ while let Some(event) = rx.recv().await {+ match event {+ tauri_plugin_shell::process::CommandEvent::Stdout(line) => {+ debug!("{:?}", line);+ }+ tauri_plugin_shell::process::CommandEvent::Stderr(line) => {+ debug!("{:?}", line);+ }+ _ => {}+ }+ }+ });+Ok(())}).build(tauri::generate_context!()).expect("error while building tauri application");// Run the app- app.run(|_app_handle, event| match event {+ app.run(move |_app_handle, event| match event {tauri::RunEvent::Ready { .. } => {debug!("Ready event");- tauri::async_runtime::spawn(async move {- let _ = start_server().await;- });+ // tauri::async_runtime::spawn(async move {+ // // let _ = start_server().await;+ // start_screenpipe_server_new(app.app_handle().clone());+ // });}tauri::RunEvent::ExitRequested { .. } => {debug!("ExitRequested event");@@ -164,28 +199,53 @@ async fn start_server() -> anyhow::Result<()> {Arc::new(tokio::sync::Mutex::new(None));let server_handle_clone = Arc::clone(&server_handle);- tokio::spawn(async move {- let mut interval = interval(restart_interval);+ // tokio::spawn(async move {+ // let mut interval = interval(restart_interval);- loop {- interval.tick().await;- debug!("Restarting screenpipe sidecar...");+ // loop {+ // interval.tick().await;+ // debug!("Restarting screenpipe sidecar...");- // Stop the current server- if let Some(handle) = server_handle_clone.lock().await.take() {- handle.abort();- }+ // // Stop the current server+ // if let Some(handle) = server_handle_clone.lock().await.take() {+ // handle.abort();+ // }- // Start a new server- *server_handle_clone.lock().await = Some(start_screenpipe_server());- }- });+ // // Start a new server+ // *server_handle_clone.lock().await = Some(start_screenpipe_server());+ // }+ // });// Initial server start*server_handle.lock().await = Some(start_screenpipe_server());Ok(())}+use tauri_plugin_shell::ShellExt;++fn start_screenpipe_server_new(app: tauri::AppHandle) -> tauri::Result<()> {+ let sidecar = app.shell().sidecar("screenpipe").unwrap();+ let (mut rx, _child) = sidecar+ .args(["--port", "3030", "--debug"]) // "--disable-audio"+ .spawn()+ .expect("Failed to spawn sidecar");++ tauri::async_runtime::spawn(async move {+ while let Some(event) = rx.recv().await {+ match event {+ tauri_plugin_shell::process::CommandEvent::Stdout(line) => {+ debug!("{:?}", line);+ }+ tauri_plugin_shell::process::CommandEvent::Stderr(line) => {+ debug!("{:?}", line);+ }+ _ => {}+ }+ }+ });++ Ok(())+}fn start_screenpipe_server() -> tokio::task::JoinHandle<()> {tokio::spawn(async move {@@ -202,6 +262,7 @@ fn start_screenpipe_server() -> tokio::task::JoinHandle<()> {tokio::process::Command::new(find_screenpipe::find_screenpipe_path().unwrap());cmd.arg("--port").arg("3030");cmd.arg("--debug");+ cmd.arg("--disable-audio");cmd.stdout(std::process::Stdio::piped());cmd.stderr(std::process::Stdio::piped());