mirror of
https://github.com/EKKOLearnAI/hermes-web-ui.git
synced 2026-05-25 13:30:14 +00:00
ba72264542
* feat: restore group chat system with Socket.IO and SQLite persistence - GroupChatServer: Socket.IO server with room management, message history, typing indicators - SQLite storage for rooms, messages, and agent configuration - AgentClients: manages AI agent connections via socket.io-client, forwards @mentions to Hermes gateway - REST API: room CRUD, agent management, invite codes - Agent auto-restoration on server restart - Tests for all REST endpoints Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: add context-engine design document for group chat compression Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: handle special-character session search * fix: keep unicode dotted session search on quoted FTS path * feat: add context engine and group chat frontend UI - Context engine: three-zone compression (head/tail/summary) with LLM summarization, incremental updates, TTL cache, and graceful degradation - Frontend: group chat page with Socket.IO client, room sidebar, message list, agent/member display, create/join-by-code modals - Integration: wire context engine into agent-clients before /v1/runs - Refactor ChatStorage to use global DB (getDb/ensureTable) with gc_ prefix - Add i18n keys for group chat to all 8 locales - Add sidebar nav entry and router for group chat page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: remove leftover main branch code from merge conflict resolution The `isNumericQuery`, `hasUnsafeChars`, and `runLikeContentSearch` functions no longer exist — they were replaced by HEAD's `shouldUseLiteralContentSearch` and `runLiteralContentSearch`. This dead code block caused a TypeScript compile error after the merge. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: install missing socket.io dep and type ack params Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: enable WebSocket proxy and fix socket.io transport for group chat - Add ws: true to Vite proxy config so WebSocket upgrade requests are forwarded to the backend - Allow both polling and websocket transports on server and client (polling as fallback when WebSocket upgrade fails through proxy) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: separate socket.io path from REST routes for group chat socket.io was mounted at /api/hermes/group-chat which intercepted all REST requests to /api/hermes/group-chat/rooms etc, returning "Transport unknown". Changed socket.io path to /api/hermes/group-chat/ws to avoid conflicts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: improve group chat UI, agent management, and socket.io reliability - Redesign GroupChatPanel with Naive UI, stacked agent avatars, and popover management - Match GroupChatInput style with single chat input, add IME composition handling - Add agent add/remove per room with profile selection and duplicate prevention - Use @multiavatar for SVG avatar generation with caching - Decouple joinRoom from socket.io, use REST API for data loading - Switch socket.io to default path with /group-chat namespace to avoid proxy conflicts - Restore agent connections after server is listening - Add getRoomDetail REST endpoint and duplicate agent prevention (409) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: server-side @mention routing with context compression status and queue - Move @mention detection from agent socket listeners to server-side processMentions() - Add per-room processing lock to block mention dispatch during compression - Queue mentions during processing, drain only the latest when ready - Emit context_status events (compressing/replying/ready) to room via Socket.IO - Frontend displays compression status indicator above input - Token-based compression trigger (100k threshold) with CJK-aware estimation - Fix compressor type errors (countTokens parameter type) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: improve group chat profile handling and session sync Refine group chat room/session behavior with per-room compression controls, sidebar updates, and better stale session cleanup so multi-profile group chat state stays consistent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: group chat improvements — session lifecycle, typing recovery, mention highlighting - Fix cross-profile session deletion with deferred delete queue - Move saveSessionProfile to after gateway response confirmation - Replace all console.log with logger in group-chat modules - Add server-side typing/context_status state tracking for room rejoin - Fix @ mention popup position to follow cursor - Add @ mention highlighting (blue) in chat message content - Fix mention regex to match all occurrences after HTML tags - Enable esbuild minify and treeShaking - Move @multiavatar/multiavatar to devDependencies - Add i18n keys for group chat features - Update tests for new functionality Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: bump version to 0.4.5 and move @multiavatar to devDependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Zhicheng Han <zhicheng.han@mathematik.uni-goettingen.de>
119 lines
3.2 KiB
JSON
119 lines
3.2 KiB
JSON
{
|
|
"name": "hermes-web-ui",
|
|
"version": "0.4.5",
|
|
"description": "Self-hosted AI chat dashboard for Hermes Agent — multi-model (Claude, GPT, Gemini, DeepSeek) web UI with Telegram, Discord, Slack, WhatsApp integration",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/EKKOLearnAI/hermes-web-ui.git"
|
|
},
|
|
"homepage": "https://github.com/EKKOLearnAI/hermes-web-ui",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=23.0.0"
|
|
},
|
|
"keywords": [
|
|
"hermes",
|
|
"hermes-agent",
|
|
"hermes-web",
|
|
"agent",
|
|
"ai",
|
|
"ai-agent",
|
|
"ai-chat",
|
|
"ai-dashboard",
|
|
"chatgpt",
|
|
"claude",
|
|
"openai",
|
|
"gemini",
|
|
"deepseek",
|
|
"llm",
|
|
"multi-model",
|
|
"chat-ui",
|
|
"dashboard",
|
|
"self-hosted",
|
|
"telegram",
|
|
"discord",
|
|
"slack",
|
|
"whatsapp",
|
|
"matrix",
|
|
"feishu",
|
|
"weixin",
|
|
"multi-platform",
|
|
"vue3",
|
|
"typescript"
|
|
],
|
|
"bin": {
|
|
"hermes-web-ui": "./bin/hermes-web-ui.mjs"
|
|
},
|
|
"scripts": {
|
|
"start": "vite --host --port 8648",
|
|
"dev": "concurrently \"npm run dev:server\" \"npm run dev:client\"",
|
|
"dev:client": "vite --host",
|
|
"dev:server": "nodemon --signal SIGTERM --watch packages/server/src -e ts,tsx --exec TS_NODE_PROJECT=packages/server/tsconfig.json node -r ts-node/register packages/server/src/index.ts",
|
|
"build": "vue-tsc -b && vite build && tsc --noEmit -p packages/server/tsconfig.json && node scripts/build-server.mjs",
|
|
"prepare": "[ -d dist ] || npm run build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"dist/"
|
|
],
|
|
"dependencies": {
|
|
"eventsource": "^4.1.0",
|
|
"node-pty": "^1.1.0",
|
|
"socket.io": "^4.8.3",
|
|
"socket.io-client": "^4.8.3"
|
|
},
|
|
"devDependencies": {
|
|
"@multiavatar/multiavatar": "^1.0.7",
|
|
"@koa/bodyparser": "^5.0.0",
|
|
"@koa/cors": "^5.0.0",
|
|
"@koa/router": "^15.4.0",
|
|
"@pinia/testing": "^1.0.3",
|
|
"@types/eventsource": "^1.1.15",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/koa": "^2.15.0",
|
|
"@types/koa__cors": "^5.0.0",
|
|
"@types/koa__router": "^12.0.5",
|
|
"@types/koa-send": "^4.1.6",
|
|
"@types/koa-static": "^4.0.4",
|
|
"@types/markdown-it": "^14.1.2",
|
|
"@types/node": "^24.12.2",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/ws": "^8.18.1",
|
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"@vue/tsconfig": "^0.9.1",
|
|
"@xterm/addon-fit": "^0.11.0",
|
|
"@xterm/addon-web-links": "^0.12.0",
|
|
"@xterm/xterm": "^6.0.0",
|
|
"axios": "^1.9.0",
|
|
"concurrently": "^9.2.1",
|
|
"highlight.js": "^11.11.1",
|
|
"js-yaml": "^4.1.1",
|
|
"jsdom": "^27.0.1",
|
|
"koa": "^2.15.3",
|
|
"koa-send": "^5.0.1",
|
|
"koa-static": "^5.0.0",
|
|
"markdown-it": "^14.1.1",
|
|
"monaco-editor": "^0.55.1",
|
|
"naive-ui": "^2.44.1",
|
|
"nodemon": "^3.1.14",
|
|
"pinia": "^3.0.4",
|
|
"pino": "^10.3.1",
|
|
"pino-pretty": "^13.1.3",
|
|
"qrcode": "^1.5.4",
|
|
"sass": "^1.99.0",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.0.4",
|
|
"vitest": "^3.2.4",
|
|
"vue": "^3.5.32",
|
|
"vue-i18n": "^11.3.2",
|
|
"vue-router": "^4.6.4",
|
|
"vue-tsc": "^3.2.6",
|
|
"ws": "^8.20.0"
|
|
}
|
|
} |