From 35817ccbf493e0b5ab97c03b91915787dbe32651 Mon Sep 17 00:00:00 2001 From: hermes Date: Mon, 8 Jun 2026 06:41:46 +0000 Subject: [PATCH] fix: complete hermes-agent 0.16.0 pin update --- checks.nix | 6 ++++-- package.nix | 12 +++++++++--- scripts/update-pins.sh | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/checks.nix b/checks.nix index d0ee54f..c4577e9 100644 --- a/checks.nix +++ b/checks.nix @@ -17,7 +17,7 @@ echo "=== Checking key Python modules ===" SITE=${hermes-agent}/lib/python3.12/site-packages - for mod in agent cli.py gateway cron tools run_agent.py model_tools.py acp_adapter honcho_integration; do + for mod in agent cli.py gateway cron tools run_agent.py model_tools.py acp_adapter; do if [ ! -e "$SITE/$mod" ] && [ ! -e "$SITE/$mod.py" ]; then echo "FAIL: Missing module $mod" exit 1 @@ -94,7 +94,9 @@ export HOME=$(mktemp -d) echo "=== Running hermes doctor ===" - ${hermes-agent}/bin/hermes doctor 2>&1 | grep -q "Python" || (echo "FAIL: doctor"; exit 1) + output=$(${hermes-agent}/bin/hermes doctor 2>&1 || true) + printf '%s\n' "$output" + printf '%s\n' "$output" | grep -q "Python" || (echo "FAIL: doctor"; exit 1) echo "PASS: Doctor runs successfully" mkdir -p $out diff --git a/package.nix b/package.nix index c7cb722..84857fa 100644 --- a/package.nix +++ b/package.nix @@ -9,9 +9,9 @@ ripgrep, ffmpeg, git, - pinVersion ? "0.4.0", - pinRev ? "8416bc2142ad7494b3d72b055cd5a86a80472fe4", - pinHash ? "sha256-dKilXoJbu5thhCRpDYKTX9fAOq1JTqdBvuf9Ji1iY64=", + pinVersion ? "0.16.0", + pinRev ? "3c231eb3979ab9c57d5cd6d02f1d577a3b718b43", + pinHash ? "sha256-ngpkopVczNrT0bfCXHm38QjgrZT96Bm/rO89NA/ls3Y=", }: let @@ -173,6 +173,7 @@ pythonPackages.buildPythonApplication { # litellm is compromised — strip it from wheel metadata so pythonRuntimeDepsCheck passes pythonRemoveDeps = [ "litellm" ]; + pythonRelaxDeps = true; dependencies = with pythonPackages; [ # Core @@ -184,10 +185,15 @@ pythonPackages.buildPythonApplication { rich tenacity pyyaml + ruamel-yaml requests jinja2 + markdown pydantic prompt-toolkit + psutil + pathspec + fastapi # Tools firecrawl-py fal-client diff --git a/scripts/update-pins.sh b/scripts/update-pins.sh index 8d7bfbd..430be67 100755 --- a/scripts/update-pins.sh +++ b/scripts/update-pins.sh @@ -69,7 +69,7 @@ fi if [[ -z "$tag_sha" ]]; then # Last resort: ls-remote - tag_sha=$(git ls-remote https://github.com/NousResearch/hermes-agent.git "refs/tags/${release_tag}" | awk '{print $1}' || true) + tag_sha=$(git ls-remote https://github.com/NousResearch/hermes-agent.git "refs/tags/${release_tag}^{}" | awk '{print $1}' || true) fi if [[ -z "$tag_sha" ]]; then