overmind-mcp 2.2.1 → 2.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 +25 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overmind-mcp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"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.",
|
|
6
6
|
"type": "module",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -329,24 +329,42 @@ EMBEDDING_CACHE_SIZE=1000
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
async function startPostgreSQL() {
|
|
332
|
-
logSection('
|
|
332
|
+
logSection('VÉRIFICATION POSTGRESQL + PGVECTOR');
|
|
333
333
|
|
|
334
334
|
try {
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
// Vérifier si PostgreSQL existe déjà (n'importe quel container postgres)
|
|
336
|
+
const anyPostgres = runCommand(
|
|
337
|
+
'docker ps --filter "name=postgres" --filter "publish=5432" --format "{{.Names}}"',
|
|
337
338
|
{ stdio: 'pipe' }
|
|
338
339
|
);
|
|
339
340
|
|
|
340
|
-
if (
|
|
341
|
-
log(COLORS.green, '✅ PostgreSQL
|
|
341
|
+
if (anyPostgres) {
|
|
342
|
+
log(COLORS.green, '✅ PostgreSQL déjà actif sur le port 5432');
|
|
343
|
+
log(COLORS.cyan, ' Container: ' + anyPostgres.trim());
|
|
344
|
+
log(COLORS.yellow, ' 💡 Utilisation de PostgreSQL existant (pas de création OverMind)');
|
|
342
345
|
return true;
|
|
343
346
|
}
|
|
344
347
|
|
|
345
|
-
|
|
348
|
+
// Vérifier si le container OverMind existe déjà
|
|
349
|
+
const overmindContainer = runCommand(
|
|
350
|
+
'docker ps -a --filter "name=overmind-postgres-pgvector" --format "{{.Names}}"',
|
|
351
|
+
{ stdio: 'pipe' }
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
if (overmindContainer) {
|
|
355
|
+
log(COLORS.yellow, '⚠️ Container OverMind existe mais non démarré');
|
|
356
|
+
await runCommandAsync(
|
|
357
|
+
'docker start overmind-postgres-pgvector',
|
|
358
|
+
'Démarrage container OverMind existant'
|
|
359
|
+
);
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
log(COLORS.yellow, '🚀 Création et démarrage PostgreSQL + pgvector...');
|
|
346
364
|
|
|
347
365
|
await runCommandAsync(
|
|
348
366
|
'docker run -d --name overmind-postgres-pgvector -p 5432:5432 -e POSTGRES_PASSWORD=overmind_temp_password_change_me -e POSTGRES_USER=postgres -v overmind_postgres_data:/var/lib/postgresql/data --restart unless-stopped pgvector/pgvector:pg16',
|
|
349
|
-
'
|
|
367
|
+
'Création PostgreSQL OverMind'
|
|
350
368
|
);
|
|
351
369
|
|
|
352
370
|
log(COLORS.cyan, '\n⏳ Attente démarrage PostgreSQL (20s)...');
|