zsh-autosuggestions/spec/strategies
Frad LEE 8a9c1a2a30 feat: add ai suggestion strategy
Add new AI strategy that queries OpenAI-compatible LLM APIs
to generate intelligent command completions based on partial
input, working directory, and recent shell history.

- Add AI strategy implementation with JSON escaping
- Add context gathering with PWD prioritization
- Add response normalization for clean suggestions
- Add configuration defaults for AI settings
- Add comprehensive test suite with mocked responses
- Update README with setup guide and examples

Enables LLM-powered completions via ZSH_AUTOSUGGEST_AI_API_KEY
with silent failure and fallback to next strategy. Supports
OpenAI, Ollama, and custom endpoints. Requires curl and jq.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 10:24:52 +08:00
..
ai_spec.rb feat: add ai suggestion strategy 2026-02-05 10:24:52 +08:00
completion_spec.rb Allow skipping completion suggestions when buffer matches a pattern 2019-12-15 08:13:54 -07:00
history_spec.rb Allow configuring to ignore history entries matching a pattern 2019-07-02 21:46:17 -06:00
match_prev_cmd_spec.rb Allow configuring to ignore history entries matching a pattern 2019-07-02 21:46:17 -06:00
special_characters_helper.rb Fix flaky special char specs by not using with_history twice per test 2020-05-06 23:43:26 -06:00