@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/builtin.js CHANGED
@@ -4350,6 +4350,12 @@ var toolSearchTool = {
4350
4350
  if (query2 && !t.name.toLowerCase().includes(query2) && !t.description.toLowerCase().includes(query2)) {
4351
4351
  return false;
4352
4352
  }
4353
+ if (input.tags && input.tags.length > 0) {
4354
+ const toolCat = (t.category ?? "").toLowerCase();
4355
+ if (!input.tags.some((tag) => toolCat.includes(tag.toLowerCase()))) {
4356
+ return false;
4357
+ }
4358
+ }
4353
4359
  if (input.permission && t.permission !== input.permission) {
4354
4360
  return false;
4355
4361
  }