Add image and PDF attachment support with drag-drop and paste

This commit is contained in:
Chris Scott committed 2025-12-28 22:52:16 -05:00
1 parent cc04cb073c
commit d7873241e0
6 files changed
+227 -46

No files matched your search

+8
View File
@@ -159,9 +159,17 @@ export type SSEEvent =
export type ContentPart =
| { type: 'text', content: string }
| { type: 'file', path: string, name: string }
| { type: 'image', id: string, filename: string, mime: string, dataUrl: string }
export interface FileInfo {
path: string
name: string
mime?: string
}
export interface ImageAttachment {
id: string
filename: string
mime: string
dataUrl: string
}