livedesk 0.1.386 → 0.1.388
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/bin/livedesk.js +8 -3
- package/bootstrap/legacy-client-update.js +1042 -0
- package/client/bin/livedesk-client-node.js +29 -42
- package/client/bin/livedesk-client.js +22 -10
- package/client/package.json +5 -5
- package/hub/src/live-desk-update.js +77 -129
- package/hub/src/remote-hub.js +22 -14
- package/package.json +6 -6
package/bin/livedesk.js
CHANGED
|
@@ -14,6 +14,7 @@ import { migrateLegacyClientState } from '../bootstrap/state-migration.js';
|
|
|
14
14
|
import { createRoleBootstrapServer } from '../bootstrap/role-bootstrap-server.js';
|
|
15
15
|
import { parseLsofPids } from '../bootstrap/port-inspection.js';
|
|
16
16
|
import { isKnownLiveDeskClientAgentProcess } from '../bootstrap/client-process-identity.js';
|
|
17
|
+
import { runLegacyClientUpdateSupervisorCli } from '../bootstrap/legacy-client-update.js';
|
|
17
18
|
|
|
18
19
|
const require = createRequire(import.meta.url);
|
|
19
20
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
@@ -1217,8 +1218,13 @@ async function runDesktopRoleBootstrap() {
|
|
|
1217
1218
|
await new Promise(() => undefined);
|
|
1218
1219
|
}
|
|
1219
1220
|
|
|
1220
|
-
async function main() {
|
|
1221
|
-
const
|
|
1221
|
+
async function main() {
|
|
1222
|
+
const rawArgs = process.argv.slice(2);
|
|
1223
|
+
if (rawArgs.includes('--internal-legacy-client-update')) {
|
|
1224
|
+
await runLegacyClientUpdateSupervisorCli();
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
const roleStateOptions = {
|
|
1222
1228
|
stateDir: MANAGER_STATE_DIR,
|
|
1223
1229
|
legacyClientStateDir: process.env.LIVEDESK_LEGACY_CLIENT_STATE_DIR
|
|
1224
1230
|
};
|
|
@@ -1226,7 +1232,6 @@ async function main() {
|
|
|
1226
1232
|
stateDir: MANAGER_STATE_DIR,
|
|
1227
1233
|
legacyClientStateDir: process.env.LIVEDESK_LEGACY_CLIENT_STATE_DIR
|
|
1228
1234
|
});
|
|
1229
|
-
const rawArgs = process.argv.slice(2);
|
|
1230
1235
|
const topLevel = parseTopLevelArgs(rawArgs);
|
|
1231
1236
|
if (topLevel.debug) {
|
|
1232
1237
|
process.env.LIVEDESK_DEBUG = '1';
|