Skip to content

Commit

Permalink
tune down telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Feb 3, 2025
1 parent 4214e10 commit 1496b16
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 61 deletions.
Binary file modified pipes/data-table/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions pipes/data-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-table",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions pipes/identify-speakers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "identify-speakers",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions pipes/linkedin-ai-assistant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions pipes/meeting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions pipes/memories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Binary file modified pipes/obsidian/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions pipes/obsidian/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian",
"version": "0.1.10",
"version": "0.1.11",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand All @@ -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",
Expand Down
Binary file modified pipes/reddit-auto-posts/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions pipes/reddit-auto-posts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reddit-auto-posts",
"version": "0.1.1",
"version": "0.1.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -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",
Expand Down
Binary file modified pipes/rewind/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions pipes/rewind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rewind",
"version": "0.1.3",
"version": "0.1.6",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand All @@ -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",
Expand Down
Binary file modified pipes/search/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions pipes/search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search",
"version": "0.1.5",
"version": "0.1.6",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-js/browser-sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
32 changes: 4 additions & 28 deletions screenpipe-js/browser-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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<VisionStreamResponse, void, unknown> {
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;
Expand All @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion screenpipe-js/node-sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 0 additions & 7 deletions screenpipe-js/node-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -180,9 +176,6 @@ class NodePipe {
};
}
} finally {
await captureEvent("stream_ended", {
feature: "transcription",
});
eventSource.close();
}
}
Expand Down

0 comments on commit 1496b16

Please sign in to comment.