feat: add bash/zsh/fish shell completions - #46
Conversation
Add klaatai completions <shell> to print static completion scripts for both klaatai and klaatcode, covering top-level commands and flags. Includes reference scripts under completions/ and README install hints.
|
cc: @aakashrajput |
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage Correctness concerns
Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
|
@Ayush7614 please take care of comments on your PR. Thanks |
Extract resolveCompletions for unit-testing the unknown-shell error path. Keep zsh chat directory completion — it matches chat [dir].
|
Addressed the review-bot notes in a follow-up commit:
|
|
🤖 KlaatAI Review Bot (powered by Klaatu, advisory only — a maintainer makes the real call) Issue match Test coverage Correctness concerns Verdict This is an automated review to help triage faster, not a gate. Nothing here blocks merging. |
|
@Ayush7614 Really appreciate you taking the time to improve KlaatCode. Your contribution helps make the project better for everyone. If you haven't already, we'd love it if you could ⭐ star the repository and follow https://github.com/KlaatAI on GitHub to stay updated with new features and releases. Feel free to keep using KlaatAI for your projects, and don't hesitate to open more issues, suggest ideas, or submit future PRs—we're always happy to have contributors like you in the community. Looking forward to seeing your next contribution. Meantime please follow KlaatAI socials and if ok you can join discord too for suggestions on project, thanks Happy coding! 🚀 |
Summary
klaatai completions <bash|zsh|fish>that prints static completion scripts (closes Shell completions for bash/zsh/fish #31).chat,run,login,logout,whoami,upgrade,serve,web,acp,completions) and their flags for bothklaataiandklaatcode.completions/; install hints added to the README.Test plan
bun run typecheckbun test(186 pass)bun run bench:selfcheckbun run buildbash -n/zsh -non generated scriptsbash -c 'source … && complete -p klaatai klaatcode'klaatai completions bogusexits 1 with usagesource <(klaatai completions bash)then tab-completeklaatai <TAB>How tested
bash -nandzsh -nsyntax-checked the scripts (fish not installed on this machine)