Skip to content

fix: use backend-ranked language search in cli#152

Merged
skvark merged 1 commit into
mainfrom
fix/backend-ranked-language-search
Jun 5, 2026
Merged

fix: use backend-ranked language search in cli#152
skvark merged 1 commit into
mainfrom
fix/backend-ranked-language-search

Conversation

@skvark

@skvark skvark commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

  • route queried githits languages calls through backend-ranked /languages?query=...&limit=5
  • route CLI-hosted MCP search_language through the same backend-ranked service method
  • isolate unauthenticated smoke probes from real keychain entries by using a dummy MCP URL for smoke-only auth storage keys

Prod verification

Built dist/cli.js and ran it against https://api.githits.com:

  • languages ts --json -> TypeScript first
  • languages type --json -> TypeScript first
  • languages java --json -> Java first
  • languages c++ --json -> C++ first
  • languages c# --json -> C# first
  • languages js --json -> JavaScript first
  • languages python --json -> Python first
  • languages py --json -> Python first
  • CLI-hosted MCP search_language produced the same first-result matrix
  • example "typescript debounce function" --lang ts --json returned a result
  • CLI-hosted MCP get_example with language: "ts" returned a result

Verification

  • 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.ts
  • bun run typecheck
  • bunx biome format <touched files>
  • bunx biome lint <touched files>
  • bunx bunup --dts --target node --packages=external --exports
  • GITHITS_API_URL=https://api.githits.com bun run smoke:cli
  • GITHITS_API_URL=https://api.githits.com bun run smoke:mcp

Note: bun run build writes the bundle on Windows but exits at the script's trailing Unix-only chmod; the equivalent bunx bunup ... build command completed successfully.

@skvark skvark requested a review from jlitola June 4, 2026 13:19
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.
@skvark skvark force-pushed the fix/backend-ranked-language-search branch from 5f66e5b to f9c9775 Compare June 5, 2026 11:28
@skvark skvark merged commit 3b18839 into main Jun 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant