switch to shell tool, deprecating terminal (#203)

* switch to shell tool, deprecating terminal

* Merge remote-tracking branch 'origin/main' into deprecate_terminal
This commit is contained in:
Olcan
2025-04-28 15:05:36 -07:00
committed by GitHub
parent 30b04295d2
commit 57ceadb7d8
6 changed files with 53 additions and 36 deletions

View File

@@ -145,11 +145,11 @@ function createToolRegistry(config: Config): ToolRegistry {
new ReadManyFilesTool(targetDir),
];
// use ShellTool (next-gen TerminalTool) if environment variable is set
if (process.env.SHELL_TOOL) {
tools.push(new ShellTool(config));
} else {
// if TERMINAL_TOOL is set, revert to deprecated TerminalTool
if (process.env.TERMINAL_TOOL) {
tools.push(new TerminalTool(targetDir, config));
} else {
tools.push(new ShellTool(config));
}
for (const tool of tools) {