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: pipes
Louis Beaumontd7b4dbbefbc5
diff --git a/pipes/data-table/package.json b/pipes/data-table/package.jsonindex ef0f3e68a..b372a8017 100644--- a/pipes/data-table/package.json+++ b/pipes/data-table/package.json@@ -23,7 +23,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.21",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@tanstack/react-table": "^8.20.6",diff --git a/pipes/identify-speakers/package.json b/pipes/identify-speakers/package.jsonindex a8a693183..d8a876105 100644--- a/pipes/identify-speakers/package.json+++ b/pipes/identify-speakers/package.json@@ -22,7 +22,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.21",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/meeting/package.json b/pipes/meeting/package.jsonindex a8a693183..d8a876105 100644--- a/pipes/meeting/package.json+++ b/pipes/meeting/package.json@@ -22,7 +22,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.21",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/obsidian/package.json b/pipes/obsidian/package.jsonindex 16862d6b3..5e1bd3122 100644--- a/pipes/obsidian/package.json+++ b/pipes/obsidian/package.json@@ -22,7 +22,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.23",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/search/package.json b/pipes/search/package.jsonindex a8a693183..d8a876105 100644--- a/pipes/search/package.json+++ b/pipes/search/package.json@@ -22,7 +22,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.21",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/pipes/search/src/components/ui/icons.tsx b/pipes/search/src/components/ui/icons.tsxindex bc01aabac..a118e449b 100644--- a/pipes/search/src/components/ui/icons.tsx+++ b/pipes/search/src/components/ui/icons.tsx@@ -107,16 +107,18 @@ function IconOpenAI({ className, ...props }: React.ComponentProps<"svg">) {function IconClaude({ className, ...props }: React.ComponentProps<"svg">) {return (<svg- fill="currentColor"+ height="1em"+ style={{ flex: "none", lineHeight: "1" }}viewBox="0 0 24 24"- role="img"+ width="1em"xmlns="http://www.w3.org/2000/svg"- className={cn("size-4", className)}- {...props}>- <title>Claude icon</title>- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />- <circle cx="12" cy="12" r="3" />+ <title>Claude</title>+ <path+ d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"+ fill="#D97757"+ fillRule="nonzero"+ ></path></svg>);}diff --git a/pipes/search/src/lib/hooks/use-settings.tsx b/pipes/search/src/lib/hooks/use-settings.tsxindex ffbb35ea0..18d126fdc 100644--- a/pipes/search/src/lib/hooks/use-settings.tsx+++ b/pipes/search/src/lib/hooks/use-settings.tsx@@ -39,6 +39,7 @@ export function useSettings() {try {const response = await fetch("/api/settings");const data = await response.json();+ console.log("data", data);setSettings({ ...defaultSettings, ...data });} catch (err) {setError(err as Error);diff --git a/pipes/timeline/package.json b/pipes/timeline/package.jsonindex 796ae0ea1..77b97c6bb 100644--- a/pipes/timeline/package.json+++ b/pipes/timeline/package.json@@ -23,7 +23,7 @@"@radix-ui/react-switch": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-tooltip": "^1.1.5",- "@screenpipe/js": "0.1.10-beta.21",+ "@screenpipe/js": "0.1.10-beta.24","@shadcn/ui": "^0.0.4","@tanstack/react-query": "^5.62.7","@types/js-levenshtein": "^1.1.3",diff --git a/screenpipe-js/node.ts b/screenpipe-js/node.tsindex 8c43f2c07..008fbb5e5 100644--- a/screenpipe-js/node.ts+++ b/screenpipe-js/node.ts@@ -18,6 +18,41 @@ function assertNode(functionName: string) {}}+// Helper functions to flatten/unflatten objects+const flattenObject = (obj: any, prefix = ""): Record<string, any> => {+ return Object.keys(obj).reduce((acc: Record<string, any>, k: string) => {+ const pre = prefix.length ? prefix + "." : "";+ if (+ typeof obj[k] === "object" &&+ obj[k] !== null &&+ !Array.isArray(obj[k])+ ) {+ Object.assign(acc, flattenObject(obj[k], pre + k));+ } else {+ acc[pre + k] = obj[k];+ }+ return acc;+ }, {});+};++const unflattenObject = (obj: Record<string, any>): any => {+ const result: any = {};+ for (const key in obj) {+ const keys = key.split(".");+ let current = result;+ for (let i = 0; i < keys.length; i++) {+ const k = keys[i];+ if (i === keys.length - 1) {+ current[k] = obj[key];+ } else {+ current[k] = current[k] || {};+ current = current[k];+ }+ }+ }+ return result;+};+// Helper for dynamic importsasync function requireNodeModule(moduleName: string) {if (!isNode) return null;@@ -105,7 +140,8 @@ class SettingsManager {try {await fs.mkdir(path.dirname(this.storePath), { recursive: true });const data = await fs.readFile(this.storePath);- this.settings = { ...DEFAULT_SETTINGS, ...JSON.parse(data.toString()) };+ const rawSettings = JSON.parse(data.toString());+ this.settings = { ...DEFAULT_SETTINGS, ...unflattenObject(rawSettings) };this.initialized = true;} catch (error) {if ((error as { code?: string }).code === "ENOENT") {@@ -119,7 +155,11 @@ class SettingsManager {async save(): Promise<void> {await fs.mkdir(path.dirname(this.storePath), { recursive: true });- await fs.writeFile(this.storePath, JSON.stringify(this.settings, null, 2));+ const flattenedSettings = flattenObject(this.settings);+ await fs.writeFile(+ this.storePath,+ JSON.stringify(flattenedSettings, null, 2)+ );}async get<K extends keyof Settings>(key: K): Promise<Settings[K]> {@@ -163,20 +203,30 @@ class SettingsManager {return this.settings.customSettings?.[namespace]?.[key];}- async setCustomSetting(namespace: string, key: string, value: any): Promise<void> {+ async setCustomSetting(+ namespace: string,+ key: string,+ value: any+ ): Promise<void> {if (!this.initialized) await this.init();this.settings.customSettings = this.settings.customSettings || {};- this.settings.customSettings[namespace] = this.settings.customSettings[namespace] || {};+ this.settings.customSettings[namespace] =+ this.settings.customSettings[namespace] || {};this.settings.customSettings[namespace][key] = value;await this.save();}- async getNamespaceSettings(namespace: string): Promise<Record<string, any> | undefined> {+ async getNamespaceSettings(+ namespace: string+ ): Promise<Record<string, any> | undefined> {if (!this.initialized) await this.init();return this.settings.customSettings?.[namespace];}- async updateNamespaceSettings(namespace: string, settings: Record<string, any>): Promise<void> {+ async updateNamespaceSettings(+ namespace: string,+ settings: Record<string, any>+ ): Promise<void> {if (!this.initialized) await this.init();this.settings.customSettings = this.settings.customSettings || {};this.settings.customSettings[namespace] = settings;diff --git a/screenpipe-js/package.json b/screenpipe-js/package.jsonindex 82a514270..40b4b9cba 100644--- a/screenpipe-js/package.json+++ b/screenpipe-js/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/js",- "version": "0.1.10-beta.23",+ "version": "0.1.10-beta.24","type": "module","main": "./dist/main.cjs","module": "./dist/main.js",