@trops/dash-core 0.1.68 → 0.1.70
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/electron/index.js +19 -0
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +1427 -975
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1427 -975
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcpServerCatalog.json +11 -9
- package/package.json +1 -1
package/dist/electron/index.js
CHANGED
|
@@ -5524,6 +5524,25 @@ const mcpController$2 = {
|
|
|
5524
5524
|
|
|
5525
5525
|
const env = cleanEnvForChildProcess();
|
|
5526
5526
|
|
|
5527
|
+
// Pre-auth setup: copy credential files to expected locations
|
|
5528
|
+
if (authCommand.setup?.copyCredential) {
|
|
5529
|
+
const { from, to } = authCommand.setup.copyCredential;
|
|
5530
|
+
const sourcePath = credentials?.[from];
|
|
5531
|
+
if (sourcePath) {
|
|
5532
|
+
const destPath = to.replace(/^~/, process.env.HOME || "");
|
|
5533
|
+
const destDir = require$$1$1.dirname(destPath);
|
|
5534
|
+
try {
|
|
5535
|
+
fs$5.mkdirSync(destDir, { recursive: true });
|
|
5536
|
+
fs$5.copyFileSync(sourcePath, destPath);
|
|
5537
|
+
} catch (err) {
|
|
5538
|
+
return {
|
|
5539
|
+
error: true,
|
|
5540
|
+
message: `Failed to copy OAuth keys: ${err.message}`,
|
|
5541
|
+
};
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
|
|
5527
5546
|
// Inject credentials as env vars using the same envMapping as startServer
|
|
5528
5547
|
if (mcpConfig?.envMapping && credentials) {
|
|
5529
5548
|
Object.entries(mcpConfig.envMapping).forEach(
|