@danainnovations/cortex-mcp 1.0.124 → 1.0.126
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 +50 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -92,6 +92,7 @@ function getWizardHtml() {
|
|
|
92
92
|
position: relative;
|
|
93
93
|
z-index: 1;
|
|
94
94
|
}
|
|
95
|
+
#app.wide-step { max-width: 1200px; }
|
|
95
96
|
|
|
96
97
|
/* \u2500\u2500 Persistent Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
97
98
|
.wizard-header {
|
|
@@ -338,7 +339,7 @@ function getWizardHtml() {
|
|
|
338
339
|
color: #8f999f;
|
|
339
340
|
text-transform: uppercase;
|
|
340
341
|
letter-spacing: 0.08em;
|
|
341
|
-
margin-bottom:
|
|
342
|
+
margin-bottom: 2px;
|
|
342
343
|
}
|
|
343
344
|
.mcp-section-subtitle {
|
|
344
345
|
font-size: 12px;
|
|
@@ -352,7 +353,7 @@ function getWizardHtml() {
|
|
|
352
353
|
display: grid;
|
|
353
354
|
grid-template-columns: repeat(3, 1fr);
|
|
354
355
|
gap: 6px;
|
|
355
|
-
margin-bottom:
|
|
356
|
+
margin-bottom: 4px;
|
|
356
357
|
}
|
|
357
358
|
|
|
358
359
|
.mcp-item {
|
|
@@ -484,7 +485,7 @@ function getWizardHtml() {
|
|
|
484
485
|
|
|
485
486
|
.mcp-info { flex: 1; min-width: 0; }
|
|
486
487
|
.mcp-name { font-size: 13px; font-weight: 500; color: #fff; }
|
|
487
|
-
.mcp-desc { font-size: 11px; color: #8f999f; display: block; margin-top: 2px; font-weight: 400; }
|
|
488
|
+
.mcp-desc { font-size: 11px; color: #8f999f; display: block; margin-top: 2px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
488
489
|
.mcp-badge {
|
|
489
490
|
font-size: 10px;
|
|
490
491
|
font-weight: 500;
|
|
@@ -808,7 +809,7 @@ function getWizardHtml() {
|
|
|
808
809
|
}
|
|
809
810
|
|
|
810
811
|
/* \u2500\u2500 Tablet / narrow \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
811
|
-
@media (max-width:
|
|
812
|
+
@media (max-width: 1000px) {
|
|
812
813
|
.mcp-list { grid-template-columns: repeat(2, 1fr); }
|
|
813
814
|
.conn-list { grid-template-columns: 1fr; }
|
|
814
815
|
}
|
|
@@ -903,9 +904,11 @@ function getWizardHtml() {
|
|
|
903
904
|
<div id="step-manual-setup" class="step">
|
|
904
905
|
<div class="card">
|
|
905
906
|
<div id="manual-setup-content"></div>
|
|
907
|
+
<div style="text-align:center; margin-top:8px; margin-bottom:12px;">
|
|
908
|
+
<span style="font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#FF5252; background:rgba(255,82,82,0.12); border:1px solid rgba(255,82,82,0.3); padding:3px 10px; border-radius:4px;">Must Read</span>
|
|
909
|
+
</div>
|
|
906
910
|
<div class="btn-row">
|
|
907
|
-
<button class="btn btn-
|
|
908
|
-
<button class="btn btn-primary" onclick="completeManualSetup()">Continue</button>
|
|
911
|
+
<button class="btn btn-primary btn-block" id="btn-manual-continue" disabled onclick="completeManualSetup()" style="opacity:0.4; cursor:not-allowed;">Continue (15)</button>
|
|
909
912
|
</div>
|
|
910
913
|
</div>
|
|
911
914
|
</div>
|
|
@@ -1041,6 +1044,13 @@ function getWizardHtml() {
|
|
|
1041
1044
|
|
|
1042
1045
|
// \u2500\u2500 Navigation \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
|
|
1043
1046
|
function goToStep(step) {
|
|
1047
|
+
var appEl = document.getElementById('app');
|
|
1048
|
+
if (step === 'mcps') {
|
|
1049
|
+
appEl.classList.add('wide-step');
|
|
1050
|
+
} else {
|
|
1051
|
+
appEl.classList.remove('wide-step');
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1044
1054
|
var newIndex = STEP_ORDER.indexOf(step);
|
|
1045
1055
|
var direction = newIndex >= currentStepIndex ? 'slide-forward' : 'slide-backward';
|
|
1046
1056
|
|
|
@@ -1529,7 +1539,26 @@ function getWizardHtml() {
|
|
|
1529
1539
|
'<p style="font-size:12px; color:#8f999f; margin-top:12px;">This one connection enables Cortex in CoWork, claude.ai (web), and the Claude mobile app.</p>' +
|
|
1530
1540
|
'</div>' +
|
|
1531
1541
|
|
|
1532
|
-
'<p style="font-size:12px; color:#6b7780; margin-top:16px; text-align:center;">Not on an Enterprise account?
|
|
1542
|
+
'<p style="font-size:12px; color:#6b7780; margin-top:16px; text-align:center;">Not on an Enterprise account? Wait for the timer, then click Continue \\u2014 the local setup from the previous step is all you need.</p>';
|
|
1543
|
+
|
|
1544
|
+
// Start 15-second countdown on the Continue button
|
|
1545
|
+
var continueBtn = document.getElementById('btn-manual-continue');
|
|
1546
|
+
if (continueBtn) {
|
|
1547
|
+
var countdown = 15;
|
|
1548
|
+
continueBtn.textContent = 'Continue (' + countdown + ')';
|
|
1549
|
+
var timer = setInterval(function() {
|
|
1550
|
+
countdown--;
|
|
1551
|
+
if (countdown <= 0) {
|
|
1552
|
+
clearInterval(timer);
|
|
1553
|
+
continueBtn.disabled = false;
|
|
1554
|
+
continueBtn.style.opacity = '1';
|
|
1555
|
+
continueBtn.style.cursor = 'pointer';
|
|
1556
|
+
continueBtn.textContent = 'Continue';
|
|
1557
|
+
} else {
|
|
1558
|
+
continueBtn.textContent = 'Continue (' + countdown + ')';
|
|
1559
|
+
}
|
|
1560
|
+
}, 1000);
|
|
1561
|
+
}
|
|
1533
1562
|
}
|
|
1534
1563
|
|
|
1535
1564
|
function completeManualSetup() {
|
|
@@ -1726,6 +1755,20 @@ function getWizardHtml() {
|
|
|
1726
1755
|
|
|
1727
1756
|
// Show the getting-started guide on the done step
|
|
1728
1757
|
goToStep('done');
|
|
1758
|
+
|
|
1759
|
+
// Update the Close button to actually close the window
|
|
1760
|
+
var closeBtn = document.querySelector('#step-done .btn-accent');
|
|
1761
|
+
if (closeBtn) {
|
|
1762
|
+
closeBtn.onclick = function() {
|
|
1763
|
+
window.close();
|
|
1764
|
+
// Fallback if window.close() is blocked by the browser
|
|
1765
|
+
setTimeout(function() {
|
|
1766
|
+
closeBtn.textContent = 'You can close this tab';
|
|
1767
|
+
closeBtn.disabled = true;
|
|
1768
|
+
closeBtn.style.opacity = '0.5';
|
|
1769
|
+
}, 500);
|
|
1770
|
+
};
|
|
1771
|
+
}
|
|
1729
1772
|
}
|
|
1730
1773
|
|
|
1731
1774
|
// \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
|