From 1496b1606d538de0b25d0135deaedff89ce0edd9 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Mon, 3 Feb 2025 14:17:16 -0800 Subject: [PATCH] tune down telemetry --- pipes/data-table/bun.lockb | Bin 406287 -> 406287 bytes pipes/data-table/package.json | 6 ++--- pipes/identify-speakers/package.json | 6 ++--- pipes/linkedin-ai-assistant/package.json | 4 +-- pipes/meeting/package.json | 4 +-- pipes/memories/package.json | 4 +-- pipes/obsidian/bun.lockb | Bin 334826 -> 334826 bytes pipes/obsidian/package.json | 6 ++--- pipes/reddit-auto-posts/bun.lockb | Bin 279850 -> 279850 bytes pipes/reddit-auto-posts/package.json | 6 ++--- pipes/rewind/bun.lockb | Bin 348235 -> 348235 bytes pipes/rewind/package.json | 6 ++--- pipes/search/bun.lockb | Bin 330447 -> 330447 bytes pipes/search/package.json | 6 ++--- screenpipe-js/browser-sdk/package.json | 2 +- screenpipe-js/browser-sdk/src/index.ts | 32 +++-------------------- screenpipe-js/node-sdk/package.json | 2 +- screenpipe-js/node-sdk/src/index.ts | 7 ----- 18 files changed, 30 insertions(+), 61 deletions(-) diff --git a/pipes/data-table/bun.lockb b/pipes/data-table/bun.lockb index f7824a03d6c3a425172ea2336648b43d3979ff94..a78718edd64e0e85d5b4e0ac1ef11e147a97736b 100755 GIT binary patch delta 257 zcmV+c0sj7v<`|FW7?3U?#ifUf?WLjJ4WNcylR}r@?she^Y{wb2&QrN!HXBv&u})g! zlc?1&v)JR%5tC$cD3j1V2!q)5x7hUoU0py3rUsZ%_z396%DjatQ|PO>TSz=P0UAVo zBO6nHrwILt($smya@mnS5E=HBVw_(4Pt{qD>2hL~j>-#Y%?22^byEU>7(m(5i_v+? zPJPi`wR2)-LFyhw>4}7E1Ur|mthD57y&njdI$u!dI$wb#sN3C!_Ea_6PIy~1tFL4 MumumdRpJG@P>^qVI{*Lx 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 1a6f041b621be0fd7bab7787f90ae678d44e463c..31348d45b21e40f7de9c914b88d323384e1754e8 100755 GIT binary patch delta 317 zcmaF0UF6kvkqLSVdkv>DC(M3+@Yk%u1A_mx(^q*FFL06EyrOQsVfe@C^S^HNo3(lJ zix&o)CAI_zPgcp+m@Htz(LCe$_8G?+@5=aaEMuDy_=Drcu~U0mwSr%)-VyC#W63Dx zQmZT-T)&*-Z|9{el}C$iPP7w{{5CadPTX(*tC4*#i;|}Ho#M_o%O=6dz`)4xkN+Qt zp5FMJF?_qkQ$}4WpPQGuFIJxNtGyVzwKyrw@s)u<4YmkarZ} zy3N^Qc9u(Rzq)Y#W`?%>o`4+{f$13xy;CZX%=HJG+y3G|HXt{maUX~=`=^tmYC`>O{%_1AKU0RYx86c z6NAkXTLOd`B_>}qR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*L-Z4_ zqZ2>l25v$-S~17Cn%atKNI|MxRVTva(mD|kSwjDKej$xKhQ&L>1+Msz&)!vJ zL!Gb`_VfN3TG56r^snagGOUAo2UkM9P7{!bBqU=hte6J%8hsrpP_NG!@P>^!++*CC zjAdhNJ2pYRIQxYXsti!5H|8L%`VZkFypJr*b8PrR6a)vo#s$ImJr$+M-~HxJ`z)Uv sp&MrzYniy!qeVD8TJ+(5x`__UZGEvx)`u7(<=sbmPshE7`k8b816tlpCjbBd 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 bef0b4590d3190c823ed1cdef3aa5e5059d25498..613e774a4811e6b1ea7efcb9c0dd9b2053972bc1 100755 GIT binary patch delta 277 zcmV+w0qXwCpcTuY6_73TSz=P0UAVo zBO6nHrwILt($smya@mnS5E=HBVw_(4Pt{qD>2hL~j>-#Y%?22^{Uic_7(m(5i_v+? zPJPi`wR2)-LFyC1)u}*5+ zlXx~Tv*_E<5dj#J;Wa0dAT|ht=HsetX8Qb0jb}{^RLbZu};e9 zli1rZvqTSz=P0UAVo zBO6nHrwILt($smya@mnS5E=HBVw_(4Pt{qD>2hL~j>-#Y%?22^6)FNL0zcA=(Rs>F zebHUDb7E#e>L@!y?+N2=96&w3oot{yi5_?#K@*o>7-6JP=XUNJ5(E;)xpR0Fp}R0IW` g0Xery@dUa7mqEz{AeXTC1Q3^x4+ICdJM#pT7rfMS#Q*>R delta 282 zcmV+#0peWcx=$rpb7>6)FNL0zb&)qG3$1 zTSR?1Nn2&R-Ayvgpal(tKL>?zx8ZtTfErjQehi;-28q)ScmvZrwL;#k&D{NG>w+1T zPBpy*t%rRq0=IoE1Fa_-H2{$T000gE0Du+>*o>7-6JP=XUNJ5(E;xroR0Fp}R0IW` g0XVlx@dUa7mvOfQA(t@p1P_;w4+ICdJM#pT7ovxB0{{R3 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(); } }