Spaces:
Paused
Paused
Commit History
-
Sync state on shutdown/gateway restart, add .dockerignore and backup jitter
ClaudeUnverified signatureA docker stop/redeploy had no graceful shutdown path, so it could lose up to SYNC_INTERVAL of agent state. entrypoint.sh now traps SIGTERM/SIGINT and runs one last backup before supervisord's children are stopped, which requires running supervisord as a background child instead of exec'ing it (exec would replace the trapping shell). hermes_gateway.sh also syncs immediately whenever the gateway process exits, instead of waiting for the next timer tick. Also: added a .dockerignore (the build context was sending the whole repo, including .git history, on every push) and +/-10% jitter on the backup interval via APScheduler's native jitter param, so many duplicated Spaces don't all sync in lockstep.e8e419f
-
Restore ~/.hermes from HF Dataset backup on container cold start
ClaudeUnverified signatureOn each container restart, restore_hermes.sh downloads the latest backup tarball and extracts it to ~/.hermes/ before Hermes starts. This preserves the agent name, conversation history, skills, kanban, and cron across Space restarts/sleep cycles. Skips restore if local state already exists (mid- session supervisor restart). Sensitive files (.env etc) are excluded from both backup and restore. Adds restore log tab to the Logs viewer.89ae1cc -
Add provider expansion, key rotation, startup scripts, /v1 relay, and more
ClaudeUnverified signature- configure_hermes.sh: add DeepSeek, xAI/Grok, NVIDIA, HuggingFace providers with their own API key env vars; HERMES_PROVIDER written to .env so app/main.py can read it; API key pool rotation (*_KEYS vars) - configure_startup.sh: new script for STARTUP_APT/PIP/NPM_PACKAGES and STARTUP_RUN/STARTUP_RUN_BASE64; installs packages and runs user scripts on every boot so installs survive container restarts - hermes_gateway.sh: configurable restart loop (GATEWAY_RESTART_DELAY, GATEWAY_MAX_RESTARTS) and restart notification (WEBHOOK_URL) instead of relying solely on supervisord autorestart - configure_cloudflare.sh: CLOUDFLARE_KEEPALIVE_ENABLED=false skips the cron schedule while still deploying the worker for Telegram proxy - app/main.py: /v1/* relay route - forwards requests to the configured LLM provider's API with GATEWAY_TOKEN auth, turning the Space into a remote AI backend for any OpenAI-compatible client - app/backup.py: BACKUP_DATASET_NAME var; SYNC_INTERVAL in second…a453ffc
-
Add automatic Telegram Bot API proxy via Cloudflare Worker
ClaudeUnverified signatureHF Spaces blocks outbound connections to api.telegram.org, so both long-polling and webhook mode fail at the network level - the gateway log shows connect timed out for every Telegram API call. Cloudflare's network can reach Telegram fine, so extend the existing keep-awake Worker (configure_cloudflare.sh, replacing configure_keepawake.sh) to also reverse-proxy /bot* and /file/bot* to api.telegram.org, and point Hermes at it via platforms.telegram.extra.base_url. Uses the CLOUDFLARE_WORKERS_TOKEN secret that's already required - no new secrets for duplicators. Falls back cleanly (with a dashboard error and log message) if the Cloudflare account has no workers.dev subdomain yet.2ca2daa -
Auto-deploy Cloudflare Worker keep-awake on boot using CLOUDFLARE_WORKERS_TOKEN
ClaudeUnverified signatureReplaces the GitHub Actions cron (which only helps people who fork/sync the GitHub repo) with a container-side script that calls the Cloudflare REST API directly using the CLOUDFLARE_WORKERS_TOKEN secret already required by the Space. Works for anyone who duplicates the Space with zero manual wrangler steps.4f367bf -
Add Dockerfile, install/config scripts, and supervisord setup
ClaudeUnverified signaturebd961b1