refactor(coding-agent): extracted bash execution into dedicated executor
- Extracted bash execution logic from bash tool into dedicated BashExecutor with configurable cwd and timeout options. - Added timeout handling with automatic process termination and timeout-specific result tracking. - Simplified streaming output handling by replacing rolling buffer with string concatenation. - Reformatted indentation from spaces to tabs across shell utility files.
This commit is contained in:
@@ -66,7 +66,12 @@ Usage:
|
||||
// Reject .ipynb files - use NotebookEdit tool instead
|
||||
if (absolutePath.endsWith(".ipynb")) {
|
||||
return {
|
||||
content: [{ type: "text", text: "Cannot edit Jupyter notebooks with the Edit tool. Use the NotebookEdit tool instead." }],
|
||||
content: [
|
||||
{
|
||||
type: "text",
|
||||
text: "Cannot edit Jupyter notebooks with the Edit tool. Use the NotebookEdit tool instead.",
|
||||
},
|
||||
],
|
||||
details: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user