@mindexec/cli 0.2.133 → 0.2.135
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/package.json +3 -2
- package/scripts/remote-fast-mdm-browser-smoke.mjs +13 -17
- package/scripts/remote-frame-ws-smoke.mjs +11 -9
- package/scripts/remote-registry-follower-smoke.mjs +322 -0
- package/server.js +693 -10
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-css3d-manager.js +50 -4
- package/wwwroot/service-worker-assets.js +2 -2
- package/wwwroot/service-worker.js +1 -1
|
@@ -13828,7 +13828,16 @@
|
|
|
13828
13828
|
}
|
|
13829
13829
|
|
|
13830
13830
|
const deviceIds = getRemoteFleetBinaryFrameDeviceIds(session);
|
|
13831
|
-
const
|
|
13831
|
+
const liveOptions = session.liveOptions || {};
|
|
13832
|
+
const optionKey = [
|
|
13833
|
+
liveOptions.autoStartLive === true ? 'auto-live' : 'passive',
|
|
13834
|
+
Number(liveOptions.fps || 0) || 0,
|
|
13835
|
+
Number(liveOptions.maxWidth || 0) || 0,
|
|
13836
|
+
Number(liveOptions.maxHeight || 0) || 0,
|
|
13837
|
+
Number(liveOptions.quality || 0) || 0,
|
|
13838
|
+
String(liveOptions.mode || '')
|
|
13839
|
+
].join('|');
|
|
13840
|
+
const key = `${deviceIds.join('\n')}::${optionKey}`;
|
|
13832
13841
|
if (!force && session.subscriptionKey === key) {
|
|
13833
13842
|
return true;
|
|
13834
13843
|
}
|
|
@@ -13837,7 +13846,13 @@
|
|
|
13837
13846
|
session.ws.send(JSON.stringify({
|
|
13838
13847
|
type: 'subscribe',
|
|
13839
13848
|
nodeId: session.nodeId,
|
|
13840
|
-
deviceIds
|
|
13849
|
+
deviceIds,
|
|
13850
|
+
autoStartLive: liveOptions.autoStartLive === true,
|
|
13851
|
+
fps: liveOptions.fps,
|
|
13852
|
+
maxWidth: liveOptions.maxWidth,
|
|
13853
|
+
maxHeight: liveOptions.maxHeight,
|
|
13854
|
+
quality: liveOptions.quality,
|
|
13855
|
+
mode: liveOptions.mode
|
|
13841
13856
|
}));
|
|
13842
13857
|
return true;
|
|
13843
13858
|
}
|
|
@@ -13984,7 +13999,7 @@
|
|
|
13984
13999
|
}
|
|
13985
14000
|
}
|
|
13986
14001
|
|
|
13987
|
-
function startRemoteFleetBinaryFrameSocket(bodyView, getDeviceIds) {
|
|
14002
|
+
function startRemoteFleetBinaryFrameSocket(bodyView, getDeviceIds, options = {}) {
|
|
13988
14003
|
const nodeId = String(bodyView?.dataset?.nodeId || '').trim();
|
|
13989
14004
|
if (!nodeId || typeof WebSocket !== 'function') {
|
|
13990
14005
|
return false;
|
|
@@ -14007,6 +14022,14 @@
|
|
|
14007
14022
|
|
|
14008
14023
|
session.bodies.add(bodyView);
|
|
14009
14024
|
session.getDeviceIds = getDeviceIds;
|
|
14025
|
+
session.liveOptions = {
|
|
14026
|
+
autoStartLive: options.autoStartLive === true,
|
|
14027
|
+
fps: Number(options.fps || REMOTE_FLEET_MONITOR_LIVE_FPS) || REMOTE_FLEET_MONITOR_LIVE_FPS,
|
|
14028
|
+
maxWidth: Number(options.maxWidth || 960) || 960,
|
|
14029
|
+
maxHeight: Number(options.maxHeight || 540) || 540,
|
|
14030
|
+
quality: Number(options.quality || 60) || 60,
|
|
14031
|
+
mode: String(options.mode || 'remote-fast')
|
|
14032
|
+
};
|
|
14010
14033
|
bodyView._remoteFleetBinaryFrameSession = session;
|
|
14011
14034
|
openRemoteFleetBinaryFrameSocket(session).catch(() => undefined);
|
|
14012
14035
|
return true;
|
|
@@ -15304,7 +15327,14 @@
|
|
|
15304
15327
|
|
|
15305
15328
|
let binarySession = bodyView._remoteFleetBinaryFrameSession || null;
|
|
15306
15329
|
if (!binarySession) {
|
|
15307
|
-
if (!startRemoteFleetBinaryFrameSocket(bodyView, () => []
|
|
15330
|
+
if (!startRemoteFleetBinaryFrameSocket(bodyView, () => [], {
|
|
15331
|
+
autoStartLive: true,
|
|
15332
|
+
fps: REMOTE_FLEET_CONTROL_LIVE_FPS,
|
|
15333
|
+
maxWidth: 1280,
|
|
15334
|
+
maxHeight: 720,
|
|
15335
|
+
quality: 65,
|
|
15336
|
+
mode: 'remote-fast-control'
|
|
15337
|
+
})) {
|
|
15308
15338
|
return false;
|
|
15309
15339
|
}
|
|
15310
15340
|
binarySession = bodyView._remoteFleetBinaryFrameSession || null;
|
|
@@ -15319,6 +15349,15 @@
|
|
|
15319
15349
|
}
|
|
15320
15350
|
|
|
15321
15351
|
binarySession.controlSessions.add(controlSession);
|
|
15352
|
+
binarySession.liveOptions = {
|
|
15353
|
+
...(binarySession.liveOptions || {}),
|
|
15354
|
+
autoStartLive: true,
|
|
15355
|
+
fps: REMOTE_FLEET_CONTROL_LIVE_FPS,
|
|
15356
|
+
maxWidth: 1280,
|
|
15357
|
+
maxHeight: 720,
|
|
15358
|
+
quality: 65,
|
|
15359
|
+
mode: 'remote-fast-control'
|
|
15360
|
+
};
|
|
15322
15361
|
controlSession.binaryFrameSession = binarySession;
|
|
15323
15362
|
controlSession.binaryFramePreferred = true;
|
|
15324
15363
|
refreshRemoteFleetBinaryFrameSubscription(binarySession, true);
|
|
@@ -17970,6 +18009,13 @@
|
|
|
17970
18009
|
const binaryFrameSocketStarted = startRemoteFleetBinaryFrameSocket(bodyView, () => {
|
|
17971
18010
|
const liveIds = getVisibleLiveFrameDeviceIds();
|
|
17972
18011
|
return liveIds.length > 0 ? liveIds : getVisibleFrameDeviceIds();
|
|
18012
|
+
}, {
|
|
18013
|
+
autoStartLive: true,
|
|
18014
|
+
fps: REMOTE_FLEET_MONITOR_LIVE_FPS,
|
|
18015
|
+
maxWidth: 960,
|
|
18016
|
+
maxHeight: 540,
|
|
18017
|
+
quality: 60,
|
|
18018
|
+
mode: 'remote-fast'
|
|
17973
18019
|
});
|
|
17974
18020
|
if (!binaryFrameSocketStarted) {
|
|
17975
18021
|
window.RuntimeTrace?.emit?.('remote.frame.wsUnavailable', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
self.assetsManifest = {
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "IfRQGIi2",
|
|
3
3
|
"assets": [
|
|
4
4
|
{
|
|
5
5
|
"hash": "sha256-+CSYMcqLNTsq3VnH11jgYyOCCdxvHzL74CBmo4sCmMU=",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"url": "_content/MindExecution.Shared/js/mind-map-core.js.backup"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
"hash": "sha256-
|
|
89
|
+
"hash": "sha256-WBIjGLmIxv1h8qPdh1KvY1XXHi1slyoTo2BVqXis+hQ=",
|
|
90
90
|
"url": "_content/MindExecution.Shared/js/mind-map-css3d-manager.js"
|
|
91
91
|
},
|
|
92
92
|
{
|