mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +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:
parent
30b04295d2
commit
57ceadb7d8
6 changed files with 53 additions and 36 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue