Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/core/search/tool-search-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const TOOL_SEARCH_METADATA: Record<string, ToolSearchMetadata> = {
json_formatter: {
popularity: 100,
aliases: ["json beautifier", "json prettifier", "json validator", "pretty json", "format json", "format payload"],
taskSynonyms: ["pretty print json", "format api payload", "validate json payload", "clean json"],
taskSynonyms: ["pretty print json", "json prettify", "json pretty print", "json lint", "format api payload", "validate json payload", "clean json"],
categoryTerms: ["data", "api", "payload", "formatter", "validator"],
},
jwt_decoder: {
Expand All @@ -87,8 +87,8 @@ export const TOOL_SEARCH_METADATA: Record<string, ToolSearchMetadata> = {
},
base64_encode_decode: {
popularity: 94,
aliases: ["base 64", "base64 decoder", "base64 encoder", "b64", "decode base64", "encode base64"],
taskSynonyms: ["decode text", "encode text", "decode payload", "convert base64"],
aliases: ["base 64", "base64 decoder", "base64 encoder", "base64 urlsafe", "base64url", "url safe base64", "b64", "decode base64", "encode base64"],
taskSynonyms: ["decode text", "encode text", "decode payload", "convert base64", "decode base64 urlsafe", "encode base64 url safe"],
categoryTerms: ["encoder", "decoder", "conversion"],
},
regex_tester: {
Expand All @@ -111,8 +111,8 @@ export const TOOL_SEARCH_METADATA: Record<string, ToolSearchMetadata> = {
},
curl_to_code: {
popularity: 86,
aliases: ["curl converter", "curl code generator", "convert curl", "curl to fetch", "curl to python"],
taskSynonyms: ["turn curl into code", "generate request code", "convert curl command"],
aliases: ["curl converter", "curl code generator", "convert curl", "curl generator", "curl to fetch", "curl to javascript", "curl to js", "curl to python", "curl to requests"],
taskSynonyms: ["turn curl into code", "generate request code", "convert curl command", "make fetch from curl"],
categoryTerms: ["http", "api", "request", "code"],
},
openapi_viewer: {
Expand Down Expand Up @@ -303,4 +303,3 @@ export function getToolSearchMetadataTerms(toolKey: string | undefined, locale?:
...getToolLocalizedSearchAliases(toolKey, locale),
])
}

3 changes: 3 additions & 0 deletions tests/unit/command-search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,15 @@ describe("scoreCommandSearch", () => {
const cases: Array<[string, string]> = [
["json", "json_formatter"],
["format payload", "json_formatter"],
["json prettify", "json_formatter"],
["jwt", "jwt_decoder"],
["decode token", "jwt_decoder"],
["base64", "base64_encode_decode"],
["base 64", "base64_encode_decode"],
["base64 urlsafe", "base64_encode_decode"],
["regex", "regex_tester"],
["curl", "curl_to_code"],
["curl generator", "curl_to_code"],
["openapi", "openapi_viewer"],
["log", "log_scrubber"],
["sanitize HAR", "har_viewer_sanitizer"],
Expand Down