From b1d693786c2beaa8ba14af292894aa3e3a66ac4b Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Sat, 31 May 2025 16:52:52 -0400 Subject: [PATCH] Revert "cleanup: removed duplicate check from Config.registerCoreTool()" (#657) Didn't notice the casing difference - duh.... --- packages/core/src/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index a4b47cdd..d918de04 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -243,7 +243,7 @@ export function createToolRegistry(config: Config): ToolRegistry { // eslint-disable-next-line @typescript-eslint/no-explicit-any const registerCoreTool = (ToolClass: any, ...args: unknown[]) => { // check both the tool name (.Name) and the class name (.name) - if (!tools || tools.has(ToolClass.Name)) { + if (!tools || tools.has(ToolClass.Name) || tools.has(ToolClass.name)) { registry.registerTool(new ToolClass(...args)); } };