diff --git a/pipes/data-table/bun.lockb b/pipes/data-table/bun.lockb index f7824a03d..a78718edd 100755 Binary files a/pipes/data-table/bun.lockb and b/pipes/data-table/bun.lockb differ diff --git a/pipes/data-table/package.json b/pipes/data-table/package.json index 3fcb5fee6..2a0c8cc96 100644 --- a/pipes/data-table/package.json +++ b/pipes/data-table/package.json @@ -1,6 +1,6 @@ { "name": "data-table", - "version": "0.1.1", + "version": "0.1.2", "private": true, "scripts": { "dev": "next dev --turbopack", @@ -23,8 +23,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.3", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "^0.1.25", - "@screenpipe/js": "^1.0.8", + "@screenpipe/browser": "^0.1.26", + "@screenpipe/js": "^1.0.9", "@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.json index 1e5fb1979..ef0498a9a 100644 --- a/pipes/identify-speakers/package.json +++ b/pipes/identify-speakers/package.json @@ -1,6 +1,6 @@ { "name": "identify-speakers", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "dev": "next dev --turbopack", @@ -22,8 +22,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.3", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "^0.1.25", - "@screenpipe/js": "^1.0.8", + "@screenpipe/browser": "^0.1.26", + "@screenpipe/js": "^1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/pipes/linkedin-ai-assistant/package.json b/pipes/linkedin-ai-assistant/package.json index 419ebdaa4..b3552a517 100644 --- a/pipes/linkedin-ai-assistant/package.json +++ b/pipes/linkedin-ai-assistant/package.json @@ -16,8 +16,8 @@ "@radix-ui/react-switch": "^1.1.1", "@radix-ui/react-toast": "^1.2.4", "@radix-ui/react-tooltip": "^1.1.6", - "@screenpipe/browser": "0.1.25", - "@screenpipe/js": "^1.0.8", + "@screenpipe/browser": "0.1.26", + "@screenpipe/js": "^1.0.9", "@sentry/nextjs": "^8", "@tauri-apps/api": "^2.1.1", "chrome-launcher": "^1.1.2", diff --git a/pipes/meeting/package.json b/pipes/meeting/package.json index 223f47cec..efbcc63d3 100644 --- a/pipes/meeting/package.json +++ b/pipes/meeting/package.json @@ -22,8 +22,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.4", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "0.1.25", - "@screenpipe/js": "1.0.8", + "@screenpipe/browser": "0.1.26", + "@screenpipe/js": "1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/pipes/memories/package.json b/pipes/memories/package.json index c4a6914fc..4c384e5fc 100644 --- a/pipes/memories/package.json +++ b/pipes/memories/package.json @@ -22,8 +22,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.3", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "^0.1.25", - "@screenpipe/js": "^1.0.8", + "@screenpipe/browser": "^0.1.26", + "@screenpipe/js": "^1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/pipes/obsidian/bun.lockb b/pipes/obsidian/bun.lockb index 1a6f041b6..31348d45b 100755 Binary files a/pipes/obsidian/bun.lockb and b/pipes/obsidian/bun.lockb differ diff --git a/pipes/obsidian/package.json b/pipes/obsidian/package.json index 0ced49e79..1a207011b 100644 --- a/pipes/obsidian/package.json +++ b/pipes/obsidian/package.json @@ -1,6 +1,6 @@ { "name": "obsidian", - "version": "0.1.10", + "version": "0.1.11", "private": true, "scripts": { "dev": "next dev --turbopack", @@ -23,8 +23,8 @@ "@radix-ui/react-tabs": "^1.1.2", "@radix-ui/react-toast": "^1.2.4", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "0.1.24", - "@screenpipe/js": "1.0.7", + "@screenpipe/browser": "0.1.26", + "@screenpipe/js": "1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/pipes/reddit-auto-posts/bun.lockb b/pipes/reddit-auto-posts/bun.lockb index fa1015e41..2f488bf1a 100755 Binary files a/pipes/reddit-auto-posts/bun.lockb and b/pipes/reddit-auto-posts/bun.lockb differ diff --git a/pipes/reddit-auto-posts/package.json b/pipes/reddit-auto-posts/package.json index 244c1c6cd..c99964e06 100644 --- a/pipes/reddit-auto-posts/package.json +++ b/pipes/reddit-auto-posts/package.json @@ -1,6 +1,6 @@ { "name": "reddit-auto-posts", - "version": "0.1.1", + "version": "0.1.3", "private": true, "scripts": { "dev": "next dev", @@ -13,8 +13,8 @@ "@radix-ui/react-select": "^2.1.4", "@radix-ui/react-toast": "^1.2.1", "@radix-ui/react-tooltip": "^1.1.6", - "@screenpipe/browser": "0.1.24", - "@screenpipe/js": "1.0.7", + "@screenpipe/browser": "0.1.26", + "@screenpipe/js": "1.0.9", "@types/lodash": "^4.17.13", "@types/nodemailer": "^6.4.17", "ai": "^4.0.18", diff --git a/pipes/rewind/bun.lockb b/pipes/rewind/bun.lockb index bef0b4590..613e774a4 100755 Binary files a/pipes/rewind/bun.lockb and b/pipes/rewind/bun.lockb differ diff --git a/pipes/rewind/package.json b/pipes/rewind/package.json index 46e5a6f8e..7b242ca86 100644 --- a/pipes/rewind/package.json +++ b/pipes/rewind/package.json @@ -1,6 +1,6 @@ { "name": "rewind", - "version": "0.1.3", + "version": "0.1.6", "private": true, "scripts": { "dev": "next dev --turbopack", @@ -23,8 +23,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.3", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "^0.1.24", - "@screenpipe/js": "^1.0.7", + "@screenpipe/browser": "^0.1.26", + "@screenpipe/js": "^1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/pipes/search/bun.lockb b/pipes/search/bun.lockb index a73df5650..e85803833 100755 Binary files a/pipes/search/bun.lockb and b/pipes/search/bun.lockb differ diff --git a/pipes/search/package.json b/pipes/search/package.json index a9d2bc5c2..3e2b3d690 100644 --- a/pipes/search/package.json +++ b/pipes/search/package.json @@ -1,6 +1,6 @@ { "name": "search", - "version": "0.1.5", + "version": "0.1.6", "private": true, "scripts": { "dev": "next dev --turbopack", @@ -22,8 +22,8 @@ "@radix-ui/react-switch": "^1.1.2", "@radix-ui/react-toast": "^1.2.3", "@radix-ui/react-tooltip": "^1.1.5", - "@screenpipe/browser": "^0.1.25", - "@screenpipe/js": "^1.0.8", + "@screenpipe/browser": "^0.1.26", + "@screenpipe/js": "^1.0.9", "@shadcn/ui": "^0.0.4", "@tanstack/react-query": "^5.62.7", "@types/js-levenshtein": "^1.1.3", diff --git a/screenpipe-js/browser-sdk/package.json b/screenpipe-js/browser-sdk/package.json index acd223042..6fd1936f8 100644 --- a/screenpipe-js/browser-sdk/package.json +++ b/screenpipe-js/browser-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@screenpipe/browser", - "version": "0.1.25", + "version": "0.1.26", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/screenpipe-js/browser-sdk/src/index.ts b/screenpipe-js/browser-sdk/src/index.ts index f58425ecd..ce0f35983 100644 --- a/screenpipe-js/browser-sdk/src/index.ts +++ b/screenpipe-js/browser-sdk/src/index.ts @@ -270,15 +270,7 @@ class BrowserPipeImpl implements BrowserPipe { void, unknown > { - const { userId, email } = await this.initAnalyticsIfNeeded();\ - try { - await this.captureEvent("stream_started", { - feature: "transcription", - distinct_id: userId, - email: email, - }); - while (true) { for await (const event of wsEvents()) { if (event.name === "transcription") { @@ -304,27 +296,15 @@ class BrowserPipeImpl implements BrowserPipe { } } } - } finally { - await this.captureEvent("stream_ended", { - feature: "transcription", - distinct_id: userId, - email: email, - }); + } catch (error) { + console.error("error streaming transcriptions:", error); } } async *streamVision( includeImages: boolean = false ): AsyncGenerator { - const { userId, email } = await this.initAnalyticsIfNeeded(); - try { - await this.captureEvent("stream_started", { - feature: "vision", - distinct_id: userId, - email: email, - }); - for await (const event of wsEvents(includeImages)) { if (event.name === "ocr_result" || event.name === "ui_frame") { let data: VisionEvent = event.data as VisionEvent; @@ -334,12 +314,8 @@ class BrowserPipeImpl implements BrowserPipe { }; } } - } finally { - await this.captureEvent("stream_ended", { - feature: "vision", - distinct_id: userId, - email: email, - }); + } catch (error) { + console.error("error streaming vision:", error); } } diff --git a/screenpipe-js/node-sdk/package.json b/screenpipe-js/node-sdk/package.json index b7d872962..18d0b9ce5 100644 --- a/screenpipe-js/node-sdk/package.json +++ b/screenpipe-js/node-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@screenpipe/js", - "version": "1.0.8", + "version": "1.0.9", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/screenpipe-js/node-sdk/src/index.ts b/screenpipe-js/node-sdk/src/index.ts index 2516b86f2..3ae4807cc 100644 --- a/screenpipe-js/node-sdk/src/index.ts +++ b/screenpipe-js/node-sdk/src/index.ts @@ -141,10 +141,6 @@ class NodePipe { const eventSource = new EventSource(`${apiUrl}/sse/transcriptions`); try { - await captureEvent("stream_started", { - feature: "transcription", - }); - while (true) { const chunk: TranscriptionChunk = await new Promise( (resolve, reject) => { @@ -180,9 +176,6 @@ class NodePipe { }; } } finally { - await captureEvent("stream_ended", { - feature: "transcription", - }); eventSource.close(); } }