feat(core): Cleanup after migrating tools. (#6199)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
joshualitt
2025-08-19 13:55:06 -07:00
committed by GitHub
parent 2143731f6e
commit b9cece767d
17 changed files with 86 additions and 132 deletions

View File

@@ -21,7 +21,6 @@ import {
ToolResult,
} from './tools.js';
import { ToolErrorType } from './tool-error.js';
import { SchemaValidator } from '../utils/schemaValidator.js';
import { makeRelative, shortenPath } from '../utils/paths.js';
import { getErrorMessage, isNodeError } from '../utils/errors.js';
import {
@@ -417,17 +416,9 @@ export class WriteFileTool
);
}
protected override validateToolParams(
protected override validateToolParamValues(
params: WriteFileToolParams,
): string | null {
const errors = SchemaValidator.validate(
this.schema.parametersJsonSchema,
params,
);
if (errors) {
return errors;
}
const filePath = params.file_path;
if (!filePath) {