Files
hermes-web-ui/package.json
T
ekko 076a7c2a38 feat: add Vitest testing framework, fix proxy auth stripping and 401 handling
- Set up Vitest with jsdom for client tests, node for server tests
- Add tests for auth service, proxy handler, API client, and profiles store
- Strip Authorization header in proxy to prevent web-ui token leaking to gateway
- Distinguish local BFF vs proxied gateway 401s to avoid false logouts
- Remove unused hero.png asset

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 20:24:09 +08:00

96 lines
2.6 KiB
JSON

{
"name": "hermes-web-ui",
"version": "0.2.9",
"description": "Web dashboard for Hermes Agent — multi-platform AI chat, session management, scheduled jobs, usage analytics & channel configuration (Telegram, Discord, Slack, WhatsApp)",
"repository": {
"type": "git",
"url": "https://github.com/EKKOLearnAI/hermes-web-ui.git"
},
"homepage": "https://github.com/EKKOLearnAI/hermes-web-ui",
"license": "MIT",
"keywords": [
"hermes",
"ai-agent",
"llm",
"chat-ui",
"dashboard",
"telegram",
"discord",
"slack",
"whatsapp",
"matrix",
"feishu",
"weixin",
"multi-platform",
"vue3",
"typescript",
"naive-ui"
],
"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 node -r ts-node/register packages/server/src/index.ts",
"build": "vue-tsc -b && vite build && tsc -p packages/server/tsconfig.json",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"files": [
"bin/",
"dist/"
],
"dependencies": {
"@koa/bodyparser": "^5.0.0",
"@koa/cors": "^5.0.0",
"@koa/router": "^15.4.0",
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
"axios": "^1.9.0",
"highlight.js": "^11.11.1",
"js-yaml": "^4.1.1",
"koa": "^2.15.3",
"koa-send": "^5.0.1",
"koa-static": "^5.0.0",
"markdown-it": "^14.1.1",
"naive-ui": "^2.44.1",
"node-pty": "^1.1.0",
"pinia": "^3.0.4",
"qrcode": "^1.5.4",
"vue": "^3.5.32",
"vue-i18n": "^11.3.2",
"vue-router": "^4.6.4",
"ws": "^8.20.0"
},
"devDependencies": {
"@pinia/testing": "^1.0.3",
"@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",
"concurrently": "^9.2.1",
"jsdom": "^27.0.1",
"nodemon": "^3.1.14",
"sass": "^1.99.0",
"ts-node": "^10.9.2",
"typescript": "~6.0.2",
"vite": "^8.0.4",
"vitest": "^3.2.4",
"vue-tsc": "^3.2.6"
}
}