diff options
| author | Jaana Dogan <[email protected]> | 2025-04-21 12:59:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-21 12:59:31 -0700 |
| commit | baf39042c8631d53dfac4e57148404749cde14b3 (patch) | |
| tree | 49fcfe890714b80d0f8bc5cace6869128ea25687 /packages/cli/src/gemini.ts | |
| parent | 2571e071751681338518c2bf65f25ad32b2f71f4 (diff) | |
Remove duplicate CLI tools module, remove the global tool registry (#89)
Diffstat (limited to 'packages/cli/src/gemini.ts')
| -rw-r--r-- | packages/cli/src/gemini.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/packages/cli/src/gemini.ts b/packages/cli/src/gemini.ts index 97502399..8df10aba 100644 --- a/packages/cli/src/gemini.ts +++ b/packages/cli/src/gemini.ts @@ -7,26 +7,11 @@ import React from 'react'; import { render } from 'ink'; import { App } from './ui/App.js'; -import { toolRegistry } from './tools/tool-registry.js'; import { loadCliConfig } from './config/config.js'; -import { - LSTool, - ReadFileTool, - GrepTool, - GlobTool, - EditTool, - TerminalTool, - WriteFileTool, - WebFetchTool, -} from '@gemini-code/server'; async function main() { // Load configuration const config = loadCliConfig(); - - // Configure tools using the loaded config - registerTools(config.getTargetDir()); - // Render UI, passing necessary config values render( React.createElement(App, { @@ -81,24 +66,3 @@ main().catch((error) => { } process.exit(1); }); - -function registerTools(targetDir: string) { - const config = loadCliConfig(); - const lsTool = new LSTool(targetDir); - const readFileTool = new ReadFileTool(targetDir); - const grepTool = new GrepTool(targetDir); - const globTool = new GlobTool(targetDir); - const editTool = new EditTool(targetDir); - const terminalTool = new TerminalTool(targetDir, config); - const writeFileTool = new WriteFileTool(targetDir); - const webFetchTool = new WebFetchTool(); - - toolRegistry.registerTool(lsTool); - toolRegistry.registerTool(readFileTool); - toolRegistry.registerTool(grepTool); - toolRegistry.registerTool(globTool); - toolRegistry.registerTool(editTool); - toolRegistry.registerTool(terminalTool); - toolRegistry.registerTool(writeFileTool); - toolRegistry.registerTool(webFetchTool); -} |
