diff options
| author | Bryan Morgan <[email protected]> | 2025-05-31 16:52:52 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-31 20:52:52 +0000 |
| commit | b1d693786c2beaa8ba14af292894aa3e3a66ac4b (patch) | |
| tree | c188b0fa9c295faa198b65d80143491858c18048 | |
| parent | b2289234463eccdd95e337ee52f2fc256e4f4547 (diff) | |
Revert "cleanup: removed duplicate check from Config.registerCoreTool()" (#657)
Didn't notice the casing difference - duh....
| -rw-r--r-- | packages/core/src/config/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } }; |
