livedesk 0.1.596 → 0.1.598
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/client/package.json +5 -5
- package/hub/src/remote-hub.js +3 -3
- package/hub/src/server.js +36 -35
- package/package.json +6 -6
package/client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livedesk/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.254",
|
|
4
4
|
"description": "VuvoDesk local remote client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"ws": "^8.18.3"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@livedesk/fast-linux-x64": "0.1.
|
|
46
|
-
"@livedesk/fast-osx-arm64": "0.1.
|
|
47
|
-
"@livedesk/fast-osx-x64": "0.1.
|
|
48
|
-
"@livedesk/fast-win-x64": "0.1.
|
|
45
|
+
"@livedesk/fast-linux-x64": "0.1.450",
|
|
46
|
+
"@livedesk/fast-osx-arm64": "0.1.450",
|
|
47
|
+
"@livedesk/fast-osx-x64": "0.1.450",
|
|
48
|
+
"@livedesk/fast-win-x64": "0.1.450"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/hub/src/remote-hub.js
CHANGED
|
@@ -9057,9 +9057,9 @@ export function createRemoteHub(options = {}) {
|
|
|
9057
9057
|
return { ok: false, error: 'missing-input-type' };
|
|
9058
9058
|
}
|
|
9059
9059
|
|
|
9060
|
-
// A reset
|
|
9061
|
-
// owner must be able to send it even when its
|
|
9062
|
-
// has just become stale during a monitor/capture-generation switch.
|
|
9060
|
+
// A reset releases native mouse-button and keyboard state. The
|
|
9061
|
+
// current browser input owner must be able to send it even when its
|
|
9062
|
+
// former Control binding has just become stale during a monitor/capture-generation switch.
|
|
9063
9063
|
const currentInputOwner = safeString(device.inputOwnerConnectionId, 128);
|
|
9064
9064
|
const isCurrentOwnerKeyboardReset = normalized.type.toLowerCase() === 'keyboard.reset'
|
|
9065
9065
|
&& normalized.hubConnectionId
|
package/hub/src/server.js
CHANGED
|
@@ -817,16 +817,18 @@ function getLiveDeskUpdateStatus() {
|
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
820
|
+
const electronDesktopOwnsSelfUpdate = process.env.LIVEDESK_DESKTOP_HOST === '1';
|
|
821
|
+
liveDeskUpdateManager = createLiveDeskUpdateManager({
|
|
822
|
+
remoteHub,
|
|
823
|
+
currentManagerVersion: process.env.LIVEDESK_MANAGER_VERSION || packageInfo.version,
|
|
824
|
+
currentClientVersion: process.env.LIVEDESK_CLIENT_PACKAGE_VERSION || '',
|
|
825
|
+
excludedDeviceIds: [runtimeDeviceId],
|
|
826
|
+
// electron-updater owns replacement of the installed desktop application.
|
|
827
|
+
// The same Hub still needs the fleet manager for connected outdated Clients.
|
|
828
|
+
restartSupported: !electronDesktopOwnsSelfUpdate
|
|
829
|
+
&& !!String(process.env.LIVEDESK_HUB_UPDATE_REQUEST_PATH || '').trim(),
|
|
830
|
+
requestHubRestart: electronDesktopOwnsSelfUpdate ? undefined : requestHubRestart
|
|
831
|
+
});
|
|
830
832
|
|
|
831
833
|
if (process.env.LIVEDESK_UPDATE_CONTINUE === '1') {
|
|
832
834
|
let continueUpdateInFlight = false;
|
|
@@ -5010,31 +5012,30 @@ app.post('/api/runtime/role', async (req, res) => {
|
|
|
5010
5012
|
}
|
|
5011
5013
|
});
|
|
5012
5014
|
|
|
5013
|
-
app.get('/api/update/status', (_req, res) => {
|
|
5014
|
-
noStore(res);
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
liveDeskUpdateManager?.
|
|
5036
|
-
|
|
5037
|
-
res.status(result?.ok === false ? 409 : 200).json(result || { ok: false, error: 'update-manager-unavailable' });
|
|
5015
|
+
app.get('/api/update/status', (_req, res) => {
|
|
5016
|
+
noStore(res);
|
|
5017
|
+
res.json({
|
|
5018
|
+
...getLiveDeskUpdateStatus(),
|
|
5019
|
+
selfUpdateOwner: electronDesktopOwnsSelfUpdate ? 'electron-updater' : 'npm-launcher'
|
|
5020
|
+
});
|
|
5021
|
+
});
|
|
5022
|
+
|
|
5023
|
+
app.post('/api/update/apply', async (_req, res) => {
|
|
5024
|
+
noStore(res);
|
|
5025
|
+
try {
|
|
5026
|
+
liveDeskUpdateManager?.reconcileHubRestartResult(readHubRestartResult());
|
|
5027
|
+
const updateStatus = liveDeskUpdateManager?.getStatus();
|
|
5028
|
+
if (electronDesktopOwnsSelfUpdate
|
|
5029
|
+
&& (updateStatus?.managerUpdateAvailable || updateStatus?.clientPackageUpdateAvailable)) {
|
|
5030
|
+
res.status(409).json({
|
|
5031
|
+
ok: false,
|
|
5032
|
+
error: 'electron-updater-managed',
|
|
5033
|
+
selfUpdateOwner: 'electron-updater'
|
|
5034
|
+
});
|
|
5035
|
+
return;
|
|
5036
|
+
}
|
|
5037
|
+
const result = await liveDeskUpdateManager?.startUpdate();
|
|
5038
|
+
res.status(result?.ok === false ? 409 : 200).json(result || { ok: false, error: 'update-manager-unavailable' });
|
|
5038
5039
|
} catch (error) {
|
|
5039
5040
|
res.status(500).json({ ok: false, error: error instanceof Error ? error.message : String(error) });
|
|
5040
5041
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"livedeskClientVersion": "0.1.
|
|
3
|
+
"version": "0.1.598",
|
|
4
|
+
"livedeskClientVersion": "0.1.254",
|
|
5
5
|
"buildFlavor": "production",
|
|
6
6
|
"description": "VuvoDesk Hub and client launcher",
|
|
7
7
|
"type": "module",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"ws": "^8.18.3"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@livedesk/fast-linux-x64": "0.1.
|
|
55
|
-
"@livedesk/fast-osx-arm64": "0.1.
|
|
56
|
-
"@livedesk/fast-osx-x64": "0.1.
|
|
57
|
-
"@livedesk/fast-win-x64": "0.1.
|
|
54
|
+
"@livedesk/fast-linux-x64": "0.1.450",
|
|
55
|
+
"@livedesk/fast-osx-arm64": "0.1.450",
|
|
56
|
+
"@livedesk/fast-osx-x64": "0.1.450",
|
|
57
|
+
"@livedesk/fast-win-x64": "0.1.450"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|