Skip to content

Commit 545dd48

Browse files
committed
Disable the grepSearch and fileSearch tool
1 parent 7f9c976 commit 545dd48

File tree

3 files changed

+2
-62
lines changed

3 files changed

+2
-62
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/src/codewhispererChat/tools/tool_index.json

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,6 @@
2020
"required": ["path"]
2121
}
2222
},
23-
"fileSearch": {
24-
"name": "fileSearch",
25-
"description": "Search for files in a directory and its subdirectories that match a regex pattern.\n * This tool returns a list of files that match the specified regex pattern.\n * Use this tool when you need to find files with names matching a specific pattern.",
26-
"inputSchema": {
27-
"type": "object",
28-
"properties": {
29-
"path": {
30-
"description": "Absolute path to a directory, e.g., `/repo`.",
31-
"type": "string"
32-
},
33-
"pattern": {
34-
"description": "Regex pattern to match against file names.",
35-
"type": "string"
36-
},
37-
"maxDepth": {
38-
"description": "Maximum depth to traverse when searching directories. Use `0` to search only the specified directory, `1` to include immediate subdirectories, etc. If it's not provided, it will search all subdirectories recursively.",
39-
"type": "integer"
40-
},
41-
"caseSensitive": {
42-
"description": "Whether the pattern matching should be case sensitive. Defaults to false.",
43-
"type": "boolean"
44-
}
45-
},
46-
"required": ["path", "pattern"]
47-
}
48-
},
4923
"fsWrite": {
5024
"name": "fsWrite",
5125
"description": "A tool for creating and editing a file.\n * The `create` command will override the file at `path` if it already exists as a file, and otherwise create a new file\n * The `append` command will add content to the end of an existing file, automatically adding a newline if the file doesn't end with one. The file must exist.\n Notes for using the `strReplace` command:\n * The `oldStr` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n * If the `oldStr` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `oldStr` to make it unique\n * The `newStr` parameter should contain the edited lines that should replace the `oldStr`. The `insert` command will insert `newStr` after `insertLine` and place it on its own line.",
@@ -124,39 +98,5 @@
12498
},
12599
"required": ["path"]
126100
}
127-
},
128-
"grepSearch": {
129-
"name": "grepSearch",
130-
"description": "Fast text-based regex search that finds exact pattern matches within files or directories, utilizing the ripgrep command for efficient searching.\\nResults will be formatted in the style of ripgrep and can be configured to include line numbers and content.\\nTo avoid overwhelming output, the results are capped at 50 matches.\\nUse the include or exclude patterns to filter the search scope by file type or specific paths.\\n\\nThis is best for finding exact text matches or regex patterns.\\nMore precise than semantic search for finding specific strings or patterns.\\nThis is preferred over semantic search when we know the exact symbol/function name/etc. to search in some set of directories/file types.",
131-
"inputSchema": {
132-
"type": "object",
133-
"properties": {
134-
"caseSensitive": {
135-
"description": "Whether the search should be case sensitive",
136-
"type": "boolean"
137-
},
138-
"excludePattern": {
139-
"description": "Glob pattern for files to exclude",
140-
"type": "string"
141-
},
142-
"explanation": {
143-
"description": "One sentence explanation as to why this tool is being used, and how it contributes to the goal.",
144-
"type": "string"
145-
},
146-
"includePattern": {
147-
"description": "Glob pattern for files to include (e.g. '*.ts' for TypeScript files)",
148-
"type": "string"
149-
},
150-
"query": {
151-
"description": "The regex pattern to search for",
152-
"type": "string"
153-
},
154-
"path": {
155-
"description": "Absolute path to a directory, e.g., `/repo`.",
156-
"type": "string"
157-
}
158-
},
159-
"required": ["query"]
160-
}
161101
}
162102
}

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "aws-toolkit-vscode",
33
"displayName": "AWS Toolkit",
44
"description": "Including CodeCatalyst, Infrastructure Composer, and support for Lambda, S3, CloudWatch Logs, CloudFormation, and many other services.",
5-
"version": "3.55.0-g6ee3054",
5+
"version": "3.55.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

0 commit comments

Comments
 (0)