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 windows build + custom prompt
Louis Beaumont8c47e0bb2127
diff --git a/screenpipe-app-tauri/components/settings.tsx b/screenpipe-app-tauri/components/settings.tsxindex 8b6b5b897..89e8a35d1 100644--- a/screenpipe-app-tauri/components/settings.tsx+++ b/screenpipe-app-tauri/components/settings.tsx@@ -46,17 +46,6 @@ export function Settings({ className }: { className?: string }) {updateSettings({ openaiApiKey: newValue });};- const handleOllamaToggle = (checked: boolean) => {- setLocalSettings((prev) => ({ ...prev, useOllama: checked }));- updateSettings({ useOllama: checked });- };-- const handleOllamaUrlChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const newValue = e.target.value;- setLocalSettings((prev) => ({ ...prev, ollamaUrl: newValue }));- updateSettings({ ollamaUrl: newValue });- };-const handleModelChange = (e: React.ChangeEvent<HTMLInputElement>) => {const newValue = e.target.value;setLocalSettings((prev) => ({ ...prev, aiModel: newValue }));@@ -99,15 +88,6 @@ export function Settings({ className }: { className?: string }) {<DialogDescription>choose your AI provider, enter necessary credentials, and more.</DialogDescription>- {localSettings.useOllama ? (- <p className="text-sm font-medium text-grey-600 dark:text-grey-400">- you are now using ollama 🦙- </p>- ) : (- <p className="text-sm font-medium text-grey-600 dark:text-grey-400">- you are now using openai 🤖- </p>- )}</DialogHeader><div className="mt-8 space-y-6"><RecordingSettings@@ -133,7 +113,8 @@ export function Settings({ className }: { className?: string }) {value={localSettings.aiUrl}onChange={handleApiUrlChange}className="flex-grow"- placeholder="Enter AI API URL"+ placeholder="enter ai url"+ type="url"/></div></div>@@ -149,7 +130,7 @@ export function Settings({ className }: { className?: string }) {value={localSettings.openaiApiKey}onChange={handleApiKeyChange}className="pr-10"- placeholder="Enter your AI API Key"+ placeholder="enter your ai api key"/><Buttontype="button"@@ -177,10 +158,43 @@ export function Settings({ className }: { className?: string }) {value={localSettings.aiModel}onChange={handleModelChange}className="flex-grow"- placeholder="Enter AI model (e.g., gpt-4)"+ placeholder="enter ai model (e.g., gpt-4)"/></div></div>++ <div className="w-full">+ <div className="flex items-center gap-4 mb-4">+ <Label+ htmlFor="customPrompt"+ className="min-w-[80px] text-right"+ >+ prompt+ </Label>+ <div className="flex-grow relative">+ <Textarea+ id="customPrompt"+ value={localSettings.customPrompt}+ onChange={handleCustomPromptChange}+ className="min-h-[100px]"+ placeholder="enter your custom prompt here"+ />+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="absolute right-2 top-2"+ onClick={handleResetCustomPrompt}+ >+ <RefreshCw className="h-4 w-4 mr-2" />+ reset+ </Button>+ </div>+ </div>+ </div>++ <Separator />+<p className="mt-2 text-sm text-muted-foreground text-center">enter your ai provider details here. for openai, you can get anapi key from{" "}diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 8daad32d7..5b7e2f99d 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -145,9 +145,9 @@ if (platform == 'windows') {console.log('Copying screenpipe binary...');const potentialPaths = [- path.join(__dirname, '..', '..', '..', '..', 'target', 'release', 'screenpipe.exe'),- path.join(__dirname, '..', '..', '..', '..', 'target', 'x86_64-pc-windows-msvc', 'release', 'screenpipe.exe'),- path.join(__dirname, '..', '..', '..', 'target', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', '..', 'target', 'x86_64-pc-windows-msvc', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', 'target', 'release', 'screenpipe.exe'),path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe.exe'),'D:\\a\\screenpipe\\screenpipe\\target\\release\\screenpipe.exe',];