mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user