summaryrefslogtreecommitdiff
path: root/packages/server/src/tools/grep.ts
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-05-02 09:31:18 -0700
committerGitHub <[email protected]>2025-05-02 09:31:18 -0700
commit539ab947a49b0351759df5192ed44f17d217b2f1 (patch)
treeeb45ee25f24077745456215cb7e9578d79983404 /packages/server/src/tools/grep.ts
parenta7679db6e99f971306bc4b27c603e93bc67ac254 (diff)
Use parameter properties where possible. (#242)
Diffstat (limited to 'packages/server/src/tools/grep.ts')
-rw-r--r--packages/server/src/tools/grep.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/server/src/tools/grep.ts b/packages/server/src/tools/grep.ts
index 1873a794..e3253ecf 100644
--- a/packages/server/src/tools/grep.ts
+++ b/packages/server/src/tools/grep.ts
@@ -54,13 +54,11 @@ interface GrepMatch {
export class GrepTool extends BaseTool<GrepToolParams, ToolResult> {
static readonly Name = 'search_file_content'; // Keep static name
- private rootDirectory: string;
-
/**
* Creates a new instance of the GrepLogic
* @param rootDirectory Root directory to ground this tool in. All operations will be restricted to this directory.
*/
- constructor(rootDirectory: string) {
+ constructor(private rootDirectory: string) {
super(
GrepTool.Name,
'SearchText',