Knowledge vault (Orion/PARA) migrated from the pre-Orion 484vault on 2026-10-01. Deliberately orphaned: prior history contained a plaintext password and stays local-only on branch archive/pre-boilerplate-history. Secrets and live Hermes state are gitignored.
13 lines
755 B
Bash
Executable file
13 lines
755 B
Bash
Executable file
#!/bin/sh
|
|
# Deterministic release watcher for the monitor:
|
|
# prints ONLY the latest release tag (or the API error body if GitHub is down).
|
|
# No timestamps, no fluctuating fields -> ticks skip the agent unless the tag changes.
|
|
loc=$(curl -sI --max-time 15 https://github.com/NousResearch/hermes-agent/releases/latest \
|
|
| grep -i '^location:' | head -1 | sed -E 's|.*/tag/([^[:space:]]+).*|\1|' | tr -d '\r')
|
|
if [ -n "$loc" ]; then
|
|
printf 'HERMES_RELEASE=%s\n' "$loc"
|
|
else
|
|
# fallback: GitHub API (rate-limited, but only used when the redirect fails)
|
|
curl -s --max-time 15 https://api.github.com/repos/NousResearch/hermes-agent/releases/latest \
|
|
| grep -m1 '"tag_name"' | sed -E 's/.*"tag_name": *"([^"]+)".*/\1/' | sed 's/^/HERMES_RELEASE=/'
|
|
fi
|