7 Commits

Author SHA1 Message Date
Jarian
29a3552ab6 test: add comprehensive pytest suite with 356 tests covering core modules 2026-07-06 05:39:49 +00:00
opencode
8af3e5f1d5 Merge pull request #20: fix: add /api/chat endpoint for streaming (closes #10) 2026-07-05 07:16:56 +00:00
opencode
55ec1d663c Merge pull request #19: fix: add conversation history management (closes #9) 2026-07-05 07:16:53 +00:00
opencode
3bb50c4925 fix: use /api/chat endpoint for proper multi-turn conversations (issue #10)
- Replace /api/generate with /api/chat endpoint
- Send messages as proper list with role/content structure
- Preserve multi-turn semantics (system/user/assistant roles)
- Compatible with OpenAI-compatible endpoints
- Filter invalid message roles before sending
2026-07-05 07:04:52 +00:00
opencode
4a676a604a fix: add retry with exponential backoff for API calls (issue #9)
- Retry up to 3 times with exponential backoff (2s base delay)
- Retries on 5xx errors, timeouts, and connection errors
- Configurable via CLOVER_MAX_RETRIES and CLOVER_RETRY_BASE_DELAY
- Logs retry attempts with delay and attempt number
2026-07-05 07:04:13 +00:00
opencode
72e164f6a9 fix: add requests.Session with SSL verification control (issue #6)
- Use requests.Session for connection pooling and consistent headers
- Add CLOVER_SSL_VERIFY config option (default: true)
- Warn on non-TLS connections to non-localhost endpoints
- SSL verification can be disabled for self-signed certs
2026-07-05 07:02:15 +00:00
Jarian Cottingham
392bcfa2ef feat: Implement AI agent with multi-turn conversation and tool calling
Major enhancements to Clover CLI:

 New Features:
- AI agent with multi-turn conversation capabilities
- Tool calling system with 11+ tools for file operations, Git, linting, etc.
- Step-by-step AI assistance with play-by-play commentary
- Enhanced interactive mode with better UX

🔧 Core Components Added:
- ai_agent.py: Main AI agent with conversation management
- models/: API client and model management system
- Comprehensive tool system for development tasks

🛠️ Tools Available:
- File operations (create, read, update, delete)
- Command execution with safety checks
- Git operations (status, diff, commit, push)
- Code linting and formatting
- Project structure analysis
- Security scanning and dependency management

💡 User Experience:
- Real-time tool execution summaries
- File creation with full path visibility
- Error handling and retry mechanisms
- Clean conversation flow until task completion

🧹 Repository Cleanup:
- Added comprehensive .gitignore
- Removed __pycache__ directories and build artifacts
- Organized project structure

The AI can now actually create files, run commands, and work through complex
development tasks step-by-step with full transparency.
2026-01-15 01:23:40 -06:00