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 +22 -0
- package/dist/server/version.d.ts +1 -1
- package/dist/server/version.js +1 -1
- package/package.json +1 -1
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
|
// ═══════════════════════════════════════════════════════════════
|
package/dist/server/version.d.ts
CHANGED
package/dist/server/version.js
CHANGED
package/package.json
CHANGED