- Change maxTokens to max_tokens for Mistral API compatibility
- Extract maxTokens from options before spreading to avoid parameter conflicts
- Tested successfully with live API calls
- Add Mistral AI integration for agent responses
- Create mistralClient service with agent-specific prompts
- Support for architect, backend engineer, frontend engineer, and designer roles
- Automatic JSON response parsing and validation
- Implement WebSocket real-time communication
- Update orchestrator with WebSocket broadcasting
- Add client subscription system for debate updates
- Real-time agent response streaming
- Add consensus and voting system
- Calculate weighted consensus with architect priority
- Confidence-based voting mechanism
- Auto-complete debates when consensus reached
- Integrate Mermaid diagram rendering
- Support for embedded diagrams in agent responses
- Client-side Mermaid.js integration
- Auto-render diagrams on response updates
- Update frontend for real-time experience
- WebSocket composable for reactive updates
- Live status messages and response streaming
- Loading states and consensus display