@recallai/desktop-sdk 2.0.44 → 2.0.46

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,36 @@
1
+ ### 2.0.46 [patch] (MacOS+Windows) - 2026-11-22
2
+ - Full support for Google Meet Raw Media on Windows
3
+ - Zoom Raw Media on macOS no longer requires macOS keychain prompts
4
+ - Fix bug where `meeting-detected` fired in waiting room with Google Meet Raw Media on macOS
5
+ - Improved meeting detection for Google Meet Raw Media on macOS
6
+ - Fix for named and localized Google Meet tab shares not being detected on Windows
7
+ - Improvements to Zoom compliance messages across languages and view modes on macOS and Windows
8
+ - Recover macOS meeting and system audio capture when the active audio stream becomes silent
9
+ - Fix for Teams Web call changes not being detected when the meeting UI is replaced on macOS
10
+ - Bug fixes for Zoom Raw Media on macOS
11
+ - Verify downloaded native SDK archives against SHA-256 checksums before extracting during npm installation
12
+
13
+ ### 2.0.45 [patch] (MacOS+Windows) - 2026-11-16
14
+ - Support for Zoom Raw Media audio and video over TCP on macOS
15
+ - Fix for Raw Media participant `is_host` identifying the meeting host instead of the local user in Google Meet, Teams, and Zoom
16
+ - Support for Google Meet Raw Media in Microsoft Edge on Windows
17
+ - Improvements to Google Meet local participant detection on Windows
18
+ - Reduced Google Meet Raw Media startup overhead on Windows
19
+ - Prevent idle sleep during whole desktop recordings on Windows
20
+ - Improved Zoom Desktop meeting URL extraction on Windows
21
+ - Support for Turkish Zoom Desktop compliance messages on macOS and Windows
22
+ - Fixes for Google Meet participant names and remote screenshare detection in Safari on macOS
23
+ - Fix for Chromium profile names appearing in Google Meet picture-in-picture meeting titles on macOS
24
+ - Fix for Zoom Web speaker names in solo meetings on macOS
25
+ - Fix for Teams compliance messages being sent outside the meeting's chat on macOS
26
+ - Fix for delayed Teams Web discovery after stopping a recording on macOS
27
+ - Improvements to Zoom Raw Media solo meetings and setup failure handling on macOS
28
+ - Fix for the browser automation permission check reporting `not_granted` when Chrome has no open windows on macOS
29
+ - Recover screen capture after a failed screenshare source start on macOS
30
+ - Retry transient SDK output pipe failures instead of shutting down on macOS
31
+ - Critical fix for macOS 27.3 compatibility, resolving video capture crashes caused by invalid pixel buffer arguments
32
+ - Reduced macOS SDK package size by 33.2%
33
+
1
34
  ### 2.0.44 [patch] (MacOS+Windows) - 2026-11-06
2
35
  - Improvements to Zoom Raw Media screenshare capture on macOS
3
36
  - Fix for `disableRawMedia` not disabling Zoom Raw Media on macOS
package/index.d.ts CHANGED
@@ -58,8 +58,10 @@ 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 permission requests as granted,
62
+ * but `browser-automation` must still be requested to enable Google Meet Raw Media. On Windows it resets
63
+ * whenever the SDK process exits, including automatic restarts after an unexpected exit, so request it
64
+ * again after each start.
63
65
  *
64
66
  * `teams-automation`, `browser-automation`, and `zoom-raw-media` enable Raw Media and must be requested from an
65
67
  * explicit user action before a meeting. They cannot be included in
@@ -81,7 +83,10 @@ export type Permission =
81
83
  | 'full-disk-access'
82
84
  /** Prepare Microsoft Teams Desktop for Raw Media capture. macOS only. */
83
85
  | 'teams-automation'
84
- /** Prepare the supported default Chromium browser for Google Meet Raw Media. macOS only. */
86
+ /**
87
+ * Enable Google Meet Raw Media. On macOS, also prepare the supported default Chromium browser.
88
+ * On Windows, resets whenever the SDK process exits; request it again after each start.
89
+ */
85
90
  | 'browser-automation'
86
91
  /** Configure Zoom for Raw Media. macOS only. Zoom may restart. */
87
92
  | 'zoom-raw-media';
@@ -129,7 +134,7 @@ export interface StartRecordingConfig {
129
134
  /** Short-lived upload token returned by the Create Desktop SDK Upload endpoint. */
130
135
  uploadToken: string;
131
136
  /**
132
- * Disables Raw Media when it is enabled and available in your Recall.ai workspace.
137
+ * Disables Raw Media when it is available for the meeting.
133
138
  * Defaults to false.
134
139
  *
135
140
  * @see https://docs.recall.ai/docs/desktop-recording-sdk-raw-media
@@ -404,9 +409,9 @@ export declare function dumpAllApplications(): Promise<any>;
404
409
  *
405
410
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
406
411
  * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
407
- * in Chrome on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
412
+ * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
408
413
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
409
- * it from configuration. Integrators manage user approval for Chrome access in their application.
414
+ * it from configuration. Integrators manage user approval for browser access in their application.
410
415
  *
411
416
  * The returned promise only confirms that the start command was accepted. Listen for
412
417
  * `recording-started` to confirm that media capture began and `error` for asynchronous failures.
@@ -423,7 +428,7 @@ export declare function startRecording(config: StartRecordingConfig): Promise<nu
423
428
  * Stops the active recording for a meeting or prepared desktop-audio source.
424
429
  *
425
430
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
426
- * Windows Google Meet in Chrome on ARM64 and x64. The returned promise confirms command handling, not completion of
431
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
427
432
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
428
433
  * SDK Upload webhooks for final upload status.
429
434
  *
@@ -436,7 +441,7 @@ export declare function stopRecording({ windowId }: StopRecordingConfig): Promis
436
441
  * Pauses media capture for an active recording without ending the recording.
437
442
  *
438
443
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
439
- * Windows Google Meet in Chrome on ARM64 and x64. Use
444
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
440
445
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
441
446
  * continue the recording.
442
447
  *
@@ -449,7 +454,7 @@ export declare function pauseRecording({ windowId }: PauseRecordingConfig): Prom
449
454
  * Resumes media capture for a paused recording.
450
455
  *
451
456
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
452
- * Windows Google Meet in Chrome on ARM64 and x64. Use
457
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
453
458
  * the same `windowId` that was passed to {@link startRecording}.
454
459
  *
455
460
  * @param config Paused recording ID.
@@ -461,7 +466,7 @@ export declare function resumeRecording({ windowId }: ResumeRecordingConfig): Pr
461
466
  * Sends a chat message through an active Desktop SDK Raw Media recording.
462
467
  *
463
468
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
464
- * macOS, and for Google Meet in Chrome on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
469
+ * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
465
470
  * This method is not available for local recordings. The returned promise confirms that the
466
471
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
467
472
  * meeting platform displayed it.
@@ -528,7 +533,8 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
528
533
  *
529
534
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
530
535
  * `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.
536
+ * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
537
+ * `browser-automation` enables Google Meet Raw Media only until the SDK process exits.
532
538
  *
533
539
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
534
540
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
package/index.js CHANGED
@@ -683,6 +683,32 @@ async function doInit(options) {
683
683
  * @see https://docs.recall.ai/docs/dsdk-supported-platforms
684
684
  */
685
685
  async function init(options) {
686
+ if (options.__excludeAudioProcessIds !== undefined) {
687
+ const value = options.__excludeAudioProcessIds;
688
+ if (process.platform !== 'darwin') {
689
+ throw new Error('__excludeAudioProcessIds is only supported on macOS');
690
+ }
691
+ if (!Array.isArray(value) || value.length > 32 || new Set(value).size !== value.length
692
+ || Array.from(value).some(pid => !Number.isInteger(pid) || pid < 1 || pid > 2147483647)) {
693
+ throw new Error('__excludeAudioProcessIds requires at most 32 unique integer PIDs (1...2147483647)');
694
+ }
695
+ // Snapshot caller-owned arrays before init crosses an async boundary.
696
+ options = { ...options, __excludeAudioProcessIds: [...value] };
697
+ }
698
+ if (options.__audioDiagnostics !== undefined) {
699
+ const value = options.__audioDiagnostics;
700
+ if (process.platform !== 'darwin') {
701
+ throw new Error('__audioDiagnostics is only supported on macOS');
702
+ }
703
+ if (!value || typeof value !== 'object' || Array.isArray(value)
704
+ || Object.keys(value).some(key => !['outputDirectory', 'maxBytes'].includes(key))
705
+ || typeof value.outputDirectory !== 'string' || !path.posix.isAbsolute(value.outputDirectory)
706
+ || value.outputDirectory.includes('\0')
707
+ || (value.maxBytes !== undefined && (!Number.isSafeInteger(value.maxBytes)
708
+ || value.maxBytes < 1 || value.maxBytes > 1073741824))) {
709
+ throw new Error('__audioDiagnostics requires an absolute outputDirectory and optional integer maxBytes (1...1073741824)');
710
+ }
711
+ }
686
712
  if (options.telemetryMode !== undefined && !['full', 'limited', 'off'].includes(options.telemetryMode)) {
687
713
  throw new Error("telemetryMode must be full, limited, or off");
688
714
  }
@@ -775,9 +801,9 @@ function dumpAllApplications() {
775
801
  *
776
802
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
777
803
  * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
778
- * in Chrome on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
804
+ * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
779
805
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
780
- * it from configuration. Integrators manage user approval for Chrome access in their application.
806
+ * it from configuration. Integrators manage user approval for browser access in their application.
781
807
  *
782
808
  * The returned promise only confirms that the start command was accepted. Listen for
783
809
  * `recording-started` to confirm that media capture began and `error` for asynchronous failures.
@@ -796,7 +822,7 @@ function startRecording(config) {
796
822
  * Stops the active recording for a meeting or prepared desktop-audio source.
797
823
  *
798
824
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
799
- * Windows Google Meet in Chrome on ARM64 and x64. The returned promise confirms command handling, not completion of
825
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
800
826
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
801
827
  * SDK Upload webhooks for final upload status.
802
828
  *
@@ -811,7 +837,7 @@ function stopRecording({ windowId }) {
811
837
  * Pauses media capture for an active recording without ending the recording.
812
838
  *
813
839
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
814
- * Windows Google Meet in Chrome on ARM64 and x64. Use
840
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
815
841
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
816
842
  * continue the recording.
817
843
  *
@@ -826,7 +852,7 @@ function pauseRecording({ windowId }) {
826
852
  * Resumes media capture for a paused recording.
827
853
  *
828
854
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
829
- * Windows Google Meet in Chrome on ARM64 and x64. Use
855
+ * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
830
856
  * the same `windowId` that was passed to {@link startRecording}.
831
857
  *
832
858
  * @param config Paused recording ID.
@@ -840,7 +866,7 @@ function resumeRecording({ windowId }) {
840
866
  * Sends a chat message through an active Desktop SDK Raw Media recording.
841
867
  *
842
868
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
843
- * macOS, and for Google Meet in Chrome on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
869
+ * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
844
870
  * This method is not available for local recordings. The returned promise confirms that the
845
871
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
846
872
  * meeting platform displayed it.
@@ -917,7 +943,8 @@ function setDesktopAudioDevice(id, dir) {
917
943
  *
918
944
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
919
945
  * `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.
946
+ * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
947
+ * `browser-automation` enables Google Meet Raw Media only until the SDK process exits.
921
948
  *
922
949
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
923
950
  * 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.44",
3
+ "version": "2.0.46",
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": "1ca9a848cdc339c6b1d5e6a7f8bbcc7528544ad0"
23
+ "commit_sha": "42b7771ccfdae4642de45c97f0e60ec6f8cd443f",
24
+ "native_sha256": {
25
+ "desktop_sdk_macos.tar": "a276df4e1f3ee0fa91fdc43ab05e11d0ccff78b9e79b1178f26c52d029eedf9c",
26
+ "desktop_sdk_win32.tar": "009e63fca4a231a452462e585009d34abe8c73c3d2608d6ade12b7e10909ac90"
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
  }