@recallai/desktop-sdk 2.0.5 → 2.0.7

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,12 @@
1
+ ### 2.0.7 [patch] (MacOS+Windows) - 2026-02-11
2
+ - Fixed issues capturing audio when devices change on windows.
3
+ - Added a network shutdown event on macOS.
4
+ - Set recording id on SDK events on macOS and windows.
5
+ - Fix cases where stop recording would take a while and prevent any future commands.
6
+
7
+ ### 2.0.6 [patch] (MacOS+Windows) - 2026-02-11
8
+ - Fix case where recording-ended would not trigger on Windows
9
+
1
10
  ### 2.0.5 [patch] (MacOS+Windows) - 2026-02-11
2
11
 
3
12
  - Support for Google Chrome 145.0.7632.46+
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type RecallAiSdkEvent = RecordingStartEvent | RecordingStopEvent | UploadProgressEvent | MeetingDetectedEvent | MeetingUpdatedEvent | MeetingClosedEvent | SdkStateChangeEvent | ErrorEvent | MediaCaptureStatusEvent | ParticipantCaptureStatusEvent | PermissionsGrantedEvent | RealtimeEvent | ShutdownEvent | LogEvent;
1
+ export type RecallAiSdkEvent = RecordingStartEvent | RecordingStopEvent | UploadProgressEvent | MeetingDetectedEvent | MeetingUpdatedEvent | MeetingClosedEvent | SdkStateChangeEvent | ErrorEvent | MediaCaptureStatusEvent | ParticipantCaptureStatusEvent | PermissionsGrantedEvent | RealtimeEvent | ShutdownEvent | LogEvent | NetworkStatusEvent;
2
2
  export type EventTypeToPayloadMap = {
3
3
  'recording-started': RecordingStartEvent;
4
4
  'recording-ended': RecordingStopEvent;
@@ -18,6 +18,7 @@ export type EventTypeToPayloadMap = {
18
18
  'realtime-event': RealtimeEvent;
19
19
  'shutdown': ShutdownEvent;
20
20
  'log': LogEvent;
21
+ 'network-status': NetworkStatusEvent;
21
22
  };
22
23
  export type Permission = 'accessibility' | 'screen-capture' | 'microphone' | 'system-audio' | 'full-disk-access';
23
24
  export interface RecallAiSdkWindow {
@@ -110,6 +111,9 @@ export interface ShutdownEvent {
110
111
  code: number;
111
112
  signal: string;
112
113
  }
114
+ export interface NetworkStatusEvent {
115
+ status: 'reconnected' | 'disconnected';
116
+ }
113
117
  export interface LogEvent {
114
118
  level: 'debug' | 'info' | 'warning' | 'error';
115
119
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Recall Desktop SDK",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,5 +20,5 @@
20
20
  "@types/node": "^24.2.0",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
- "commit_sha": "1b16e47f85434833b8313ed393df0f1be5a981a5"
23
+ "commit_sha": "541a0e106905afe34c005d84802157d1251cc35a"
24
24
  }
package/setup.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const fs = require("fs");
2
2
  const path = require("path");
3
- const tar = require("tar");
4
3
  const { Readable } = require("stream");
5
4
  const { finished } = require("stream/promises");
6
5
 
@@ -39,6 +38,7 @@ async function setupMacOS(version) {
39
38
  }
40
39
 
41
40
  try {
41
+ const tar = require("tar");
42
42
  await tar.extract({ file: nativeTarPathMacOS, cwd: __dirname });
43
43
  } catch (e) {
44
44
  console.error("Error extracting tar file:", e);
@@ -63,6 +63,7 @@ async function setupWin32(version) {
63
63
  }
64
64
 
65
65
  try {
66
+ const tar = require("tar");
66
67
  await tar.extract({ file: nativeTarPathWin32, cwd: __dirname });
67
68
  } catch (e) {
68
69
  console.error("Error extracting tar file:", e);