overmind-mcp 3.2.1 → 3.2.2
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/package.json +1 -1
- package/scripts/postinstall.mjs +16 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overmind-mcp",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Orchestrateur universel agents IA multi-modeles via MCP. Inclut le protocole 'Custom-Nickname' pour identifier vos agents avec des surnoms originaux (The Chaos Prophet, Shadow Sniper, etc.), l'isolation mémoire (Private Memory Context) et le support pour QwenCli et Nous Hermes. Installation automatique des dépendances Docker (PostgreSQL, pgvector) inclus.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -27,6 +27,12 @@ const INSTALL_DIR = join(
|
|
|
27
27
|
'.overmind'
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
31
|
+
// GLOBAL PASSWORD — One single source of truth
|
|
32
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
33
|
+
|
|
34
|
+
const PG_PASSWORD = randomBytes(18).toString('base64url');
|
|
35
|
+
|
|
30
36
|
// ═══════════════════════════════════════════════════════════════════════════════
|
|
31
37
|
// COLORS
|
|
32
38
|
// ═════════════════════════════════════════════════════════════════════════════
|
|
@@ -198,7 +204,7 @@ async function setupPostgreSQL() {
|
|
|
198
204
|
'docker', 'run', '-d',
|
|
199
205
|
'--name', 'overmind-postgres-pgvector',
|
|
200
206
|
'-p', '5432:5432',
|
|
201
|
-
'-e',
|
|
207
|
+
'-e', `POSTGRES_PASSWORD=${PG_PASSWORD}`,
|
|
202
208
|
'-e', 'POSTGRES_DB=overmind_memory',
|
|
203
209
|
'-e', 'POSTGRES_USER=postgres',
|
|
204
210
|
'-v', 'overmind_postgres_data:/var/lib/postgresql/data',
|
|
@@ -309,8 +315,8 @@ function createEnvConfig() {
|
|
|
309
315
|
|
|
310
316
|
// Créer .env minimal si n'existe pas
|
|
311
317
|
if (!existsSync(envFile)) {
|
|
312
|
-
//
|
|
313
|
-
const randomPassword =
|
|
318
|
+
// Use global password (shared with Docker)
|
|
319
|
+
const randomPassword = PG_PASSWORD;
|
|
314
320
|
|
|
315
321
|
const envContent = `# OverMind-MCP Environment Configuration (v3.1)
|
|
316
322
|
# Généré automatiquement par npm install
|
|
@@ -355,7 +361,7 @@ POSTGRES_HOST=localhost
|
|
|
355
361
|
POSTGRES_PORT=5432
|
|
356
362
|
POSTGRES_DATABASE=overmind_memory
|
|
357
363
|
POSTGRES_USER=postgres
|
|
358
|
-
POSTGRES_PASSWORD
|
|
364
|
+
POSTGRES_PASSWORD=${PG_PASSWORD}
|
|
359
365
|
|
|
360
366
|
# Additional PostgreSQL Settings
|
|
361
367
|
POSTGRES_SSL=false
|
|
@@ -423,7 +429,7 @@ async function startPostgreSQL() {
|
|
|
423
429
|
log(COLORS.yellow, '🚀 Création et démarrage PostgreSQL + pgvector...');
|
|
424
430
|
|
|
425
431
|
await runCommandAsync(
|
|
426
|
-
|
|
432
|
+
`docker run -d --name overmind-postgres-pgvector -p 5432:5432 -e POSTGRES_PASSWORD=${PG_PASSWORD} -e POSTGRES_DB=overmind_memory -e POSTGRES_USER=postgres -v overmind_postgres_data:/var/lib/postgresql/data --restart unless-stopped pgvector/pgvector:pg16`,
|
|
427
433
|
'Création PostgreSQL OverMind'
|
|
428
434
|
);
|
|
429
435
|
|
|
@@ -475,7 +481,7 @@ function showSummary() {
|
|
|
475
481
|
console.log('│ ' + COLORS.yellow + 'Détails de connexion:' + COLORS.reset + ' │');
|
|
476
482
|
console.log('│ • Host: localhost:5432' + ' │');
|
|
477
483
|
console.log('│ • User: postgres' + ' │');
|
|
478
|
-
console.log('│ • Password:
|
|
484
|
+
console.log('│ • Password: ' + PG_PASSWORD.substring(0, 8) + '... (stocké dans ~/.overmind/.env)');
|
|
479
485
|
console.log('│ • Extension: vector (pgvector)' + ' │');
|
|
480
486
|
console.log('│ • Database: overmind_memory' + ' │');
|
|
481
487
|
console.log('└─────────────────────────────────────────────────────────────────┘');
|
|
@@ -548,12 +554,12 @@ async function main() {
|
|
|
548
554
|
return;
|
|
549
555
|
}
|
|
550
556
|
|
|
551
|
-
// Step 2: Setup
|
|
552
|
-
await setupPostgreSQL();
|
|
553
|
-
|
|
554
|
-
// Step 3: Setup .env et .mcp.json
|
|
557
|
+
// Step 2: Setup .env and .mcp.json (BEFORE Docker so password is shared)
|
|
555
558
|
createEnvConfig();
|
|
556
559
|
|
|
560
|
+
// Step 3: Setup PostgreSQL (uses PG_PASSWORD)
|
|
561
|
+
await setupPostgreSQL();
|
|
562
|
+
|
|
557
563
|
// Step 4: Download config files
|
|
558
564
|
const downloaded = await setupConfigFiles();
|
|
559
565
|
|