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: build + ui stuff
Louis Beaumontd877c55c4e57
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 80bce89fc..6cdc42f33 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -162,7 +162,7 @@ jobs:export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../Frameworks -C link-arg=-Wl,-rpath,@loader_path/../Frameworks -C link-arg=-Wl,-install_name,@rpath/libscreenpipe.dylib"export V8_FLAGS="--max-old-space-size=8192" # https://github.com/denoland/deno_core/issues/916fi- cargo build --release ${{ matrix.args }}+ cargo build --release -p screenpipe-server ${{ matrix.args }}# Run pre build again to copy the CLI into app- name: Run pre_build.jsdiff --git a/screenpipe-app-tauri/components/search-chat.tsx b/screenpipe-app-tauri/components/search-chat.tsxindex 2209f5c9d..cd51ed725 100644--- a/screenpipe-app-tauri/components/search-chat.tsx+++ b/screenpipe-app-tauri/components/search-chat.tsx@@ -369,6 +369,11 @@ export function SearchChat() {});console.log("openai", settings.openaiApiKey, settings.aiUrl);+ posthog.capture("ai_search", {+ ai_url: settings.aiUrl,+ model: settings.aiModel,+ });+const model = settings.aiModel;const customPrompt = settings.customPrompt || "";diff --git a/screenpipe-app-tauri/components/settings.tsx b/screenpipe-app-tauri/components/settings.tsxindex 3ee80e6af..fb4985651 100644--- a/screenpipe-app-tauri/components/settings.tsx+++ b/screenpipe-app-tauri/components/settings.tsx@@ -43,6 +43,13 @@ import { platform } from "@tauri-apps/plugin-os";import { toast } from "@/components/ui/use-toast";import { invoke } from "@tauri-apps/api/core";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";export function Settings({ className }: { className?: string }) {const { settings, updateSettings, resetSetting } = useSettings();@@ -190,6 +197,11 @@ export function Settings({ className }: { className?: string }) {}};+ const handleAiUrlChange = (newValue: string) => {+ setLocalSettings({ ...localSettings, aiUrl: newValue });+ updateSettings({ aiUrl: newValue });+ };+return (<DialogonOpenChange={(open) => {@@ -228,44 +240,82 @@ export function Settings({ className }: { className?: string }) {<div className="w-full"><div className="flex items-center gap-4 mb-4"><Label htmlFor="aiUrl" className="min-w-[80px] text-right">- ai url+ ai provider</Label><div className="flex-grow flex items-center">- <Input- id="aiUrl"+ <Select+ onValueChange={handleAiUrlChange}value={localSettings.aiUrl}- onChange={handleApiUrlChange}- className="flex-grow"- placeholder="enter ai url"- type="url"- />- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <HelpCircle className="ml-2 h-4 w-4 cursor-default" />- </TooltipTrigger>- <TooltipContent side="left">- <p>- the url of your ai provider's api endpoint. for- openai:{" "}- <pre className="bg-gray-100 p-1 rounded-md">- https://api.openai.com/v1- </pre>- <br />- for local providers like ollama usually it's- <pre className="bg-gray-100 p-1 rounded-md">- http://localhost:11434/v1- </pre>- <br />- note: on windows, you may need to run ollama with:- <pre className="bg-gray-100 p-1 rounded-md">- OLLAMA_ORIGINS=* ollama run llama3.2- </pre>- </p>- </TooltipContent>- </Tooltip>- </TooltipProvider>+ >+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Select AI provider" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="https://api.openai.com/v1">+ openai+ </SelectItem>+ <SelectItem value="http://localhost:11434/v1">+ ollama (local)+ </SelectItem>+ <SelectItem value="https://ai-proxy.i-f9f.workers.dev/v1">+ screenpipe cloud+ </SelectItem>+ <SelectItem value="custom">custom</SelectItem>+ </SelectContent>+ </Select></div>+ {localSettings.aiUrl === "custom" && (+ <div className="flex items-center gap-4 mb-4 mt-2">+ <Label+ htmlFor="customAiUrl"+ className="min-w-[80px] text-right"+ >+ custom url+ </Label>+ <Input+ id="customAiUrl"+ value={localSettings.aiUrl}+ onChange={(e) => handleAiUrlChange(e.target.value)}+ className="flex-grow"+ placeholder="Enter custom AI URL"+ type="url"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <HelpCircle className="ml-2 h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="left">+ <p>+ choose your ai provider. for local providers like+ ollama, make sure it's running on your+ machine.+ <br />+ note: on windows, you may need to run ollama with:+ <pre className="bg-gray-100 p-1 rounded-md">+ OLLAMA_ORIGINS=* ollama run llama3.2+ </pre>+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ )}+ {localSettings.aiUrl ===+ "https://ai-proxy.i-f9f.workers.dev/v1" && (+ <p className="mt-2 text-sm text-muted-foreground">+ screenpipe cloud doesn't require an API key.+ <br />+ note: using this option may involve sending data to our+ servers.+ <br />+ please review our{" "}+ <a href="#" className="text-primary hover:underline">+ data privacy policy+ </a>{" "}+ for more information.+ </p>+ )}</div></div><div className="w-full">diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 22dfef47d..fb7c3fc95 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.5.1"+version = "0.5.2"description = ""authors = ["you"]license = ""