Skip to content

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

fix builds

Louis Beaumont487aa904abc5
diff --git a/pipes/data-table/src/lib/hooks/use-settings.tsx b/pipes/data-table/src/lib/hooks/use-settings.tsx
index afb31f94b..1e9a327b9 100644
--- a/pipes/data-table/src/lib/hooks/use-settings.tsx
+++ b/pipes/data-table/src/lib/hooks/use-settings.tsx
@@ -1,34 +1,10 @@
"use client";
import { useState, useEffect } from "react";
-import type { Settings } from "@screenpipe/browser";
+import { getDefaultSettings, type Settings } from "@screenpipe/browser";
export function useSettings() {
- const defaultSettings: Settings = {
- analyticsEnabled: true,
- openaiApiKey: "",
- deepgramApiKey: "",
- aiModel: "gpt-4",
- aiUrl: "https://api.openai.com/v1",
- customPrompt: "",
- port: 3030,
- dataDir: "default",
- disableAudio: false,
- ignoredWindows: [],
- includedWindows: [],
- aiProviderType: "openai",
- embeddedLLM: {
- enabled: false,
- model: "llama3.2:1b-instruct-q4_K_M",
- port: 11438,
- },
- enableFrameCache: true,
- enableUiMonitoring: false,
- aiMaxContextChars: 128000,
- user: {
- token: "",
- },
- };
+ const defaultSettings = getDefaultSettings();
const [settings, setSettings] = useState<Settings>(defaultSettings);
const [loading, setLoading] = useState(false);
diff --git a/pipes/identify-speakers/src/lib/hooks/use-settings.tsx b/pipes/identify-speakers/src/lib/hooks/use-settings.tsx
index afb31f94b..1e9a327b9 100644
--- a/pipes/identify-speakers/src/lib/hooks/use-settings.tsx
+++ b/pipes/identify-speakers/src/lib/hooks/use-settings.tsx
@@ -1,34 +1,10 @@
"use client";
import { useState, useEffect } from "react";
-import type { Settings } from "@screenpipe/browser";
+import { getDefaultSettings, type Settings } from "@screenpipe/browser";
export function useSettings() {
- const defaultSettings: Settings = {
- analyticsEnabled: true,
- openaiApiKey: "",
- deepgramApiKey: "",
- aiModel: "gpt-4",
- aiUrl: "https://api.openai.com/v1",
- customPrompt: "",
- port: 3030,
- dataDir: "default",
- disableAudio: false,
- ignoredWindows: [],
- includedWindows: [],
- aiProviderType: "openai",
- embeddedLLM: {
- enabled: false,
- model: "llama3.2:1b-instruct-q4_K_M",
- port: 11438,
- },
- enableFrameCache: true,
- enableUiMonitoring: false,
- aiMaxContextChars: 128000,
- user: {
- token: "",
- },
- };
+ const defaultSettings = getDefaultSettings();
const [settings, setSettings] = useState<Settings>(defaultSettings);
const [loading, setLoading] = useState(false);
diff --git a/pipes/memories/src/lib/hooks/use-settings.tsx b/pipes/memories/src/lib/hooks/use-settings.tsx
index bb5034311..c10ee5712 100644
--- a/pipes/memories/src/lib/hooks/use-settings.tsx
+++ b/pipes/memories/src/lib/hooks/use-settings.tsx
@@ -1,34 +1,10 @@
"use client";
import { useState, useEffect } from "react";
-import type { Settings } from "@screenpipe/browser";
+import { getDefaultSettings, type Settings } from "@screenpipe/browser";
export function useSettings() {
- const defaultSettings: Settings = {
- openaiApiKey: "",
- deepgramApiKey: "",
- aiModel: "gpt-4",
- aiUrl: "https://api.openai.com/v1",
- customPrompt: "",
- port: 3030,
- dataDir: "default",
- disableAudio: false,
- ignoredWindows: [],
- includedWindows: [],
- aiProviderType: "openai",
- embeddedLLM: {
- enabled: false,
- model: "llama3.2:1b-instruct-q4_K_M",
- port: 11438,
- },
- enableFrameCache: true,
- enableUiMonitoring: false,
- aiMaxContextChars: 128000,
- user: {
- token: "",
- },
- analyticsEnabled: true,
- };
+ const defaultSettings = getDefaultSettings();
const [settings, setSettings] = useState<Settings | null>(null);
const [loading, setLoading] = useState(true);
diff --git a/pipes/reddit-auto-posts/lib/hooks/use-settings.ts b/pipes/reddit-auto-posts/lib/hooks/use-settings.ts
index b5a869219..793068d66 100644
--- a/pipes/reddit-auto-posts/lib/hooks/use-settings.ts
+++ b/pipes/reddit-auto-posts/lib/hooks/use-settings.ts
@@ -1,33 +1,10 @@
"use client";
import { useState, useEffect } from "react";
-import type { Settings } from "@screenpipe/browser";
+import { getDefaultSettings, type Settings } from "@screenpipe/browser";
export function useSettings() {
- const defaultSettings: Settings = {
- openaiApiKey: "",
- deepgramApiKey: "",
- aiModel: "gpt-4",
- aiUrl: "https://api.openai.com/v1",
- customPrompt: "",
- port: 3030,
- dataDir: "default",
- disableAudio: false,
- ignoredWindows: [],
- includedWindows: [],
- aiProviderType: "openai",
- embeddedLLM: {
- enabled: false,
- model: "llama3.2:1b-instruct-q4_K_M",
- port: 11438,
- },
- enableFrameCache: true,
- enableUiMonitoring: false,
- aiMaxContextChars: 128000,
- user: {
- token: "",
- },
- };
+ const defaultSettings = getDefaultSettings();
const [settings, setSettings] = useState<Settings | null>(null);
const [loading, setLoading] = useState(true);
@@ -204,4 +181,3 @@ export function useSettings() {
resetSettings,
};
}
-
diff --git a/pipes/search/src/lib/hooks/use-settings.tsx b/pipes/search/src/lib/hooks/use-settings.tsx
index 24190c4cf..1a0b4c201 100644
--- a/pipes/search/src/lib/hooks/use-settings.tsx
+++ b/pipes/search/src/lib/hooks/use-settings.tsx
@@ -1,35 +1,10 @@
"use client";
import { useState, useEffect } from "react";
-import type { Settings } from "@screenpipe/browser";
+import { getDefaultSettings, type Settings } from "@screenpipe/browser";
export function useSettings() {
- const defaultSettings: Settings = {
- analyticsEnabled: true,
- openaiApiKey: "",
- deepgramApiKey: "",
- aiModel: "gpt-4",
- aiUrl: "https://api.openai.com/v1",
- customPrompt: "",
- port: 3030,
- dataDir: "default",
- disableAudio: false,
- ignoredWindows: [],
- includedWindows: [],
- aiProviderType: "openai",
- embeddedLLM: {
- enabled: false,
- model: "llama3.2:1b-instruct-q4_K_M",
- port: 11438,
- },
- enableFrameCache: true,
- enableUiMonitoring: false,
- aiMaxContextChars: 128000,
- user: {
- token: "",
- },
- };
-
+ const defaultSettings = getDefaultSettings();
const [settings, setSettings] = useState<Settings>(defaultSettings);
const [loading, setLoading] = useState(false);
const [error, setError] = useState<Error | null>(null);