livedesk 0.1.263 → 0.1.265

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.
@@ -2,7 +2,7 @@ import { randomUUID } from 'node:crypto';
2
2
 
3
3
  export const LIVE_DESK_UPDATE_COMMAND = 'livedesk.client-update';
4
4
  export const LIVE_DESK_UPDATE_TIMEOUT_MS = 120_000;
5
- export const LIVE_DESK_UPDATE_CHECK_INTERVAL_MS = 5 * 60_000;
5
+ export const LIVE_DESK_UPDATE_CHECK_INTERVAL_MS = 60_000;
6
6
 
7
7
  function cleanVersion(value) {
8
8
  return String(value || '').trim().replace(/^v/i, '');
@@ -326,7 +326,7 @@ export function createLiveDeskUpdateManager({
326
326
  const outdatedClients = connected.filter(device => !isVersionAtLeast(device.agentVersion, release.latestClientVersion));
327
327
  const needsHubRestart = managerNeedsUpdate || clientPackageNeedsUpdate;
328
328
  if (!managerNeedsUpdate && !clientPackageNeedsUpdate && outdatedClients.length === 0) {
329
- return { ok: false, error: 'LiveDesk is already up to date.', ...getStatus() };
329
+ return { ok: true, state: 'clients-updated', ...getStatus() };
330
330
  }
331
331
  if (needsHubRestart && !restartSupported) {
332
332
  return { ok: false, error: 'Hub launcher restart is unavailable. Start LiveDesk through npx livedesk@latest.', ...getStatus() };
@@ -4494,10 +4494,10 @@ export function createRemoteHub(options = {}) {
4494
4494
  ? 'allowControl'
4495
4495
  : commandName.startsWith('file.transfer')
4496
4496
  ? 'allowFileTransfer'
4497
- : commandName === 'audio.start'
4498
- ? 'allowRemoteAudio'
4497
+ : commandName === 'audio.start'
4498
+ ? 'allowRemoteAudio'
4499
4499
  : commandName === 'livedesk.client-update'
4500
- ? 'allowAgent'
4500
+ ? ''
4501
4501
  : commandName.startsWith('agent.')
4502
4502
  ? 'allowAgent'
4503
4503
  : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.263",
3
+ "version": "0.1.265",
4
4
  "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
34
- "@livedesk/client": "0.1.135",
34
+ "@livedesk/client": "0.1.136",
35
35
  "@openai/codex-sdk": "0.144.5",
36
36
  "cors": "^2.8.5",
37
37
  "express": "^4.21.2",