File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1108,8 +1108,6 @@ class SearchFilesByNameTool(BaseTool):
1108
1108
args_schema : ClassVar [type [BaseModel ]] = SearchFilesByNameInput
1109
1109
codebase : Codebase = Field (exclude = True )
1110
1110
1111
-
1112
-
1113
1111
def __init__ (self , codebase : Codebase ):
1114
1112
super ().__init__ (codebase = codebase )
1115
1113
Original file line number Diff line number Diff line change 1
- import math
2
1
import shutil
3
2
import subprocess
4
- from typing import ClassVar , Optional
3
+ from typing import ClassVar
5
4
6
5
from pydantic import Field
7
6
@@ -86,10 +85,10 @@ def search_files_by_name(
86
85
# Calculate pagination
87
86
total_files = len (all_files )
88
87
total_pages = (total_files + files_per_page - 1 ) // files_per_page if total_files > 0 else 1
89
-
88
+
90
89
# Ensure page is within valid range
91
90
page = min (page , total_pages )
92
-
91
+
93
92
# Get paginated results
94
93
start_idx = (page - 1 ) * files_per_page
95
94
end_idx = start_idx + files_per_page
You can’t perform that action at this time.
0 commit comments