livedesk 0.1.10 → 0.1.12

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 CHANGED
@@ -1,14 +1,15 @@
1
1
  # LiveDesk
2
2
 
3
- Local screen wall manager and remote client launcher.
3
+ Local screen wall Hub and remote client launcher.
4
4
 
5
- ## Manager
5
+ ## Hub
6
6
 
7
7
  ```powershell
8
8
  npx -y livedesk
9
+ npx -y livedesk hub
9
10
  ```
10
11
 
11
- This starts the LiveDesk manager hub, opens the local screen wall, and accepts clients.
12
+ This starts the LiveDesk Hub, opens the local screen wall, and accepts clients.
12
13
 
13
14
  ## Client
14
15
 
@@ -17,4 +18,4 @@ npx -y livedesk client
17
18
  npx -y livedesk client 3
18
19
  ```
19
20
 
20
- The client signs in with Google, discovers the active manager, and connects to the wall.
21
+ The client signs in with Google, discovers the active Hub, and connects to the wall.
package/bin/livedesk.js CHANGED
@@ -23,22 +23,22 @@ LiveDesk
23
23
 
24
24
  Usage:
25
25
  npx -y livedesk
26
- npx -y livedesk manager
26
+ npx -y livedesk hub
27
27
  npx -y livedesk client
28
28
  npx -y livedesk client 3
29
29
 
30
30
  Commands:
31
- manager Start the local LiveDesk manager. Default.
32
- client Run the LiveDesk client on this computer.
31
+ hub Start the local LiveDesk Hub. Default.
32
+ client Connect this workstation to the Hub.
33
33
 
34
- Manager options:
34
+ Hub options:
35
35
  --no-open Do not open the browser automatically.
36
36
  --url <url> Browser URL to open. Default: ${DEFAULT_MANAGER_URL}
37
- --host <host> Manager HTTP host. Default: 0.0.0.0
38
- --port <port> Manager HTTP port. Default: 5179
37
+ --host <host> Hub HTTP host. Default: 0.0.0.0
38
+ --port <port> Hub HTTP port. Default: 5179
39
39
  --remote-port <port>
40
40
  Client connection port. Default: 5197
41
- --no-clean Do not stop existing processes on the manager ports.
41
+ --no-clean Do not stop existing processes on the Hub ports.
42
42
 
43
43
  Common:
44
44
  --help Show this help.
@@ -55,7 +55,7 @@ Usage:
55
55
  npx -y livedesk client 3
56
56
 
57
57
  Default flow:
58
- Opens Google sign-in, waits for the signed-in manager, and connects locally.
58
+ Opens Google sign-in, waits for the signed-in LiveDesk Hub, and connects locally.
59
59
  Omit the number for first-available placement, or pass 1-999 to pin a slot.
60
60
 
61
61
  Common options:
@@ -235,7 +235,7 @@ async function stopProcessesOnPorts(ports) {
235
235
  ].join(' ');
236
236
  const result = await runQuiet('powershell.exe', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command', script]);
237
237
  if (result.stdout) {
238
- console.log(`Restarting LiveDesk manager. Cleared port owner(s): ${result.stdout.replace(/\r?\n/g, ', ')}`);
238
+ console.log(`Restarting LiveDesk Hub. Cleared port owner(s): ${result.stdout.replace(/\r?\n/g, ', ')}`);
239
239
  }
240
240
  return;
241
241
  }
@@ -251,7 +251,7 @@ async function stopProcessesOnPorts(ports) {
251
251
  ].join('; ')).join('; ');
252
252
  const result = await runQuiet('sh', ['-c', script]);
253
253
  if (result.stdout) {
254
- console.log(`Restarting LiveDesk manager. Cleared port owner(s): ${result.stdout.replace(/\r?\n/g, ', ')}`);
254
+ console.log(`Restarting LiveDesk Hub. Cleared port owner(s): ${result.stdout.replace(/\r?\n/g, ', ')}`);
255
255
  }
256
256
  }
257
257
 
@@ -317,7 +317,7 @@ async function runManager(args) {
317
317
  });
318
318
 
319
319
  child.once('error', error => {
320
- console.error(`Failed to start LiveDesk manager: ${error.message}`);
320
+ console.error(`Failed to start LiveDesk Hub: ${error.message}`);
321
321
  process.exitCode = 1;
322
322
  });
323
323
  child.once('exit', (code, signal) => {
@@ -333,7 +333,7 @@ async function runManager(args) {
333
333
  if (ok) {
334
334
  openBrowser(openUrl);
335
335
  } else {
336
- console.warn(`LiveDesk manager did not answer at ${openUrl} yet. Open it manually when it is ready.`);
336
+ console.warn(`LiveDesk Hub did not answer at ${openUrl} yet. Open it manually when it is ready.`);
337
337
  }
338
338
  });
339
339
  }
@@ -360,7 +360,7 @@ function runClient(args) {
360
360
 
361
361
  async function main() {
362
362
  const args = process.argv.slice(2);
363
- const command = String(args[0] || 'manager').toLowerCase();
363
+ const command = String(args[0] || 'hub').toLowerCase();
364
364
  if (command === '--help' || command === '-h' || command === 'help') {
365
365
  printHelp();
366
366
  return;
@@ -377,7 +377,11 @@ async function main() {
377
377
  runClient(args.slice(1));
378
378
  return;
379
379
  }
380
- if (command === 'manager') {
380
+ if (command === 'hub' || command === 'manager') {
381
+ if (args.slice(1).some(arg => arg === '--help' || arg === '-h' || arg === 'help')) {
382
+ printHelp();
383
+ return;
384
+ }
381
385
  await runManager(args.slice(1));
382
386
  return;
383
387
  }
package/hub/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@livedesk/hub",
3
3
  "version": "0.1.0",
4
- "description": "LiveDesk local RemoteHub API and browser frame bridge",
4
+ "description": "LiveDesk local Hub API and browser frame bridge",
5
5
  "type": "module",
6
6
  "main": "src/server.js",
7
7
  "files": [
@@ -3236,9 +3236,9 @@ export function createRemoteHub(options = {}) {
3236
3236
  started = true;
3237
3237
  boundPort = server.address()?.port || requestedPort;
3238
3238
  lastError = '';
3239
- logEvent('remote', `RemoteHub listening on tcp://${host}:${boundPort}`, 'success');
3239
+ logEvent('remote', `LiveDesk Hub client endpoint listening on tcp://${host}:${boundPort}`, 'success');
3240
3240
  if (host === '0.0.0.0' || host === '::') {
3241
- logWarn('remote', 'RemoteHub is externally reachable. Use a strong pairing token and trusted network.');
3241
+ logWarn('remote', 'LiveDesk Hub client endpoint is externally reachable. Use a strong pairing token and trusted network.');
3242
3242
  }
3243
3243
  emitRemoteEvent('RemoteHubStarted', null);
3244
3244
  resolve();
package/hub/src/server.js CHANGED
@@ -713,7 +713,7 @@ await remoteHub.start();
713
713
  httpServer.listen(httpPort, httpHost, () => {
714
714
  const status = remoteHub.getStatus({ includeSecrets: true });
715
715
  console.log(`[LiveDesk Hub] HTTP API http://${httpHost}:${httpPort}`);
716
- console.log(`[LiveDesk Hub] RemoteHub ${status.agentEndpoint} pair=${status.pairTokenPreview}`);
716
+ console.log(`[LiveDesk Hub] Client endpoint ${status.agentEndpoint} pair=${status.pairTokenPreview}`);
717
717
  });
718
718
 
719
719
  for (const signal of ['SIGINT', 'SIGTERM']) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.10",
4
- "description": "LiveDesk manager and client launcher",
3
+ "version": "0.1.12",
4
+ "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "livedesk": "bin/livedesk.js"
@@ -22,7 +22,7 @@
22
22
  "livedesk",
23
23
  "remote",
24
24
  "screen-wall",
25
- "manager",
25
+ "hub",
26
26
  "local"
27
27
  ],
28
28
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "node": ">=20"
31
31
  },
32
32
  "dependencies": {
33
- "@livedesk/client": "0.1.22",
33
+ "@livedesk/client": "0.1.24",
34
34
  "cors": "^2.8.5",
35
35
  "express": "^4.21.2",
36
36
  "ws": "^8.18.3"