2026-03-25 23:09:50 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
|
export PLANO_URL="${PLANO_URL:-http://localhost:12000}"
|
2026-03-26 16:44:05 -07:00
|
|
|
export AGENT_PORT="${AGENT_PORT:-8000}"
|
|
|
|
|
export AGENT_URL="http://localhost:$AGENT_PORT"
|
2026-03-25 23:09:50 -07:00
|
|
|
|
2026-03-26 16:44:05 -07:00
|
|
|
cleanup() {
|
|
|
|
|
[ -n "$AGENT_PID" ] && kill "$AGENT_PID" 2>/dev/null
|
|
|
|
|
}
|
|
|
|
|
trap cleanup EXIT INT TERM
|
2026-03-25 23:09:50 -07:00
|
|
|
|
2026-03-26 16:44:05 -07:00
|
|
|
# Start the agent in the background
|
|
|
|
|
"$SCRIPT_DIR/start_agents.sh" &
|
|
|
|
|
AGENT_PID=$!
|
|
|
|
|
|
|
|
|
|
# Run the demo client
|
|
|
|
|
uv run "$SCRIPT_DIR/demo.py"
|