- Add Cloudflare Workers AI as third provider alongside Claude and Ollama
- New cloudflare.js API handler with format conversion
- Tool converter functions for Cloudflare's OpenAI-compatible format
- Handle [TOOL_CALLS] and [Called tool:] text formats from Mistral
- Robust parser that handles truncated JSON responses
- Add usage tracking with cost display
- New usageTracker.js service for tracking token usage per session
- UsageDetailModal component showing per-request breakdown
- Cost display in ChatPanel header
- Add new diagram manipulation features
- Entity scale and rotation support via modify_entity tool
- Wikipedia search tool for researching topics before diagramming
- Clear conversation tool to reset chat history
- JSON import from hamburger menu (moved from ChatPanel)
- Fix connection label rotation in billboard mode
- Labels no longer have conflicting local rotation when billboard enabled
- Update rotation when rendering mode changes
- Improve tool calling reliability
- Add MAX_TOOL_ITERATIONS safety limit
- Break loop after model switch to prevent context issues
- Increase max_tokens to 4096 to prevent truncation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add get_camera_position tool for positioning entities relative to user view
- Fix color change causing entities to disappear (dispose mesh before rebuild)
- Fix connections being lost when modifying entities (defer disposal, let
scene observer re-find meshes after they're recreated with same ID)
- Add position and color setters to DiagramObject for real-time updates
- Add debug logging to diagramAI and claude.js for troubleshooting
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement session management to maintain conversation history and entity
context across page refreshes. Sessions are stored in-memory and include:
- Conversation history (stored server-side, restored on reconnect)
- Entity snapshots synced before each message for LLM context
- Auto-injection of diagram state into Claude's system prompt
Key changes:
- Add session store service with create/resume/sync/clear operations
- Add session API endpoints (/api/session/*)
- Update Claude API to inject entity context and manage history
- Update ChatPanel to initialize sessions and sync entities
- Add debug endpoint for inspecting session state
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Express server with vite-express for combined frontend/API serving
- Create modular API route structure (server/api/)
- Implement Claude API proxy with proper header injection
- Support split deployment via API_ONLY and ALLOWED_ORIGINS env vars
- Remove Claude proxy from Vite config (now handled by Express)
- Add migration plan documentation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>