mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add image and PDF attachment support with drag-drop and paste
This commit is contained in:
1 parent
cc04cb073c
commit
d7873241e0
6 files changed
+227
-46
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user