@danainnovations/cortex-mcp 1.0.82 → 1.0.84
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 +57 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -665,6 +665,27 @@ function getWizardHtml() {
|
|
|
665
665
|
.text-muted { color: #6b7780; }
|
|
666
666
|
.hidden { display: none !important; }
|
|
667
667
|
|
|
668
|
+
/* \u2500\u2500 Client Section Divider \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
669
|
+
.client-section-divider {
|
|
670
|
+
margin: 24px 0 16px;
|
|
671
|
+
padding-top: 20px;
|
|
672
|
+
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
673
|
+
}
|
|
674
|
+
.client-section-title {
|
|
675
|
+
font-size: 11px;
|
|
676
|
+
font-weight: 500;
|
|
677
|
+
color: #8f999f;
|
|
678
|
+
text-transform: uppercase;
|
|
679
|
+
letter-spacing: 0.08em;
|
|
680
|
+
margin-bottom: 4px;
|
|
681
|
+
}
|
|
682
|
+
.client-section-subtitle {
|
|
683
|
+
font-size: 12px;
|
|
684
|
+
color: #6b7780;
|
|
685
|
+
font-weight: 400;
|
|
686
|
+
margin-bottom: 12px;
|
|
687
|
+
}
|
|
688
|
+
|
|
668
689
|
/* \u2500\u2500 Stdio Snippet \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
669
690
|
.stdio-snippet {
|
|
670
691
|
background: rgba(0, 0, 0, 0.3);
|
|
@@ -1138,6 +1159,22 @@ function getWizardHtml() {
|
|
|
1138
1159
|
}
|
|
1139
1160
|
|
|
1140
1161
|
// \u2500\u2500 Step 4: Configure Clients \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
1162
|
+
function renderClientItem(client) {
|
|
1163
|
+
var detected = client.detected;
|
|
1164
|
+
var icon = CLIENT_ICONS[client.type] || '';
|
|
1165
|
+
var alreadyConfigured = state.configuredClients.indexOf(client.type) !== -1;
|
|
1166
|
+
var statusText = alreadyConfigured ? 'Configured' : (detected ? 'Detected' : 'Not found');
|
|
1167
|
+
return (
|
|
1168
|
+
'<label class="client-item' + (detected ? '' : ' disabled') +
|
|
1169
|
+
(alreadyConfigured ? ' checked already-configured' : '') + '" data-client="' + client.type + '">' +
|
|
1170
|
+
(icon ? '<div class="client-icon">' + icon + '</div>' : '') +
|
|
1171
|
+
'<div class="mcp-check"><span class="mcp-check-icon">✓</span></div>' +
|
|
1172
|
+
'<span class="client-name">' + escapeHtml(client.name) + '</span>' +
|
|
1173
|
+
'<span class="client-status">' + statusText + '</span>' +
|
|
1174
|
+
'</label>'
|
|
1175
|
+
);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1141
1178
|
function renderClients() {
|
|
1142
1179
|
var el = document.getElementById('client-list');
|
|
1143
1180
|
document.getElementById('client-result').className = 'hidden';
|
|
@@ -1147,21 +1184,25 @@ function getWizardHtml() {
|
|
|
1147
1184
|
// Pre-select already-configured clients
|
|
1148
1185
|
state.selectedClients = state.configuredClients.slice();
|
|
1149
1186
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
return
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
'</
|
|
1163
|
-
|
|
1164
|
-
|
|
1187
|
+
// Split into auto-configured and manual-setup clients
|
|
1188
|
+
var autoClients = state.detectedClients.filter(function(c) {
|
|
1189
|
+
return c.type !== 'perplexity' && c.type !== 'stdio';
|
|
1190
|
+
});
|
|
1191
|
+
var manualClients = state.detectedClients.filter(function(c) {
|
|
1192
|
+
return c.type === 'perplexity' || c.type === 'stdio';
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1195
|
+
var html = autoClients.map(renderClientItem).join('');
|
|
1196
|
+
|
|
1197
|
+
if (manualClients.length > 0) {
|
|
1198
|
+
html += '<div class="client-section-divider">' +
|
|
1199
|
+
'<div class="client-section-title">Additional Clients</div>' +
|
|
1200
|
+
'<div class="client-section-subtitle">These require a few extra manual steps after setup</div>' +
|
|
1201
|
+
'</div>';
|
|
1202
|
+
html += manualClients.map(renderClientItem).join('');
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
el.innerHTML = html;
|
|
1165
1206
|
|
|
1166
1207
|
el.querySelectorAll('.client-item:not(.disabled):not(.already-configured)').forEach(function(item) {
|
|
1167
1208
|
item.addEventListener('click', function(e) {
|
|
@@ -1546,7 +1587,7 @@ function detectClients() {
|
|
|
1546
1587
|
});
|
|
1547
1588
|
clients.push({
|
|
1548
1589
|
type: "stdio",
|
|
1549
|
-
name: "OpenClaw
|
|
1590
|
+
name: "OpenClaw",
|
|
1550
1591
|
configPath: null,
|
|
1551
1592
|
detected: true
|
|
1552
1593
|
});
|