Commit Graph

22 Commits

Author SHA1 Message Date
hetaoBackend
f31258dd10 feat: add .skill file preview support
Enable previewing .skill files (ZIP archives) by extracting and displaying
their SKILL.md content. Add caching to avoid repeated ZIP extraction.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:27:06 +08:00
hetaoBackend
624f758163 feat: add skill installation API endpoint
Add POST /api/skills/install endpoint to install .skill files from
thread's user-data directory. The endpoint extracts the ZIP archive,
validates SKILL.md frontmatter, and installs to skills/custom/.

Frontend Install buttons now call the API instead of downloading.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:10:05 +08:00
Henry Li
47fe2f8195 feat: add notification 2026-01-31 11:08:27 +08:00
Henry Li
618b3e1e8f feat: support Github Flavored Markdown 2026-01-30 16:41:18 +08:00
ruitanglin
4b63e70b7e feat: refine citations format and improve content presentation
Backend:
- Simplify citations prompt format and rules
- Add clear distinction between chat responses and file content
- Enforce full URL usage in markdown links, prohibit [cite-1] format
- Require content-first approach: write full content, then add citations at end

Frontend:
- Hide <citations> block in both chat messages and markdown preview
- Remove top-level Citations/Sources list for cleaner UI
- Auto-remove <citations> block in code editor view for markdown files
- Keep inline citation hover cards for reference details

This ensures citations are presented like Claude: clean content with inline reference badges.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-29 12:29:13 +08:00
ruitanglin
33c47e0c56 feat: add inline citations and thread management features
Citations:
- Add citations parsing utilities for extracting source references from AI responses
- Render inline citations as hover card badges in message content
- Display citation cards with title, URL, and description on hover
- Add citation badge rendering in artifact markdown preview
- Update prompt to guide AI to output citations in correct format

Thread Management:
- Add rename functionality for chat threads with dialog UI
- Add share functionality to copy thread link to clipboard
- Share links use Vercel URL for production accessibility
- Add useRenameThread hook for thread title updates

i18n:
- Add translations for rename, share, cancel, save, and linkCopied

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-28 19:15:11 +08:00
Henry Li
9501ec5eed fix: remove tooltip 2026-01-25 00:06:49 +08:00
Henry Li
099fb727cc feat: auto expand in demo mode 2026-01-24 23:51:11 +08:00
Henry Li
c7a40d6a23 refactor: move 2026-01-21 10:46:43 +08:00
Henry Li
6e024d6c8f feat: add code editor 2026-01-21 09:33:33 +08:00
Henry Li
28d724d55a feat: make artifact "floating" 2026-01-21 08:50:15 +08:00
Henry Li
ac9ef30780 feat: implement i18n 2026-01-20 14:06:47 +08:00
Henry Li
24ca87d650 feat: add ToggleGroup 2026-01-19 19:41:46 +08:00
Henry Li
c321c9293a fix: decode URL 2026-01-18 20:26:01 +08:00
Henry Li
ec1964c829 feat: support SSE write_file(0 2026-01-18 17:13:15 +08:00
Henry Li
79d87de523 feat: change light theme 2026-01-17 20:32:27 +08:00
Henry Li
9a3f72869c feat: integrated with artifacts in states 2026-01-17 17:21:37 +08:00
Henry Li
aa2677e9fd feat: add open in new window 2026-01-17 15:19:53 +08:00
Henry Li
0c6f8353bf feat: support artifact preview 2026-01-17 15:09:44 +08:00
Henry Li
80c928fcf5 feat: set artifacts layout 2026-01-17 11:02:33 +08:00
Henry Li
c216093360 refactor: rename 2026-01-17 00:05:19 +08:00
Henry Li
e5050c6c1e feat: integrated with artifacts 2026-01-17 00:02:03 +08:00