mirror of
https://github.com/obra/superpowers.git
synced 2026-05-09 18:49:04 +08:00
rsync of obra/drill@013fcb8b7d into superpowers/evals/, excluding .git/, .venv/, results/, .env/, __pycache__/, *.egg-info/, .private-journal/. The drill repo is unaffected by this commit; archival is a separate manual step after this PR merges. Source SHA recorded at evals/.drill-source-sha for divergence detection.
17 lines
380 B
Bash
Executable File
17 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
command -v jq >/dev/null || { echo "jq required"; exit 127; }
|
|
|
|
TOOL="$1"
|
|
FILE="tool_calls.jsonl"
|
|
|
|
COUNT=$(jq -s "[.[] | select(.tool == \"$TOOL\")] | length" "$FILE" 2>/dev/null || echo 0)
|
|
|
|
if [ "$COUNT" -eq 0 ]; then
|
|
echo "PASS: $TOOL never called"
|
|
exit 0
|
|
else
|
|
echo "FAIL: $TOOL called $COUNT time(s) (expected 0)"
|
|
exit 1
|
|
fi
|