Spaces:
Paused
Paused
Commit History
-
fix(pty): set dashboard cwd to /workspace for desktop file browser
Farhan Beg8fd94fc
-
fix(debug): inline Python probe instead of COPY-dependent script file
Farhan Beg5438f8c -
feat(debug): add Python traceback probe for /api/model/options 500
Farhan Beg8759429 -
fix(debug): auto-extract session token for /hm/debug/model-options probe
Farhan Begdefac91 -
feat(debug): add /hm/debug/model-options to diagnose 500 error
Farhan BegDirectly probes the dashboard /api/model/options endpoint and returns the raw status, headers, and body. This lets us see the actual error without needing HF Pro SSH.bd1e3d7 -
feat(logs): add /hm/logs endpoint to view service logs without HF Pro
Farhan BegNo SSH/Pro needed to see dashboard, gateway, and webui logs. Auth- gated (same as /hm status page). Supports ?tail=N to limit lines. Also includes the Origin rewrite fix from the previous commit.a2311b5 -
fix(proxy): rewrite Origin header for all proxied requests to dashboard
Farhan BegThe dashboard's CORS middleware only allows localhost/127.0.0.1 origins. Requests from the desktop app or browser through /hmd carry the external Origin (e.g. https://<space>.hf.space) which the dashboard rejects. Rewrite Origin to match the local backend address so the dashboard accepts the request. Applies to both proxyRequest() and proxyDashboard() the WebSocket handler already had this fix.13f65b2 -
fix(ws): rewrite Host and Origin headers in WebSocket upgrade to dashboard
Farhan BegThe desktop app connects via /hmd WebSocket to the dashboard, but the dashboard rejects connections where Origin/Host don't match its local bind address. The raw TCP proxy in the upgrade handler was forwarding the original Host header (e.g. <space>.hf.space) which the dashboard saw as a cross-origin request. Now the upgrade handler rewrites: - Host: -> 127.0.0.1:<targetPort> - Origin: -> http://127.0.0.1:<targetPort> This matches how the HTTP proxyRequest function already rewrites Host.422f70e -
fix(proxy): buffer request bodies to avoid chunked Transfer-Encoding, add HERMES_WEBUI_TRUST_FORWARDED_HOST=1
Farhan BegTwo fixes for WebUI behind the Node.js reverse proxy: 1. HTTP 501 Unsupported method error: Python BaseHTTPRequestHandler cannot decode chunked request bodies (Transfer-Encoding: chunked). Node.js http.request may use chunked encoding when piping req streams. Fix: buffer the full request body and send it with an explicit Content-Length header. 2. Cross-origin CSRF mismatch: hermes-webui no longer trusts X-Forwarded-Host by default. The proxy sets this header, so browser Origin vs Host checks fail. Fix: set HERMES_WEBUI_TRUST_FORWARDED_HOST=1 in Dockerfile ENV.1f29b0d
-
fix(docker): restore proper Dockerfile and add venv chown for hermes user
Farhan Begbe5c4d4 -
fix(docker): properly encode Dockerfile and add venv chown for hermes user
Farhan Begbc1794a -
fix(permissions): chown /opt/hermes/.venv to hermes so auto-updates work
Farhan Beg2e4f994
-
Update Dockerfile
Farhan BegUnverified signature0f35c79
-
docs(sync): tighten Xet flag comment - we don't double-set the legacy var
Farhan BegFix a comment that overstated what the previous patch did. We only set the new HF_XET_HIGH_PERFORMANCE; older hubs miss the accelerator and fall back to the regular downloader, which is the right tradeoff for silencing the deprecation warning.2edd90c -
chore(sync): replace deprecated HF_HUB_ENABLE_HF_TRANSFER with HF_XET_HIGH_PERFORMANCE
Farhan Beghuggingface_hub 0.30+ deprecated the legacy hf_transfer flag and emits a FutureWarning at import time when it's set. Switch to the new Xet flag so the warning stops appearing in Space logs and we actually get the high-performance transfer on current hub versions.d434dcb -
feat(sync): warn when keys live in ephemeral .env on a Space
Farhan BegThe Hermes dashboard's Env tab writes to $HERMES_HOME/.env which is intentionally excluded from backup. On HF Spaces the filesystem is ephemeral, so anything saved there silently disappears on the next restart and the gateway 500s with 'Provider X is set in config.yaml but no API key was found'. * hermes-sync.py: env_warning_payload() detects populated .env on a Space when SYNC_INCLUDE_ENV is off, surfaces it via write_status() so every status snapshot carries a structured warning, and prints once at loop start so it's grep-able in Space logs. * health-server.js: Backup tile on the HuggingMes status page renders the warning as a yellow callout when present, and flips the tile tone to warn so it's visible at a glance. * README + .env.example: explicit guidance to put provider keys in HF Space Secrets, with SYNC_INCLUDE_ENV=1 documented as the opt-in weaker-security alternative. Also fixed stale '10 minute' backup copy left over from the fixed-interval era. False-positi…b047e12 -
fix(router): explicit 404 for legacy /api/sessions/<id>/chat/stream
Farhan BegThe hermes-workspace capability probe POSTs to that path to detect the legacy enhanced-fork chat surface. With no rule it fell through to WebUI, which didn't 404 it cleanly, so the probe set enhancedChat=true, the workspace then sent chat there at runtime, and the UI showed a generic 'Authentication error' instead of using /v1/chat/completions. Returning an explicit 404 makes the workspace's chatMode resolve to 'portable' and route chat through the OpenAI-compat path the Space actually exposes.ff3dadd -
feat(router): add /hmd passthrough for off-Space dashboard access
Farhan BegForwards /hmd/* directly to the internal dashboard (DASHBOARD_PORT) including /api/*, assets, root HTML and WebSocket upgrades. Lets remote workspaces (e.g. hermes-workspace) point HERMES_DASHBOARD_URL=https://<space>/hmd and use the dashboard's own ephemeral session token without going through HuggingMes auth. No existing route changes. /hm and /hm/app/* still cookie-gated.8da84d4
-
perf(hermes-sync): change-driven backups (poll/debounce, 60s ceiling)
Farhan Beg* Replace fixed 600s sleep loop with a 2s stat-only watcher * Upload 3s after the watched tree settles instead of waiting for the next tick * Hard ceiling at SYNC_INTERVAL=60s so a constantly-busy session still snapshots * New tunables: SYNC_POLL_INTERVAL, SYNC_DEBOUNCE_SECONDS * Reduces worst-case data loss on restart from ~10 minutes to ~3 seconds23ba9c5
-
Update README.md
Farhan BegUnverified signatureb2e073e -
Update README.md
Farhan BegUnverified signature0b570d2 -
Add files via upload
Farhan BegUnverified signaturee519165 -
Update README.md
Farhan BegUnverified signature8007169 -
Update README.md
Farhan BegUnverified signaturef5c55f7 -
Update README.md
Farhan BegUnverified signaturea6b7526 -
Update README.md
Farhan BegUnverified signature984f01d -
Update README.md
Farhan BegUnverified signatureb2e26e9 -
Update README.md
Farhan BegUnverified signature24ef37e -
Update README.md
Farhan BegUnverified signature691902b -
Update README.md
Farhan BegUnverified signature94d6b18 -
Update README.md
Farhan BegUnverified signature5831cbe -
Update README.md
Farhan BegUnverified signatureedf5051 -
Update README.md
Farhan BegUnverified signature1d2ac30 -
fix(readme): restore winged-sandals emoji in HF Space front-matter
F4bC0d3The 'emoji: ??' rejection from HF's pre-receive hook was caused by my earlier PowerShell file copy that stripped the 4-byte UTF-8 char. Now using bytes F0 9F AA BD (U+1FABD) so the YAML matches HF's required pattern \\p{Extended_Pictographic}/u.4ee61b1 -
ci: auto-mirror to huggingface.co/spaces/f4b404/hermes on push to main
F4bC0d3Free-tier HF Spaces don't expose the native 'linked GitHub repository' feature, so this workflow force-pushes GitHub main onto the Space's main branch on every push. The Space rebuilds automatically. Requires HF_TOKEN secret to be set on this repo (write-scope token from huggingface.co/settings/tokens).7976b75 -
fix(logs): silence noisy WebUI access log polls + bound on-disk log size
F4bC0d3Three changes to keep the HF Logs tab readable and the HF Dataset backup from growing unbounded: 1. Patch hermes-webui's log_request() at image build time to drop 2xx responses for high-frequency poll paths (/api/dashboard/status, /api/health/agent, /api/sessions, /api/profiles, /api/models, /sw.js, /static/*, etc). 4xx and 5xx still log so debugging works. 2. Rotate \/logs/*.log at boot when any file exceeds 5MB (rename to .log.1, start fresh). Bounds the disk footprint. 3. Extend hermes-sync.py exclusions to skip *.log, *.log.1, *.log.2, *.pid, *.tmp suffixes - and treat 'logs/' as a fully-excluded dir not just a top-level skip. Backup dataset stays clean.aadc662 -
Initial release: HuggingMes + Hermes WebUI integration
F4bC0d35f92103