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
feat: ollama + llama3.1 function calling, pipe store
Louis Beaumont7217a64a0986
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 89a076de7..511afc303 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@@ -136,7 +136,7 @@ export function ChatList({}}- console.log("provider", provider);+ // console.log("provider", provider);console.log("model", model);const text = await generateText({diff --git a/examples/apps/screenpipe-app-tauri/components/pipe-store.tsx b/examples/apps/screenpipe-app-tauri/components/pipe-store.tsxindex e272adc54..c9434ab89 100644--- a/examples/apps/screenpipe-app-tauri/components/pipe-store.tsx+++ b/examples/apps/screenpipe-app-tauri/components/pipe-store.tsx@@ -2,6 +2,7 @@ import React, { useState } from "react";import {Dialog,DialogContent,+ DialogDescription,DialogHeader,DialogTitle,DialogTrigger,@@ -16,6 +17,8 @@ import { CodeBlock } from "@/components/ui/codeblock";import remarkGfm from "remark-gfm";import remarkMath from "remark-math";import { Skeleton } from "./ui/skeleton";+import { PrettyLink } from "@/components/pretty-link";+const formatDate = (dateString: string) => {const date = new Date(dateString);return date.toLocaleDateString("en-US", {@@ -24,6 +27,34 @@ const formatDate = (dateString: string) => {day: "numeric",});};++const FeatureRequestLink: React.FC<{ className?: string }> = ({+ className,+}) => (+ <PrettyLink+ className={className}+ variant="outline"+ href="mailto:[email protected]?subject=Screenpipe%20Pipe%20Store%20Feature&body=yo%20louis%2C%0A%0Ai'd%20like%20to%20be%20featured%20in%20the%20Pipe%20Store.%20I've%20got%20an%20awesome%20product%20that%20use%20screenpipe%20and%20would%20get%20some%20more%20users%20by%20being%20listed%20here.%0A%0A%3Cmy%20product%20does%20x%2C%20y%2C%20z%3E%0A%3Cthis%20is%20my%20twitter%20tag%20or%20linkedin%3E%20-%3C%20will%20interact%20with%20your%20post%20for%20maximum%20cross%20marketing%0A%0Alet's%20chat%20about%20how%20we%20can%20collaborate%0A%0Alooking%20forward%20to%20connecting!%0A%0A%3Cps%20book%20call%20here%20https%3A%2F%2Fcal.com%2Flouis030195%2Fscreenpipe%3E"+ >+ <span className="mr-2">want to be featured here? reach out</span>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />+ <polyline points="15 3 21 3 21 9" />+ <line x1="10" y1="14" x2="21" y2="3" />+ </svg>+ </PrettyLink>+);+const PipeDialog: React.FC = () => {const { pipes, loading, error } = usePipes("https://github.com/different-ai/file-organizer-2000"@@ -41,11 +72,23 @@ const PipeDialog: React.FC = () => {return (<Dialog><DialogTrigger asChild>- <Button variant="ghost">Pipe Store</Button>+ {/* <Button variant="ghost">pipe store</Button> */}+ <PrettyLink variant="outline" href="#">+ Pipe Store+ </PrettyLink></DialogTrigger><DialogContent className="max-w-[90vw] w-full max-h-[90vh] h-full"><DialogHeader>- <DialogTitle>Pipes</DialogTitle>+ <DialogTitle>Pipe Store</DialogTitle>+ <DialogDescription>+ Screenpipe's store is a collection of app, scripts, prompts+ that are available to install.+ <br />+ It will process, annotate, help you search, or automate in your+ screenpipe's data.+ </DialogDescription>++ {selectedPipe && <FeatureRequestLink className="w-80" />}</DialogHeader><div className="flex h-[600px]"><div className="w-1/3 pr-4 overflow-y-auto">@@ -57,7 +100,7 @@ const PipeDialog: React.FC = () => {<Skeleton className="h-24 w-full" /></div>))}- {error && <p>Error: {error}</p>}+ {error && <p>error: {error}</p>}{pipes.map((pipe: any) => (<Cardkey={pipe.name}@@ -89,21 +132,21 @@ const PipeDialog: React.FC = () => {</div><p className="text-xs mt-1 line-clamp-2">{pipe.description}</p><p className="text-xs text-gray-500 mt-1">- Updated {formatUpdatedTime(pipe.lastUpdate)}+ updated {formatUpdatedTime(pipe.lastUpdate)}</p></Card>))}</div><div className="w-1/2 pl-4 border-l overflow-y-auto">- {selectedPipe && (+ {selectedPipe ? (<><h2 className="text-2xl font-bold mb-2">{selectedPipe.name}</h2><div className="flex justify-between items-center mb-4"><div>- <p>Downloads: {selectedPipe.downloads}</p>- <p>Version: {selectedPipe.version}</p>+ <p>downloads: {selectedPipe.downloads}</p>+ <p>version: {selectedPipe.version}</p><p>- By:{" "}+ by:{" "}<ahref={selectedPipe.authorLink}className="text-blue-500 hover:underline"@@ -112,16 +155,16 @@ const PipeDialog: React.FC = () => {</a></p><p>- Repository:{" "}+ repository:{" "}<ahref={selectedPipe.repository}className="text-blue-500 hover:underline">- Link+ link</a></p><p>- Last update:{" "}+ last update:{" "}<ahref={selectedPipe.repository}className="text-blue-500 hover:underline"@@ -134,36 +177,34 @@ const PipeDialog: React.FC = () => {<p className="mb-4">{selectedPipe.description}</p><div className="flex space-x-2 mb-4"><Button disabled variant="outline">- Install+ install<Badge variant="secondary" className="ml-2">- Soon+ soon</Badge></Button><Button disabled variant="outline">- Copy Share Link+ copy share link<Badge variant="secondary" className="ml-2">- Soon+ soon</Badge></Button><Button disabled variant="outline">- Donate+ donate<Badge variant="secondary" className="ml-2">- Soon+ soon</Badge></Button></div><Separator className="my-4" /><div className="mt-4"><h3 className="text-xl font-semibold mb-2">- About this Pipe+ about this pipe</h3><MemoizedReactMarkdownclassName="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0 w-full"remarkPlugins={[remarkGfm, remarkMath]}components={{p({ children }) {- console.log("YOOOO SOME PP", children);-return <p className="mb-2 last:mb-0">{children}</p>;},code({ node, className, children, ...props }) {@@ -191,7 +232,6 @@ const PipeDialog: React.FC = () => {);},img({ src, alt }) {- console.log("YOOOO", src);return (<imgsrc={src}@@ -211,6 +251,11 @@ const PipeDialog: React.FC = () => {</MemoizedReactMarkdown></div></>+ ) : (+ <div className="flex flex-col items-center justify-center h-full">+ <p className="text-lg mb-4">no pipe selected</p>+ <FeatureRequestLink />+ </div>)}</div></div>diff --git a/examples/apps/screenpipe-app-tauri/components/pretty-link.tsx b/examples/apps/screenpipe-app-tauri/components/pretty-link.tsxindex 02b4d108d..7ccba21ed 100644--- a/examples/apps/screenpipe-app-tauri/components/pretty-link.tsx+++ b/examples/apps/screenpipe-app-tauri/components/pretty-link.tsx@@ -4,10 +4,12 @@ export function PrettyLink({href,children,variant = "filled",+ className,}: {href: string;children: React.ReactNode;variant?: "filled" | "outline";+ className?: string;}) {return (<a@@ -15,6 +17,7 @@ export function PrettyLink({target="_blank"rel="noopener noreferrer"className={cn(+ className,"inline-flex items-center rounded-md px-4 py-2","text-sm font-medium shadow-sm","focus:outline-none focus:ring-2",diff --git a/examples/apps/screenpipe-app-tauri/components/settings.tsx b/examples/apps/screenpipe-app-tauri/components/settings.tsxindex 4fb7614cd..58d2636f9 100644--- a/examples/apps/screenpipe-app-tauri/components/settings.tsx+++ b/examples/apps/screenpipe-app-tauri/components/settings.tsx@@ -19,6 +19,7 @@ import {TooltipTrigger,} from "@/components/ui/tooltip";import { Badge } from "@/components/ui/badge";+import { PrettyLink } from "./pretty-link";export function Settings({ className }: { className?: string }) {const { settings, updateSettings } = useSettings();@@ -48,7 +49,7 @@ export function Settings({ className }: { className?: string }) {}}><DialogTrigger asChild>- <Button variant="outline" className={className}>+ <Button variant="ghost" className={className}>Settings</Button></DialogTrigger>diff --git a/examples/apps/screenpipe-app-tauri/package.json b/examples/apps/screenpipe-app-tauri/package.jsonindex 65b174d9f..2eff1b277 100644--- a/examples/apps/screenpipe-app-tauri/package.json+++ b/examples/apps/screenpipe-app-tauri/package.json@@ -34,7 +34,7 @@"clsx": "^2.1.1","lucide-react": "^0.414.0","next": "14.2.4",- "ollama-ai-provider": "^0.10.0",+ "ollama-ai-provider": "../../../../ollama-ai-provider/packages/ollama","openai": "^4.53.0","react": "^18","react-dom": "^18",diff --git a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml b/examples/apps/screenpipe-app-tauri/pnpm-lock.yamlindex e6fe8dc86..1cc83dafe 100644--- a/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml+++ b/examples/apps/screenpipe-app-tauri/pnpm-lock.yaml@@ -29,6 +29,9 @@ dependencies:'@radix-ui/react-label':specifier: ^2.1.0version: 2.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-separator':+ specifier: ^1.1.0+ version: 1.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])@@ -72,8 +75,8 @@ dependencies:specifier: 14.2.4version: 14.2.4([email protected])([email protected])ollama-ai-provider:- specifier: ^0.10.0- version: 0.10.0([email protected])+ specifier: ../../../../ollama-ai-provider/packages/ollama+ version: link:../../../../ollama-ai-provider/packages/ollamaopenai:specifier: ^4.53.0version: 4.53.0@@ -156,22 +159,6 @@ packages:zod: 3.23.8dev: false- /@ai-sdk/[email protected]([email protected]):- resolution: {integrity: sha512-Akq7MmGQII8xAuoVjJns/n/2BTUrF6qaXIj/3nEuXk/hPSdETlLWRSrjrTmLpte1VIPE5ecNzTALST+6nz47UQ==}- engines: {node: '>=18'}- peerDependencies:- zod: ^3.0.0- peerDependenciesMeta:- zod:- optional: true- dependencies:- '@ai-sdk/provider': 0.0.11- 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]([email protected]):resolution: {integrity: sha512-2TldHn54+HrvVHMCos9lrSMcDIp3cgnpphpYT/95RXcIzcGwAFM5MioDWnsrki3noplU5pVld6ylD3Vu/Xt3Vw==}engines: {node: '>=18'}@@ -188,13 +175,6 @@ packages:zod: 3.23.8dev: false- /@ai-sdk/[email protected]:- resolution: {integrity: sha512-VTipPQ92Moa5Ovg/nZIc8yNoIFfukZjUHZcQMduJbiUh3CLQyrBAKTEV9AwjPy8wgVxj3+GZjon0yyOJKhfp5g==}- engines: {node: '>=18'}- dependencies:- json-schema: 0.4.0- dev: false-/@ai-sdk/[email protected]:resolution: {integrity: sha512-RBstpG/3RqVBBJgTvjZpou/+1fNQMDIwB9enqQPXqr0MoCrJHscLD2Zsfr6cKM5HFfY1D4KhdSPTycCDebVGlQ==}engines: {node: '>=18'}@@ -1058,6 +1038,26 @@ 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-3uBAs+egzvJBDZAzvb/n4NxxOYpnspmWxO2u5NbZ8Y6FM/NdrGSF9bop3Cf6F6C71z1rTSn8KV0Fo2ZVd79lGA==}+ 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+resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}peerDependencies:@@ -4264,21 +4264,6 @@ packages:es-object-atoms: 1.0.0dev: true- resolution: {integrity: sha512-ppzofC1JtB8yQ2TRAGm6I9ppoRSpXZGQV4u5ez2JAQ5hwnkJKULgEg5Hc4rt84ErF3MpEIpG1ZSBV4njlL6LPQ==}- engines: {node: '>=18'}- peerDependencies:- zod: ^3.0.0- peerDependenciesMeta:- zod:- optional: true- dependencies:- '@ai-sdk/provider': 0.0.11- '@ai-sdk/provider-utils': 1.0.0([email protected])- partial-json: 0.1.7- zod: 3.23.8- dev: false-resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}dependencies:@@ -4361,10 +4346,6 @@ packages:is-hexadecimal: 2.0.1dev: false- resolution: {integrity: sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==}- dev: false-resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}engines: {node: '>=8'}