overmind-mcp 2.4.0 → 2.4.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/README.md +80 -107
- package/assets/overmind_mcp_pro_banner_v3.png +0 -0
- package/dist/bin/cli.js +7 -438
- package/dist/bin/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/config.d.ts +1 -31
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +27 -19
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/sessions.d.ts +2 -3
- package/dist/lib/sessions.d.ts.map +1 -1
- package/dist/lib/sessions.js +25 -94
- package/dist/lib/sessions.js.map +1 -1
- package/dist/memory/MemoryFactory.d.ts +1 -15
- package/dist/memory/MemoryFactory.d.ts.map +1 -1
- package/dist/memory/MemoryFactory.js +3 -53
- package/dist/memory/MemoryFactory.js.map +1 -1
- package/dist/memory/PostgresMemoryProvider.d.ts +0 -7
- package/dist/memory/PostgresMemoryProvider.d.ts.map +1 -1
- package/dist/memory/PostgresMemoryProvider.js +105 -180
- package/dist/memory/PostgresMemoryProvider.js.map +1 -1
- package/dist/server.d.ts +0 -41
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +26 -152
- package/dist/server.js.map +1 -1
- package/dist/services/AgentManager.d.ts.map +1 -1
- package/dist/services/AgentManager.js +11 -67
- package/dist/services/AgentManager.js.map +1 -1
- package/dist/services/ClaudeRunner.d.ts +0 -8
- package/dist/services/ClaudeRunner.d.ts.map +1 -1
- package/dist/services/ClaudeRunner.js +213 -514
- package/dist/services/ClaudeRunner.js.map +1 -1
- package/dist/services/ClineRunner.d.ts +0 -7
- package/dist/services/ClineRunner.d.ts.map +1 -1
- package/dist/services/ClineRunner.js +11 -80
- package/dist/services/ClineRunner.js.map +1 -1
- package/dist/services/GeminiRunner.d.ts +0 -6
- package/dist/services/GeminiRunner.d.ts.map +1 -1
- package/dist/services/GeminiRunner.js +58 -285
- package/dist/services/GeminiRunner.js.map +1 -1
- package/dist/services/KiloRunner.d.ts +0 -12
- package/dist/services/KiloRunner.d.ts.map +1 -1
- package/dist/services/KiloRunner.js +57 -441
- package/dist/services/KiloRunner.js.map +1 -1
- package/dist/services/OpenClawRunner.d.ts +0 -7
- package/dist/services/OpenClawRunner.d.ts.map +1 -1
- package/dist/services/OpenClawRunner.js +11 -79
- package/dist/services/OpenClawRunner.js.map +1 -1
- package/dist/services/OpenCodeRunner.d.ts +0 -7
- package/dist/services/OpenCodeRunner.d.ts.map +1 -1
- package/dist/services/OpenCodeRunner.js +11 -79
- package/dist/services/OpenCodeRunner.js.map +1 -1
- package/dist/services/QwenRunner.d.ts +19 -0
- package/dist/services/QwenRunner.d.ts.map +1 -0
- package/dist/services/QwenRunner.js +87 -0
- package/dist/services/QwenRunner.js.map +1 -0
- package/dist/services/TraeRunner.d.ts +19 -0
- package/dist/services/TraeRunner.d.ts.map +1 -0
- package/dist/services/TraeRunner.js +88 -0
- package/dist/services/TraeRunner.js.map +1 -0
- package/dist/tools/config_example.d.ts +4 -7
- package/dist/tools/config_example.d.ts.map +1 -1
- package/dist/tools/config_example.js +86 -191
- package/dist/tools/config_example.js.map +1 -1
- package/dist/tools/create_agent.d.ts +9 -15
- package/dist/tools/create_agent.d.ts.map +1 -1
- package/dist/tools/create_agent.js +9 -8
- package/dist/tools/create_agent.js.map +1 -1
- package/dist/tools/get_agent_configs.d.ts +4 -10
- package/dist/tools/get_agent_configs.d.ts.map +1 -1
- package/dist/tools/get_agent_configs.js.map +1 -1
- package/dist/tools/manage_agents.d.ts +18 -36
- package/dist/tools/manage_agents.d.ts.map +1 -1
- package/dist/tools/manage_agents.js +2 -2
- package/dist/tools/manage_agents.js.map +1 -1
- package/dist/tools/manage_prompts.d.ts +8 -13
- package/dist/tools/manage_prompts.d.ts.map +1 -1
- package/dist/tools/manage_prompts.js.map +1 -1
- package/dist/tools/memory_runs.d.ts +4 -3
- package/dist/tools/memory_runs.d.ts.map +1 -1
- package/dist/tools/memory_runs.js.map +1 -1
- package/dist/tools/memory_search.d.ts +4 -3
- package/dist/tools/memory_search.d.ts.map +1 -1
- package/dist/tools/memory_search.js.map +1 -1
- package/dist/tools/memory_store.d.ts +5 -11
- package/dist/tools/memory_store.d.ts.map +1 -1
- package/dist/tools/memory_store.js.map +1 -1
- package/dist/tools/run_agent.d.ts +16 -15
- package/dist/tools/run_agent.d.ts.map +1 -1
- package/dist/tools/run_agent.js +160 -128
- package/dist/tools/run_agent.js.map +1 -1
- package/dist/tools/run_claude.d.ts +3 -8
- package/dist/tools/run_claude.d.ts.map +1 -1
- package/dist/tools/run_claude.js +41 -59
- package/dist/tools/run_claude.js.map +1 -1
- package/dist/tools/run_cline.d.ts +4 -13
- package/dist/tools/run_cline.d.ts.map +1 -1
- package/dist/tools/run_cline.js +43 -55
- package/dist/tools/run_cline.js.map +1 -1
- package/dist/tools/run_gemini.d.ts +4 -13
- package/dist/tools/run_gemini.d.ts.map +1 -1
- package/dist/tools/run_gemini.js +33 -53
- package/dist/tools/run_gemini.js.map +1 -1
- package/dist/tools/run_kilo.d.ts +7 -17
- package/dist/tools/run_kilo.d.ts.map +1 -1
- package/dist/tools/run_kilo.js +41 -68
- package/dist/tools/run_kilo.js.map +1 -1
- package/dist/tools/run_openclaw.d.ts +4 -13
- package/dist/tools/run_openclaw.d.ts.map +1 -1
- package/dist/tools/run_openclaw.js +44 -52
- package/dist/tools/run_openclaw.js.map +1 -1
- package/dist/tools/run_opencode.d.ts +4 -13
- package/dist/tools/run_opencode.d.ts.map +1 -1
- package/dist/tools/run_opencode.js +39 -52
- package/dist/tools/run_opencode.js.map +1 -1
- package/dist/tools/run_qwen.d.ts +15 -0
- package/dist/tools/run_qwen.d.ts.map +1 -0
- package/dist/tools/run_qwen.js +61 -0
- package/dist/tools/run_qwen.js.map +1 -0
- package/dist/tools/run_trae.d.ts +15 -0
- package/dist/tools/run_trae.d.ts.map +1 -0
- package/dist/tools/run_trae.js +66 -0
- package/dist/tools/run_trae.js.map +1 -0
- package/dist/tools/shell_execute.d.ts +10 -0
- package/dist/tools/shell_execute.d.ts.map +1 -0
- package/dist/tools/shell_execute.js +24 -0
- package/dist/tools/shell_execute.js.map +1 -0
- package/package.json +25 -55
- package/.mcp.json.example +0 -21
- package/assets/overmind.png +0 -0
- package/bin/.gitkeep +0 -0
- package/bin/README.md +0 -34
- package/bin/install-overmind-unix.sh +0 -412
- package/bin/install-overmind-windows.bat +0 -407
- package/docs/README.md +0 -128
- package/docs/agent_control.md +0 -656
- package/docs/index.html +0 -493
- package/docs/library.html +0 -239
- package/docs/prompt.html +0 -1212
- package/docs/script.js +0 -428
- package/docs/styles.css +0 -2816
- package/scripts/auto-changelog.mjs +0 -132
- package/scripts/auto-install.mjs +0 -322
- package/scripts/install-dependencies.mjs +0 -462
- package/scripts/postgres-manager.mjs +0 -219
- package/scripts/postinstall.mjs +0 -538
- package/scripts/setup-overmind-db.mjs +0 -199
- package/scripts/setup-windows.js +0 -266
- package/scripts/setup.mjs +0 -397
- package/scripts/test-installation.mjs +0 -158
- package/scripts/uninstall.mjs +0 -238
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_claude.d.ts","sourceRoot":"","sources":["../../src/tools/run_claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"run_claude.d.ts","sourceRoot":"","sources":["../../src/tools/run_claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,cAAc;;;;;iBAiBzB,CAAC;AAEH,wBAAsB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,GAAG,OAAO,CAAC;IAClF,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CA8DD"}
|
package/dist/tools/run_claude.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ClaudeRunner } from '../services/ClaudeRunner.js';
|
|
3
3
|
import { storeRun } from '../memory/MemoryFactory.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
// export const runAgentSchema = z.object({
|
|
5
|
+
// prompt: z.string().describe("Le prompt à envoyer à l'agent"),
|
|
6
|
+
// sessionId: z.string().optional().describe("ID de session pour continuer une conversation (manuel)"),
|
|
7
|
+
// agentName: z.string().optional().describe("Nom de l'agent (pour logging/monitoring et persistance)"),
|
|
8
|
+
// autoResume: z.boolean().optional().default(false).describe("Si true (et agentName fourni), reprend automatiquement la dernière conversation de cet agent")
|
|
9
|
+
// });
|
|
10
|
+
export const runAgentSchema = z.object({
|
|
11
|
+
prompt: z.string().describe("Le prompt à envoyer à l'agent"),
|
|
12
|
+
sessionId: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('ID de session pour continuer une conversation (manuel)'),
|
|
10
16
|
agentName: z
|
|
11
17
|
.string()
|
|
12
18
|
.optional()
|
|
@@ -16,56 +22,16 @@ export const runClaudeSchema = z
|
|
|
16
22
|
.optional()
|
|
17
23
|
.default(false)
|
|
18
24
|
.describe('Si true (et agentName fourni), reprend automatiquement la dernière conversation de cet agent'),
|
|
19
|
-
|
|
20
|
-
path: z.string().optional().describe('Répertoire de travail'),
|
|
21
|
-
config: z.string().optional().describe('Répertoire racine Overmind'),
|
|
22
|
-
silent: z.boolean().optional().default(false).describe('Mode silencieux'),
|
|
23
|
-
signal: z.custom().optional().describe("AbortSignal pour annuler l'agent"),
|
|
24
|
-
})
|
|
25
|
-
.passthrough();
|
|
25
|
+
});
|
|
26
26
|
export async function runClaudeAgent(args) {
|
|
27
27
|
const runner = new ClaudeRunner();
|
|
28
|
-
const { prompt, agentName, autoResume, sessionId
|
|
29
|
-
const finalPath = argPath || getWorkspaceDir();
|
|
30
|
-
const finalConfig = argConfig || getWorkspaceDir();
|
|
28
|
+
const { prompt, agentName, autoResume, sessionId } = args;
|
|
31
29
|
const start = Date.now();
|
|
32
|
-
|
|
33
|
-
prompt,
|
|
34
|
-
agentName,
|
|
35
|
-
autoResume,
|
|
36
|
-
sessionId,
|
|
37
|
-
model,
|
|
38
|
-
cwd: finalPath,
|
|
39
|
-
configPath: finalConfig,
|
|
40
|
-
silent,
|
|
41
|
-
signal,
|
|
42
|
-
});
|
|
43
|
-
if (result.error?.includes('No conversation found') ||
|
|
44
|
-
result.error?.includes('session') ||
|
|
45
|
-
result.error?.includes('EXIT_CODE_1') ||
|
|
46
|
-
result.error === 'JSON_PARSE_ERROR') {
|
|
47
|
-
if (!silent) {
|
|
48
|
-
console.warn(`[run_claude] Session invalide ou erreur JSON, création nouvelle session...`);
|
|
49
|
-
}
|
|
50
|
-
if (agentName) {
|
|
51
|
-
await deleteSessionId(agentName, finalConfig, 'claude');
|
|
52
|
-
}
|
|
53
|
-
result = await runner.runAgent({
|
|
54
|
-
prompt,
|
|
55
|
-
agentName,
|
|
56
|
-
autoResume: false,
|
|
57
|
-
sessionId: undefined,
|
|
58
|
-
model,
|
|
59
|
-
cwd: finalPath,
|
|
60
|
-
configPath: finalConfig,
|
|
61
|
-
silent,
|
|
62
|
-
signal,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
30
|
+
const result = await runner.runAgent({ prompt, agentName, autoResume, sessionId });
|
|
65
31
|
const durationMs = Date.now() - start;
|
|
66
32
|
// Auto-instrument: record every run in OverMind memory
|
|
67
33
|
try {
|
|
68
|
-
|
|
34
|
+
storeRun({
|
|
69
35
|
runner: 'claude',
|
|
70
36
|
agentName,
|
|
71
37
|
prompt,
|
|
@@ -76,26 +42,42 @@ export async function runClaudeAgent(args) {
|
|
|
76
42
|
sessionId: result.sessionId,
|
|
77
43
|
});
|
|
78
44
|
}
|
|
79
|
-
catch
|
|
80
|
-
|
|
45
|
+
catch {
|
|
46
|
+
/* silent — memory must never block the runner */
|
|
81
47
|
}
|
|
82
|
-
if (result.error
|
|
48
|
+
if (result.error === 'INVALID_AGENT') {
|
|
83
49
|
return {
|
|
84
|
-
content: [
|
|
50
|
+
content: [
|
|
51
|
+
{
|
|
52
|
+
type: 'text',
|
|
53
|
+
text: `❌ **Erreur Configuration Agent**\n\nL'agent '${agentName}' est introuvable ou mal configuré.\n\n💡 **Solution:**\nUtilisez l'outil \`create_agent\` pour créer cet agent avant de l'exécuter.`,
|
|
54
|
+
},
|
|
55
|
+
],
|
|
85
56
|
isError: true,
|
|
86
57
|
};
|
|
87
58
|
}
|
|
88
|
-
if (result.error)
|
|
59
|
+
if (result.error === 'JSON_PARSE_ERROR') {
|
|
60
|
+
const preview = result.rawOutput?.trim().substring(0, 500);
|
|
89
61
|
return {
|
|
90
|
-
content: [
|
|
62
|
+
content: [
|
|
63
|
+
{
|
|
64
|
+
type: 'text',
|
|
65
|
+
text: `⚠️ **Réponse Agent Non-Conforme (JSON invalide)**\n\nL'agent '${agentName || 'default'}' a répondu, mais le format JSON est cassé.\n\n🔍 **Début de la réponse reçue:**\n\`\`\`text\n${preview}...\n\`\`\`\n\n💡 **Conseil:** Vérifiez que le prompt demande explicitement une sortie JSON pure.`,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
91
68
|
isError: true,
|
|
92
69
|
};
|
|
70
|
+
}
|
|
71
|
+
if (result.error) {
|
|
72
|
+
return {
|
|
73
|
+
content: [{ type: 'text', text: `❌ Erreur lors de l'exécution: ${result.error}` }],
|
|
74
|
+
isError: true,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
93
77
|
return {
|
|
94
78
|
content: [
|
|
95
79
|
{ type: 'text', text: result.result },
|
|
96
|
-
|
|
97
|
-
? [{ type: 'text', text: `SESSION_ID: ${result.sessionId}` }]
|
|
98
|
-
: []),
|
|
80
|
+
{ type: 'text', text: `SESSION_ID: ${result.sessionId}` },
|
|
99
81
|
],
|
|
100
82
|
};
|
|
101
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_claude.js","sourceRoot":"","sources":["../../src/tools/run_claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"run_claude.js","sourceRoot":"","sources":["../../src/tools/run_claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,2CAA2C;AAC3C,oEAAoE;AACpE,2GAA2G;AAC3G,4GAA4G;AAC5G,iKAAiK;AACjK,MAAM;AAEN,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5D,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,8FAA8F,CAC/F;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAoC;IAIvE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AE,IAAI;SACd,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC;YAClF,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;YACrC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,MAAM,CAAC,SAAS,EAAE,EAAE;SAC1D;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -8,21 +8,12 @@ export declare const runClineSchema: z.ZodObject<{
|
|
|
8
8
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9
9
|
agentName: z.ZodOptional<z.ZodString>;
|
|
10
10
|
autoResume: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
-
path: z.ZodOptional<z.ZodString>;
|
|
12
|
-
config: z.ZodOptional<z.ZodString>;
|
|
13
|
-
silent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
11
|
}, z.core.$strip>;
|
|
15
12
|
export declare function runClineAgent(args: z.infer<typeof runClineSchema>): Promise<{
|
|
16
|
-
content: {
|
|
17
|
-
type:
|
|
13
|
+
content: Array<{
|
|
14
|
+
type: 'text';
|
|
18
15
|
text: string;
|
|
19
|
-
}
|
|
20
|
-
isError
|
|
21
|
-
} | {
|
|
22
|
-
content: {
|
|
23
|
-
type: "text";
|
|
24
|
-
text: string;
|
|
25
|
-
}[];
|
|
26
|
-
isError?: undefined;
|
|
16
|
+
}>;
|
|
17
|
+
isError?: boolean;
|
|
27
18
|
}>;
|
|
28
19
|
//# sourceMappingURL=run_cline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_cline.d.ts","sourceRoot":"","sources":["../../src/tools/run_cline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"run_cline.d.ts","sourceRoot":"","sources":["../../src/tools/run_cline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;iBAqBzB,CAAC;AAEH,wBAAsB,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,GAAG,OAAO,CAAC;IACjF,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CA6CD"}
|
package/dist/tools/run_cline.js
CHANGED
|
@@ -1,76 +1,64 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ClineRunner } from '../services/ClineRunner.js';
|
|
3
3
|
import { storeRun } from '../memory/MemoryFactory.js';
|
|
4
|
-
import { getWorkspaceDir } from '../lib/config.js';
|
|
5
|
-
import { deleteSessionId } from '../lib/sessions.js';
|
|
6
4
|
export const runClineSchema = z.object({
|
|
7
5
|
prompt: z.string().describe("Le prompt à envoyer à l'agent Cline"),
|
|
8
|
-
mode: z
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
mode: z
|
|
7
|
+
.enum(['plan', 'act'])
|
|
8
|
+
.optional()
|
|
9
|
+
.describe('Mode Cline : plan (planification) ou act (exécution autonome)'),
|
|
10
|
+
sessionId: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('ID de session pour continuer une conversation (manuel)'),
|
|
14
|
+
agentName: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe("Nom de l'agent (pour logging/monitoring et persistance)"),
|
|
18
|
+
autoResume: z
|
|
19
|
+
.boolean()
|
|
20
|
+
.optional()
|
|
21
|
+
.default(false)
|
|
22
|
+
.describe('Si true (et agentName fourni), reprend automatiquement la dernière conversation de cet agent'),
|
|
15
23
|
});
|
|
16
24
|
export async function runClineAgent(args) {
|
|
17
25
|
const runner = new ClineRunner();
|
|
18
|
-
const { prompt, agentName, autoResume, sessionId, mode
|
|
19
|
-
const finalPath = argPath || getWorkspaceDir();
|
|
20
|
-
const finalConfig = argConfig || getWorkspaceDir();
|
|
26
|
+
const { prompt, agentName, autoResume, sessionId, mode } = args;
|
|
21
27
|
const start = Date.now();
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
const result = await runner.runAgent({ prompt, agentName, autoResume, sessionId, mode });
|
|
29
|
+
const durationMs = Date.now() - start;
|
|
30
|
+
// Auto-instrumentation
|
|
31
|
+
storeRun({
|
|
32
|
+
runner: 'cline',
|
|
24
33
|
agentName,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
prompt,
|
|
35
|
+
result: result.result,
|
|
36
|
+
error: result.error,
|
|
37
|
+
durationMs,
|
|
38
|
+
success: !result.error,
|
|
39
|
+
sessionId: result.sessionId,
|
|
31
40
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
cwd: finalPath,
|
|
43
|
-
configPath: finalConfig,
|
|
44
|
-
silent,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
const durationMs = Date.now() - start;
|
|
48
|
-
try {
|
|
49
|
-
await storeRun({
|
|
50
|
-
runner: 'cline',
|
|
51
|
-
agentName,
|
|
52
|
-
prompt,
|
|
53
|
-
result: result.result,
|
|
54
|
-
error: result.error,
|
|
55
|
-
durationMs,
|
|
56
|
-
success: !result.error,
|
|
57
|
-
sessionId: result.sessionId,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
console.error(`[run_cline] ⚠️ Memory store failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
41
|
+
if (result.error === 'INVALID_AGENT') {
|
|
42
|
+
return {
|
|
43
|
+
content: [
|
|
44
|
+
{
|
|
45
|
+
type: 'text',
|
|
46
|
+
text: `❌ **Erreur Configuration Agent**\n\nL'agent '${agentName}' est introuvable ou mal configuré.\n\n💡 **Solution:**\nUtilisez l'outil \`create_agent\` pour créer cet agent avant de l'exécuter.`,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
isError: true,
|
|
50
|
+
};
|
|
62
51
|
}
|
|
63
|
-
if (result.error)
|
|
52
|
+
if (result.error) {
|
|
64
53
|
return {
|
|
65
|
-
content: [{ type: 'text', text: `❌ Erreur Cline: ${result.error}` }],
|
|
54
|
+
content: [{ type: 'text', text: `❌ Erreur lors de l'exécution Cline: ${result.error}` }],
|
|
66
55
|
isError: true,
|
|
67
56
|
};
|
|
57
|
+
}
|
|
68
58
|
return {
|
|
69
59
|
content: [
|
|
70
60
|
{ type: 'text', text: result.result },
|
|
71
|
-
|
|
72
|
-
? [{ type: 'text', text: `SESSION_ID: ${result.sessionId}` }]
|
|
73
|
-
: []),
|
|
61
|
+
{ type: 'text', text: `RAW: ${result.rawOutput}` },
|
|
74
62
|
],
|
|
75
63
|
};
|
|
76
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_cline.js","sourceRoot":"","sources":["../../src/tools/run_cline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"run_cline.js","sour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C;IAEtC,uBAAuB;IACvB,QAAQ,CAAC;QACP,MAAM,EAAE,OAAO;QACf,SAAS;QACT,MAAM;QACN,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,UAAU;QACV,OAAO,EAAE,CAAC,MAAM,CAAC,KAAK;QACtB,SAAS,EAAE,MAAM,CAAC,SAAS;KAC5B,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,KAAK,KAAK,eAAe,EAAE,CAAC;QACrC,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gDAAgD,SAAS,sIAAsI;iBACtM;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uCAAuC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC;YACxF,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;YACrC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,MAAM,CAAC,SAAS,EAAE,EAAE;SACnD;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -4,21 +4,12 @@ export declare const runGeminiSchema: z.ZodObject<{
|
|
|
4
4
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
agentName: z.ZodOptional<z.ZodString>;
|
|
6
6
|
autoResume: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
-
path: z.ZodOptional<z.ZodString>;
|
|
8
|
-
config: z.ZodOptional<z.ZodString>;
|
|
9
|
-
silent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
7
|
}, z.core.$strip>;
|
|
11
8
|
export declare function runGeminiAgent(args: z.infer<typeof runGeminiSchema>): Promise<{
|
|
12
|
-
content: {
|
|
13
|
-
type:
|
|
9
|
+
content: Array<{
|
|
10
|
+
type: 'text';
|
|
14
11
|
text: string;
|
|
15
|
-
}
|
|
16
|
-
isError
|
|
17
|
-
} | {
|
|
18
|
-
content: {
|
|
19
|
-
type: "text";
|
|
20
|
-
text: string;
|
|
21
|
-
}[];
|
|
22
|
-
isError?: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
isError?: boolean;
|
|
23
14
|
}>;
|
|
24
15
|
//# sourceMappingURL=run_gemini.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_gemini.d.ts","sourceRoot":"","sources":["../../src/tools/run_gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"run_gemini.d.ts","sourceRoot":"","sources":["../../src/tools/run_gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;iBAiB1B,CAAC;AAEH,wBAAsB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG,OAAO,CAAC;IACnF,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CA6CD"}
|
package/dist/tools/run_gemini.js
CHANGED
|
@@ -1,80 +1,60 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { GeminiRunner } from '../services/GeminiRunner.js';
|
|
3
3
|
import { storeRun } from '../memory/MemoryFactory.js';
|
|
4
|
-
import { getWorkspaceDir } from '../lib/config.js';
|
|
5
|
-
import { deleteSessionId } from '../lib/sessions.js';
|
|
6
4
|
export const runGeminiSchema = z.object({
|
|
7
5
|
prompt: z.string().describe("Le prompt à envoyer à l'agent Gemini"),
|
|
8
|
-
sessionId: z
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
sessionId: z
|
|
7
|
+
.string()
|
|
8
|
+
.optional()
|
|
9
|
+
.describe('ID de session pour continuer une conversation (manuel)'),
|
|
10
|
+
agentName: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe("Nom de l'agent (pour logging/monitoring et persistance)"),
|
|
14
|
+
autoResume: z
|
|
15
|
+
.boolean()
|
|
16
|
+
.optional()
|
|
17
|
+
.default(false)
|
|
18
|
+
.describe('Si true (et agentName fourni), reprend automatiquement la dernière conversation de cet agent'),
|
|
14
19
|
});
|
|
15
20
|
export async function runGeminiAgent(args) {
|
|
16
21
|
const runner = new GeminiRunner();
|
|
17
|
-
const { prompt, agentName, autoResume, sessionId
|
|
18
|
-
const finalPath = argPath || getWorkspaceDir();
|
|
19
|
-
const finalConfig = argConfig || getWorkspaceDir();
|
|
22
|
+
const { prompt, agentName, autoResume, sessionId } = args;
|
|
20
23
|
const start = Date.now();
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
const result = await runner.runAgent({ prompt, agentName, autoResume, sessionId });
|
|
25
|
+
const durationMs = Date.now() - start;
|
|
26
|
+
// Auto-instrumentation
|
|
27
|
+
storeRun({
|
|
28
|
+
runner: 'gemini',
|
|
23
29
|
agentName,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
prompt,
|
|
31
|
+
result: result.result,
|
|
32
|
+
error: result.error,
|
|
33
|
+
durationMs,
|
|
34
|
+
success: !result.error,
|
|
35
|
+
sessionId: result.sessionId,
|
|
29
36
|
});
|
|
30
|
-
// Retry if session invalid
|
|
31
|
-
if (result.error?.includes('session') || result.error?.includes('EXIT_CODE_1')) {
|
|
32
|
-
if (agentName)
|
|
33
|
-
await deleteSessionId(agentName, finalConfig, 'gemini');
|
|
34
|
-
result = await runner.runAgent({
|
|
35
|
-
prompt,
|
|
36
|
-
agentName,
|
|
37
|
-
autoResume: false,
|
|
38
|
-
sessionId: undefined,
|
|
39
|
-
cwd: finalPath,
|
|
40
|
-
configPath: finalConfig,
|
|
41
|
-
silent,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
const durationMs = Date.now() - start;
|
|
45
|
-
try {
|
|
46
|
-
await storeRun({
|
|
47
|
-
runner: 'gemini',
|
|
48
|
-
agentName,
|
|
49
|
-
prompt,
|
|
50
|
-
result: result.result,
|
|
51
|
-
error: result.error,
|
|
52
|
-
durationMs,
|
|
53
|
-
success: !result.error,
|
|
54
|
-
sessionId: result.sessionId,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
catch (e) {
|
|
58
|
-
console.error(`[run_gemini] ⚠️ Memory store failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
59
|
-
}
|
|
60
37
|
if (result.error === 'INVALID_AGENT') {
|
|
61
38
|
return {
|
|
62
|
-
content: [
|
|
39
|
+
content: [
|
|
40
|
+
{
|
|
41
|
+
type: 'text',
|
|
42
|
+
text: `❌ **Erreur Configuration Agent**\n\nL'agent '${agentName}' est introuvable ou mal configuré.\n\n💡 **Solution:**\nUtilisez l'outil \`create_agent\` pour créer cet agent avant de l'exécuter.`,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
63
45
|
isError: true,
|
|
64
46
|
};
|
|
65
47
|
}
|
|
66
48
|
if (result.error) {
|
|
67
49
|
return {
|
|
68
|
-
content: [{ type: 'text', text: `❌ Erreur
|
|
50
|
+
content: [{ type: 'text', text: `❌ Erreur lors de l'exécution: ${result.error}` }],
|
|
69
51
|
isError: true,
|
|
70
52
|
};
|
|
71
53
|
}
|
|
72
54
|
return {
|
|
73
55
|
content: [
|
|
74
56
|
{ type: 'text', text: result.result },
|
|
75
|
-
|
|
76
|
-
? [{ type: 'text', text: `SESSION_ID: ${result.sessionId}` }]
|
|
77
|
-
: []),
|
|
57
|
+
{ type: 'text', text: `RAW: ${result.rawOutput}` },
|
|
78
58
|
],
|
|
79
59
|
};
|
|
80
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_gemini.js","sourceRoot":"","sources":["../../src/tools/run_gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"run_gemini.js","sourceRoot":"","sources":["../../src/tools/run_gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACnE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,8FAA8F,CAC/F;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAqC;IAIxE,MAAM,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;IAClC,MAAM,EAAE,MAAM,EAAE,SA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-2,31 +2,21 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const runKiloSchema: z.ZodObject<{
|
|
3
3
|
prompt: z.ZodString;
|
|
4
4
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
debug: "debug";
|
|
6
5
|
code: "code";
|
|
7
6
|
architect: "architect";
|
|
8
7
|
ask: "ask";
|
|
8
|
+
debug: "debug";
|
|
9
9
|
orchestrator: "orchestrator";
|
|
10
10
|
}>>;
|
|
11
|
-
agentName: z.ZodOptional<z.ZodString>;
|
|
12
11
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
13
13
|
autoResume: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
-
|
|
15
|
-
path: z.ZodOptional<z.ZodString>;
|
|
16
|
-
config: z.ZodOptional<z.ZodString>;
|
|
17
|
-
silent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
-
}, z.core.$loose>;
|
|
14
|
+
}, z.core.$strip>;
|
|
19
15
|
export declare function runKiloAgent(args: z.infer<typeof runKiloSchema>): Promise<{
|
|
20
|
-
content: {
|
|
21
|
-
type:
|
|
22
|
-
text: string;
|
|
23
|
-
}[];
|
|
24
|
-
isError: boolean;
|
|
25
|
-
} | {
|
|
26
|
-
content: {
|
|
27
|
-
type: "text";
|
|
16
|
+
content: Array<{
|
|
17
|
+
type: 'text';
|
|
28
18
|
text: string;
|
|
29
|
-
}
|
|
30
|
-
isError?:
|
|
19
|
+
}>;
|
|
20
|
+
isError?: boolean;
|
|
31
21
|
}>;
|
|
32
22
|
//# sourceMappingURL=run_kilo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_kilo.d.ts","sourceRoot":"","sources":["../../src/tools/run_kilo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"run_kilo.d.ts","sourceRoot":"","sources":["../../src/tools/run_kilo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;iBAqBxB,CAAC;AAEH,wBAAsB,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,GAAG,OAAO,CAAC;IAC/E,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CA6CD"}
|