@mindexec/cli 0.2.300 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexec/cli",
3
- "version": "0.2.300",
3
+ "version": "0.2.301",
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 = '20260621-external-media-cors-v759';
8
+ const MINDMAP_CORE_BUILD_ID = '20260621-css-image-single-surface-v760';
9
9
  const CanvasPhase = Object.freeze({
10
10
  Booting: 'booting',
11
11
  BoardFileLoading: 'board-file-loading',
@@ -3707,6 +3707,68 @@
3707
3707
  return;
3708
3708
  }
3709
3709
 
3710
+ const releaseReadyCssImageBodyBridge = () => {
3711
+ if (contentTypeLower !== 'image' || !nodeModel || !_module?.nodeObjectsById) {
3712
+ return false;
3713
+ }
3714
+
3715
+ const nodeId = String(nodeModel?.id ?? nodeModel?.Id ?? '').trim();
3716
+ if (!nodeId) {
3717
+ return false;
3718
+ }
3719
+
3720
+ const entry = _module.nodeObjectsById.get(nodeId);
3721
+ const element = entry?.cssObject?.element || null;
3722
+ const cssVisible = entry?.currentType === 'CSS' &&
3723
+ entry?.cssObject?.visible === true &&
3724
+ !!element &&
3725
+ element.style.display !== 'none' &&
3726
+ element.style.visibility !== 'hidden' &&
3727
+ (!element.isConnected || element.isConnected === true);
3728
+ const imageReady =
3729
+ String(mediaEl.dataset?.mediaReady || '').trim() === '1' ||
3730
+ (mediaEl.complete === true &&
3731
+ Number(mediaEl.naturalWidth || 0) > 0 &&
3732
+ Number(mediaEl.naturalHeight || 0) > 0);
3733
+
3734
+ if (!cssVisible || !imageReady) {
3735
+ return false;
3736
+ }
3737
+
3738
+ nodeModel._showImageBodyInCssMode = false;
3739
+ if (entry) {
3740
+ entry._fullResCssImageRevealLatched = true;
3741
+ entry._fullResCssImageReadyVisibleSince =
3742
+ (typeof performance !== 'undefined' && typeof performance.now === 'function')
3743
+ ? performance.now()
3744
+ : Date.now();
3745
+ }
3746
+
3747
+ const body = entry?.bodyMesh || entry?.glObject?.getObjectByName?.('body') || null;
3748
+ const tail = entry?.tailMesh || entry?.glObject?.getObjectByName?.('tail') || null;
3749
+ if (body) {
3750
+ body.visible = false;
3751
+ }
3752
+ if (tail) {
3753
+ tail.visible = false;
3754
+ }
3755
+ ['outline', 'imageMidGlow', 'imageMidEdge', 'glow'].forEach(name => {
3756
+ const decoration = entry?.glObject?.getObjectByName?.(name);
3757
+ if (!decoration) return;
3758
+ decoration.visible = false;
3759
+ if (decoration.material) {
3760
+ decoration.material.opacity = 0;
3761
+ decoration.material.needsUpdate = true;
3762
+ }
3763
+ });
3764
+ entry?.glObject?.children?.forEach?.(child => {
3765
+ if (child?.userData?.isResizeHandle) {
3766
+ child.visible = false;
3767
+ }
3768
+ });
3769
+ return true;
3770
+ };
3771
+
3710
3772
  const clearVideoPlaybackError = () => {
3711
3773
  if (contentTypeLower !== 'video') {
3712
3774
  return;
@@ -3724,6 +3786,14 @@
3724
3786
  if (contentTypeLower === 'image') {
3725
3787
  mediaEl.dataset.mediaReady = '1';
3726
3788
  mediaEl.style.opacity = '1';
3789
+ const releaseBridge = () => {
3790
+ releaseReadyCssImageBodyBridge();
3791
+ };
3792
+ if (typeof requestAnimationFrame === 'function') {
3793
+ requestAnimationFrame(releaseBridge);
3794
+ } else {
3795
+ setTimeout(releaseBridge, 0);
3796
+ }
3727
3797
  }
3728
3798
  clearVideoPlaybackError();
3729
3799
  setAssetRefreshState(nodeModel, '', '');
@@ -51,7 +51,7 @@
51
51
  // ▲▲▲ [Usage] ▲▲▲
52
52
 
53
53
  // Procedural line rendering settings
54
- const LOD_RENDERER_BUILD_ID = '20260621-external-media-cors-v759';
54
+ const LOD_RENDERER_BUILD_ID = '20260621-css-image-single-surface-v760';
55
55
  const DirtyKind = Object.freeze({
56
56
  ResidentFullRebuild: 'resident-full-rebuild',
57
57
  ResidentPatch: 'resident-patch',
@@ -3856,27 +3856,10 @@
3856
3856
  return true;
3857
3857
  }
3858
3858
 
3859
- // Once the CSS image is visibly ready, keep the node on the CSS path
3860
- // for the rest of the current visible session. Re-enabling the GL
3861
- // bridge because of transient handoff or dirty flags causes the
3862
- // image to flicker while entering NEAR/NORMAL.
3863
- if (entry._fullResCssImageRevealLatched === true) {
3864
- return false;
3865
- }
3866
-
3867
3859
  const now = typeof performance !== 'undefined' && typeof performance.now === 'function'
3868
3860
  ? performance.now()
3869
3861
  : Date.now();
3870
- const readyVisibleSince = Number(entry._fullResCssImageReadyVisibleSince || 0);
3871
- if (!(readyVisibleSince > 0)) {
3872
- entry._fullResCssImageReadyVisibleSince = now;
3873
- return true;
3874
- }
3875
-
3876
- if (now - readyVisibleSince < this._fullResCssImageBridgeSettleMs) {
3877
- return true;
3878
- }
3879
-
3862
+ entry._fullResCssImageReadyVisibleSince = Number(entry._fullResCssImageReadyVisibleSince || 0) || now;
3880
3863
  entry._fullResCssImageRevealLatched = true;
3881
3864
  return false;
3882
3865
  }
@@ -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=20260621-external-media-cors-v759" />
11
- <link rel="stylesheet" href="_content/MindExecution.Shared/css/mind-map-overrides.css?v=20260621-external-media-cors-v759" />
10
+ <link rel="stylesheet" href="_content/MindExecution.Shared/css/app.css?v=20260621-css-image-single-surface-v760" />
11
+ <link rel="stylesheet" href="_content/MindExecution.Shared/css/mind-map-overrides.css?v=20260621-css-image-single-surface-v760" />
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 = '20260621-external-media-cors-v759';
582
+ const scriptVersion = '20260621-css-image-single-surface-v760';
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": "3vFdzHRr",
2
+ "version": "A7baj8vz",
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-VwDE/TMkgow0Fj+7kXnMMIpEK/2bw1NHa4Ydd/2KFkk=",
81
+ "hash": "sha256-b2u6cSJGIXDsWA8V4jbeQJGX+azC197EMCEBJzyJwN0=",
82
82
  "url": "_content/MindExecution.Shared/js/mind-map-core.js"
83
83
  },
84
84
  {
@@ -86,7 +86,7 @@
86
86
  "url": "_content/MindExecution.Shared/js/mind-map-core.js.backup"
87
87
  },
88
88
  {
89
- "hash": "sha256-X44C2JtSIlacgztF74ejjqSJ+jhSegt5+pdP4ypuKVs=",
89
+ "hash": "sha256-ET3Xg9eNPJjBlAfUFDjw1r6BtKYdEqkoxyjAo+z3rEE=",
90
90
  "url": "_content/MindExecution.Shared/js/mind-map-css3d-manager.js"
91
91
  },
92
92
  {
@@ -114,7 +114,7 @@
114
114
  "url": "_content/MindExecution.Shared/js/mind-map-lod-plan-worker.js"
115
115
  },
116
116
  {
117
- "hash": "sha256-99ihYUDUbvpmxdv3ut8ph79bRGjIVBxUySxPZTvmEi4=",
117
+ "hash": "sha256-4Eptn15wU04ThuQtEErazlaA5Izn+rdSf7VgdQsmBYA=",
118
118
  "url": "_content/MindExecution.Shared/js/mind-map-lod-renderer.js"
119
119
  },
120
120
  {
@@ -834,7 +834,7 @@
834
834
  "url": "image-manifest.json"
835
835
  },
836
836
  {
837
- "hash": "sha256-NVtnr6OxLupQQ9HQQzBzT/nhATEhZOBasRTakBSZcDQ=",
837
+ "hash": "sha256-Mx0LK7PCZgmIE/7IpOtqDjQWG6xfhcEJirhlGrrkwsQ=",
838
838
  "url": "index.html"
839
839
  },
840
840
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: 3vFdzHRr */
1
+ /* Manifest version: A7baj8vz */
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