diff options
| author | Taylor Mullen <[email protected]> | 2025-05-11 12:34:41 -0700 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-05-11 12:35:55 -0700 |
| commit | cf91f72c5c0079ec4b5db67d0f8fcac043d31088 (patch) | |
| tree | aa90476c90ee87810f4f8b1c0086619e680aeba7 /packages/server/src/config/config.ts | |
| parent | dcb67c32a5e246f9df64a18399c6a13051db7f30 (diff) | |
Remove terminal tool and dependencies.
- We now solely use the shell tool. This deletes all content around the legacy terminal tool so we can focus on improving the new Shell tool.
- Remove instances from sandboxing, tests, utilities etc.
Diffstat (limited to 'packages/server/src/config/config.ts')
| -rw-r--r-- | packages/server/src/config/config.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index 0a2761c2..41409f7c 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -14,7 +14,6 @@ import { ReadFileTool } from '../tools/read-file.js'; import { GrepTool } from '../tools/grep.js'; import { GlobTool } from '../tools/glob.js'; import { EditTool } from '../tools/edit.js'; -import { TerminalTool } from '../tools/terminal.js'; import { ShellTool } from '../tools/shell.js'; import { WriteFileTool } from '../tools/write-file.js'; import { WebFetchTool } from '../tools/web-fetch.js'; @@ -146,15 +145,9 @@ function createToolRegistry(config: Config): ToolRegistry { new WriteFileTool(targetDir), new WebFetchTool(), // Note: WebFetchTool takes no arguments new ReadManyFilesTool(targetDir), + new ShellTool(config), ]; - // 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) { registry.registerTool(tool); } |
