mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-01 00:11:39 +08:00
Adds an embedded web UI dashboard accessible via `hermes web`. Provides a browser-based interface for: - Monitoring agent status, gateway, and active/recent sessions - Editing config.yaml with a schema-driven form editor - Managing API keys in .env (set, clear, view redacted) Backend: FastAPI server (hermes_cli/web_server.py) with REST endpoints. Frontend: Vite + React + TypeScript + Tailwind v4 SPA (web/ directory). Also adds: - `/reload` slash command for hot-reloading .env variables - `delete_env_value()` and `reload_env()` utilities in config.py - `[web]` optional dependency extra (fastapi + uvicorn) - Web build step in `hermes update` (both git and zip paths) - hermes_cli/web_dist/ to .gitignore and package-data Salvaged from PR #1813 by austinpickett onto current main. Fixes applied during salvage: - Replaced hardcoded CONFIG_SCHEMA with dynamic generation from DEFAULT_CONFIG - Restricted CORS to localhost origins (was allow_origins=[*]) - Dropped _maybe_reload_env from model_tools.py (stale reverts to core dispatch) - Dropped .python-version file - Skipped all stale-branch reverts (pyproject.toml, model_tools.py, etc.)
38 lines
931 B
JSON
38 lines
931 B
JSON
{
|
|
"name": "web",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@tailwindcss/vite": "^4.2.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.577.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-router-dom": "^7.13.1",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tailwindcss": "^4.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@types/node": "^24.12.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.2.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.4.0",
|
|
"typescript": "~5.9.3",
|
|
"typescript-eslint": "^8.56.1",
|
|
"vite": "^7.3.1"
|
|
}
|
|
}
|