| 1 | import { ConfigDependentToolParams, Tool } from ".."; |
| 2 | import { createNewFileTool } from "./definitions/createNewFile"; |
| 3 | import { createRuleBlock } from "./definitions/createRuleBlock"; |
| 4 | import { editFileTool } from "./definitions/editFile"; |
| 5 | import { globSearchTool } from "./definitions/globSearch"; |
| 6 | import { grepSearchTool } from "./definitions/grepSearch"; |
| 7 | import { lsTool } from "./definitions/lsTool"; |
| 8 | import { readCurrentlyOpenFileTool } from "./definitions/readCurrentlyOpenFile"; |
| 9 | import { readFileTool } from "./definitions/readFile"; |
| 10 | import { requestRuleTool } from "./definitions/requestRule"; |
| 11 | import { runTerminalCommandTool } from "./definitions/runTerminalCommand"; |
| 12 | import { searchWebTool } from "./definitions/searchWeb"; |
| 13 | import { viewDiffTool } from "./definitions/viewDiff"; |
| 14 | |
| 15 | export const baseToolDefinitions = [ |
| 16 | readFileTool, |
| 17 | editFileTool, |
| 18 | createNewFileTool, |
| 19 | runTerminalCommandTool, |
| 20 | grepSearchTool, |
| 21 | globSearchTool, |
| 22 | searchWebTool, |
| 23 | viewDiffTool, |
| 24 | readCurrentlyOpenFileTool, |
| 25 | lsTool, |
| 26 | createRuleBlock, |
| 27 | // replacing with ls tool for now |
| 28 | // viewSubdirectoryTool, |
| 29 | // viewRepoMapTool, |
| 30 | ]; |
| 31 | |
| 32 | export const getConfigDependentToolDefinitions = ( |
| 33 | params: ConfigDependentToolParams, |
| 34 | ): Tool[] => [requestRuleTool(params)]; |