dayuan.jiang
de2a6938b1
feat: improve XML handling and edit_diagram tool
...
- Add formatXML function to format single-line XML with proper indentation
- Format chartXml after fetching to ensure consistency
- Update replaceXMLParts to handle single-line XML with substring fallback
- Improve edit_diagram tool guidance with SEARCH/REPLACE best practices
- Add concrete examples to help AI use minimal, targeted edits
2025-08-31 20:52:04 +09:00
dayuan.jiang
44ec398f30
upgrade to ai-sdk 5
2025-08-31 12:54:14 +09:00
dayuan.jiang
d915318605
add github icon
2025-04-03 15:29:26 +00:00
dayuan.jiang
645980fbb6
change model to claud 3.5
2025-04-03 15:10:53 +00:00
dayuan.jiang
6c8b5c48a2
refactor: Relocate handleClear Logic: Move the chat and diagram clearing logic to ChatPanel (or a Server Action) and have ChatInput call the onClearChat prop. Introduce a clearDiagram method in DiagramContext.
2025-03-27 08:09:22 +00:00
dayuan.jiang
7e0790d60f
refactor: update setFiles prop type to accept File[] and simplify file handling
2025-03-27 08:02:03 +00:00
dayuan.jiang
34cc437523
refactor: Reduce Prop Drilling & Improve Separation of Concerns:
2025-03-27 07:48:19 +00:00
dayuan.jiang
3b4072b113
refactor: extract HistoryDialog component
2025-03-26 08:51:21 +00:00
dayuan.jiang
5c00c00584
refactor: extract all states to diagram-context.
2025-03-26 00:30:00 +00:00
dayuan.jiang
bd6946a13c
minor: fix the prompt
2025-03-25 10:56:08 +00:00
dayuan.jiang
5d152c66d5
fix: flash problem
2025-03-25 08:56:24 +00:00
dayuan.jiang
8882aa9ee1
fix: fix the issue that the diagram flash during generation
2025-03-25 08:56:11 +00:00
dayuan.jiang
21537f6e7b
refactor: remove stepCounterRef prop and manage step counter internally
2025-03-25 04:23:38 +00:00
dayuan.jiang
dedb5855c3
refactor: move message-display to seperate component.
2025-03-25 02:58:11 +00:00
dayuan.jiang
d2a630929b
refactor: chat-example-panel.tsx
2025-03-25 02:24:12 +00:00