Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(ci): agent-voice test deps install from a pinned temp manifest instead of npm --prefix
garrytan1ffdb853a801
diff --git a/scripts/test-agent-voice.sh b/scripts/test-agent-voice.shindex ed6f178d14..6cad4a79d0 100755--- a/scripts/test-agent-voice.sh+++ b/scripts/test-agent-voice.sh@@ -28,8 +28,9 @@ PREFIX="$(mktemp -d "${TMPDIR:-/tmp}/gbrain-agent-voice.XXXXXX")"cleanup() { rm -f "$RECIPE/node_modules"; rm -rf "$PREFIX"; }trap cleanup EXIT-npm install --prefix "$PREFIX" --no-audit --no-fund --ignore-scripts --loglevel=error \- "vitest@$VITEST_VERSION" "ws@$WS_VERSION" >/dev/null+printf '{"name":"gbrain-agent-voice-tests","private":true,"dependencies":{"vitest":"%s","ws":"%s"}}\n' \+ "$VITEST_VERSION" "$WS_VERSION" > "$PREFIX/package.json"+(cd "$PREFIX" && npm install --no-audit --no-fund --ignore-scripts --no-package-lock --loglevel=error >/dev/null)ln -sfn "$PREFIX/node_modules" "$RECIPE/node_modules"cd "$RECIPE""$PREFIX/node_modules/.bin/vitest" run tests/unit