25 lines
801 B
Bash
Executable File
25 lines
801 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
QUERY="${1:-office machine}"
|
|
COUNTRY="${2:-us}"
|
|
MODE="${3:---dry-run}"
|
|
CLIENT_KEY="${4:-}"
|
|
|
|
# Optional injection for LLM expansion validation:
|
|
# QUERY_EXPANSION_JSON='{"expandedQueries":["office machine supplier us"],"primaryQuery":"office machine supplier us"}' \
|
|
# ./run-endpoint-test.sh "office machine" "us"
|
|
#
|
|
# Live mode requires 4th arg:
|
|
# <client_key>
|
|
# Example:
|
|
# ./run-endpoint-test.sh "office machine" "us" --live "sk_xxx.yyy"
|
|
|
|
echo "== Skill Test: cliet-finder.sh (JSON-only output) =="
|
|
if [ "$MODE" = "--dry-run" ] || [ -z "$CLIENT_KEY" ]; then
|
|
"$SCRIPT_DIR/cliet-finder.sh" "$QUERY" "$COUNTRY" "$MODE"
|
|
else
|
|
"$SCRIPT_DIR/cliet-finder.sh" "--client-key=$CLIENT_KEY" "$QUERY" "$COUNTRY" "$MODE"
|
|
fi
|