(execCtx ExecutionContext, path string)
| 1050 | suggestions = "Available deferred tools (use select: to load): " + strings.Join(candidates, ", ") |
| 1051 | } |
| 1052 | } |
| 1053 | if suggestions != "" { |
| 1054 | parts = append(parts, fmt.Sprintf("Not found: %s. %s", strings.Join(notFound, ", "), suggestions)) |
| 1055 | } else { |
| 1056 | parts = append(parts, fmt.Sprintf("Not found: %s. No deferred tools available.", strings.Join(notFound, ", "))) |
| 1057 | } |
| 1058 | } |
| 1059 | if len(parts) == 0 { |
| 1060 | return "No tools were activated." |
| 1061 | } |
| 1062 | return strings.Join(parts, "\n") |
| 1063 | } |
| 1064 | |
| 1065 | func handleToolSearchQuery(query string, registry *ToolRegistry) string { |
| 1066 | results := registry.SearchDeferred(query) |
| 1067 | if len(results) == 0 { |
no test coverage detected