mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
4966c0ca2a
Add multimodal image support so users can paste clipboard images into prompts alongside text. Images are read from the system clipboard via platform-specific tools and sent as fantasy.FilePart to the LLM API. - New internal/clipboard package with platform-specific image readers: Linux: xclip (X11) with wl-paste (Wayland) fallback macOS: osascript with AppKit NSPasteboard Magic byte detection for PNG/JPEG/GIF/WebP/BMP/TIFF - New ImageContent type in message model with full serialization and Fantasy bridge support (ImageContent <-> fantasy.FilePart) - InputComponent handles Ctrl+V (paste image), Ctrl+U (clear images), shows attachment indicator, and carries images through submitMsg - App layer queue upgraded from []string to []queueItem to carry files alongside prompts through the drain loop - Kit SDK gains PromptResultWithFiles() for multimodal user messages - AppController interface extended with RunWithFiles()