@danainnovations/cortex-mcp 1.0.124 → 1.0.125

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/dist/cli.js CHANGED
@@ -1726,6 +1726,20 @@ function getWizardHtml() {
1726
1726
 
1727
1727
  // Show the getting-started guide on the done step
1728
1728
  goToStep('done');
1729
+
1730
+ // Update the Close button to actually close the window
1731
+ var closeBtn = document.querySelector('#step-done .btn-accent');
1732
+ if (closeBtn) {
1733
+ closeBtn.onclick = function() {
1734
+ window.close();
1735
+ // Fallback if window.close() is blocked by the browser
1736
+ setTimeout(function() {
1737
+ closeBtn.textContent = 'You can close this tab';
1738
+ closeBtn.disabled = true;
1739
+ closeBtn.style.opacity = '0.5';
1740
+ }, 500);
1741
+ };
1742
+ }
1729
1743
  }
1730
1744
 
1731
1745
  // \u2500\u2500 Helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500