@danainnovations/cortex-mcp 1.0.89 → 1.0.91
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 +20 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -878,6 +878,8 @@ function getWizardHtml() {
|
|
|
878
878
|
bestbuy: '<svg viewBox="0 0 16 16"><path d="M2 3h12a1 1 0 011 1v8a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1zm3 3v4h2V6H5zm4 0v4h2V6H9z"/></svg>',
|
|
879
879
|
mailchimp: '<svg viewBox="0 0 16 16"><path d="M8 2a6 6 0 100 12A6 6 0 008 2zM6.5 10.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z"/></svg>',
|
|
880
880
|
sonance_brand: '<svg viewBox="0 0 16 16"><path d="M2 3a1 1 0 011-1h2a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V3zm5 2a1 1 0 011-1h2a1 1 0 011 1v8a1 1 0 01-1 1H8a1 1 0 01-1-1V5zm5-3a1 1 0 011-1h1a1 1 0 011 1v11a1 1 0 01-1 1h-1a1 1 0 01-1-1V2z"/></svg>',
|
|
881
|
+
concur: '<svg viewBox="0 0 16 16"><path d="M8 1a7 7 0 100 14A7 7 0 008 1zM4 8.5a.5.5 0 010-1h3.5V5a.5.5 0 011 0v3a.5.5 0 01-.5.5H4z"/></svg>',
|
|
882
|
+
databricks: '<svg viewBox="0 0 16 16"><path d="M8 1L2 4.5v2L8 10l6-3.5v-2L8 1zM2 7.5v2L8 13l6-3.5v-2L8 10 2 7.5zM2 10.5v2L8 16l6-3.5v-2L8 13l-6-2.5z"/></svg>',
|
|
881
883
|
};
|
|
882
884
|
|
|
883
885
|
// \u2500\u2500 Client Icons (inline SVG) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
@@ -900,7 +902,10 @@ function getWizardHtml() {
|
|
|
900
902
|
state.credentials = data.credentials;
|
|
901
903
|
state.availableMcps = data.availableMcps || [];
|
|
902
904
|
state.enabledMcps = data.enabledMcps || ['m365'];
|
|
903
|
-
|
|
905
|
+
if (state.enabledMcps.indexOf('sonance_brand') === -1) {
|
|
906
|
+
state.enabledMcps.push('sonance_brand');
|
|
907
|
+
}
|
|
908
|
+
state.selectedMcps = state.enabledMcps.slice();
|
|
904
909
|
state.detectedClients = data.detectedClients || [];
|
|
905
910
|
state.configuredClients = (data.config && data.config.configuredClients) || [];
|
|
906
911
|
} catch (err) {
|
|
@@ -1073,6 +1078,10 @@ function getWizardHtml() {
|
|
|
1073
1078
|
function renderMcpList(container) {
|
|
1074
1079
|
var enabledList = (state.enabledMcps && state.enabledMcps.length > 0)
|
|
1075
1080
|
? state.enabledMcps : ['m365'];
|
|
1081
|
+
// Sonance Brand is always enabled for all users
|
|
1082
|
+
if (enabledList.indexOf('sonance_brand') === -1) {
|
|
1083
|
+
enabledList.push('sonance_brand');
|
|
1084
|
+
}
|
|
1076
1085
|
var enabledMcps = state.availableMcps.filter(function(m) { return enabledList.indexOf(m.name) !== -1; });
|
|
1077
1086
|
var disabledMcps = state.availableMcps.filter(function(m) { return enabledList.indexOf(m.name) === -1; });
|
|
1078
1087
|
|
|
@@ -1138,6 +1147,9 @@ function getWizardHtml() {
|
|
|
1138
1147
|
|
|
1139
1148
|
if (userData.mcps && userData.mcps.length > 0) {
|
|
1140
1149
|
state.enabledMcps = userData.mcps.map(function(m) { return m.name; });
|
|
1150
|
+
if (state.enabledMcps.indexOf('sonance_brand') === -1) {
|
|
1151
|
+
state.enabledMcps.push('sonance_brand');
|
|
1152
|
+
}
|
|
1141
1153
|
state.selectedMcps = state.enabledMcps.slice();
|
|
1142
1154
|
}
|
|
1143
1155
|
state.connections = connData.connections || [];
|
|
@@ -1187,7 +1199,8 @@ function getWizardHtml() {
|
|
|
1187
1199
|
function renderClientItem(client) {
|
|
1188
1200
|
var detected = client.detected;
|
|
1189
1201
|
var icon = CLIENT_ICONS[client.type] || '';
|
|
1190
|
-
var
|
|
1202
|
+
var isManual = client.type === 'perplexity' || client.type === 'stdio';
|
|
1203
|
+
var alreadyConfigured = !isManual && state.configuredClients.indexOf(client.type) !== -1;
|
|
1191
1204
|
var statusText = alreadyConfigured ? 'Configured' : (detected ? 'Detected' : 'Not found');
|
|
1192
1205
|
return (
|
|
1193
1206
|
'<label class="client-item' + (detected ? '' : ' disabled') +
|
|
@@ -1206,8 +1219,11 @@ function getWizardHtml() {
|
|
|
1206
1219
|
document.getElementById('btn-configure').disabled = false;
|
|
1207
1220
|
document.getElementById('btn-configure').textContent = 'Configure';
|
|
1208
1221
|
|
|
1209
|
-
// Pre-select already-configured clients
|
|
1210
|
-
|
|
1222
|
+
// Pre-select already-configured clients (exclude manual/additional ones)
|
|
1223
|
+
var manualClientTypes = ['perplexity', 'stdio'];
|
|
1224
|
+
state.selectedClients = state.configuredClients.filter(function(c) {
|
|
1225
|
+
return manualClientTypes.indexOf(c) === -1;
|
|
1226
|
+
});
|
|
1211
1227
|
|
|
1212
1228
|
// Split into auto-configured and manual-setup clients
|
|
1213
1229
|
var autoClients = state.detectedClients.filter(function(c) {
|