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
remove pipe related fields
shaik-zeeshan3c7e2aea4c82
diff --git a/openrewind/components/onboarding/shortcuts.tsx b/openrewind/components/onboarding/shortcuts.tsxindex 816b5ec32..0cac6b0e4 100644--- a/openrewind/components/onboarding/shortcuts.tsx+++ b/openrewind/components/onboarding/shortcuts.tsx@@ -136,7 +136,7 @@ export default function OnboardingShortcuts({settings.stopRecordingShortcut,settings.startAudioShortcut,settings.stopAudioShortcut,- settings.pipeShortcuts+ {});} catch (error) {console.error("Error updating shortcut:", error);@@ -167,7 +167,7 @@ export default function OnboardingShortcuts({settings.stopRecordingShortcut,settings.startAudioShortcut,settings.stopAudioShortcut,- settings.pipeShortcuts+ {});} catch (error) {console.error("Error disabling shortcut:", error);diff --git a/openrewind/components/settings/recording-settings.tsx b/openrewind/components/settings/recording-settings.tsxindex 2ebaf5d1f..77d18581c 100644--- a/openrewind/components/settings/recording-settings.tsx+++ b/openrewind/components/settings/recording-settings.tsx@@ -288,18 +288,14 @@ export function RecordingSettings() {monitor.id.toString());let updatedMonitorIds = settings.monitorIds.filter((id) =>+ id === "default" ||availableMonitorIds.includes(id));- if (- updatedMonitorIds.length === 0 ||- (settings.monitorIds.length === 1 &&- settings.monitorIds[0] === "default" &&- monitors.length > 0)- ) {+ if (updatedMonitorIds.length === 0) {updatedMonitorIds = [monitors.find((monitor) => monitor.is_default)!.id!.toString(),- ];+ ]}// Update audio devicesdiff --git a/openrewind/components/settings/shortcut-row.tsx b/openrewind/components/settings/shortcut-row.tsxindex 789c57805..791f4d7c7 100644--- a/openrewind/components/settings/shortcut-row.tsx+++ b/openrewind/components/settings/shortcut-row.tsx@@ -12,7 +12,7 @@ interface ShortcutRowProps {shortcut: string;title: string;description: string;- type: "global" | "pipe";+ type: "global";value?: string;}@@ -89,7 +89,6 @@ const ShortcutRow = ({stopRecordingShortcut: string;startAudioShortcut: string;stopAudioShortcut: string;- pipeShortcuts: Record<string, string>;}) => {console.log("syncing shortcuts:", {showShortcut: updatedShortcuts.showOpenrewindShortcut,@@ -97,7 +96,6 @@ const ShortcutRow = ({stopShortcut: updatedShortcuts.stopRecordingShortcut,startAudioShortcut: updatedShortcuts.startAudioShortcut,stopAudioShortcut: updatedShortcuts.stopAudioShortcut,- pipeShortcuts: updatedShortcuts.pipeShortcuts,});// wait 1 secondawait new Promise((resolve) => setTimeout(resolve, 1000));@@ -107,7 +105,7 @@ const ShortcutRow = ({updatedShortcuts.stopRecordingShortcut,updatedShortcuts.startAudioShortcut,updatedShortcuts.stopAudioShortcut,- updatedShortcuts.pipeShortcuts+ {});return true;@@ -136,30 +134,10 @@ const ShortcutRow = ({stopRecordingShortcut: settings.stopRecordingShortcut,startAudioShortcut: settings.startAudioShortcut,stopAudioShortcut: settings.stopAudioShortcut,- [shortcut]: keys,- pipeShortcuts: settings.pipeShortcuts,} as any);break;- case "pipe":- const pipeId = shortcut.replace("pipe_", "");- updateSettings({- pipeShortcuts: {- ...settings.pipeShortcuts,- [pipeId]: keys,- },- });- await syncShortcuts({- showOpenrewindShortcut: settings.showOpenrewindShortcut,- startRecordingShortcut: settings.startRecordingShortcut,- stopRecordingShortcut: settings.stopRecordingShortcut,- startAudioShortcut: settings.startAudioShortcut,- stopAudioShortcut: settings.stopAudioShortcut,- pipeShortcuts: {- ...settings.pipeShortcuts,- [pipeId]: keys,- },- });- break;+ default:+ throw new Error(`Invalid shortcut type: ${type}`);}} catch (error) {console.error("error updating shortcut", error);@@ -189,7 +167,6 @@ const ShortcutRow = ({stopRecordingShortcut: settings.stopRecordingShortcut,startAudioShortcut: settings.startAudioShortcut,stopAudioShortcut: settings.stopAudioShortcut,- pipeShortcuts: settings.pipeShortcuts,});};diff --git a/openrewind/components/settings/shortcut-section.tsx b/openrewind/components/settings/shortcut-section.tsxindex 793b42fae..31a5490f8 100644--- a/openrewind/components/settings/shortcut-section.tsx+++ b/openrewind/components/settings/shortcut-section.tsx@@ -1,32 +1,10 @@-import React, { useEffect, useState } from "react";+import React from "react";import { useSettings } from "@/lib/hooks/use-settings";-import { PipeApi } from "@/lib/api";import ShortcutRow from "./shortcut-row";const ShortcutSection = () => {- const [pipes, setPipes] = useState<- { id: string; source: string; enabled: boolean }[]- >([]);const { settings } = useSettings();- useEffect(() => {- const loadPipes = async () => {- try {- const pipeApi = new PipeApi();- const pipeList = await pipeApi.listPipes();- setPipes(- pipeList.map((p) => ({- id: p.id,- source: p.source,- enabled: p.enabled,- }))- );- } catch (error) {- console.error("failed to load pipes:", error);- }- };- loadPipes();- }, []);return (<div className="space-y-8">@@ -80,29 +58,7 @@ const ShortcutSection = () => {value={settings.stopAudioShortcut}/>- {pipes.filter((p) => p.enabled).length > 0 && (- <>- <div className="mt-8 mb-4">- <h2 className="text-lg font-semibold">pipe shortcuts</h2>- <p className="text-sm text-muted-foreground">- assign shortcuts to quickly trigger installed pipes- </p>- </div>-- {pipes- .filter((p) => p.enabled)- .map((pipe) => (- <ShortcutRow- key={pipe.id}- type="pipe"- shortcut={`pipe_${pipe.id}`}- title={`trigger ${pipe.id} pipe`}- description={`run pipe ${pipe.id}`}- value={settings.pipeShortcuts[pipe.id]}- />- ))}- </>- )}+</div></div>);diff --git a/openrewind/lib/hooks/use-settings.tsx b/openrewind/lib/hooks/use-settings.tsxindex 831dddf22..ab550382e 100644--- a/openrewind/lib/hooks/use-settings.tsx+++ b/openrewind/lib/hooks/use-settings.tsx@@ -6,8 +6,6 @@ import React, { createContext, useContext, useEffect, useState } from "react";import posthog from "posthog-js";import localforage from "localforage";import { User } from "../utils/tauri";-import { Pipe } from "./use-pipes";-import { Language } from "@/lib/language";import { SettingsStore } from "../utils/tauri";export type VadSensitivity = "low" | "medium" | "high";@@ -100,7 +98,6 @@ let DEFAULT_SETTINGS: Settings = {aiPresets: [],deepgramApiKey: "",isLoading: false,- installedPipes: [],userId: "",devMode: false,audioTranscriptionEngine: "whisper-large-v3-turbo",@@ -156,7 +153,6 @@ let DEFAULT_SETTINGS: Settings = {stopRecordingShortcut: "Super+Alt+X",startAudioShortcut: "",stopAudioShortcut: "",- pipeShortcuts: {},enableRealtimeAudioTranscription: false,realtimeAudioTranscriptionEngine: "deepgram",disableVision: false,diff --git a/openrewind/lib/utils/tauri.ts b/openrewind/lib/utils/tauri.tsindex 0c6d3f2aa..19b0ba116 100644--- a/openrewind/lib/utils/tauri.ts+++ b/openrewind/lib/utils/tauri.ts@@ -181,8 +181,7 @@ export type OSPermission = "screenRecording" | "microphone"export type OSPermissionStatus = "notNeeded" | "empty" | "granted" | "denied"export type OSPermissionsCheck = { screenRecording: OSPermissionStatus; microphone: OSPermissionStatus }export type OnboardingStore = { isCompleted: boolean; completedAt: string | null }-export type Pipe = { id: string; name: string; description: string; version: string; author: string; authorLink: string; repository: string; lastUpdate: string; fullDescription: string; downloads: number; mainFile: string; config: { [key in string]: string } }-export type SettingsStore = { aiPresets: AIPreset[]; deepgramApiKey: string; isLoading: boolean; installedPipes: Pipe[]; userId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; enableUiMonitoring: boolean; platform: string; disabledShortcuts: string[]; user: User; showOpenrewindShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; pipeShortcuts: { [key in string]: string }; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean }+export type SettingsStore = { aiPresets: AIPreset[]; deepgramApiKey: string; isLoading: boolean; userId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; enableUiMonitoring: boolean; platform: string; disabledShortcuts: string[]; user: User; showOpenrewindShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean }export type ShowRewindWindow = "Main" | { Settings: { page: string | null } } | { Search: { query: string | null } } | "Onboarding"export type User = { id: string | null; name: string | null; email: string | null; image: string | null; token: string | null; clerk_id: string | null; api_key: string | null; credits: Credits | null; stripe_connected: boolean | null; stripe_account_status: string | null; github_username: string | null; bio: string | null; website: string | null; contact: string | null; cloud_subscribed: boolean | null }