From f9c5d903a117f6876ba9edbf07c0ce7c42379d5d Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Sat, 31 Jan 2026 01:37:13 +1000 Subject: [PATCH] fix(registry-search): remove category filter that causes missed results --- packages/tools/registrySearch/package.json | 2 +- packages/tools/registrySearch/src/index.ts | 22 +--------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/packages/tools/registrySearch/package.json b/packages/tools/registrySearch/package.json index e57f1fb..e8cd4c5 100644 --- a/packages/tools/registrySearch/package.json +++ b/packages/tools/registrySearch/package.json @@ -1,6 +1,6 @@ { "name": "@tpmjs/registry-search", - "version": "0.1.4", + "version": "0.1.5", "description": "Search the TPMJS tool registry from any AI SDK agent", "type": "module", "main": "dist/index.js", diff --git a/packages/tools/registrySearch/src/index.ts b/packages/tools/registrySearch/src/index.ts index 6bfbdcb..42185ab 100644 --- a/packages/tools/registrySearch/src/index.ts +++ b/packages/tools/registrySearch/src/index.ts @@ -7,7 +7,6 @@ const TPMJS_API_URL = process.env.TPMJS_API_URL || 'https://tpmjs.com'; */ type RegistrySearchInput = { query: string; - category?: string; limit?: number; }; @@ -29,24 +28,6 @@ export const registrySearchTool = tool({ type: 'string', description: 'Search query (keywords, tool names, descriptions)', }, - category: { - type: 'string', - description: 'Filter by tool category (optional)', - enum: [ - 'web-scraping', - 'data-processing', - 'file-operations', - 'communication', - 'database', - 'api-integration', - 'image-processing', - 'text-analysis', - 'automation', - 'ai-ml', - 'security', - 'monitoring', - ], - }, limit: { type: 'number', description: 'Maximum number of results (1-20, default 5)', @@ -57,12 +38,11 @@ export const registrySearchTool = tool({ required: ['query'], additionalProperties: false, }), - async execute({ query, category, limit = 5 }) { + async execute({ query, limit = 5 }) { try { const params = new URLSearchParams({ q: query, limit: String(limit), - ...(category && { category }), }); const url = `${TPMJS_API_URL}/api/tools/search?${params}`;