create-merlin-brain 2.1.1 → 2.1.3

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/bin/install.cjs CHANGED
@@ -453,6 +453,28 @@ function cleanupLegacy() {
453
453
  }
454
454
  }
455
455
 
456
+ // ═══════════════════════════════════════════════════════════════
457
+ // KILL OLD MCP PROCESSES (stale merlin-mcp from before package merge)
458
+ // ═══════════════════════════════════════════════════════════════
459
+ try {
460
+ const { execSync } = require('child_process');
461
+ execSync('pkill -f "merlin-mcp" 2>/dev/null || true', { stdio: 'ignore' });
462
+ execSync('pkill -f "create-merlin-brain.*serve" 2>/dev/null || true', { stdio: 'ignore' });
463
+ cleaned.push('Killed stale MCP processes');
464
+ } catch (e) { /* ignore - pkill may not exist on all systems */ }
465
+
466
+ // ═══════════════════════════════════════════════════════════════
467
+ // RESET MERLIN CONFIG (clear saved repo selection for fresh auto-detect)
468
+ // ═══════════════════════════════════════════════════════════════
469
+ const merlinConfigPath = path.join(os.homedir(), '.merlin', 'config.json');
470
+ if (fs.existsSync(merlinConfigPath)) {
471
+ try {
472
+ // Reset to empty object so Merlin auto-detects from git remote
473
+ fs.writeFileSync(merlinConfigPath, '{}');
474
+ cleaned.push('~/.merlin/config.json (reset for auto-detect)');
475
+ } catch (e) { /* ignore */ }
476
+ }
477
+
456
478
  // ═══════════════════════════════════════════════════════════════
457
479
  // PATTERN-BASED CLEANUP IN AGENTS DIR
458
480
  // ═══════════════════════════════════════════════════════════════
@@ -2,5 +2,5 @@
2
2
  * Merlin Brain Version
3
3
  * Single source of truth for version number
4
4
  */
5
- export declare const VERSION = "2.1.1";
5
+ export declare const VERSION = "2.1.3";
6
6
  //# sourceMappingURL=version.d.ts.map
@@ -2,5 +2,5 @@
2
2
  * Merlin Brain Version
3
3
  * Single source of truth for version number
4
4
  */
5
- export const VERSION = '2.1.1';
5
+ export const VERSION = '2.1.3';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-merlin-brain",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Merlin - The Ultimate AI Brain for Claude Code. Installs workflows, agents, and Sights MCP server.",
5
5
  "type": "module",
6
6
  "main": "./dist/server/index.js",