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
release-app fix obsidian pipe, ffmpeg windows
Louis Beaumont98cc49b7c1ac
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex ad8869463..1838aa63a 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -306,10 +306,9 @@ jobs:Expand-Archive -Path $wgetZip -DestinationPath $wgetDir -ForceRemove-Item $wgetZip- # Add to PATH+ # Add to PATH for current session only$env:Path = "$wgetDir;$env:Path"- [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)-+# Verify installation& "$wgetDir\wget.exe" --versiondiff --git a/pipes/pipe-obsidian-time-logs/bun.lockb b/pipes/pipe-obsidian-time-logs/bun.lockbindex 84c949b80..abccd7754 100755Binary files a/pipes/pipe-obsidian-time-logs/bun.lockb and b/pipes/pipe-obsidian-time-logs/bun.lockb differdiff --git a/pipes/pipe-obsidian-time-logs/package.json b/pipes/pipe-obsidian-time-logs/package.jsonindex 94ac8da9d..5e11c46b9 100644--- a/pipes/pipe-obsidian-time-logs/package.json+++ b/pipes/pipe-obsidian-time-logs/package.json@@ -3,11 +3,11 @@"module": "pipe.ts","type": "module","dependencies": {- "zod": "^3.23.8",- "ai": "^4.0.9",- "ollama-ai-provider": "^1.0.0",- "@ai-sdk/openai": "^1.0.5",- "@screenpipe/js": "^0.1.3"+ "@ai-sdk/openai": "^1.0.7",+ "@screenpipe/js": "0.1.3",+ "ai": "^4.0.13",+ "ollama-ai-provider": "^1.1.0",+ "zod": "^3.23.8"},"devDependencies": {"@types/bun": "latest"diff --git a/pipes/pipe-obsidian-time-logs/pipe.json b/pipes/pipe-obsidian-time-logs/pipe.jsonindex 797290b76..74d96634b 100644--- a/pipes/pipe-obsidian-time-logs/pipe.json+++ b/pipes/pipe-obsidian-time-logs/pipe.json@@ -18,24 +18,6 @@"default": "","description": "Custom prompt to use for the AI model"},- {- "name": "gptModel",- "type": "string",- "default": "gpt-4o",- "description": "OpenAI GPT model to use (e.g. gpt-4). If provided with openaiApiKey, OpenAI will be used instead of Ollama"- },- {- "name": "openaiApiKey",- "type": "string",- "default": "",- "description": "OpenAI API key. If provided with gptModel, OpenAI will be used instead of Ollama"- },- {- "name": "ollamaApiUrl",- "type": "string",- "default": "http://localhost:11434/api",- "description": "Ollama API URL. Used if openaiApiKey is not provided"- },{"name": "ollamaModel","type": "string",diff --git a/pipes/pipe-obsidian-time-logs/pipe.ts b/pipes/pipe-obsidian-time-logs/pipe.tsindex 9e915e6a7..e96fa5ed3 100644--- a/pipes/pipe-obsidian-time-logs/pipe.ts+++ b/pipes/pipe-obsidian-time-logs/pipe.ts@@ -1,7 +1,6 @@import { z } from "zod";import { generateObject } from "ai";-import { createOllama } from "ollama-ai-provider";-import { createOpenAI } from "@ai-sdk/openai";+import { createOllama, ollama } from "ollama-ai-provider";import { pipe, ContentItem } from "@screenpipe/js";import * as fs from "fs/promises";import * as path from "path";@@ -15,18 +14,10 @@ const workLog = z.object({type WorkLog = z.infer<typeof workLog>;-function getAIProvider(config: any) {- if (config.openaiApiKey.length > 0 && config.gptModel.length > 0) {- return createOpenAI({- apiKey: config.openaiApiKey,- });- }- return createOllama({ baseURL: config.ollamaApiUrl });-}+async function generateWorkLog(screenData: ContentItem[],- provider: any,model: string,customPrompt?: string): Promise<WorkLog> {@@ -45,9 +36,10 @@ async function generateWorkLog(Estimate time spent in minutes based on the activities timestamps.`;const prompt = customPrompt || defaultPrompt;+ const provider = ollama(model);const response = await generateObject({- model: provider(model),+ model: provider,messages: [{ role: "user", content: prompt }],schema: workLog,});@@ -108,7 +100,6 @@ function streamWorkLogs(): void {const pageSize = config.pageSize;const model = config.gptModel || config.ollamaModel;- const provider = getAIProvider(config);pipe.inbox.send({title: "obsidian time logs stream started",body: `monitoring work activity every ${config.interval / 1000} seconds`,@@ -131,7 +122,6 @@ function streamWorkLogs(): void {if (screenData && screenData.data.length > 0) {const logEntry = await generateWorkLog(screenData.data,- provider,model,customPrompt);@@ -172,6 +162,15 @@ streamWorkLogs();/*++# these are mandatory env variables+export SCREENPIPE_DIR="$HOME/.screenpipe"+export PIPE_ID="pipe-obsidian-time-logs"+export PIPE_FILE="pipe.ts"+export PIPE_DIR="$SCREENPIPE_DIR/pipes/pipe-obsidian-time-logs"++bun run pipes/pipe-obsidian-time-logs/pipe.ts+Instructions to run this pipe:1. install screenpipe and git clone this repodiff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 5e911319a..fed215d0b 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -56,6 +56,7 @@ async function findWget() {'C:\\Program Files\\Git\\mingw64\\bin\\wget.exe','C:\\msys64\\usr\\bin\\wget.exe','C:\\Windows\\System32\\wget.exe',+ 'C:\\wget\\wget.exe','wget' // This will work if wget is in PATH];diff --git a/screenpipe-core/src/ffmpeg.rs b/screenpipe-core/src/ffmpeg.rsindex b947a931c..b5b70b521 100644--- a/screenpipe-core/src/ffmpeg.rs+++ b/screenpipe-core/src/ffmpeg.rs@@ -194,5 +194,5 @@ fn get_ffmpeg_install_dir() -> Result<PathBuf, anyhow::Error> {#[cfg(not(target_os = "macos"))]fn get_ffmpeg_install_dir() -> Result<PathBuf, anyhow::Error> {// Your existing logic for other platforms- sidecar_dir().map_err(|e| anyhow!(e))+ sidecar_dir().map_err(|e| anyhow::anyhow!(e))}