@@ -13,8 +13,6 @@ import (
1313 "paperdebugger/internal/libs/logger"
1414 "paperdebugger/internal/services"
1515 "paperdebugger/internal/services/toolkit/registry"
16- filetools "paperdebugger/internal/services/toolkit/tools/files"
17- latextools "paperdebugger/internal/services/toolkit/tools/latex"
1816 "paperdebugger/internal/services/toolkit/tools/xtramcp"
1917 chatv2 "paperdebugger/pkg/gen/api/chat/v2"
2018 "strings"
@@ -113,39 +111,39 @@ func initializeToolkitV2(
113111 toolRegistry := registry .NewToolRegistryV2 ()
114112
115113 // Register static file tools (create/delete don't need ProjectService - they're placeholder only)
116- toolRegistry .Register ("create_file" , filetools .CreateFileToolDescriptionV2 , filetools .CreateFileTool )
117- toolRegistry .Register ("delete_file" , filetools .DeleteFileToolDescriptionV2 , filetools .DeleteFileTool )
118- toolRegistry .Register ("create_folder" , filetools .CreateFolderToolDescriptionV2 , filetools .CreateFolderTool )
119- toolRegistry .Register ("delete_folder" , filetools .DeleteFolderToolDescriptionV2 , filetools .DeleteFolderTool )
114+ // toolRegistry.Register("create_file", filetools.CreateFileToolDescriptionV2, filetools.CreateFileTool)
115+ // toolRegistry.Register("delete_file", filetools.DeleteFileToolDescriptionV2, filetools.DeleteFileTool)
116+ // toolRegistry.Register("create_folder", filetools.CreateFolderToolDescriptionV2, filetools.CreateFolderTool)
117+ // toolRegistry.Register("delete_folder", filetools.DeleteFolderToolDescriptionV2, filetools.DeleteFolderTool)
120118
121119 // Register file tools with ProjectService injection
122- readFileTool := filetools .NewReadFileTool (projectService )
123- toolRegistry .Register ("read_file" , filetools .ReadFileToolDescriptionV2 , readFileTool .Call )
120+ // readFileTool := filetools.NewReadFileTool(projectService)
121+ // toolRegistry.Register("read_file", filetools.ReadFileToolDescriptionV2, readFileTool.Call)
124122
125- readFolderTool := filetools .NewReadFolderTool (projectService )
126- toolRegistry .Register ("read_folder " , filetools .ReadFolderToolDescriptionV2 , readFolderTool .Call )
123+ // listFolderTool := filetools.NewListFolderTool (projectService)
124+ // toolRegistry.Register("list_folder ", filetools.ListFolderToolDescriptionV2, listFolderTool .Call)
127125
128- searchStringTool := filetools .NewSearchStringTool (projectService )
129- toolRegistry .Register ("search_string" , filetools .SearchStringToolDescriptionV2 , searchStringTool .Call )
126+ // searchStringTool := filetools.NewSearchStringTool(projectService)
127+ // toolRegistry.Register("search_string", filetools.SearchStringToolDescriptionV2, searchStringTool.Call)
130128
131- searchFileTool := filetools .NewSearchFileTool (projectService )
132- toolRegistry .Register ("search_file" , filetools .SearchFileToolDescriptionV2 , searchFileTool .Call )
129+ // searchFileTool := filetools.NewSearchFileTool(projectService)
130+ // toolRegistry.Register("search_file", filetools.SearchFileToolDescriptionV2, searchFileTool.Call)
133131
134- logger .Info ("[AI Client V2] Registered static file tools" , "count" , 8 )
132+ logger .Info ("[AI Client V2] Registered static file tools" , "count" , 0 )
135133
136134 // Register LaTeX tools with ProjectService injection
137- documentStructureTool := latextools .NewDocumentStructureTool (projectService )
138- toolRegistry .Register ("get_document_structure" , latextools .GetDocumentStructureToolDescriptionV2 , documentStructureTool .Call )
135+ // documentStructureTool := latextools.NewDocumentStructureTool(projectService)
136+ // toolRegistry.Register("get_document_structure", latextools.GetDocumentStructureToolDescriptionV2, documentStructureTool.Call)
139137
140- toolRegistry .Register ("locate_section" , latextools .LocateSectionToolDescriptionV2 , latextools .LocateSectionTool )
138+ // toolRegistry.Register("locate_section", latextools.LocateSectionToolDescriptionV2, latextools.LocateSectionTool)
141139
142- readSectionSourceTool := latextools .NewReadSectionSourceTool (projectService )
143- toolRegistry .Register ("read_section_source" , latextools .ReadSectionSourceToolDescriptionV2 , readSectionSourceTool .Call )
140+ // readSectionSourceTool := latextools.NewReadSectionSourceTool(projectService)
141+ // toolRegistry.Register("read_section_source", latextools.ReadSectionSourceToolDescriptionV2, readSectionSourceTool.Call)
144142
145- readSourceLineRangeTool := latextools .NewReadSourceLineRangeTool (projectService )
146- toolRegistry .Register ("read_source_line_range" , latextools .ReadSourceLineRangeToolDescriptionV2 , readSourceLineRangeTool .Call )
143+ // readSourceLineRangeTool := latextools.NewReadSourceLineRangeTool(projectService)
144+ // toolRegistry.Register("read_source_line_range", latextools.ReadSourceLineRangeToolDescriptionV2, readSourceLineRangeTool.Call)
147145
148- logger .Info ("[AI Client V2] Registered static LaTeX tools" , "count" , 4 )
146+ logger .Info ("[AI Client V2] Registered static LaTeX tools" , "count" , 0 )
149147
150148 // Load tools dynamically from backend
151149 xtraMCPLoader := xtramcp .NewXtraMCPLoaderV2 (db , projectService , cfg .XtraMCPURI )
0 commit comments