@danainnovations/cortex-mcp 1.0.123 → 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
@@ -1724,20 +1724,22 @@ function getWizardHtml() {
1724
1724
  // Server may already be closing
1725
1725
  }
1726
1726
 
1727
- // Show completion message in whatever step is currently active
1728
- var activeStep = document.querySelector('.step.active');
1729
- if (activeStep) {
1730
- activeStep.querySelector('.card').innerHTML =
1731
- '<div class="text-center">' +
1732
- '<div class="success-circle"><span class="success-check">&#10003;</span></div>' +
1733
- '<h2>Setup Complete!</h2>' +
1734
- '<p class="subtitle mt-2">You can close this tab. Restart your AI clients to see the new tools.</p>' +
1735
- '<p class="subtitle mt-1" style="opacity: 0.6;">This window will close automatically.</p>' +
1736
- '</div>';
1727
+ // Show the getting-started guide on the done step
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
+ };
1737
1742
  }
1738
-
1739
- // Auto-close the tab after a short delay
1740
- setTimeout(function() { window.close(); }, 3000);
1741
1743
  }
1742
1744
 
1743
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