@recallai/desktop-sdk 2025.3.12-4c77dcc8975a79e4c576662ff3d14f866a6d134f → 2025.3.17-074559dc7555aa72447f57b50c4eeb4f8cdda768

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/index.d.ts CHANGED
@@ -24,6 +24,7 @@ declare module '@recallai/desktop-sdk' {
24
24
  'error': ErrorEvent;
25
25
  'media-capture-status': MediaCaptureStatusEvent;
26
26
  'permissions-granted': PermissionsGrantedEvent;
27
+ 'realtime-event': RealtimeEvent;
27
28
  };
28
29
 
29
30
  export function addEventListener<T extends keyof EventTypeToPayloadMap>(
@@ -96,4 +97,9 @@ declare module '@recallai/desktop-sdk' {
96
97
  message: string;
97
98
  };
98
99
  }
100
+ export interface RealtimeEvent {
101
+ window: RecallAiSdkWindow;
102
+ event: string;
103
+ data: any;
104
+ }
99
105
  }
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const path = require('path');
2
2
  const { spawn } = require('child_process');
3
3
  const readline = require('node:readline');
4
+ const fs = require('node:fs');
4
5
  const { v4: uuidv4 } = require('uuid');
5
6
 
6
7
  process.env['BOT_ID'] = '00000000-0000-0000-0000-000000000000';
@@ -30,14 +31,31 @@ process.env["GST_DEBUG"] = "2";
30
31
  // process.env["GST_DEBUG_NO_COLOR"] = "1";
31
32
  process.env["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp/gst.nocommit";
32
33
 
33
- const exe_path = path.join(__dirname, "desktop_sdk_macos_exe");
34
+ const exe_paths = [
35
+ path.join(__dirname, "desktop_sdk_macos_exe"),
36
+ path.join(__dirname, "desktop_sdk_macos_exe").replace('app.asar', 'app.asar.unpacked')
37
+ ];
34
38
 
35
39
  let proc;
36
40
  const listeners = [];
37
41
  const pendingCommands = {};
38
42
 
39
43
  function startProcess() {
44
+ const exe_path = exe_paths.find(fs.existsSync);
45
+
46
+ if (!exe_path) {
47
+ console.error(`Desktop SDK: Couldn't launch! This is likely an issue with the build tool you're using.`);
48
+
49
+ for (const exe_path of exe_paths)
50
+ console.error("Tried:", exe_path);
51
+
52
+ console.log();
53
+
54
+ return;
55
+ }
56
+
40
57
  proc = spawn(exe_path, { stdio: ['pipe', 'pipe', 'pipe', 'pipe'] });
58
+
41
59
  const extraStream = proc.stdio[3];
42
60
 
43
61
  const rl = readline.createInterface({ input: extraStream, crlfDelay: Infinity });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "2025.03.12-4c77dcc8975a79e4c576662ff3d14f866a6d134f",
3
+ "version": "2025.03.17-074559dc7555aa72447f57b50c4eeb4f8cdda768",
4
4
  "description": "Recall Desktop SDK (Alpha)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",