@trops/dash-core 0.1.67 → 0.1.69

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.
@@ -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(