Release v0.7.18

This commit is contained in:
Mario Zechner 2025-11-18 22:08:44 +01:00
parent a11c1aa4ff
commit 22d8a0ae4a
16 changed files with 284 additions and 174 deletions

View file

@ -137,7 +137,7 @@ export const bashTool: AgentTool<typeof bashSchema> = {
}
if (output) output += "\n\n";
output += "Command aborted";
resolve({ content: [{ type: "text", text: `Command failed\n\n${output}` }], details: undefined });
_reject(new Error(output));
return;
}
@ -150,7 +150,7 @@ export const bashTool: AgentTool<typeof bashSchema> = {
}
if (output) output += "\n\n";
output += `Command timed out after ${timeout} seconds`;
resolve({ content: [{ type: "text", text: `Command failed\n\n${output}` }], details: undefined });
_reject(new Error(output));
return;
}
@ -163,10 +163,7 @@ export const bashTool: AgentTool<typeof bashSchema> = {
if (code !== 0 && code !== null) {
if (output) output += "\n\n";
resolve({
content: [{ type: "text", text: `Command failed\n\n${output}Command exited with code ${code}` }],
details: undefined,
});
_reject(new Error(`${output}Command exited with code ${code}`));
} else {
resolve({ content: [{ type: "text", text: output || "(no output)" }], details: undefined });
}