@recallai/desktop-sdk 2.0.45 → 2.0.47

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ ### 2.0.47 [patch] (MacOS+Windows) - 2026-11-30
2
+ - Support for Zoom Raw Media on Windows with the `zoom-raw-media` permission
3
+ - Support for Teams Raw Media for Teams Desktop on Windows with the `teams-automation` permission
4
+ - Support for PAC scripts and automatically detected system proxies on macOS and Windows
5
+ - Support for adapting to Google Meet, Teams, and Zoom UI changes without an SDK update on macOS
6
+ - Proxy environment variables now also apply to recording uploads
7
+ - Google Meet Raw Media on macOS no longer requires screen capture, system audio, or microphone permissions
8
+ - Improved Google Meet Raw Media reliability on macOS during brief network or CPU stalls
9
+ - Fix for leaving a Google Meet call being reported as a Raw Media error on macOS
10
+ - Fix for Google Meet Raw Media when the Meet tab is in the background with picture-in-picture open on macOS
11
+ - Fix for Google Meet Raw Media falling back to local recording in Microsoft Edge 158 and later on Windows
12
+ - Retry transient failures when starting Raw Media on macOS and Windows
13
+ - Reduced CPU usage of Raw Media encryption on Apple Silicon Macs
14
+ - Fix for the remote participant being identified as the local user while presenting in Google Meet on macOS and Windows
15
+ - Fix for Google Meet meetings splitting into new meetings when switching back to a background Meet tab on Windows
16
+ - Fix for black video in Google Meet recordings in Chrome 158 and later on Windows
17
+ - Fix for Teams Desktop meeting detection in Serbian, Bosnian, Azerbaijani, Filipino, and Valencian on Windows
18
+ - Fix for remote participant mute detection for Teams on macOS, and for Teams Desktop in Japanese and Romanian on Windows
19
+ - Fix for active speaker detection in Teams compact view and picture-in-picture in non-English languages on macOS
20
+ - Fix for phantom Zoom Desktop meetings when the account shows a custom disclaimer before joining on macOS
21
+ - Fix for Zoom Desktop minimal view detection in non-English languages on macOS
22
+ - Fix for a possible crash when excluding Zoom windows from screenshare capture on macOS
23
+ - Fix for the Zoom Desktop waiting room being detected as a meeting on Windows
24
+ - Fix for Zoom Desktop meetings ending and being detected again when admitted from the waiting room on Windows
25
+ - Fix for Zoom Desktop window shares not being captured after the first share on Windows
26
+ - Fix for missing Zoom Desktop 7.2 meeting titles on Windows
27
+ - Fix for Google Meet compliance messages failing to send in non-English meetings with continuous chat on macOS and Windows
28
+ - Fix for Google Meet compliance messages sent from picture-in-picture staying as drafts on macOS
29
+ - Fix for Teams compliance message text landing outside the chat when the meeting window loses focus on macOS
30
+ - Fix for compliance messages failing to send with Cyrillic, Greek, or Hebrew keyboard layouts on Windows
31
+ - Fix for Teams Desktop compliance messages failing to send in narrow meeting windows on Windows
32
+ - Fix for Zoom Desktop compliance messages losing blank lines or being left unsent on Windows
33
+ - Improved logging for meeting detection on macOS and Teams Desktop compliance messages on Windows
34
+
35
+ ### 2.0.46 [patch] (MacOS+Windows) - 2026-11-22
36
+ - Full support for Google Meet Raw Media on Windows
37
+ - Zoom Raw Media on macOS no longer requires macOS keychain prompts
38
+ - Fix bug where `meeting-detected` fired in waiting room with Google Meet Raw Media on macOS
39
+ - Improved meeting detection for Google Meet Raw Media on macOS
40
+ - Fix for named and localized Google Meet tab shares not being detected on Windows
41
+ - Improvements to Zoom compliance messages across languages and view modes on macOS and Windows
42
+ - Recover macOS meeting and system audio capture when the active audio stream becomes silent
43
+ - Fix for Teams Web call changes not being detected when the meeting UI is replaced on macOS
44
+ - Bug fixes for Zoom Raw Media on macOS
45
+ - Verify downloaded native SDK archives against SHA-256 checksums before extracting during npm installation
46
+
1
47
  ### 2.0.45 [patch] (MacOS+Windows) - 2026-11-16
2
48
  - Support for Zoom Raw Media audio and video over TCP on macOS
3
49
  - Fix for Raw Media participant `is_host` identifying the meeting host instead of the local user in Google Meet, Teams, and Zoom
package/index.d.ts CHANGED
@@ -58,8 +58,11 @@ export type EventTypeToPayloadMap = {
58
58
  /**
59
59
  * A permission understood by {@link requestPermission}.
60
60
  *
61
- * These permissions are only required on macOS. Windows reports permission requests as granted
62
- * because it does not require the corresponding macOS consent flows.
61
+ * macOS requires the corresponding system consent flows. Windows reports ordinary permission requests as granted,
62
+ * but `browser-automation` and `teams-automation` must still be requested to enable Google Meet
63
+ * and Teams Raw Media respectively. On Windows they reset whenever the SDK process exits, including
64
+ * automatic restarts after an unexpected exit, so request them
65
+ * again after each start.
63
66
  *
64
67
  * `teams-automation`, `browser-automation`, and `zoom-raw-media` enable Raw Media and must be requested from an
65
68
  * explicit user action before a meeting. They cannot be included in
@@ -81,9 +84,12 @@ export type Permission =
81
84
  | 'full-disk-access'
82
85
  /** Prepare Microsoft Teams Desktop for Raw Media capture. macOS only. */
83
86
  | 'teams-automation'
84
- /** Prepare the supported default Chromium browser for Google Meet Raw Media. macOS only. */
87
+ /**
88
+ * Enable Google Meet Raw Media. On macOS, also prepare the supported default Chromium browser.
89
+ * On Windows, resets whenever the SDK process exits; request it again after each start.
90
+ */
85
91
  | 'browser-automation'
86
- /** Configure Zoom for Raw Media. macOS only. Zoom may restart. */
92
+ /** Configure Zoom for Raw Media. On Windows, requires ARM64 or x64 Zoom with a supported proxy function. Zoom may restart. */
87
93
  | 'zoom-raw-media';
88
94
  /** Identifies a meeting or prepared desktop-audio source known to the SDK. */
89
95
  export interface RecallAiSdkWindow {
@@ -129,7 +135,7 @@ export interface StartRecordingConfig {
129
135
  /** Short-lived upload token returned by the Create Desktop SDK Upload endpoint. */
130
136
  uploadToken: string;
131
137
  /**
132
- * Disables Raw Media when it is enabled and available in your Recall.ai workspace.
138
+ * Disables Raw Media when it is available for the meeting.
133
139
  * Defaults to false.
134
140
  *
135
141
  * @see https://docs.recall.ai/docs/desktop-recording-sdk-raw-media
@@ -403,8 +409,8 @@ export declare function dumpAllApplications(): Promise<any>;
403
409
  * {@link prepareDesktopAudioRecording}.
404
410
  *
405
411
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
406
- * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
407
- * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
412
+ * from a newly created Desktop SDK Upload. On supported meeting platforms, including Zoom on Windows
413
+ * and Google Meet in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
408
414
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
409
415
  * it from configuration. Integrators manage user approval for browser access in their application.
410
416
  *
@@ -423,7 +429,7 @@ export declare function startRecording(config: StartRecordingConfig): Promise<nu
423
429
  * Stops the active recording for a meeting or prepared desktop-audio source.
424
430
  *
425
431
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
426
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
432
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. The returned promise confirms command handling, not completion of
427
433
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
428
434
  * SDK Upload webhooks for final upload status.
429
435
  *
@@ -436,7 +442,7 @@ export declare function stopRecording({ windowId }: StopRecordingConfig): Promis
436
442
  * Pauses media capture for an active recording without ending the recording.
437
443
  *
438
444
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
439
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
445
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
440
446
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
441
447
  * continue the recording.
442
448
  *
@@ -449,7 +455,7 @@ export declare function pauseRecording({ windowId }: PauseRecordingConfig): Prom
449
455
  * Resumes media capture for a paused recording.
450
456
  *
451
457
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
452
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
458
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
453
459
  * the same `windowId` that was passed to {@link startRecording}.
454
460
  *
455
461
  * @param config Paused recording ID.
@@ -461,7 +467,7 @@ export declare function resumeRecording({ windowId }: ResumeRecordingConfig): Pr
461
467
  * Sends a chat message through an active Desktop SDK Raw Media recording.
462
468
  *
463
469
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
464
- * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
470
+ * macOS, and for Zoom on Windows and Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
465
471
  * This method is not available for local recordings. The returned promise confirms that the
466
472
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
467
473
  * meeting platform displayed it.
@@ -528,7 +534,10 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
528
534
  *
529
535
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
530
536
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
531
- * granted access. Windows does not require these macOS permissions and reports requests as granted.
537
+ * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
538
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths only until the SDK process exits.
539
+ * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
540
+ * Setup exits and relaunches Zoom, so request it before joining a meeting.
532
541
  *
533
542
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
534
543
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
package/index.js CHANGED
@@ -496,6 +496,7 @@ function startProcess() {
496
496
  const annotatorDebug = process.env.RECALLAI_DESKTOP_SDK_DEV ? ",transcriptspeakerannotator:4" : "";
497
497
  proc = (0, child_process_1.spawn)(exe_path, {
498
498
  stdio: (process.platform === "darwin" ? ["pipe", "pipe", "pipe", "pipe"] : "pipe"),
499
+ windowsHide: process.platform === "win32",
499
500
  env: {
500
501
  GST_RECALL_DEBUG: "2,transcriber:4,rtewebsocketsink:4,rtewebhooksink:4,audiomixer:4,galleryview:4,dsdks3sink:5" + annotatorDebug,
501
502
  GST_DEBUG: "3,GST_CAPS:3,GST_SCHEDULING:2,GST_PADS:2,video-scaler:1,transcriber:4,filebuffereds3sink:4,seekables3sink:4,rtpsession:1,audioresample:1,videodecoder:2,basesink:2,webrtcbin:2,websocketsink:4,audiomixer:4,galleryview:4,removeonsinkeosbin:4,fallbackswitch:6,sendmessageonsinkeosbin:4,dsdks3sink:5" + annotatorDebug,
@@ -683,6 +684,32 @@ async function doInit(options) {
683
684
  * @see https://docs.recall.ai/docs/dsdk-supported-platforms
684
685
  */
685
686
  async function init(options) {
687
+ if (options.__excludeAudioProcessIds !== undefined) {
688
+ const value = options.__excludeAudioProcessIds;
689
+ if (process.platform !== 'darwin') {
690
+ throw new Error('__excludeAudioProcessIds is only supported on macOS');
691
+ }
692
+ if (!Array.isArray(value) || value.length > 32 || new Set(value).size !== value.length
693
+ || Array.from(value).some(pid => !Number.isInteger(pid) || pid < 1 || pid > 2147483647)) {
694
+ throw new Error('__excludeAudioProcessIds requires at most 32 unique integer PIDs (1...2147483647)');
695
+ }
696
+ // Snapshot caller-owned arrays before init crosses an async boundary.
697
+ options = { ...options, __excludeAudioProcessIds: [...value] };
698
+ }
699
+ if (options.__audioDiagnostics !== undefined) {
700
+ const value = options.__audioDiagnostics;
701
+ if (process.platform !== 'darwin') {
702
+ throw new Error('__audioDiagnostics is only supported on macOS');
703
+ }
704
+ if (!value || typeof value !== 'object' || Array.isArray(value)
705
+ || Object.keys(value).some(key => !['outputDirectory', 'maxBytes'].includes(key))
706
+ || typeof value.outputDirectory !== 'string' || !path.posix.isAbsolute(value.outputDirectory)
707
+ || value.outputDirectory.includes('\0')
708
+ || (value.maxBytes !== undefined && (!Number.isSafeInteger(value.maxBytes)
709
+ || value.maxBytes < 1 || value.maxBytes > 1073741824))) {
710
+ throw new Error('__audioDiagnostics requires an absolute outputDirectory and optional integer maxBytes (1...1073741824)');
711
+ }
712
+ }
686
713
  if (options.telemetryMode !== undefined && !['full', 'limited', 'off'].includes(options.telemetryMode)) {
687
714
  throw new Error("telemetryMode must be full, limited, or off");
688
715
  }
@@ -774,8 +801,8 @@ function dumpAllApplications() {
774
801
  * {@link prepareDesktopAudioRecording}.
775
802
  *
776
803
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
777
- * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
778
- * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
804
+ * from a newly created Desktop SDK Upload. On supported meeting platforms, including Zoom on Windows
805
+ * and Google Meet in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
779
806
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
780
807
  * it from configuration. Integrators manage user approval for browser access in their application.
781
808
  *
@@ -796,7 +823,7 @@ function startRecording(config) {
796
823
  * Stops the active recording for a meeting or prepared desktop-audio source.
797
824
  *
798
825
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
799
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
826
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. The returned promise confirms command handling, not completion of
800
827
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
801
828
  * SDK Upload webhooks for final upload status.
802
829
  *
@@ -811,7 +838,7 @@ function stopRecording({ windowId }) {
811
838
  * Pauses media capture for an active recording without ending the recording.
812
839
  *
813
840
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
814
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
841
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
815
842
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
816
843
  * continue the recording.
817
844
  *
@@ -826,7 +853,7 @@ function pauseRecording({ windowId }) {
826
853
  * Resumes media capture for a paused recording.
827
854
  *
828
855
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
829
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
856
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
830
857
  * the same `windowId` that was passed to {@link startRecording}.
831
858
  *
832
859
  * @param config Paused recording ID.
@@ -840,7 +867,7 @@ function resumeRecording({ windowId }) {
840
867
  * Sends a chat message through an active Desktop SDK Raw Media recording.
841
868
  *
842
869
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
843
- * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
870
+ * macOS, and for Zoom on Windows and Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
844
871
  * This method is not available for local recordings. The returned promise confirms that the
845
872
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
846
873
  * meeting platform displayed it.
@@ -917,7 +944,10 @@ function setDesktopAudioDevice(id, dir) {
917
944
  *
918
945
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
919
946
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
920
- * granted access. Windows does not require these macOS permissions and reports requests as granted.
947
+ * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
948
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths only until the SDK process exits.
949
+ * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
950
+ * Setup exits and relaunches Zoom, so request it before joining a meeting.
921
951
  *
922
952
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
923
953
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "Recall Desktop SDK",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,5 +20,9 @@
20
20
  "@types/node": "^24.2.0",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
- "commit_sha": "e7c6e07fcefe871ba4cbbbd39db10bd1c85a24d6"
23
+ "commit_sha": "721c7f0fa06716d6e74d7b66398f98697ead685c",
24
+ "native_sha256": {
25
+ "desktop_sdk_macos.tar": "be2185385dffc3baf004038571f0012934e40c3b9b9094cbb1db8d3a640fda67",
26
+ "desktop_sdk_win32.tar": "c8e57b849292de865fda4c9e4da5ec0723295a49be24d60e385ab88a1759233f"
27
+ }
24
28
  }
package/setup.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const fs = require("fs");
2
2
  const path = require("path");
3
+ const crypto = require("crypto");
3
4
  const { Readable } = require("stream");
4
5
  const { finished } = require("stream/promises");
5
6
 
@@ -8,9 +9,41 @@ const nativeTarPathWin32 = path.join(__dirname, "desktop_sdk_win32.tar");
8
9
  const nativeUrlBase = "https://recallai-desktop-sdk-releases.s3.us-east-1.amazonaws.com";
9
10
 
10
11
  async function downloadFile(url, path) {
12
+ const response = await fetch(url);
13
+ if (!response.ok) {
14
+ throw new Error(`Failed to download ${url}: HTTP ${response.status}`);
15
+ }
11
16
  const stream = fs.createWriteStream(path);
12
- const { body } = await fetch(url);
13
- await finished(Readable.fromWeb(body).pipe(stream));
17
+ await finished(Readable.fromWeb(response.body).pipe(stream));
18
+ }
19
+
20
+ async function sha256File(filePath) {
21
+ const hash = crypto.createHash("sha256");
22
+ for await (const chunk of fs.createReadStream(filePath)) {
23
+ hash.update(chunk);
24
+ }
25
+ return hash.digest("hex");
26
+ }
27
+
28
+ // The expected hash comes from package.json, which the npm package's integrity hash covers, so a tar that was
29
+ // replaced or corrupted after this version was published is never extracted.
30
+ async function downloadVerifiedTar(packageJson, tarPath) {
31
+ const tarName = path.basename(tarPath);
32
+ const expectedSha256 = packageJson["native_sha256"]?.[tarName];
33
+
34
+ if (typeof expectedSha256 !== "string" || !/^[0-9a-f]{64}$/.test(expectedSha256)) {
35
+ console.error(`package.json has no SHA-256 for ${tarName}`);
36
+ process.exit(1);
37
+ }
38
+
39
+ await downloadFile(`${nativeUrlBase}/${packageJson["commit_sha"]}/${tarName}`, tarPath);
40
+
41
+ const actualSha256 = await sha256File(tarPath);
42
+ if (actualSha256 !== expectedSha256) {
43
+ await cleanup();
44
+ console.error(`SHA-256 mismatch for ${tarName}: expected ${expectedSha256}, got ${actualSha256}`);
45
+ process.exit(1);
46
+ }
14
47
  }
15
48
 
16
49
  async function cleanup() {
@@ -23,13 +56,8 @@ async function cleanup() {
23
56
  }
24
57
  }
25
58
 
26
- async function setupMacOS(version) {
27
- await downloadFile(`${nativeUrlBase}/${version}/desktop_sdk_macos.tar`, nativeTarPathMacOS);
28
-
29
- if (!fs.existsSync(nativeTarPathMacOS)) {
30
- console.error("Missing native platform tar file");
31
- process.exit(1);
32
- }
59
+ async function setupMacOS(packageJson) {
60
+ await downloadVerifiedTar(packageJson, nativeTarPathMacOS);
33
61
 
34
62
  const frameworksDir = path.join(__dirname, "Frameworks");
35
63
 
@@ -48,13 +76,8 @@ async function setupMacOS(version) {
48
76
  await cleanup();
49
77
  }
50
78
 
51
- async function setupWin32(version) {
52
- await downloadFile(`${nativeUrlBase}/${version}/desktop_sdk_win32.tar`, nativeTarPathWin32);
53
-
54
- if (!fs.existsSync(nativeTarPathWin32)) {
55
- console.error("Missing native platform tar file");
56
- process.exit(1);
57
- }
79
+ async function setupWin32(packageJson) {
80
+ await downloadVerifiedTar(packageJson, nativeTarPathWin32);
58
81
 
59
82
  const gstreamerDir = path.join(__dirname, "gstreamer-1.0");
60
83
 
@@ -81,9 +104,9 @@ async function setup() {
81
104
  console.log(`Downloading native sdk for id: ${commit_sha}, platform: ${process.platform}`);
82
105
 
83
106
  if (process.platform === "darwin") {
84
- await setupMacOS(commit_sha);
107
+ await setupMacOS(packageJson);
85
108
  } else if (process.platform === "win32") {
86
- await setupWin32(commit_sha);
109
+ await setupWin32(packageJson);
87
110
  } else {
88
111
  console.warn("Unsupported platform, Desktop SDK will not be available.");
89
112
  await cleanup();
@@ -93,5 +116,9 @@ async function setup() {
93
116
  if (process.env.RECALL_LOCAL_BUILD) {
94
117
  console.log("Doing local build, skipping platform native install");
95
118
  } else {
96
- setup();
119
+ setup().catch(async (e) => {
120
+ await cleanup();
121
+ console.error("Failed to set up native Desktop SDK:", e);
122
+ process.exit(1);
123
+ });
97
124
  }