test(agents): check the npx install without compgen

The dev shell's bash has no compgen (no programmable completion), so the
npx-install check failed every agent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
hermes 2026-10-16 08:07:42 +00:00
commit d69998ebf5

View file

@ -410,7 +410,8 @@ for agent in "${agents[@]}"; do
# Proof that this agent's own npx installed the package binary, rather
# than the server coming from somewhere else on PATH.
status=pass failures=
if ! compgen -G "$npm_config_cache/_npx/*/node_modules/idx-mcp/bin/idx-mcp" > /dev/null; then
installed=("$npm_config_cache"/_npx/*/node_modules/idx-mcp/bin/idx-mcp)
if [[ ! -x "${installed[0]}" ]]; then
status=fail failures="no idx-mcp binary under $npm_config_cache/_npx"
fi
jq -nc --arg agent "$agent" --arg status "$status" --arg failures "$failures" \