olly-molly 0.3.17 → 0.3.19

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.
Files changed (2) hide show
  1. package/bin/cli.js +18 -0
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -492,6 +492,15 @@ function backupUserData(config) {
492
492
  fs.cpSync(config.CUSTOM_PROFILES_DIR, profilesBackupDir, { recursive: true });
493
493
  }
494
494
 
495
+ // Backup user config files (ecosystem.config.js, .env, etc.)
496
+ const userConfigFiles = ['ecosystem.config.js', '.env'];
497
+ for (const file of userConfigFiles) {
498
+ const filePath = path.join(config.APP_DIR, file);
499
+ if (fs.existsSync(filePath)) {
500
+ fs.copyFileSync(filePath, path.join(backupDir, file));
501
+ }
502
+ }
503
+
495
504
  return backupDir;
496
505
  }
497
506
 
@@ -518,6 +527,15 @@ function restoreUserData(backupDir, config) {
518
527
  }
519
528
  }
520
529
 
530
+ // Restore user config files (ecosystem.config.js, .env, etc.)
531
+ const userConfigFiles = ['ecosystem.config.js', '.env'];
532
+ for (const file of userConfigFiles) {
533
+ const backupFile = path.join(backupDir, file);
534
+ if (fs.existsSync(backupFile)) {
535
+ fs.copyFileSync(backupFile, path.join(config.APP_DIR, file));
536
+ }
537
+ }
538
+
521
539
  // Clean up backup
522
540
  fs.rmSync(backupDir, { recursive: true, force: true });
523
541
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "olly-molly",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Your AI Development Team, Running Locally - Manage AI agents (PM, Frontend, Backend, QA) from a beautiful kanban board",
5
5
  "keywords": [
6
6
  "ai",