Logo
Explore Help
Sign In
i/next-ai-draw-io
1
0
Fork 0
You've already forked next-ai-draw-io
mirror of https://github.com/DayuanJiang/next-ai-draw-io.git synced 2026-01-11 18:48:36 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
828bf43e31f47890e02a2ddd8e63ab4077105262
next-ai-draw-io/components/chat/types.ts

17 lines
343 B
TypeScript
Raw Normal View History

refactor: extract ToolCallCard and ChatLobby components (#502) * refactor: extract ToolCallCard and ChatLobby components - Extract ToolCallCard.tsx (279 lines) for tool call UI rendering - Extract ChatLobby.tsx (272 lines) for empty state with session history - Reduce chat-message-display.tsx from 1760 to 1307 lines (-26%) * fix: address PR review feedback - Remove redundant key prop in ToolCallCard - Make onDeleteSession optional and conditionally render delete button - Extract shared types (DiagramOperation, ToolPartLike) to types.ts
2026-01-04 12:04:06 +09:00
export interface DiagramOperation {
operation: "update" | "add" | "delete"
cell_id: string
new_xml?: string
}
export interface ToolPartLike {
type: string
toolCallId: string
state?: string
input?: {
xml?: string
operations?: DiagramOperation[]
} & Record<string, unknown>
output?: string
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 24.6.0 Page: 38ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API