@trops/dash-core 0.1.78 → 0.1.80

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.
@@ -4838,6 +4838,8 @@ const layoutController$1 = {
4838
4838
 
4839
4839
  var layoutController_1 = layoutController$1;
4840
4840
 
4841
+ var mcpController$3 = {exports: {}};
4842
+
4841
4843
  /**
4842
4844
  * mcpController.js
4843
4845
  *
@@ -5166,6 +5168,30 @@ const mcpController$2 = {
5166
5168
  await mcpController$2.stopServer(win, serverName);
5167
5169
  }
5168
5170
 
5171
+ // Merge with catalog entry to pick up updated command/args
5172
+ // (saved provider config may reference a stale or archived package)
5173
+ try {
5174
+ const { catalog } = mcpController$2.getCatalog(win);
5175
+ const catalogEntry = (catalog || []).find(
5176
+ (entry) => entry.name === serverName,
5177
+ );
5178
+ if (catalogEntry?.mcpConfig) {
5179
+ const cat = catalogEntry.mcpConfig;
5180
+ if (cat.command) mcpConfig.command = cat.command;
5181
+ if (cat.args) mcpConfig.args = [...cat.args];
5182
+ if (cat.staticEnv) mcpConfig.staticEnv = cat.staticEnv;
5183
+ if (cat.tokenRefresh) mcpConfig.tokenRefresh = cat.tokenRefresh;
5184
+ if (cat.envMapping) {
5185
+ mcpConfig.envMapping = {
5186
+ ...mcpConfig.envMapping,
5187
+ ...cat.envMapping,
5188
+ };
5189
+ }
5190
+ }
5191
+ } catch (catalogErr) {
5192
+ // Non-fatal: proceed with saved config if catalog lookup fails
5193
+ }
5194
+
5169
5195
  console.log(
5170
5196
  `[mcpController] Starting server: ${serverName} (transport: ${
5171
5197
  mcpConfig.transport || "stdio"
@@ -5809,7 +5835,10 @@ const mcpController$2 = {
5809
5835
  },
5810
5836
  };
5811
5837
 
5812
- var mcpController_1 = mcpController$2;
5838
+ mcpController$3.exports = mcpController$2;
5839
+ mcpController$3.exports.refreshGoogleOAuthToken = refreshGoogleOAuthToken;
5840
+
5841
+ var mcpControllerExports = mcpController$3.exports;
5813
5842
 
5814
5843
  /**
5815
5844
  * registryController.js
@@ -7180,7 +7209,7 @@ var cliController_1 = cliController$2;
7180
7209
  */
7181
7210
 
7182
7211
  const Anthropic = require$$0$4;
7183
- const mcpController$1 = mcpController_1;
7212
+ const mcpController$1 = mcpControllerExports;
7184
7213
  const cliController$1 = cliController_1;
7185
7214
  const {
7186
7215
  LLM_STREAM_DELTA: LLM_STREAM_DELTA$1,
@@ -10473,7 +10502,7 @@ const dataController = dataController_1;
10473
10502
  const settingsController = settingsController_1;
10474
10503
  const providerController = requireProviderController();
10475
10504
  const layoutController = layoutController_1;
10476
- const mcpController = mcpController_1;
10505
+ const mcpController = mcpControllerExports;
10477
10506
  const registryController = registryController$1;
10478
10507
  const algoliaController = algoliaController_1;
10479
10508
  const openaiController = openaiController_1;