summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-01-30fix: restore corrupted cmd/hexai/main.go from commit 6103208feature/anthropic-api-providerPaul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-019c0e27-1598-778e-ad3b-fa43ce6e7073 Co-authored-by: Amp <amp@ampcode.com>
2026-01-29refactor: apply code style best practices to Anthropic implementationPaul Buetow
- Reorganize anthropic.go: types, interface checks, constructor, public methods, private methods - Extract helper methods from Chat() and ChatStream() to keep functions under 50 lines - Add resolveOptions(), sendRequest(), extractContent() private methods - Add explicit interface satisfaction check for Client and Streamer - Add documentation comments to all public methods (Chat, Name, DefaultModel, ChatStream) - Apply gofmt and gofumpt formatting - Apply goimports for import ordering All 51 tests in llm package pass All code adheres to best practices from go-projects.md: - Value semantics (value receivers only) - Constructors before methods - Public before private - Functions under 50 lines - Explicit interface satisfaction - Documentation on all public identifiers - Proper error handling - Context as first parameter for I/O functions Amp-Thread-ID: https://ampcode.com/threads/T-019c0af1-f215-72cf-9940-b014b1a9576b Co-authored-by: Amp <amp@ampcode.com>
2026-01-29feat: add native Anthropic API provider supportPaul Buetow
- Implement new anthropicClient with full Client interface - Add Streamer interface for token-by-token streaming via SSE - Add Anthropic Messages API v1 integration with proper headers - Support claude-3-5-sonnet-20241022 as default model - Add configuration via [anthropic] TOML section - Add environment variable overrides (HEXAI_ANTHROPIC_*) - Support both HEXAI_ANTHROPIC_API_KEY and ANTHROPIC_API_KEY fallback - Integrate Anthropic key handling in LSP, CLI, and llmutils - Update provider factory to support 'anthropic' provider name - Add 11 comprehensive unit tests for Anthropic client - Update config.toml.example with [anthropic] section - Update NewFromConfig() signature to accept anthropicAPIKey parameter - All 51 internal LLM tests pass (11 new Anthropic tests + 40 existing) Anthropic models can be accessed via: [anthropic] model = "claude-3-5-sonnet-20241022" base_url = "https://api.anthropic.com/v1" temperature = 0.2 or environment: export HEXAI_PROVIDER="anthropic" export HEXAI_ANTHROPIC_API_KEY="your-key" Amp-Thread-ID: https://ampcode.com/threads/T-019c0af1-f215-72cf-9940-b014b1a9576b Co-authored-by: Amp <amp@ampcode.com>
2025-11-03Fix: Address lint warnings and bump patch version to 0.15.3v0.15.3Paul Buetow
2025-11-02some linter fixesPaul Buetow
2025-10-04remove planPaul Buetow
2025-10-03Switch inline prompt markers to >! prefixv0.15.1Paul Buetow
2025-10-02feat: add OpenRouter providerv0.15.0Paul Buetow
2025-09-28Add slash toggle for completionsv0.14.0Paul Buetow
2025-09-28Document config defaults in CLI helpPaul Buetow
2025-09-28Bump version to 0.13.0v0.13.0Paul Buetow
2025-09-28Propagate --config overrides through CLI tools and LSP reloadsPaul Buetow
2025-09-28Add --config flag support across CLI, LSP, and tmux toolsPaul Buetow
2025-09-28Improve multi-provider completion streaming and CLI selector flagsPaul Buetow
2025-09-27Support multi-provider fan-out across CLI and completionsPaul Buetow
2025-09-26Refactor surface config to support multi-provider arraysPaul Buetow
2025-09-26Add per-surface provider overrides and wiringPaul Buetow
2025-09-26Bump version to 0.12.1v0.12.1Paul Buetow
2025-09-26Auto apply inline prompt completionsPaul Buetow
2025-09-26Skip chat handling for inline promptsPaul Buetow
2025-09-26Log config reload changesPaul Buetow
2025-09-26Allow slash commands without prefixPaul Buetow
2025-09-26Document runtime config reload commandPaul Buetow
2025-09-25Bump version to 0.12.0v0.12.0Paul Buetow
2025-09-24Add runtime config store and reload commandPaul Buetow
2025-09-21add screenshotPaul Buetow
2025-09-21add screenshotPaul Buetow
2025-09-21add screenshotPaul Buetow
2025-09-21add screenshotPaul Buetow
2025-09-21add screenshotPaul Buetow
2025-09-21clarifyPaul Buetow
2025-09-19morev0.11.6Paul Buetow
2025-09-19Release v0.11.5v0.11.5deletePaul Buetow
2025-09-19fixPaul Buetow
2025-09-19Release v0.11.4v0.11.4Paul Buetow
2025-09-17chore: bump version to 0.11.3v0.11.3Paul Buetow
2025-09-17chore(openai): revert default model to gpt-4.1Paul Buetow
2025-09-17feat(openai): set default model to gpt-4oPaul Buetow
2025-09-17chore: bump version to 0.11.2v0.11.2Paul Buetow
2025-09-17chore: commit uncommitted changes before version bumpPaul Buetow
2025-09-17cleanupPaul Buetow
2025-09-17chore(version): bump to v0.11.1 (gpt-5 defaults, timeouts, global stats, ↵v0.11.1Paul Buetow
editor fix)
2025-09-17feat(stats,tmux): global Σ@window stats across processes with flocked ↵Paul Buetow
cache; width mitigation (narrow/maxlen); configurable [stats] window_minutes; robust coverage parsing; docs update\n\n- Add internal/stats with windowed event cache + flock + atomic writes\n- Wire stats into LSP/CLI/Tmux Action; tmux shows Σ@window with per-model tail\n- HEXAI_TMUX_STATUS_NARROW and HEXAI_TMUX_STATUS_MAXLEN for width control\n- Add [stats] window_minutes to config and apply on startup\n- Improve Magefile coverage handling; add tests to lift coverage >85%\n- Update docs/tmux.md and config example
2025-09-16release: v0.11.0 – context-aware in-editor chat; respect ↵v0.11.0Paul Buetow
general.context_mode; stabilize env-dependent tests
2025-09-15update docsPaul Buetow
2025-09-15docs: move build and install guide to its own filePaul Buetow
2025-09-15change default timeoutPaul Buetow
2025-09-15release: v0.10.1v0.10.1Paul Buetow
- Fix TUI 'p' hotkey: open editor for Custom prompt - Introduce ActionCustomPrompt to disambiguate from Custom actions submenu - Bump version to 0.10.1
2025-09-14cleanupPaul Buetow
2025-09-14release: v0.10.0v0.10.0Paul Buetow