mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 23:50:48 +00:00
Autonomous refactoring: 5 rounds, ~1,400 lines eliminated, production-ready
Five rounds of autonomous AI agent team refactoring with security fixes, code consolidation, and expanded test coverage.
This commit is contained in:
parent
6ac59e6bb3
commit
3fb2e77b03
47 changed files with 2882 additions and 1853 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)"
|
||||
if [[ -f "$SCRIPT_DIR/lib/common.sh" ]]; then
|
||||
|
|
@ -31,17 +31,10 @@ else
|
|||
fi
|
||||
|
||||
log_warn "Setting up environment variables..."
|
||||
ENV_TEMP=$(mktemp)
|
||||
cat > "$ENV_TEMP" << EOF
|
||||
|
||||
# [spawn:env]
|
||||
export OPENROUTER_API_KEY="${OPENROUTER_API_KEY}"
|
||||
export OPENAI_API_KEY="${OPENROUTER_API_KEY}"
|
||||
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
|
||||
EOF
|
||||
upload_file "$HETZNER_SERVER_IP" "$ENV_TEMP" "/tmp/env_config"
|
||||
run_server "$HETZNER_SERVER_IP" "cat /tmp/env_config >> ~/.zshrc && rm /tmp/env_config"
|
||||
rm "$ENV_TEMP"
|
||||
inject_env_vars_ssh "$HETZNER_SERVER_IP" upload_file run_server \
|
||||
"OPENROUTER_API_KEY=$OPENROUTER_API_KEY" \
|
||||
"OPENAI_API_KEY=$OPENROUTER_API_KEY" \
|
||||
"OPENAI_BASE_URL="https://openrouter.ai/api/v1""
|
||||
|
||||
echo ""
|
||||
log_info "Hetzner server setup completed successfully!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue