mirror of
https://github.com/0xrsydn/nix-hermes-agent.git
synced 2026-08-07 00:53:52 +00:00
fix: complete hermes-agent 0.16.0 pin update
This commit is contained in:
parent
955cc61f82
commit
35817ccbf4
3 changed files with 14 additions and 6 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
echo "=== Checking key Python modules ==="
|
echo "=== Checking key Python modules ==="
|
||||||
SITE=${hermes-agent}/lib/python3.12/site-packages
|
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
|
if [ ! -e "$SITE/$mod" ] && [ ! -e "$SITE/$mod.py" ]; then
|
||||||
echo "FAIL: Missing module $mod"
|
echo "FAIL: Missing module $mod"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -94,7 +94,9 @@
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
||||||
echo "=== Running hermes doctor ==="
|
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"
|
echo "PASS: Doctor runs successfully"
|
||||||
|
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
|
|
||||||
12
package.nix
12
package.nix
|
|
@ -9,9 +9,9 @@
|
||||||
ripgrep,
|
ripgrep,
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
git,
|
git,
|
||||||
pinVersion ? "0.4.0",
|
pinVersion ? "0.16.0",
|
||||||
pinRev ? "8416bc2142ad7494b3d72b055cd5a86a80472fe4",
|
pinRev ? "3c231eb3979ab9c57d5cd6d02f1d577a3b718b43",
|
||||||
pinHash ? "sha256-dKilXoJbu5thhCRpDYKTX9fAOq1JTqdBvuf9Ji1iY64=",
|
pinHash ? "sha256-ngpkopVczNrT0bfCXHm38QjgrZT96Bm/rO89NA/ls3Y=",
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -173,6 +173,7 @@ pythonPackages.buildPythonApplication {
|
||||||
|
|
||||||
# litellm is compromised — strip it from wheel metadata so pythonRuntimeDepsCheck passes
|
# litellm is compromised — strip it from wheel metadata so pythonRuntimeDepsCheck passes
|
||||||
pythonRemoveDeps = [ "litellm" ];
|
pythonRemoveDeps = [ "litellm" ];
|
||||||
|
pythonRelaxDeps = true;
|
||||||
|
|
||||||
dependencies = with pythonPackages; [
|
dependencies = with pythonPackages; [
|
||||||
# Core
|
# Core
|
||||||
|
|
@ -184,10 +185,15 @@ pythonPackages.buildPythonApplication {
|
||||||
rich
|
rich
|
||||||
tenacity
|
tenacity
|
||||||
pyyaml
|
pyyaml
|
||||||
|
ruamel-yaml
|
||||||
requests
|
requests
|
||||||
jinja2
|
jinja2
|
||||||
|
markdown
|
||||||
pydantic
|
pydantic
|
||||||
prompt-toolkit
|
prompt-toolkit
|
||||||
|
psutil
|
||||||
|
pathspec
|
||||||
|
fastapi
|
||||||
# Tools
|
# Tools
|
||||||
firecrawl-py
|
firecrawl-py
|
||||||
fal-client
|
fal-client
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ fi
|
||||||
|
|
||||||
if [[ -z "$tag_sha" ]]; then
|
if [[ -z "$tag_sha" ]]; then
|
||||||
# Last resort: ls-remote
|
# 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
|
fi
|
||||||
|
|
||||||
if [[ -z "$tag_sha" ]]; then
|
if [[ -z "$tag_sha" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue