Skip to content

Commit 37dc485

Browse files
committed
remove sdk
1 parent e577676 commit 37dc485

File tree

6 files changed

+16
-111
lines changed

6 files changed

+16
-111
lines changed

forge.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ function copyNativeDependency(
9696

9797
const config: ForgeConfig = {
9898
packagerConfig: {
99-
asar: {
100-
unpack: "{**/*.node,node_modules/@recallai/**}",
101-
},
10299
prune: false,
103100
name: "Array",
104101
executableName: "Array",
@@ -167,7 +164,6 @@ const config: ForgeConfig = {
167164
packageAfterCopy: async (_forgeConfig, buildPath) => {
168165
copyNativeDependency("node-pty", buildPath);
169166
copyNativeDependency("node-addon-api", buildPath);
170-
copyNativeDependency("@recallai/desktop-sdk", buildPath);
171167
},
172168
},
173169
publishers: [

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"@posthog/agent": "1.16.4",
6666
"@radix-ui/react-icons": "^1.3.2",
6767
"@radix-ui/themes": "^3.2.1",
68-
"@recallai/desktop-sdk": "^1.3.2",
6968
"@tanstack/react-query": "^5.90.2",
7069
"@tiptap/extension-link": "^3.6.6",
7170
"@tiptap/extension-mention": "^3.6.6",

pnpm-lock.yaml

Lines changed: 15 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/ui/sidebar/UseSidebarMenuData.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
GearIcon,
1212
ListNumbersIcon,
1313
PlusIcon,
14-
VideoIcon,
1514
XCircleIcon,
1615
} from "@phosphor-icons/react";
1716
import type { TabState, Task } from "@shared/types";

src/renderer/features/auth/stores/authStore.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,6 @@ import {
99
TOKEN_REFRESH_BUFFER_MS,
1010
} from "@/constants/oauth";
1111

12-
const RECALL_API_URL = "https://us-west-2.recall.ai";
13-
14-
// Helper function to initialize Recall SDK
15-
async function initializeRecallSDK(
16-
accessToken: string,
17-
apiHost: string,
18-
): Promise<void> {
19-
try {
20-
console.log("[Auth] Calling recallInitialize with:", {
21-
url: RECALL_API_URL,
22-
host: apiHost,
23-
hasToken: !!accessToken,
24-
});
25-
await window.electronAPI.recallInitialize(
26-
RECALL_API_URL,
27-
accessToken,
28-
apiHost,
29-
);
30-
console.log("[Auth] recallInitialize completed successfully");
31-
} catch (error) {
32-
console.error("[Auth] Failed to initialize Recall SDK:", error);
33-
// Don't throw - Recall SDK failure shouldn't block authentication
34-
}
35-
}
36-
3712
interface AuthState {
3813
// OAuth state
3914
oauthAccessToken: string | null;
@@ -159,9 +134,6 @@ export const useAuthStore = create<AuthState>()(
159134
} catch {
160135
throw new Error("Failed to authenticate with PostHog");
161136
}
162-
163-
// Initialize Recall SDK for meeting detection
164-
await initializeRecallSDK(tokenResponse.access_token, apiHost);
165137
},
166138

167139
refreshAccessToken: async () => {
@@ -344,9 +316,6 @@ export const useAuthStore = create<AuthState>()(
344316
}
345317
}
346318

347-
// Initialize Recall SDK for meeting detection (session restore)
348-
await initializeRecallSDK(tokens.accessToken, apiHost);
349-
350319
return true;
351320
} catch (error) {
352321
console.error("Failed to validate OAuth session:", error);

vite.main.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default defineConfig({
7676
transformMixedEsModules: true,
7777
},
7878
rollupOptions: {
79-
external: ["node-pty", "@recallai/desktop-sdk"],
79+
external: ["node-pty"],
8080
},
8181
},
8282
});

0 commit comments

Comments
 (0)