livedesk 0.1.300 → 0.1.301
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 +6 -3
- package/package.json +2 -2
package/bin/livedesk.js
CHANGED
|
@@ -704,8 +704,8 @@ async function runManager(args, resolvedRole = null) {
|
|
|
704
704
|
};
|
|
705
705
|
|
|
706
706
|
const startHubProcess = () => {
|
|
707
|
-
const stderrChunks = [];
|
|
708
|
-
|
|
707
|
+
const stderrChunks = [];
|
|
708
|
+
const child = spawn(process.execPath, [hubEntry, ...options.forwarded], {
|
|
709
709
|
env,
|
|
710
710
|
stdio: ['inherit', 'inherit', 'pipe'],
|
|
711
711
|
windowsHide: true
|
|
@@ -802,6 +802,9 @@ function runClient(args, resolvedRole = null) {
|
|
|
802
802
|
LIVEDESK_NPM_LAUNCHER_VERSION: readVersion(),
|
|
803
803
|
LIVEDESK_RUNTIME_ROLE: 'client',
|
|
804
804
|
LIVEDESK_UNIFIED_LAUNCHER_ENTRY: String(process.argv[1] || ''),
|
|
805
|
+
LIVEDESK_ROLE_TRANSITION: resolvedRole?.roleTransition === true || process.env.LIVEDESK_ROLE_TRANSITION === '1'
|
|
806
|
+
? '1'
|
|
807
|
+
: String(process.env.LIVEDESK_ROLE_TRANSITION || ''),
|
|
805
808
|
LIVEDESK_SKIP_BROWSER_OPEN: resolvedRole?.roleTransition === true || process.env.LIVEDESK_ROLE_TRANSITION === '1'
|
|
806
809
|
? '1'
|
|
807
810
|
: String(process.env.LIVEDESK_SKIP_BROWSER_OPEN || ''),
|
|
@@ -853,7 +856,7 @@ async function main() {
|
|
|
853
856
|
forcedRole: topLevel.forcedRole || process.env.LIVEDESK_FORCE_ROLE,
|
|
854
857
|
promptRole: topLevel.noRolePrompt ? undefined : promptForDeviceRole
|
|
855
858
|
});
|
|
856
|
-
|
|
859
|
+
if (!resolvedRole.role) {
|
|
857
860
|
if (resolvedRole.disabled) {
|
|
858
861
|
throw new Error(`LiveDesk device ${resolvedRole.deviceId} is disabled for this account.`);
|
|
859
862
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.301",
|
|
4
4
|
"description": "LiveDesk Hub and client launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
35
|
-
"@livedesk/client": "0.1.
|
|
35
|
+
"@livedesk/client": "0.1.154",
|
|
36
36
|
"@openai/codex-sdk": "0.144.5",
|
|
37
37
|
"cors": "^2.8.5",
|
|
38
38
|
"express": "^4.21.2",
|