overmind-mcp 2.8.7 → 2.8.8
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/postgres-manager.mjs +1 -1
- package/scripts/postinstall.mjs +10 -20
- package/scripts/setup.mjs +14 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overmind-mcp",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
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",
|
|
@@ -24,7 +24,7 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
24
24
|
const __dirname = dirname(__filename);
|
|
25
25
|
|
|
26
26
|
const PROJECT_ROOT = join(__dirname, '..');
|
|
27
|
-
const COMPOSE_FILE = join(PROJECT_ROOT, 'docker-compose.yml');
|
|
27
|
+
const COMPOSE_FILE = join(PROJECT_ROOT, 'docker', 'docker-compose.yml');
|
|
28
28
|
|
|
29
29
|
// ═══════════════════════════════════════════════════════════════════════════════
|
|
30
30
|
// UTILS
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -262,17 +262,12 @@ function createEnvConfig() {
|
|
|
262
262
|
|
|
263
263
|
// Copier .env.example → .env si existe
|
|
264
264
|
if (existsSync(envExampleFile) && !existsSync(envFile)) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
envContent = runCommand(`type "${envExampleFile}"`, { stdio: 'pipe' });
|
|
269
|
-
} else {
|
|
270
|
-
envContent = runCommand(`cat "${envExampleFile}"`, { stdio: 'pipe' });
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
if (envContent) {
|
|
274
|
-
writeFileSync(envFile, envContent);
|
|
265
|
+
try {
|
|
266
|
+
const content = readFileSync(envExampleFile, 'utf8');
|
|
267
|
+
writeFileSync(envFile, content);
|
|
275
268
|
log(COLORS.green, '✅ .env créé (à partir de .env.example)');
|
|
269
|
+
} catch (e) {
|
|
270
|
+
log(COLORS.yellow, '⚠️ Impossible de copier .env.example: ' + e.message);
|
|
276
271
|
}
|
|
277
272
|
}
|
|
278
273
|
|
|
@@ -335,17 +330,12 @@ EMBEDDING_CACHE_SIZE=1000
|
|
|
335
330
|
|
|
336
331
|
// Copier .mcp.json.example → .mcp.json si existe
|
|
337
332
|
if (existsSync(mcpExampleFile) && !existsSync(mcpFile)) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
mcpContent = runCommand(`type "${mcpExampleFile}"`, { stdio: 'pipe' });
|
|
342
|
-
} else {
|
|
343
|
-
mcpContent = runCommand(`cat "${mcpExampleFile}"`, { stdio: 'pipe' });
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
if (mcpContent) {
|
|
347
|
-
writeFileSync(mcpFile, mcpContent);
|
|
333
|
+
try {
|
|
334
|
+
const content = readFileSync(mcpExampleFile, 'utf8');
|
|
335
|
+
writeFileSync(mcpFile, content);
|
|
348
336
|
log(COLORS.green, '✅ .mcp.json créé (à partir de .mcp.json.example)');
|
|
337
|
+
} catch (e) {
|
|
338
|
+
log(COLORS.yellow, '⚠️ Impossible de copier .mcp.json.example: ' + e.message);
|
|
349
339
|
}
|
|
350
340
|
}
|
|
351
341
|
}
|
package/scripts/setup.mjs
CHANGED
|
@@ -215,12 +215,12 @@ function setupConfigurationFiles() {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
// Copy docker-compose file
|
|
218
|
-
const dockerComposePath = join(projectRoot, 'docker-compose.
|
|
219
|
-
const destComposePath = join(INSTALL_DIR, 'docker-compose.
|
|
218
|
+
const dockerComposePath = join(projectRoot, 'docker', 'docker-compose.yml');
|
|
219
|
+
const destComposePath = join(INSTALL_DIR, 'docker-compose.yml');
|
|
220
220
|
|
|
221
221
|
if (existsSync(dockerComposePath)) {
|
|
222
222
|
copyFileSync(dockerComposePath, destComposePath);
|
|
223
|
-
console.log('✅ docker-compose.
|
|
223
|
+
console.log('✅ docker-compose.yml copié');
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// Copy .env.example if .env doesn't exist
|
|
@@ -232,12 +232,14 @@ function setupConfigurationFiles() {
|
|
|
232
232
|
console.log('✅ .env créé (à éditer avec vos credentials)');
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
// Copy
|
|
236
|
-
const dockerManagerPath = join(__dirname, '
|
|
237
|
-
const destManagerPath = join(INSTALL_DIR, '
|
|
235
|
+
// Copy postgres-manager script
|
|
236
|
+
const dockerManagerPath = join(__dirname, 'postgres-manager.mjs');
|
|
237
|
+
const destManagerPath = join(INSTALL_DIR, 'postgres-manager.mjs');
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
if (existsSync(dockerManagerPath)) {
|
|
240
|
+
copyFileSync(dockerManagerPath, destManagerPath);
|
|
241
|
+
console.log('✅ Scripts Docker installés');
|
|
242
|
+
}
|
|
241
243
|
|
|
242
244
|
return true;
|
|
243
245
|
}
|
|
@@ -245,19 +247,15 @@ function setupConfigurationFiles() {
|
|
|
245
247
|
async function startDockerServices() {
|
|
246
248
|
logSection('DÉMARRAGE SERVICES DOCKER');
|
|
247
249
|
|
|
248
|
-
const composeFile = join(INSTALL_DIR, 'docker-compose.
|
|
250
|
+
const composeFile = join(INSTALL_DIR, 'docker-compose.yml');
|
|
249
251
|
|
|
250
|
-
console.log('🚀 Démarrage
|
|
252
|
+
console.log('🚀 Démarrage PostgreSQL + pgvector...');
|
|
251
253
|
try {
|
|
252
254
|
await runCommandAsync(
|
|
253
255
|
`docker-compose -f "${composeFile}" up -d`,
|
|
254
|
-
'Démarrage
|
|
256
|
+
'Démarrage PostgreSQL'
|
|
255
257
|
);
|
|
256
|
-
console.log('✅
|
|
257
|
-
console.log('');
|
|
258
|
-
console.log('🌐 Interfaces disponibles:');
|
|
259
|
-
console.log(' 📊 RabbitMQ: http://localhost:15672');
|
|
260
|
-
console.log(' 📈 Temporal: http://localhost:8088');
|
|
258
|
+
console.log('✅ PostgreSQL + pgvector démarré');
|
|
261
259
|
return true;
|
|
262
260
|
} catch (error) {
|
|
263
261
|
console.error('❌ Erreur démarrage Docker:', error.message);
|