diff options
| author | Jacob Richman <[email protected]> | 2025-05-02 09:31:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-02 09:31:18 -0700 |
| commit | 539ab947a49b0351759df5192ed44f17d217b2f1 (patch) | |
| tree | eb45ee25f24077745456215cb7e9578d79983404 /packages/server/src/tools/shell.ts | |
| parent | a7679db6e99f971306bc4b27c603e93bc67ac254 (diff) | |
Use parameter properties where possible. (#242)
Diffstat (limited to 'packages/server/src/tools/shell.ts')
| -rw-r--r-- | packages/server/src/tools/shell.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/server/src/tools/shell.ts b/packages/server/src/tools/shell.ts index 1224dc8f..592acc2b 100644 --- a/packages/server/src/tools/shell.ts +++ b/packages/server/src/tools/shell.ts @@ -25,10 +25,9 @@ import { spawn } from 'child_process'; export class ShellTool extends BaseTool<ShellToolParams, ToolResult> { static Name: string = 'execute_bash_command'; - private readonly config: Config; private whitelist: Set<string> = new Set(); - constructor(config: Config) { + constructor(private readonly config: Config) { const toolDisplayName = 'Shell'; const descriptionUrl = new URL('shell.md', import.meta.url); const toolDescription = fs.readFileSync(descriptionUrl, 'utf-8'); @@ -38,7 +37,6 @@ export class ShellTool extends BaseTool<ShellToolParams, ToolResult> { toolDescription, toolParameterSchema, ); - this.config = config; } getDescription(params: ShellToolParams): string { |
