patent 0.5.0 adds interactive search, a Homebrew source adapter, and a config file.
Highlights
Interactive search mode. Run patent with no arguments to get a search prompt inside the TUI. Type an idea, see results, press n to search again without restarting. No need to leave the terminal between searches.
New source: Homebrew. Searches both formulae and casks from the Homebrew catalog, bringing the total to 12 sources. Automatically selected for queries mentioning cli, brew, macos, or cask.
Config file. Store model, api_base, and api_key in ~/.config/patent/config.toml instead of passing flags every time. Environment variables (PATENT_MODEL, PATENT_API_BASE, PATENT_API_KEY) work too. Precedence: CLI flag > env var > config file > built-in default.
Contributors
- @paarothecoder — Homebrew source adapter (#39)
- @krishnarg04 — config file + env var overrides (#38)
Install
cargo install patentOr use the installer script:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/r14dd/patent/releases/download/v0.5.0/patent-installer.sh | shPre-built binaries are attached below.