@livedesk/client 0.1.0

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 ADDED
@@ -0,0 +1,36 @@
1
+ # LiveDesk Client
2
+
3
+ Run a direct LiveDesk remote client from a controlled computer.
4
+
5
+ ```powershell
6
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token>
7
+ ```
8
+
9
+ For LAN use, start `@livedesk/hub` with an externally reachable RemoteHub host
10
+ and point clients at that address:
11
+
12
+ ```powershell
13
+ $env:REMOTE_HUB_HOST="0.0.0.0"
14
+ $env:REMOTE_HUB_PORT="5197"
15
+ npm run dev:hub
16
+
17
+ npx @livedesk/client connect --manager 192.168.0.10:5197 --pair <strong-token>
18
+ ```
19
+
20
+ The client registers the device, sends status heartbeats, can return
21
+ manager-requested thumbnails, can stream a focused view-only live screen, and
22
+ can receive safe task-only instructions.
23
+
24
+ By default, the launcher uses the packaged C# RemoteFast engine when supported.
25
+ It falls back to the Node engine for AI assist or when a compatible .NET runtime
26
+ is unavailable.
27
+
28
+ Useful flags:
29
+
30
+ ```powershell
31
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token> --no-thumbnail
32
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token> --no-live
33
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token> --engine node
34
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token> --engine fast
35
+ npx @livedesk/client connect --manager 127.0.0.1:5197 --pair <token> --engine fast --trace-frames
36
+ ```
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { dirname, join } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { spawn } from 'node:child_process';
6
+
7
+ const launcherPath = join(dirname(fileURLToPath(import.meta.url)), 'livedesk-client.js');
8
+ const child = spawn(process.execPath, [launcherPath, '--fast', ...process.argv.slice(2)], {
9
+ stdio: 'inherit',
10
+ windowsHide: true
11
+ });
12
+
13
+ child.once('error', error => {
14
+ console.error(`Failed to launch C# RemoteFast: ${error.message}`);
15
+ process.exitCode = 1;
16
+ });
17
+ child.once('exit', (code, signal) => {
18
+ if (signal) {
19
+ process.kill(process.pid, signal);
20
+ return;
21
+ }
22
+ process.exit(code ?? 0);
23
+ });