From a2f8f6aec5033182f13f9c5ce4aa5c9d9f290635 Mon Sep 17 00:00:00 2001 From: ekko Date: Sat, 11 Apr 2026 18:54:46 +0800 Subject: [PATCH] feat: add attachment upload UI and local file upload endpoint - Add attachment button, file picker, and preview area to ChatInput - Render image/file attachments in user message bubbles (MessageItem) - Add Attachment type and attachments field to Message interface - Add POST /__upload endpoint to both Vite dev server and production server for saving files to temp directory and returning local file paths - Translate README to English Co-Authored-By: Claude Opus 4.6 --- README.md | 321 ++++++++++++++-------------- bin/hermes-web-ui.mjs | 64 +++++- src/components/chat/ChatInput.vue | 178 ++++++++++++++- src/components/chat/MessageItem.vue | 78 +++++++ src/stores/chat.ts | 51 ++++- vite.config.ts | 72 ++++++- 6 files changed, 593 insertions(+), 171 deletions(-) diff --git a/README.md b/README.md index 8b00da8..66d0174 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -# Hermes UI +# Hermes Web UI -Hermes Agent 的 Web 管理面板,用于对话交互和定时任务管理。 +Web dashboard for [Hermes Agent](https://github.com/EKKOLearnAI/hermes-agent) — chat interaction and scheduled job management. -## 技术栈 +## Tech Stack - **Vue 3** — Composition API + `