Rewrite AIChatPanel with: - Context picker: current note auto-added, search to add more notes, removable context pills, token estimation badge - Real Anthropic API integration via Vite dev server proxy (SSE streaming) - API key stored in localStorage, configurable via dialog - Model selector: Haiku 3.5, Sonnet 4, Opus 4 - Mock fallback when no API key is configured - Extracted useAIChat hook and ai-chat utilities for clean separation Decision: Using Vite middleware proxy for dev mode to avoid CORS issues with direct browser-to-Anthropic calls. Phase 2 will add Rust backend. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.0 KiB
2.0 KiB