mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 23:50:48 +00:00
feat: Add plandex on Atlantic.Net (#907)
* feat: Add plandex on Atlantic.Net Agent: gap-filler * fix: address review comments for atlanticnet/plandex - Use inject_env_vars_ssh instead of raw heredoc for env var injection - Fix source fallback guard to match established pattern - Add shellcheck source comment - Fix README ordering (Plandex after OpenClaw) - Add server details to success message Agent: pr-maintainer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: B (Discovery Team) <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
795a502efb
commit
7149fc8e4e
3 changed files with 65 additions and 1 deletions
|
|
@ -40,6 +40,12 @@ bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/gemini.sh)
|
|||
bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/opencode.sh)
|
||||
```
|
||||
|
||||
#### Plandex
|
||||
|
||||
```bash
|
||||
bash <(curl -fsSL https://openrouter.ai/labs/spawn/atlanticnet/plandex.sh)
|
||||
```
|
||||
|
||||
## Non-Interactive Mode
|
||||
|
||||
```bash
|
||||
|
|
|
|||
58
atlanticnet/plandex.sh
Normal file
58
atlanticnet/plandex.sh
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)"
|
||||
# shellcheck source=atlanticnet/lib/common.sh
|
||||
if [[ -f "${SCRIPT_DIR}/lib/common.sh" ]]; then
|
||||
source "${SCRIPT_DIR}/lib/common.sh"
|
||||
else
|
||||
eval "$(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/atlanticnet/lib/common.sh)"
|
||||
fi
|
||||
|
||||
log_info "Plandex on Atlantic.Net Cloud"
|
||||
echo ""
|
||||
|
||||
ensure_atlanticnet_credentials
|
||||
ensure_ssh_key
|
||||
|
||||
SERVER_NAME=$(get_server_name)
|
||||
create_server "${SERVER_NAME}"
|
||||
|
||||
log_step "Waiting for server to be ready..."
|
||||
verify_server_connectivity "${ATLANTICNET_SERVER_IP}"
|
||||
|
||||
log_step "Installing Plandex..."
|
||||
run_server "${ATLANTICNET_SERVER_IP}" "curl -sL https://plandex.ai/install.sh | bash"
|
||||
|
||||
if ! run_server "${ATLANTICNET_SERVER_IP}" "command -v plandex &> /dev/null && plandex version &> /dev/null"; then
|
||||
log_error "Plandex installation verification failed"
|
||||
exit 1
|
||||
fi
|
||||
log_info "Plandex installation verified successfully"
|
||||
|
||||
echo ""
|
||||
if [[ -n "${OPENROUTER_API_KEY:-}" ]]; then
|
||||
log_info "Using OpenRouter API key from environment"
|
||||
else
|
||||
OPENROUTER_API_KEY=$(get_openrouter_api_key_oauth 5180)
|
||||
fi
|
||||
|
||||
log_step "Setting up environment variables..."
|
||||
inject_env_vars_ssh "${ATLANTICNET_SERVER_IP}" upload_file run_server \
|
||||
"OPENROUTER_API_KEY=${OPENROUTER_API_KEY}"
|
||||
|
||||
echo ""
|
||||
log_info "Atlantic.Net server setup completed successfully!"
|
||||
log_info "Server: ${SERVER_NAME} (ID: ${ATLANTICNET_SERVER_ID}, IP: ${ATLANTICNET_SERVER_IP})"
|
||||
echo ""
|
||||
|
||||
if [[ -n "${SPAWN_PROMPT:-}" ]]; then
|
||||
log_step "Executing Plandex with prompt..."
|
||||
escaped_prompt=$(printf '%q' "${SPAWN_PROMPT}")
|
||||
run_server "${ATLANTICNET_SERVER_IP}" "source ~/.bashrc && plandex new && plandex tell ${escaped_prompt}"
|
||||
else
|
||||
log_step "Starting Plandex..."
|
||||
sleep 1
|
||||
clear
|
||||
interactive_session "${ATLANTICNET_SERVER_IP}" "source ~/.bashrc && plandex"
|
||||
fi
|
||||
|
|
@ -1288,7 +1288,7 @@
|
|||
"atlanticnet/cline": "missing",
|
||||
"atlanticnet/gptme": "missing",
|
||||
"atlanticnet/opencode": "implemented",
|
||||
"atlanticnet/plandex": "missing",
|
||||
"atlanticnet/plandex": "implemented",
|
||||
"atlanticnet/kilocode": "missing",
|
||||
"atlanticnet/continue": "missing",
|
||||
"hostkey/claude": "implemented",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue