mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
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:
parent
687c9ad83f
commit
d69998ebf5
1 changed files with 2 additions and 1 deletions
|
|
@ -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" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue