@danainnovations/cortex-mcp 1.0.94 → 1.0.96
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 +29 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
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="
|
|
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">✓ ' + escapeHtml(conn.account_email) + '</span>'
|
|
@@ -1509,6 +1518,24 @@ 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 nameEl = item.querySelector('.conn-name');
|
|
1526
|
+
if (nameEl) unconnected.push(nameEl.textContent);
|
|
1527
|
+
});
|
|
1528
|
+
|
|
1529
|
+
if (unconnected.length > 0) {
|
|
1530
|
+
var msg = "You have not connected:\\n\\n" +
|
|
1531
|
+
unconnected.map(function(n) { return " \\u2022 " + n; }).join("\\n") +
|
|
1532
|
+
"\\n\\nYou can connect these later from the Cortex Control Center.\\n\\nFinish setup without connecting?";
|
|
1533
|
+
if (!confirm(msg)) return;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
finishSetup();
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1512
1539
|
async function finishSetup() {
|
|
1513
1540
|
try {
|
|
1514
1541
|
await fetch('/api/complete', {
|