feat(engine): add bestRankedOpportunity - #3368
Conversation
Return the top-scoring generic ranked candidate in one call for miner discovery flows that only need a single pick. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 05:13:20 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3368 +/- ##
=======================================
Coverage 93.88% 93.89%
=======================================
Files 283 284 +1
Lines 30572 30574 +2
Branches 11137 11138 +1
=======================================
+ Hits 28704 28706 +2
Misses 1211 1211
Partials 657 657
🚀 New features to boost your workflow:
|
Summary
bestRankedOpportunityin@jsonbored/gittensory-engine— returns the highest-scoring generic ranked candidate ornullwhen the list is empty.rankOpportunitiesfor miner discovery flows that only need a single pick.Test plan
COVERAGE_NO_THRESHOLDS=1 npx vitest run test/unit/ranked-opportunity-best-pick.test.ts --coveragenpx diff-cover coverage/lcov.info --compare-branch=main --fail-under=99→ 100%npm run build --workspace @jsonbored/gittensory-engine && npm run build:minerMade with Cursor