@recallai/desktop-sdk 2.0.45 → 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 +12 -0
- package/index.d.ts +11 -5
- package/index.js +28 -1
- package/package.json +6 -2
- package/setup.js +46 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
1
13
|
### 2.0.45 [patch] (MacOS+Windows) - 2026-11-16
|
|
2
14
|
- Support for Zoom Raw Media audio and video over TCP on macOS
|
|
3
15
|
- 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,10 @@ export type EventTypeToPayloadMap = {
|
|
|
58
58
|
/**
|
|
59
59
|
* A permission understood by {@link requestPermission}.
|
|
60
60
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
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
|
-
/**
|
|
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
|
|
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
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
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": "
|
|
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
|
-
|
|
13
|
-
|
|
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(
|
|
27
|
-
await
|
|
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(
|
|
52
|
-
await
|
|
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(
|
|
107
|
+
await setupMacOS(packageJson);
|
|
85
108
|
} else if (process.platform === "win32") {
|
|
86
|
-
await setupWin32(
|
|
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
|
}
|