@mindexec/cli 0.2.138 → 0.2.139

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexec/cli",
3
- "version": "0.2.138",
3
+ "version": "0.2.139",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -866,9 +866,14 @@ try {
866
866
  assert.equal(binaryImage?.style.display, 'none');
867
867
  assert.equal(diagnostics.imageBitmapCalls.length, imageBitmapCountBeforeBinary + 1);
868
868
  assert.equal(diagnostics.objectUrlCalls.length, objectUrlCountBeforeBinary);
869
+ const binaryDrawCalls = document.canvasDrawCalls.slice(drawCountBeforeBinary);
869
870
  assert.ok(
870
- document.canvasDrawCalls.slice(drawCountBeforeBinary).some(call => call.op === 'drawImage'),
871
+ binaryDrawCalls.some(call => call.op === 'drawImage'),
871
872
  'expected binary Blob frame to draw directly to canvas');
873
+ assert.equal(
874
+ binaryDrawCalls.some(call => call.op === 'clearRect' || call.op === 'fillRect'),
875
+ false,
876
+ 'binary Blob frame paint must not clear/fill the canvas before drawing');
872
877
  const alternateDevice = devices.find(device =>
873
878
  device.Connected === true
874
879
  && device.DeviceId !== focusedDevice.DeviceId);
@@ -13461,7 +13461,7 @@
13461
13461
  const REMOTE_FLEET_FRAME_BLOB_CACHE_LIMIT = 96;
13462
13462
  const REMOTE_FLEET_LIVE_FRAME_DECODE_TIMEOUT_MS = 180;
13463
13463
  const REMOTE_FLEET_THUMBNAIL_FRAME_DECODE_TIMEOUT_MS = 1200;
13464
- const REMOTE_FLEET_BINARY_FRAME_MAX_DECODE_IN_FLIGHT = 2;
13464
+ const REMOTE_FLEET_BINARY_FRAME_MAX_DECODE_IN_FLIGHT = 1;
13465
13465
  const REMOTE_FLEET_BINARY_FRAME_WS_RECONNECT_MS = 1500;
13466
13466
  const REMOTE_FLEET_BINARY_FRAME_SUBSCRIBE_MS = 1000;
13467
13467
  const REMOTE_FLEET_BINARY_FRAME_STALE_FALLBACK_MS = 1400;
@@ -14269,7 +14269,7 @@
14269
14269
  width: 100%;
14270
14270
  height: 100%;
14271
14271
  display: none;
14272
- background: #0f172a;
14272
+ background: transparent;
14273
14273
  `;
14274
14274
  if (typeof preview?.insertBefore === 'function') {
14275
14275
  preview.insertBefore(canvas, preview.firstChild || null);
@@ -14361,9 +14361,6 @@
14361
14361
 
14362
14362
  context.imageSmoothingEnabled = true;
14363
14363
  context.imageSmoothingQuality = 'medium';
14364
- context.fillStyle = '#020617';
14365
- context.clearRect(0, 0, size.width, size.height);
14366
- context.fillRect(0, 0, size.width, size.height);
14367
14364
  context.drawImage(bitmap, sx, sy, sw, sh, dx, dy, dw, dh);
14368
14365
  canvas._remoteFleetContentRect = {
14369
14366
  left: dx / size.dpr,
@@ -18000,12 +17997,6 @@
18000
17997
  const hasVisibleLiveTarget = getVisibleLiveFrameDeviceIds().length > 0
18001
17998
  || devices.some(device => isRemoteFleetDeviceConnected(device) && isRemoteFleetLiveCapable(device));
18002
17999
  if (hasVisibleLiveTarget || hasActiveLiveStream) {
18003
- ensureVisibleRemoteFleetLiveStreams().catch(error => {
18004
- window.RuntimeTrace?.emit?.('remote.live.autoStartFailed', {
18005
- nodeId,
18006
- error: error?.message || String(error || '')
18007
- });
18008
- });
18009
18000
  const binaryFrameSocketStarted = startRemoteFleetBinaryFrameSocket(bodyView, () => {
18010
18001
  const liveIds = getVisibleLiveFrameDeviceIds();
18011
18002
  return liveIds.length > 0 ? liveIds : getVisibleFrameDeviceIds();
@@ -18022,6 +18013,18 @@
18022
18013
  nodeId,
18023
18014
  reason: 'binary-frame-socket-not-started'
18024
18015
  });
18016
+ ensureVisibleRemoteFleetLiveStreams().catch(error => {
18017
+ window.RuntimeTrace?.emit?.('remote.live.autoStartFailed', {
18018
+ nodeId,
18019
+ error: error?.message || String(error || '')
18020
+ });
18021
+ });
18022
+ } else {
18023
+ window.RuntimeTrace?.emit?.('remote.live.wsAutoStartRequested', {
18024
+ nodeId,
18025
+ transport: 'ws-binary',
18026
+ fps: REMOTE_FLEET_MONITOR_LIVE_FPS
18027
+ });
18025
18028
  }
18026
18029
  bodyView._remoteFleetLiveRefreshTimer = setInterval(async () => {
18027
18030
  if (!document.body.contains(bodyView)) {
@@ -1,5 +1,5 @@
1
1
  self.assetsManifest = {
2
- "version": "IfRQGIi2",
2
+ "version": "7WvF4J3m",
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-WBIjGLmIxv1h8qPdh1KvY1XXHi1slyoTo2BVqXis+hQ=",
89
+ "hash": "sha256-8Ndn0qAzhmRH7/OJtB0ve5LG2oN5e+PaAE7c0MyEzHM=",
90
90
  "url": "_content/MindExecution.Shared/js/mind-map-css3d-manager.js"
91
91
  },
92
92
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: IfRQGIi2 */
1
+ /* Manifest version: 7WvF4J3m */
2
2
  // Hosted deployments should prefer the network over stale offline caches.
3
3
  // This service worker immediately clears old Blazor offline caches and unregisters itself.
4
4