@danainnovations/cortex-mcp 1.0.94 → 1.0.95

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
@@ -586,6 +586,15 @@ function getWizardHtml() {
586
586
  .conn-status { font-size: 12px; color: #8f999f; flex: 1; text-align: right; font-weight: 400; }
587
587
  .conn-status.connected { color: #4CAF50; }
588
588
  .conn-item.company-default { cursor: default; }
589
+ .conn-item.needs-connect {
590
+ border: 1px solid rgba(0, 163, 225, 0.4);
591
+ background: rgba(0, 163, 225, 0.06);
592
+ animation: pulse-border 2s ease-in-out infinite;
593
+ }
594
+ @keyframes pulse-border {
595
+ 0%, 100% { border-color: rgba(0, 163, 225, 0.4); }
596
+ 50% { border-color: rgba(0, 163, 225, 0.7); }
597
+ }
589
598
 
590
599
  /* \u2500\u2500 Done / Success \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
591
600
  .success-circle {
@@ -821,7 +830,7 @@ function getWizardHtml() {
821
830
  <div id="conn-list" class="conn-list"></div>
822
831
  <div class="btn-row">
823
832
  <button class="btn btn-secondary" onclick="goToStep('clients')">Back</button>
824
- <button class="btn btn-primary" onclick="finishSetup()">Finish Setup</button>
833
+ <button class="btn btn-primary" onclick="confirmFinish()">Finish Setup</button>
825
834
  </div>
826
835
  </div>
827
836
  </div>
@@ -1412,7 +1421,7 @@ function getWizardHtml() {
1412
1421
  }
1413
1422
 
1414
1423
  return (
1415
- '<div class="conn-item' + (isConnected ? ' connected' : '') + '" id="conn-' + mcp.name + '">' +
1424
+ '<div class="conn-item' + (isConnected ? ' connected' : ' needs-connect') + '" id="conn-' + mcp.name + '" data-personal="true">' +
1416
1425
  '<span class="conn-name">' + escapeHtml(mcp.displayName) + '</span>' +
1417
1426
  (isConnected
1418
1427
  ? '<span class="conn-status connected">&#10003; ' + escapeHtml(conn.account_email) + '</span>'
@@ -1509,6 +1518,31 @@ function getWizardHtml() {
1509
1518
  el.innerHTML = html;
1510
1519
  }
1511
1520
 
1521
+ function confirmFinish() {
1522
+ // Check for unconnected personal MCPs
1523
+ var unconnected = [];
1524
+ document.querySelectorAll('.conn-item.needs-connect').forEach(function(item) {
1525
+ var name = item.querySelector('.conn-name');
1526
+ if (name) unconnected.push(name.textContent);
1527
+ });
1528
+
1529
+ if (unconnected.length > 0) {
1530
+ var msg = 'You haven't connected:
1531
+
1532
+ ' +
1533
+ unconnected.map(function(n) { return ' \u2022 ' + n; }).join('
1534
+ ') +
1535
+ '
1536
+
1537
+ You can connect these later from the Cortex Control Center.
1538
+
1539
+ Finish setup without connecting?';
1540
+ if (!confirm(msg)) return;
1541
+ }
1542
+
1543
+ finishSetup();
1544
+ }
1545
+
1512
1546
  async function finishSetup() {
1513
1547
  try {
1514
1548
  await fetch('/api/complete', {