@mindexec/cli 0.2.274 → 0.2.276

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.274",
3
+ "version": "0.2.276",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -5,7 +5,7 @@
5
5
  const DEBUG = false;
6
6
  const FPS_DEBUG = false;
7
7
  const FRAME_PERF_DEBUG = false;
8
- const MINDMAP_CORE_BUILD_ID = '20260620-css3d-flat-wheel-v722';
8
+ const MINDMAP_CORE_BUILD_ID = '20260620-css3d-flat-wheel-v724';
9
9
  const CanvasPhase = Object.freeze({
10
10
  Booting: 'booting',
11
11
  BoardFileLoading: 'board-file-loading',
@@ -622,6 +622,18 @@
622
622
  );
623
623
  }
624
624
 
625
+ function hasBusinessAutomationTransformMotionWork(module) {
626
+ return !!(
627
+ module?._businessAutomationEdgeRenderActive === true &&
628
+ hasBusinessAutomationEdgeLayer(module) === true
629
+ );
630
+ }
631
+
632
+ function hasBusinessAutomationDraftOrTransformMotionWork(module) {
633
+ return hasBusinessAutomationTransformMotionWork(module) === true ||
634
+ module?._businessAutomationConnectionDraftActive === true;
635
+ }
636
+
625
637
  function canUseFlatCss3dCameraMotion(module, renderer = module?.cssRenderer, camera = module?.camera, renderDebugFlags = null) {
626
638
  if (CSS3D_FLAT_CAMERA_MOTION_ENABLED !== true ||
627
639
  !renderer ||
@@ -1515,7 +1527,9 @@
1515
1527
 
1516
1528
  module._viewSyncMotionActive = true;
1517
1529
  module._cameraMovingThisFrame = false;
1518
- deferPassiveOverlayForCameraMotion(module, frameStart);
1530
+ if (hasPassiveOverlayMotionWork(module) === true) {
1531
+ deferPassiveOverlayForCameraMotion(module, frameStart);
1532
+ }
1519
1533
 
1520
1534
  const forceUpdateFrames = Math.max(0, Number(module._forceUpdateFrames || 0));
1521
1535
  const cameraNavigationForceFrames = Math.max(0, Number(module._cameraNavigationForceFrames || 0));
@@ -1723,7 +1737,9 @@
1723
1737
  module._preserveVisibleSetThisFrame = true;
1724
1738
  module._lastVisibilityCullingSkipReason = 'ua-ultra-camera-only';
1725
1739
  recordCameraMotionFastPathStatus(module, 'hit', 'ua-ultra-camera-only');
1726
- deferPassiveOverlayForCameraMotion(module, frameStart);
1740
+ if (hasPassiveOverlayMotionWork(module) === true) {
1741
+ deferPassiveOverlayForCameraMotion(module, frameStart);
1742
+ }
1727
1743
 
1728
1744
  if (shouldSyncMindCanvasPerfClasses()) {
1729
1745
  const visibleNodeCount = Number(module._visibleIds?.size || module._prevVisibleIds?.size || 0);
@@ -1786,7 +1802,9 @@
1786
1802
  module._syncLocalSnapGridPositionOnly?.(true);
1787
1803
  renderCss3dCameraForCameraNavigation(module, 'ua-ultra-camera-only');
1788
1804
 
1789
- syncBusinessAutomationEdgesForCameraNavigation(module, true);
1805
+ if (hasBusinessAutomationTransformMotionWork(module) === true) {
1806
+ syncBusinessAutomationEdgesForCameraNavigation(module, true);
1807
+ }
1790
1808
 
1791
1809
  profileSection?.('uaUltraEarlyCameraOnly');
1792
1810
 
@@ -1947,7 +1965,9 @@
1947
1965
  module._preserveVisibleSetThisFrame = true;
1948
1966
  module._lastVisibilityCullingSkipReason = 'ua-ultra-resident-camera-only';
1949
1967
  recordCameraMotionFastPathStatus(module, 'hit', 'ua-ultra-resident-camera-only');
1950
- deferPassiveOverlayForCameraMotion(module, frameStart);
1968
+ if (hasPassiveOverlayMotionWork(module) === true) {
1969
+ deferPassiveOverlayForCameraMotion(module, frameStart);
1970
+ }
1951
1971
 
1952
1972
  if (shouldSyncMindCanvasPerfClasses()) {
1953
1973
  const visibleNodeCount = Number(module._visibleIds?.size || module._prevVisibleIds?.size || 0);
@@ -2008,7 +2028,9 @@
2008
2028
  renderCss3dCameraForCameraNavigation(module, 'ua-ultra-resident-camera-only');
2009
2029
  }
2010
2030
 
2011
- syncBusinessAutomationEdgesForCameraNavigation(module, true);
2031
+ if (hasBusinessAutomationTransformMotionWork(module) === true) {
2032
+ syncBusinessAutomationEdgesForCameraNavigation(module, true);
2033
+ }
2012
2034
 
2013
2035
  profileSection?.('uaUltraResidentCameraOnly');
2014
2036
 
@@ -5632,8 +5654,7 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
5632
5654
  if (canRenderCss3d === true) {
5633
5655
  renderCss3dCameraForCameraNavigation(this, 'ua-wheel-zoom-direct');
5634
5656
  }
5635
- if (this._businessAutomationEdgeRenderActive === true ||
5636
- this._businessAutomationConnectionDraftActive === true) {
5657
+ if (hasBusinessAutomationTransformMotionWork(this) === true) {
5637
5658
  syncBusinessAutomationEdgesForCameraNavigation(this, true);
5638
5659
  }
5639
5660
  this.pauseAnimationLoopForDirectWheelZoom?.();
@@ -6689,7 +6710,9 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
6689
6710
  (this.isPanning === true || isRecentPanInput) && this.isZooming !== true
6690
6711
  ? PASSIVE_OVERLAY_PAN_IDLE_DELAY_MS
6691
6712
  : PASSIVE_OVERLAY_IDLE_DELAY_MS;
6692
- deferPassiveOverlayForCameraMotion(this, frameStart, overlayResumeDelayMs);
6713
+ if (hasPassiveOverlayMotionWork(this) === true) {
6714
+ deferPassiveOverlayForCameraMotion(this, frameStart, overlayResumeDelayMs);
6715
+ }
6693
6716
  }
6694
6717
  const zoomEndedThisFrame = wasZoomingLastFrame && !this.isZooming;
6695
6718
  const panEndedThisFrame = wasPanningLastFrame && !this.isPanning;
@@ -7132,7 +7155,9 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
7132
7155
  window.MindMapTextOverlayV2?.syncPassiveViewTransform) {
7133
7156
  window.MindMapTextOverlayV2.syncPassiveViewTransform(this);
7134
7157
  }
7135
- syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7158
+ if (hasBusinessAutomationDraftOrTransformMotionWork(this) === true) {
7159
+ syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7160
+ }
7136
7161
  _profileSection('uaVisualOnlyMotion');
7137
7162
 
7138
7163
  const frameEnd = performance.now();
@@ -7305,7 +7330,9 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
7305
7330
  if (this.cssRenderer && typeof this.cssRenderer.renderCamera === 'function') {
7306
7331
  renderCss3dCameraForCameraNavigation(this, 'ua-stationary-visual-motion');
7307
7332
  }
7308
- syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7333
+ if (hasBusinessAutomationDraftOrTransformMotionWork(this) === true) {
7334
+ syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7335
+ }
7309
7336
 
7310
7337
  _profileSection('uaStationaryVisualMotion');
7311
7338
 
@@ -7496,7 +7523,9 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
7496
7523
  if (shouldRenderCss3dInLodForUaResidentCameraOnly === true) {
7497
7524
  renderCss3dCameraForCameraNavigation(this, 'ua-resident-visual-only-motion');
7498
7525
  }
7499
- syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7526
+ if (hasBusinessAutomationDraftOrTransformMotionWork(this) === true) {
7527
+ syncBusinessAutomationEdgesForCameraNavigation(this, false, true);
7528
+ }
7500
7529
  _profileSection('uaResidentVisualOnlyMotion');
7501
7530
 
7502
7531
  const frameEnd = performance.now();
@@ -6045,6 +6045,23 @@ window.MindMapInteractions = (function () {
6045
6045
  return wheelBuffers.get(module);
6046
6046
  }
6047
6047
 
6048
+ function getWheelTimestamp() {
6049
+ return typeof performance !== 'undefined' && typeof performance.now === 'function'
6050
+ ? performance.now()
6051
+ : Date.now();
6052
+ }
6053
+
6054
+ function markCanvasWheelActivity(module, now = 0) {
6055
+ if (!module) {
6056
+ return 0;
6057
+ }
6058
+
6059
+ const wheelNow = Number(now || 0) > 0 ? Number(now) : getWheelTimestamp();
6060
+ module._lastCanvasWheelAt = wheelNow;
6061
+ window.__mindMapLastCanvasWheelAt = wheelNow;
6062
+ return wheelNow;
6063
+ }
6064
+
6048
6065
  function scheduleWheelZoomFrame(module, wheelBuffer, callback) {
6049
6066
  if (!module || !wheelBuffer || wheelBuffer.pending === true) {
6050
6067
  return;
@@ -6325,6 +6342,7 @@ window.MindMapInteractions = (function () {
6325
6342
  return;
6326
6343
  }
6327
6344
 
6345
+ markCanvasWheelActivity(module);
6328
6346
  performCameraZoomBuffered(module, accumulatedDeltaY, clientX, clientY);
6329
6347
  });
6330
6348
  }
@@ -6709,23 +6727,19 @@ window.MindMapInteractions = (function () {
6709
6727
  return false;
6710
6728
  }
6711
6729
 
6712
- function onWheel(module, e) {
6713
- const wheelNow = typeof performance !== 'undefined' && typeof performance.now === 'function'
6714
- ? performance.now()
6715
- : Date.now();
6730
+ function onWheel(module, e, options = {}) {
6716
6731
  const wheelAnalysis = getWheelEventAnalysis(module, e);
6717
6732
  const shouldRouteWheelToZoom =
6718
6733
  wheelAnalysis.isSyntheticTrackpadPinch === true ||
6719
6734
  shouldZoomFromWheelEvent(module, e, wheelAnalysis);
6720
6735
 
6721
6736
  if (shouldRouteWheelToZoom) {
6722
- module._lastCanvasWheelAt = wheelNow;
6723
- window.__mindMapLastCanvasWheelAt = wheelNow;
6724
6737
  if (WHEEL_DEBUG) {
6725
6738
  if (!module._wheelDebug) {
6726
6739
  module._wheelDebug = { count: 0, lastLog: 0 };
6727
6740
  }
6728
6741
  module._wheelDebug.count++;
6742
+ const wheelNow = getWheelTimestamp();
6729
6743
  if (wheelNow - module._wheelDebug.lastLog > 1000) {
6730
6744
  console.log(`[Wheel Debug] Events in last second: ${module._wheelDebug.count}, deltaY: ${e.deltaY.toFixed(1)}`);
6731
6745
  module._wheelDebug.count = 0;
@@ -6743,14 +6757,13 @@ window.MindMapInteractions = (function () {
6743
6757
  return;
6744
6758
  }
6745
6759
 
6746
- if (e?.__mindMapBypassMountedEmbedOwner !== true &&
6760
+ if (options?.bypassMountedEmbedOwner !== true &&
6747
6761
  shouldLetMountedEmbedOwnEvent(module, e.target, e)) {
6748
6762
  e.stopPropagation();
6749
6763
  return;
6750
6764
  }
6751
6765
 
6752
- module._lastCanvasWheelAt = wheelNow;
6753
- window.__mindMapLastCanvasWheelAt = wheelNow;
6766
+ const wheelNow = markCanvasWheelActivity(module);
6754
6767
 
6755
6768
  if (WHEEL_DEBUG) {
6756
6769
  if (!module._wheelDebug) {
@@ -6796,21 +6809,7 @@ window.MindMapInteractions = (function () {
6796
6809
  return;
6797
6810
  }
6798
6811
 
6799
- const previousBypass = e.__mindMapBypassMountedEmbedOwner;
6800
- e.__mindMapBypassMountedEmbedOwner = true;
6801
- try {
6802
- onWheel(module, e);
6803
- } finally {
6804
- if (previousBypass === undefined) {
6805
- try {
6806
- delete e.__mindMapBypassMountedEmbedOwner;
6807
- } catch {
6808
- e.__mindMapBypassMountedEmbedOwner = undefined;
6809
- }
6810
- } else {
6811
- e.__mindMapBypassMountedEmbedOwner = previousBypass;
6812
- }
6813
- }
6812
+ onWheel(module, e, { bypassMountedEmbedOwner: true });
6814
6813
  }
6815
6814
 
6816
6815
  function shouldTreatWheelAsZoom(module, e) {
@@ -7,8 +7,8 @@
7
7
  <title>MindExec | Business Execution OS for solo builders</title>
8
8
  <meta name="description" content="MindExec is an AI business execution OS for solo builders who want to turn notes, research, assets, and repeatable execution Skills into revenue-producing work." />
9
9
  <base href="/" />
10
- <link rel="stylesheet" href="_content/MindExecution.Shared/css/app.css?v=20260620-css3d-flat-wheel-v722" />
11
- <link rel="stylesheet" href="_content/MindExecution.Shared/css/mind-map-overrides.css?v=20260620-css3d-flat-wheel-v722" />
10
+ <link rel="stylesheet" href="_content/MindExecution.Shared/css/app.css?v=20260620-css3d-flat-wheel-v724" />
11
+ <link rel="stylesheet" href="_content/MindExecution.Shared/css/mind-map-overrides.css?v=20260620-css3d-flat-wheel-v724" />
12
12
  <!-- ?�▼??Font Awesome (local) ?�▼??-->
13
13
  <link rel="stylesheet" href="_content/MindExecution.Shared/lib/font-awesome/css/all.min.css" />
14
14
  <!-- ?�▲??-->
@@ -579,7 +579,7 @@
579
579
  }
580
580
 
581
581
  const base = '_content/MindExecution.Shared/js/';
582
- const scriptVersion = '20260620-css3d-flat-wheel-v722';
582
+ const scriptVersion = '20260620-css3d-flat-wheel-v724';
583
583
  const scriptUrl = (script) => `${base}${script}?v=${scriptVersion}`;
584
584
  console.log(`[Script Loader] Shared JS version: ${scriptVersion}`);
585
585
  const criticalScripts = [
@@ -1,5 +1,5 @@
1
1
  self.assetsManifest = {
2
- "version": "2bce3prM",
2
+ "version": "e8mQ3t9N",
3
3
  "assets": [
4
4
  {
5
5
  "hash": "sha256-+CSYMcqLNTsq3VnH11jgYyOCCdxvHzL74CBmo4sCmMU=",
@@ -78,7 +78,7 @@
78
78
  "url": "_content/MindExecution.Shared/js/marked.min.js"
79
79
  },
80
80
  {
81
- "hash": "sha256-aLHD0t7zUz2Hm0YXh0mcna9uh2NOfK4GrgaGzFjKxXQ=",
81
+ "hash": "sha256-J87VtGRXcrl4n7dBqmVm7QxiKHC0aDXDdxlB9iXWK1g=",
82
82
  "url": "_content/MindExecution.Shared/js/mind-map-core.js"
83
83
  },
84
84
  {
@@ -106,7 +106,7 @@
106
106
  "url": "_content/MindExecution.Shared/js/mind-map-glow-shader.js"
107
107
  },
108
108
  {
109
- "hash": "sha256-AlbbLd6JWDnJYXVds8eReO2OYyjzsjXYFn36UYz0ZxI=",
109
+ "hash": "sha256-v66z+kBA+ob3JHBGielrNVQDU1t3t0UPpQnUoNmFKyQ=",
110
110
  "url": "_content/MindExecution.Shared/js/mind-map-interactions.js"
111
111
  },
112
112
  {
@@ -834,7 +834,7 @@
834
834
  "url": "image-manifest.json"
835
835
  },
836
836
  {
837
- "hash": "sha256-Fw2E9mGBm1TPjXCiHI5odjJdKIykBepdRCeX0L1irZ8=",
837
+ "hash": "sha256-+yTDlXxSRvTFQrnpXuZZ+lvX5ucyHM/lQvKsvVbgZao=",
838
838
  "url": "index.html"
839
839
  },
840
840
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: 2bce3prM */
1
+ /* Manifest version: e8mQ3t9N */
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