@recallai/desktop-sdk 2025.3.12-a89ec271ee4d72726c91f005e6580a810b5dd2db → 2025.3.17-765639dacfbd1697463666ac4f627731431b2cec
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/desktop_sdk_macos_frameworks.tar +0 -0
- package/dummy.node +0 -0
- package/index.js +24 -1
- package/package.json +1 -1
|
Binary file
|
package/dummy.node
ADDED
|
File without changes
|
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { spawn } = require('child_process');
|
|
3
3
|
const readline = require('node:readline');
|
|
4
|
+
const fs = require('node:fs');
|
|
4
5
|
const { v4: uuidv4 } = require('uuid');
|
|
5
6
|
|
|
6
7
|
process.env['BOT_ID'] = '00000000-0000-0000-0000-000000000000';
|
|
@@ -30,14 +31,36 @@ process.env["GST_DEBUG"] = "2";
|
|
|
30
31
|
// process.env["GST_DEBUG_NO_COLOR"] = "1";
|
|
31
32
|
process.env["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp/gst.nocommit";
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
// HACK: This is needed because of https://github.com/electron/electron/issues/6262
|
|
35
|
+
|
|
36
|
+
// Search for the unpacked directory first, since fs.existsSync actually reports
|
|
37
|
+
// the "virtual" files in the .asar as being present
|
|
38
|
+
|
|
39
|
+
const exe_paths = [
|
|
40
|
+
path.join(__dirname, "desktop_sdk_macos_exe").replace('app.asar', 'app.asar.unpacked'),
|
|
41
|
+
path.join(__dirname, "desktop_sdk_macos_exe")
|
|
42
|
+
];
|
|
34
43
|
|
|
35
44
|
let proc;
|
|
36
45
|
const listeners = [];
|
|
37
46
|
const pendingCommands = {};
|
|
38
47
|
|
|
39
48
|
function startProcess() {
|
|
49
|
+
const exe_path = exe_paths.find(fs.existsSync);
|
|
50
|
+
|
|
51
|
+
if (!exe_path) {
|
|
52
|
+
console.error(`Desktop SDK: Couldn't launch! This is likely an issue with the build tool you're using.`);
|
|
53
|
+
|
|
54
|
+
for (const exe_path of exe_paths)
|
|
55
|
+
console.error("Tried:", exe_path);
|
|
56
|
+
|
|
57
|
+
console.log();
|
|
58
|
+
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
40
62
|
proc = spawn(exe_path, { stdio: ['pipe', 'pipe', 'pipe', 'pipe'] });
|
|
63
|
+
|
|
41
64
|
const extraStream = proc.stdio[3];
|
|
42
65
|
|
|
43
66
|
const rl = readline.createInterface({ input: extraStream, crlfDelay: Infinity });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recallai/desktop-sdk",
|
|
3
|
-
"version": "2025.03.
|
|
3
|
+
"version": "2025.03.17-765639dacfbd1697463666ac4f627731431b2cec",
|
|
4
4
|
"description": "Recall Desktop SDK (Alpha)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|