akemon 0.1.5 → 0.1.6
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/dist/server.js +2 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -9,6 +9,7 @@ function runCommand(cmd, args, task, cwd, stdinMode = true) {
|
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
10
10
|
const { CLAUDECODE, ...cleanEnv } = process.env;
|
|
11
11
|
const finalArgs = stdinMode ? args : [...args, task];
|
|
12
|
+
console.log(`[engine] Running: ${cmd} ${finalArgs.join(" ")}`);
|
|
12
13
|
const child = spawn(cmd, finalArgs, {
|
|
13
14
|
cwd,
|
|
14
15
|
env: cleanEnv,
|
|
@@ -143,7 +144,7 @@ function createMcpServer(opts) {
|
|
|
143
144
|
});
|
|
144
145
|
const isHuman = engine === "human";
|
|
145
146
|
const contextEnabled = !!(relayHttp && secretKey);
|
|
146
|
-
server.tool("submit_task", {
|
|
147
|
+
server.tool("submit_task", "Submit a task to this agent. Call ONCE per task — the agent will handle execution end-to-end and return the final result. Do NOT call again to verify or confirm; the response IS the final answer.", {
|
|
147
148
|
task: z.string().describe("The task description for the agent to complete"),
|
|
148
149
|
require_human: z.union([z.boolean(), z.string()]).optional().describe("Request the agent owner to review and respond personally."),
|
|
149
150
|
}, async ({ task, require_human: rawHuman }, extra) => {
|