Commit Graph

7 Commits

Author SHA1 Message Date
anders 0e028c6b97 AI edit: support CURSOR insert at caret position 2026-05-27 11:10:11 +02:00
anders da1194e8a5 AI edit: return only changes, not full document
- Edit prompt asks for APPEND/PREPEND/REPLACE + only new content
- Frontend applies the edit surgically (append/prepend/replace)
- Much faster: AI only generates the new text, not the whole doc
- Chat mode still streams response progressively
2026-05-27 11:08:25 +02:00
anders b020d2e193 Stream AI responses (SSE) - text appears as it generates
- Backend streams tokens via Server-Sent Events
- Frontend reads stream with fetch + ReadableStream
- Edit mode: document updates live as tokens arrive
- Chat mode: response text appears progressively
- No more waiting for full generation to complete
2026-05-27 11:03:30 +02:00
anders 63f3c0dec8 Add timeout + lower temperature for AI calls 2026-05-27 10:58:12 +02:00
anders b2b454c563 Fix AI edit mode: strip code fences, stronger prompt 2026-05-27 10:55:47 +02:00
anders 8223e72fe3 AI chat panel with Edit/Chat modes + verify dropdown
- AI chat panel at bottom of editor (all 3 modes)
- Edit mode: AI modifies document directly (no explanations)
- Chat mode: AI answers questions about the document
- Verify dropdown: Spec Review, Grammar & Spelling, Summary
- Enter sends, Shift+Enter for newline
- /api/ai/chat endpoint with edit/chat system prompts
- Grammar and spec verify actions added to /api/ai/generate
2026-05-27 10:44:56 +02:00
anders 4df87cbf9a Phase 2-6: Git sync, sharing, 2FA, AI integration
- Git: init, commit, log, diff, restore, remotes, push/pull
- Auto-commit on every file save
- Sharing: share/unshare files with other users (ro/rw)
- Shared documents view in sidebar
- 2FA: TOTP setup/verify/disable, enforced at login
- AI: verify spec endpoint (LiteLLM), generate (summarize/prompt/expand)
- Light/dark theme with CSS variables
- File delete (recursive for folders)
- Admin panel + preferences panel
- File creation timestamp display
2026-05-22 19:53:24 +02:00