livedesk 0.1.480 → 0.1.481
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
CHANGED
|
@@ -65,6 +65,20 @@ const MANAGER_STATE_DIR = resolve(
|
|
|
65
65
|
const MANAGER_STATE_PATH = join(MANAGER_STATE_DIR, 'manager.json');
|
|
66
66
|
const TERMINAL_HUB_UPDATE_OUTCOMES = new Set(['updated', 'restored', 'failed']);
|
|
67
67
|
|
|
68
|
+
async function preflightPackagedRuntimeDependencies() {
|
|
69
|
+
try {
|
|
70
|
+
await Promise.all([
|
|
71
|
+
import('@livedesk/runtime-core'),
|
|
72
|
+
import('@livedesk/runtime-core/os-secret-store')
|
|
73
|
+
]);
|
|
74
|
+
} catch (error) {
|
|
75
|
+
throw new Error(
|
|
76
|
+
'LiveDesk runtime dependency preflight failed before replacing the existing runtime: '
|
|
77
|
+
+ `${error instanceof Error ? error.message : String(error)}`
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
68
82
|
function safeUpdatePathSegment(value, fallback = 'unknown') {
|
|
69
83
|
return String(value || '')
|
|
70
84
|
.replace(/[^A-Za-z0-9._-]/g, '_')
|
|
@@ -3193,6 +3207,7 @@ async function main() {
|
|
|
3193
3207
|
}
|
|
3194
3208
|
}
|
|
3195
3209
|
await assertNoActiveMacPhysicalDiagnosticLease();
|
|
3210
|
+
await preflightPackagedRuntimeDependencies();
|
|
3196
3211
|
const roleStateOptions = {
|
|
3197
3212
|
stateDir: MANAGER_STATE_DIR,
|
|
3198
3213
|
legacyClientStateDir: process.env.LIVEDESK_LEGACY_CLIENT_STATE_DIR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.481",
|
|
4
4
|
"livedeskClientVersion": "0.1.225",
|
|
5
5
|
"buildFlavor": "production",
|
|
6
6
|
"description": "LiveDesk Hub and client launcher",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
44
|
+
"@livedesk/runtime-core": "0.1.4",
|
|
44
45
|
"ffmpeg-static": "^5.3.0",
|
|
45
46
|
"@openai/codex-sdk": "0.145.0",
|
|
46
47
|
"@supabase/supabase-js": "^2.110.0",
|