feat: add "did you mean?" suggestions for typos#654
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
f6bf5bc to
8e7e8ec
Compare
Add helpful suggestions when users mistype: - Hook names (e.g., "pre-comit" -> Did you mean 'pre-commit'?) - Config keys (e.g., "jbs" -> Did you mean 'jobs'?) Uses xx::suggest for fuzzy string matching. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8e7e8ec to
ae337ce
Compare
### 🚀 Features - **(init)** add auto-detection and interactive mode by [@jdx](https://github.com/jdx) in [#656](#656) - **(stash)** use haiku names for stash patch backups by [@jdx](https://github.com/jdx) in [#655](#655) - add git worktree support by [@jdx](https://github.com/jdx) in [#651](#651) - add "did you mean?" suggestions for typos by [@jdx](https://github.com/jdx) in [#654](#654) ### 🚜 Refactor - use xx utilities and drop unused dependencies by [@jdx](https://github.com/jdx) in [#653](#653) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk release bookkeeping: mainly version string/package URL updates and regenerated CLI docs, with no substantive runtime logic changes. > > **Overview** > Releases **v1.35.0** by updating crate versions (`Cargo.toml`/`Cargo.lock`) and adding the `1.35.0` entry to `CHANGELOG.md`. > > Regenerates documentation and examples to reference `v1.35.0` package URLs and CLI version metadata, and updates `hk init` docs/usage to include the new `--interactive` flag. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 46c426e. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: mise-en-dev <123107610+mise-en-dev@users.noreply.github.com>
Summary
xx::suggestfor fuzzy string matching with Jaro-Winkler algorithmExamples
Test plan
cargo testpasses🤖 Generated with Claude Code
Note
Medium Risk
Mostly user-facing error-message improvements, but it also upgrades
reqwest/TLS (rustlsnow usingaws-lc-rs) andzip, which can affect networking/cert verification and archive handling behavior across platforms.Overview
Improves CLI UX by adding "did you mean?" suggestions when users mistype configuration keys (
hk config get/explain) or hook names (hk run), usingxx::suggest::did_you_meanand centralizing config-key error formatting.Updates
Cargo.lockwith a dependency refresh includingxxto2.5.0,reqwestto0.13.1(switching torustls-platform-verifier),rustlscrypto backend changes (aws-lc-rs), andzipto7.2.0with updated compression/crypto dependencies.Written by Cursor Bugbot for commit ae337ce. This will update automatically on new commits. Configure here.