@livedesk/client 0.1.16 → 0.1.17
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/README.md +3 -2
- package/bin/livedesk-client-node.js +14 -2
- package/bin/livedesk-client.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,8 +34,9 @@ playback. When file transfer is enabled by the manager, received files are saved
|
|
|
34
34
|
to `Desktop/LiveDeskFiles` unless the manager sets another destination folder.
|
|
35
35
|
|
|
36
36
|
By default, the launcher uses the packaged C# RemoteFast engine when supported.
|
|
37
|
-
It falls back to the Node engine for AI assist or when a compatible
|
|
38
|
-
is unavailable.
|
|
37
|
+
It falls back to the Node engine for AI assist or when a compatible RemoteFast
|
|
38
|
+
runtime is unavailable. Linux currently uses the Node engine with native
|
|
39
|
+
`node-screenshots` capture for thumbnails and live frames.
|
|
39
40
|
|
|
40
41
|
Useful flags:
|
|
41
42
|
|
|
@@ -6,7 +6,7 @@ import path from 'path';
|
|
|
6
6
|
import crypto from 'crypto';
|
|
7
7
|
import { promises as fs, statfsSync } from 'fs';
|
|
8
8
|
|
|
9
|
-
const AGENT_VERSION = '0.1.
|
|
9
|
+
const AGENT_VERSION = '0.1.17-livedesk.1';
|
|
10
10
|
const DEFAULT_MANAGER = '127.0.0.1:5197';
|
|
11
11
|
const DEFAULT_HEARTBEAT_MS = 5000;
|
|
12
12
|
const DEFAULT_AI_MODEL = 'gpt-5.4-mini';
|
|
@@ -58,8 +58,20 @@ function isFalsy(value) {
|
|
|
58
58
|
return /^(0|false|no|off)$/i.test(String(value || '').trim());
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
function isNativeDesktopCaptureEnabledByDefault() {
|
|
62
|
+
const platform = os.platform();
|
|
63
|
+
const arch = os.arch();
|
|
64
|
+
if (platform === 'win32' || platform === 'darwin') {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
if (platform === 'linux') {
|
|
68
|
+
return ['x64', 'arm64', 'loong64'].includes(arch);
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
|
|
61
73
|
function parseArgs(argv) {
|
|
62
|
-
const defaultDesktopCaptureEnabled =
|
|
74
|
+
const defaultDesktopCaptureEnabled = isNativeDesktopCaptureEnabledByDefault();
|
|
63
75
|
const result = {
|
|
64
76
|
command: 'connect',
|
|
65
77
|
manager: process.env.LIVEDESK_CLIENT_MANAGER || process.env.MINDEXEC_REMOTE_MANAGER || DEFAULT_MANAGER,
|
package/bin/livedesk-client.js
CHANGED
|
@@ -806,6 +806,13 @@ function shouldUseFast(parsed) {
|
|
|
806
806
|
return !parsed.nodeOnlyFeature;
|
|
807
807
|
}
|
|
808
808
|
|
|
809
|
+
function shouldTryFast(parsed, runtime) {
|
|
810
|
+
if (parsed.engine === 'fast') {
|
|
811
|
+
return true;
|
|
812
|
+
}
|
|
813
|
+
return shouldUseFast(parsed) && !!runtime;
|
|
814
|
+
}
|
|
815
|
+
|
|
809
816
|
async function main() {
|
|
810
817
|
const parsed = parseLauncherArgs(process.argv.slice(2));
|
|
811
818
|
if (parsed.help) {
|
|
@@ -815,7 +822,7 @@ async function main() {
|
|
|
815
822
|
|
|
816
823
|
const prepared = await prepareLoginConnection(parsed);
|
|
817
824
|
const fastRuntime = getFastRuntime();
|
|
818
|
-
const useFast =
|
|
825
|
+
const useFast = shouldTryFast(prepared, fastRuntime);
|
|
819
826
|
if (useFast) {
|
|
820
827
|
const fastArgs = buildFastArgs(prepared.forwarded, prepared.fakeThumbnail);
|
|
821
828
|
const fastLaunch = resolveFastLaunch(fastRuntime);
|