@wrongstack/tools 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4434,6 +4434,12 @@ var toolSearchTool = {
4434
4434
  if (query2 && !t.name.toLowerCase().includes(query2) && !t.description.toLowerCase().includes(query2)) {
4435
4435
  return false;
4436
4436
  }
4437
+ if (input.tags && input.tags.length > 0) {
4438
+ const toolCat = (t.category ?? "").toLowerCase();
4439
+ if (!input.tags.some((tag) => toolCat.includes(tag.toLowerCase()))) {
4440
+ return false;
4441
+ }
4442
+ }
4437
4443
  if (input.permission && t.permission !== input.permission) {
4438
4444
  return false;
4439
4445
  }