@recallai/desktop-sdk 2.0.47 → 2.0.48

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,16 @@
1
+ ### 2.0.48 [patch] (MacOS+Windows) - 2026-12-03
2
+ - On macOS 27.3 and later, requesting `accessibility` opens System & App Protection Override page.
3
+ - On macOS 27.3 and later, the SDK reports `accessibiity` as granted only if all installed meeting platforms and the default browser have accessibility granted
4
+ - Non-requestable permissions `accessibility-teams`, `accessibility-zoom`, and `accessibility-browser` were added to reflect whether or not accessibility has been granted to each meeting platform. Relevant for macOS 27.3 and later
5
+ - On macOS 27.3 and later, when starting a non-Raw-Media recording, the SDK verifies `accessibility` has been granted for the respective meeting platform
6
+ - Windows now remembers `browser-automation` and `teams-automation` grants for each host app across SDK restarts.
7
+ - Fixes for Zoom Raw Media on Windows failing to start when the SDK was not restarted after granting the `zoom-raw-media` permission
8
+ - Improved diagnostics for Zoom Raw Media setup, fallback to local recording, and recording failures on Windows.
9
+ - Fix for Google Meet Raw Media failing to start on macOS when the browser has more than 16 windows or 128 tabs.
10
+ - Fix for slow Google Meet Raw Media startup on Windows when the meeting URL includes a query string such as `?authuser=0`.
11
+ - Google Meet invisible recording on macOS can capture the local participant’s screenshare and shared tab audio when the recording backend supports it.
12
+ - Fix for the SDK detecting a new Teams Web meeting when a participant starts sharing their screen on macOS.
13
+
1
14
  ### 2.0.47 [patch] (MacOS+Windows) - 2026-11-30
2
15
  - Support for Zoom Raw Media on Windows with the `zoom-raw-media` permission
3
16
  - Support for Teams Raw Media for Teams Desktop on Windows with the `teams-automation` permission
package/index.d.ts CHANGED
@@ -60,9 +60,8 @@ export type EventTypeToPayloadMap = {
60
60
  *
61
61
  * macOS requires the corresponding system consent flows. Windows reports ordinary permission requests as granted,
62
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
+ * and Teams Raw Media respectively. On Windows, an explicit request is cached for the host
64
+ * application and restored when the SDK process restarts.
66
65
  *
67
66
  * `teams-automation`, `browser-automation`, and `zoom-raw-media` enable Raw Media and must be requested from an
68
67
  * explicit user action before a meeting. They cannot be included in
@@ -73,7 +72,7 @@ export type EventTypeToPayloadMap = {
73
72
  */
74
73
  export type Permission =
75
74
  /** Detect and interact with supported meeting application windows on macOS. */
76
- 'accessibility'
75
+ 'accessibility' | 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser'
77
76
  /** Capture a meeting window's video and system audio on macOS. */
78
77
  | 'screen-capture'
79
78
  /** Capture the local microphone on macOS. */
@@ -82,12 +81,9 @@ export type Permission =
82
81
  | 'system-audio'
83
82
  /** Read local meeting metadata used by supported legacy detection paths. */
84
83
  | 'full-disk-access'
85
- /** Prepare Microsoft Teams Desktop for Raw Media capture. macOS only. */
84
+ /** Enable Teams Raw Media. On macOS, also prepare the Teams application. */
86
85
  | 'teams-automation'
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
- */
86
+ /** Enable Google Meet Raw Media. On macOS, also prepare the supported default Chromium browser. */
91
87
  | 'browser-automation'
92
88
  /** Configure Zoom for Raw Media. On Windows, requires ARM64 or x64 Zoom with a supported proxy function. Zoom may restart. */
93
89
  | 'zoom-raw-media';
@@ -124,8 +120,11 @@ export interface RecallAiSdkConfig {
124
120
  * macOS permissions to request while initializing. Do not use this option for Raw Media
125
121
  * automation permissions; request those separately from an explicit user interaction.
126
122
  * Ignored on Windows, where these permission flows are unnecessary.
123
+ * The macOS default includes accessibility, microphone, and screen capture. Pass an empty
124
+ * array to handle requests manually. On macOS 27.3+, including accessibility opens
125
+ * System & App Protection Override if an installed platform still needs access.
127
126
  */
128
- acquirePermissionsOnStartup?: Exclude<Permission, 'teams-automation' | 'browser-automation' | 'zoom-raw-media'>[];
127
+ acquirePermissionsOnStartup?: Exclude<Permission, 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser' | 'teams-automation' | 'browser-automation' | 'zoom-raw-media'>[];
129
128
  [key: string]: any;
130
129
  }
131
130
  /** Options used to start recording a detected meeting or prepared desktop-audio source. */
@@ -278,7 +277,13 @@ export interface PermissionsGrantedEvent {
278
277
  }
279
278
  /** Payload reporting the state of a Desktop Recording SDK permission. */
280
279
  export interface PermissionStatusEvent {
281
- /** Permission whose state was checked or changed. */
280
+ /**
281
+ * The three platform accessibility names are observable through this event. Request
282
+ * `accessibility` to guide the user through setup. On macOS 27.3+, each installed
283
+ * platform needs “Allow Anytime” and `accessibility-browser` tracks the default browser.
284
+ * The aggregate `accessibility` status is granted when all installed platforms qualify.
285
+ * On earlier macOS releases and Windows, the three platform statuses report granted.
286
+ */
282
287
  permission: Permission;
283
288
  /** Convenience boolean equivalent to `status === "granted"`. */
284
289
  granted: boolean;
@@ -535,9 +540,13 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
535
540
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
536
541
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
537
542
  * 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.
543
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths and are
544
+ * cached for the host application across SDK restarts.
539
545
  * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
540
546
  * Setup exits and relaunches Zoom, so request it before joining a meeting.
547
+ * On macOS 27.3+, requesting accessibility opens System & App Protection Override.
548
+ * The link includes the host app's bundle identifier when available so Settings can
549
+ * select its entry. For first-time setup, use the add (+) button to select the host app.
541
550
  *
542
551
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
543
552
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
@@ -549,7 +558,7 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
549
558
  * @see https://docs.recall.ai/docs/macos-permissions
550
559
  * @see https://docs.recall.ai/docs/desktop-recording-sdk-raw-media
551
560
  */
552
- export declare function requestPermission(permission: Permission): Promise<null>;
561
+ export declare function requestPermission(permission: Exclude<Permission, 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser'>): Promise<null>;
553
562
  /**
554
563
  * Forces the native SDK process to exit unexpectedly for restart and error-handling tests.
555
564
  *
package/index.js CHANGED
@@ -463,6 +463,22 @@ function startProcess() {
463
463
  if (!envExtra["EXE_NAME"]) {
464
464
  envExtra["EXE_NAME"] = path.parse(process.execPath).name;
465
465
  }
466
+ if (process.platform === "win32") {
467
+ // Electron's user data path survives app updates; generic Node hosts use their entry script.
468
+ let userDataPath;
469
+ try {
470
+ userDataPath = require('electron')?.app?.getPath?.('userData');
471
+ }
472
+ catch { }
473
+ const executableName = path.parse(process.execPath).name.toLowerCase();
474
+ const isSharedRuntime = /^(node|electron)$/.test(executableName);
475
+ const scriptPath = isSharedRuntime && process.argv[1]
476
+ ? path.resolve(process.argv[1]) : undefined;
477
+ const hostAppId = userDataPath || (isSharedRuntime ? scriptPath : process.execPath);
478
+ if (hostAppId) {
479
+ envExtra["DSDK_HOST_APP_ID"] = hostAppId;
480
+ }
481
+ }
466
482
  let sdk_version = getPackageVersion();
467
483
  if (sdk_version) {
468
484
  envExtra["SDK_VERSION"] = sdk_version;
@@ -945,9 +961,13 @@ function setDesktopAudioDevice(id, dir) {
945
961
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
946
962
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
947
963
  * 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.
964
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths and are
965
+ * cached for the host application across SDK restarts.
949
966
  * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
950
967
  * Setup exits and relaunches Zoom, so request it before joining a meeting.
968
+ * On macOS 27.3+, requesting accessibility opens System & App Protection Override.
969
+ * The link includes the host app's bundle identifier when available so Settings can
970
+ * select its entry. For first-time setup, use the add (+) button to select the host app.
951
971
  *
952
972
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
953
973
  * 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.47",
3
+ "version": "2.0.48",
4
4
  "description": "Recall Desktop SDK",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "@types/node": "^24.2.0",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
- "commit_sha": "721c7f0fa06716d6e74d7b66398f98697ead685c",
23
+ "commit_sha": "1924ca03af7952aa9c2956c752cd05f6279848ef",
24
24
  "native_sha256": {
25
- "desktop_sdk_macos.tar": "be2185385dffc3baf004038571f0012934e40c3b9b9094cbb1db8d3a640fda67",
26
- "desktop_sdk_win32.tar": "c8e57b849292de865fda4c9e4da5ec0723295a49be24d60e385ab88a1759233f"
25
+ "desktop_sdk_macos.tar": "709f36d1b527c9a338f7f6ac3a5bae24d6958fe17c64191b96e71ab1c5a60d21",
26
+ "desktop_sdk_win32.tar": "8fb097326fb9e21ab4330e833e20f5bd3dd3e5cdbb47f456bd3c4243afe5b084"
27
27
  }
28
28
  }