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 revert settings
Louis Beaumonte68f6d370fa3
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 0a750b804..c4a67ab2b 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -144,9 +144,9 @@ jobs:if: matrix.tauri-args == '--target x86_64-pc-windows-msvc'shell: powershellrun: |- $nsisUrl = "https://nsis.sourceforge.io/mediawiki/images/9/96/NSIS-3.08-setup.exe"+ $nsisUrl = "https://sourceforge.net/projects/nsis/files/NSIS%203/3.10/nsis-3.10-setup.exe/download"$installerPath = "$env:TEMP\nsis-installer.exe"- Invoke-WebRequest -Uri $nsisUrl -OutFile $installerPath+ Invoke-Expression "curl.exe -L -o `"$installerPath`" `"$nsisUrl`""Start-Process -FilePath $installerPath -ArgumentList "/S" -WaitRemove-Item $installerPath -Force# Add NSIS to PATHdiff --git a/screenpipe-app-tauri/components/notification-handler.tsx b/screenpipe-app-tauri/components/notification-handler.tsxindex 2a923d4f1..77a59b029 100644--- a/screenpipe-app-tauri/components/notification-handler.tsx+++ b/screenpipe-app-tauri/components/notification-handler.tsx@@ -17,7 +17,6 @@ const NotificationHandler: React.FC = () => {useEffect(() => {const checkAndRequestPermission = async () => {let permission = await isPermissionGranted();- console.log("ission", permission);if (!permission) {const result = await requestPermission();diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsxindex 4e99681b6..5eed38a26 100644--- a/screenpipe-app-tauri/components/pipe-store.tsx+++ b/screenpipe-app-tauri/components/pipe-store.tsx@@ -132,14 +132,6 @@ const corePipes: CorePipe[] = [credits: 0,paid: false,},- {- id: "pipe-simple-nextjs",- name: "keyword analytics",- description: "show most used keywords",- url: "https://github.com/mediar-ai/screenpipe/tree/main/pipes/pipe-simple-nextjs",- credits: 0,- paid: false,- },{id: "meeting",name: "meeting assistant",@@ -158,6 +150,14 @@ const corePipes: CorePipe[] = [credits: 10,paid: true,},+ {+ id: "pipe-simple-nextjs",+ name: "keyword analytics",+ description: "show most used keywords",+ url: "https://github.com/mediar-ai/screenpipe/tree/main/pipes/pipe-simple-nextjs",+ credits: 0,+ paid: false,+ },];const getAuthorFromSource = (source: string): string => {diff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsxindex 296f8ba14..80715be3a 100644--- a/screenpipe-app-tauri/components/recording-settings.tsx+++ b/screenpipe-app-tauri/components/recording-settings.tsx@@ -953,7 +953,7 @@ export function RecordingSettings() {htmlFor="audioTranscriptionModel"className="flex items-center">- <Mic className="h-4 w-4" />+ <Mic className="pl-2 h-4 w-4" /><span>audio transcription model</span></Label><Select@@ -999,7 +999,7 @@ export function RecordingSettings() {htmlFor="deepgramApiKey"className="flex items-center space-x-2">- <Key className="h-4 w-4" />+ <Key className="pl-2 h-4 w-4" />api key</Label><div className="flex-grow relative">@@ -1014,7 +1014,7 @@ export function RecordingSettings() {});}}className="pr-10 w-full"- placeholder="Enter your Deepgram API key"+ placeholder="enter your Deepgram API key"autoCorrect="off"autoCapitalize="off"autoComplete="off"diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex efa40fb89..ba1e3a4bc 100644--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -113,7 +113,7 @@ const DEFAULT_SETTINGS: Settings = {includedWindows: [],aiProviderType: "openai",aiUrl: "https://api.openai.com/v1",- aiMaxContextChars: 100000,+ aiMaxContextChars: 30000,fps: 0.5,vadSensitivity: "high",analyticsEnabled: true,@@ -177,30 +177,30 @@ export interface StoreModel {function createDefaultSettingsObject(): Settings {let defaultSettings = { ...DEFAULT_SETTINGS };- let currentPlatform = "unknown";try {- currentPlatform = platform() || "unknown";- } catch (e) {- console.warn("platform detection failed, defaulting to unknown");- }+ const currentPlatform = platform();- const ocrModel =- currentPlatform === "macos"- ? "apple-native"- : currentPlatform === "windows"- ? "windows-native"- : "tesseract";+ const ocrModel =+ currentPlatform === "macos"+ ? "apple-native"+ : currentPlatform === "windows"+ ? "windows-native"+ : "tesseract";- defaultSettings.ocrEngine = ocrModel;- defaultSettings.fps = currentPlatform === "macos" ? 0.2 : 1;- defaultSettings.platform = currentPlatform;+ defaultSettings.ocrEngine = ocrModel;+ defaultSettings.fps = currentPlatform === "macos" ? 0.2 : 1;+ defaultSettings.platform = currentPlatform;- defaultSettings.ignoredWindows = [- ...DEFAULT_IGNORED_WINDOWS_IN_ALL_OS,- ...(DEFAULT_IGNORED_WINDOWS_PER_OS[currentPlatform] ?? []),- ];+ defaultSettings.ignoredWindows = [+ ...DEFAULT_IGNORED_WINDOWS_IN_ALL_OS,+ ...(DEFAULT_IGNORED_WINDOWS_PER_OS[currentPlatform] ?? []),+ ];- return defaultSettings;+ return defaultSettings;+ } catch (e) {+ console.error("failed to get platform", e);+ return DEFAULT_SETTINGS;+ }}// Create a singleton store instance@@ -219,21 +219,37 @@ const getStore = async () => {const tauriStorage: PersistStorage = {getItem: async (_key: string) => {const tauriStore = await getStore();- const settings = await tauriStore.get<Settings>("root");- return settings || createDefaultSettingsObject();+ const allKeys = await tauriStore.keys();+ const values: Record<string, any> = {};++ for (const k of allKeys) {+ values[k] = await tauriStore.get(k);+ }++ return { settings: unflattenObject(values) };},setItem: async (_key: string, value: any) => {const tauriStore = await getStore();- const settings = value.settings;- for (const [key, val] of Object.entries(settings)) {++ const flattenedValue = flattenObject(value.settings);++ // Delete all existing keys first+ const existingKeys = await tauriStore.keys();+ for (const key of existingKeys) {+ await tauriStore.delete(key);+ }++ // Set new flattened values+ for (const [key, val] of Object.entries(flattenedValue)) {await tauriStore.set(key, val);}+await tauriStore.save();},removeItem: async (_key: string) => {const tauriStore = await getStore();- const settings = createDefaultSettingsObject();- for (const key of Object.keys(settings)) {+ const keys = await tauriStore.keys();+ for (const key of keys) {await tauriStore.delete(key);}await tauriStore.save();diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lockindex e1f8f0fcb..76f39a609 100755--- a/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -4966,7 +4966,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "0.19.9"+version = "0.20.2"dependencies = ["anyhow","axum",diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 433759295..ed1c42d10 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.20.1"+version = "0.20.2"description = ""authors = ["you"]license = ""