feat(commands): did-you-mean hint for unknown @gittensory verbs (#2170) - #3854
Conversation
…bored#2170) When a mention uses an unrecognized verb, keep the help fallback but surface a Levenshtein-based suggestion in the help card when a close catalog match exists. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-06 18:24:39 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 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 #3854 +/- ##
==========================================
+ Coverage 93.47% 93.48% +0.01%
==========================================
Files 332 333 +1
Lines 33110 33151 +41
Branches 12116 12127 +11
==========================================
+ Hits 30948 30990 +42
Misses 1530 1530
+ Partials 632 631 -1
🚀 New features to boost your workflow:
|
Fixes #2170
Summary
command-suggestmodule (Levenshtein distance + catalog lookup) for unrecognized@gittensoryverbs.unknownVerbon the parsed command so the help card can show a did-you-mean line when a close match exists (distance ≤ 2).Test plan
npm run test:ci(local, Node 22.18)src/github/**lines viacommand-suggest.test.ts+github-commands.test.ts@gittensory reveiw→ help +unknownVerb;@gittensory preflightunchangedDid you mean @gittensory preflight?; far-off typo and bare@gittensoryomit the hintMade with Cursor