fix: use backend-ranked language search in cli#152
Merged
Conversation
Routes queried CLI language commands and the CLI-hosted MCP search_language tool through the backend /languages query endpoint instead of local filtering. Also isolates unauthenticated smoke probes from real keychain credentials so the live smoke suites remain reliable on Windows.
5f66e5b to
f9c9775
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
githits languagescalls through backend-ranked/languages?query=...&limit=5search_languagethrough the same backend-ranked service methodProd verification
Built
dist/cli.jsand ran it againsthttps://api.githits.com:languages ts --json-> TypeScript firstlanguages type --json-> TypeScript firstlanguages java --json-> Java firstlanguages c++ --json-> C++ firstlanguages c# --json-> C# firstlanguages js --json-> JavaScript firstlanguages python --json-> Python firstlanguages py --json-> Python firstsearch_languageproduced the same first-result matrixexample "typescript debounce function" --lang ts --jsonreturned a resultget_examplewithlanguage: "ts"returned a resultVerification
bun test src/services/githits-service.test.ts src/services/refreshing-githits-service.test.ts src/commands/languages.test.ts src/tools/search-language.test.ts src/tools/search-language-parity.test.ts src/shared/language-filter.test.tsbun run typecheckbunx biome format <touched files>bunx biome lint <touched files>bunx bunup --dts --target node --packages=external --exportsGITHITS_API_URL=https://api.githits.com bun run smoke:cliGITHITS_API_URL=https://api.githits.com bun run smoke:mcpNote:
bun run buildwrites the bundle on Windows but exits at the script's trailing Unix-onlychmod; the equivalentbunx bunup ...build command completed successfully.