diff options
| author | joshualitt <[email protected]> | 2025-08-19 13:55:06 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 20:55:06 +0000 |
| commit | b9cece767d1abccd06fb95cab759afd06cc2c1e1 (patch) | |
| tree | 8c29a49bbaedd0a706bd2dba82eb4c587797ba7e /packages/core/src/tools/shell.ts | |
| parent | 2143731f6efdf1aafff38ec249caf01a8bcd163e (diff) | |
feat(core): Cleanup after migrating tools. (#6199)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/core/src/tools/shell.ts')
| -rw-r--r-- | packages/core/src/tools/shell.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts index 8db66339..8d5c624c 100644 --- a/packages/core/src/tools/shell.ts +++ b/packages/core/src/tools/shell.ts @@ -19,7 +19,6 @@ import { ToolConfirmationOutcome, Kind, } from './tools.js'; -import { SchemaValidator } from '../utils/schemaValidator.js'; import { getErrorMessage } from '../utils/errors.js'; import { summarizeToolOutput } from '../utils/summarizer.js'; import { @@ -361,7 +360,7 @@ export class ShellTool extends BaseDeclarativeTool< ); } - protected override validateToolParams( + protected override validateToolParamValues( params: ShellToolParams, ): string | null { const commandCheck = isCommandAllowed(params.command, this.config); @@ -374,13 +373,6 @@ export class ShellTool extends BaseDeclarativeTool< } return commandCheck.reason; } - const errors = SchemaValidator.validate( - this.schema.parametersJsonSchema, - params, - ); - if (errors) { - return errors; - } if (!params.command.trim()) { return 'Command cannot be empty.'; } |
