@danainnovations/cortex-mcp 1.0.117 → 1.0.118
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 +2 -45
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1440,51 +1440,8 @@ function getWizardHtml() {
|
|
|
1440
1440
|
|
|
1441
1441
|
state.configuredClients = data.results.filter(function(r) { return r.success; }).map(function(r) { return r.client; });
|
|
1442
1442
|
|
|
1443
|
-
//
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
// Update per-client status inline
|
|
1447
|
-
data.results.forEach(function(r) {
|
|
1448
|
-
var item = document.querySelector('[data-client="' + r.client + '"]');
|
|
1449
|
-
if (item) {
|
|
1450
|
-
var statusSpan = item.querySelector('.client-status');
|
|
1451
|
-
if (statusSpan) {
|
|
1452
|
-
if (r.success) {
|
|
1453
|
-
statusSpan.innerHTML = '<span style="color: #4CAF50;">✓ Done</span>';
|
|
1454
|
-
} else {
|
|
1455
|
-
statusSpan.innerHTML = '<span style="color: #EF5350;">✗ Failed</span>';
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
});
|
|
1460
|
-
state.manualQueue = data.results.filter(function(r) {
|
|
1461
|
-
return r.success && manualClientTypes.indexOf(r.client) !== -1;
|
|
1462
|
-
});
|
|
1463
|
-
state.currentManualIndex = 0;
|
|
1464
|
-
|
|
1465
|
-
var resultEl = document.getElementById('client-result');
|
|
1466
|
-
resultEl.className = '';
|
|
1467
|
-
resultEl.innerHTML = data.results.map(function(r) {
|
|
1468
|
-
var isManualClient = manualClientTypes.indexOf(r.client) !== -1;
|
|
1469
|
-
var html = '<div class="status ' + (r.success ? 'status-success' : 'status-error') + '">' +
|
|
1470
|
-
'<span>' + (r.success ? '✓' : '✗') + '</span>' +
|
|
1471
|
-
'<span>' + (r.success ? escapeHtml(isManualClient ? (MANUAL_CLIENT_NAMES[r.client] || r.client) + ' \u2014 setup instructions on next page' : (r.message || 'Configured')) : escapeHtml(r.client) + ': ' + (r.error || 'Failed')) + '</span>' +
|
|
1472
|
-
'</div>';
|
|
1473
|
-
return html;
|
|
1474
|
-
}).join('');
|
|
1475
|
-
|
|
1476
|
-
// Add verify button for debugging config issues
|
|
1477
|
-
var verifyHtml = '<div style="margin-top: 12px; text-align: center;">' +
|
|
1478
|
-
'<button onclick="verifyConfig()" style="background: transparent; border: 1px solid #555; color: #aaa; padding: 6px 16px; border-radius: 6px; cursor: pointer; font-size: 12px;">Verify Config File</button>' +
|
|
1479
|
-
'<pre id="verify-result" style="display:none; margin-top: 8px; padding: 10px; background: #1a1a2e; border-radius: 6px; font-size: 11px; text-align: left; max-height: 200px; overflow: auto; color: #ccc;"></pre>' +
|
|
1480
|
-
'</div>';
|
|
1481
|
-
resultEl.innerHTML += verifyHtml;
|
|
1482
|
-
|
|
1483
|
-
btn.textContent = 'Continue';
|
|
1484
|
-
btn.disabled = false;
|
|
1485
|
-
btn.onclick = function() {
|
|
1486
|
-
goToStep('manual-setup');
|
|
1487
|
-
};
|
|
1443
|
+
// Auto-advance to the next step
|
|
1444
|
+
goToStep('manual-setup');
|
|
1488
1445
|
} catch (err) {
|
|
1489
1446
|
btn.disabled = false;
|
|
1490
1447
|
btn.textContent = 'Retry';
|