Skip to content

feat: prioritize SDK sources over example apps in search results#10

Merged
critesjosh merged 1 commit intomainfrom
feat/prioritize-sdk-sources
Mar 4, 2026
Merged

feat: prioritize SDK sources over example apps in search results#10
critesjosh merged 1 commit intomainfrom
feat/prioritize-sdk-sources

Conversation

@critesjosh
Copy link
Collaborator

Summary

  • Add getResultPriority() that assigns numeric priority tiers to search results based on repo and file path: SDK core (1) > reference contracts (2) > noir stdlib (3) > docs/tooling (4) > example apps (5)
  • Sort results by priority in both parseRgOutput and manualSearch before applying maxResults limit, ensuring SDK sources always rank above example apps
  • Add tests for priority mapping and end-to-end sort ordering

Test plan

  • All 164 tests pass (npm test)
  • Verify with live repos that SDK results appear before example app results for common queries like transfer, Token

🤖 Generated with Claude Code

Results from example apps (gregoswap, demo-wallet, aztec-starter) can
use internal/deprecated patterns and rank above official SDK packages.
Sort results by source priority so SDK core (aztec-nr, yarn-project)
ranks highest, followed by reference contracts, noir stdlib, other
docs/tooling, and finally example apps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@critesjosh critesjosh merged commit 32740c3 into main Mar 4, 2026
6 checks passed
@critesjosh critesjosh deleted the feat/prioritize-sdk-sources branch March 4, 2026 21:23
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant