mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
test(agents): a live variant of the ownership-changes case
The `changes` case names the fixture releases (2026-01-30, 2026-02-27), which the live snapshot does not have, so under --live/--npx it failed agents that correctly declined to answer about missing releases and passed ones that called the tool anyway. A case's `live` fields now replace the mock ones; this one asks about the two most recent releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
parent
8fd9fcdadd
commit
7ebf63ed42
3 changed files with 10 additions and 2 deletions
|
|
@ -339,7 +339,9 @@ for agent in "${agents[@]}"; do
|
|||
fi
|
||||
"setup_$agent"
|
||||
for id in "${case_ids[@]}"; do
|
||||
case_json="$(jq -c --arg id "$id" '.[] | select(.id == $id)' "$cases_file")"
|
||||
# A case's "live" fields replace the mock ones, e.g. release dates.
|
||||
case_json="$(jq -c --arg id "$id" --argjson live "$live" '.[] | select(.id == $id)
|
||||
| if $live == 1 then . + (.live // {}) else . end | del(.live)' "$cases_file")"
|
||||
prompt="$(jq -r '.prompt' <<< "$case_json") Use the idx MCP tools."
|
||||
for ((run = 1; run <= runs; run++)); do
|
||||
out="$work/runs/$agent/$id.$run"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue