macOS xterm-256color bash 6 views

https://demo.ai-ce988638.opencode.its1337.com

export DOMAIN_NAME=example.com && \
opkssh login -i ~/opkssh_server_group1 && \
DROPLET_ID=$(bash scripts/droplet-create.sh | jq -r .droplet.id) && \
until doctl compute ssh "${DROPLET_ID}" --ssh-command 'echo hi' 2>&1 2>/dev/null; do sleep 0.1; done && \
export INSTANCE_NAME=$(grep \
  -m 1 --line-buffered -E "HTTPS Configured for hello-world\..*$" \
  <(doctl compute ssh "${DROPLET_ID}" --ssh-command 'tail -F /var/log/opencode-cloud-init.log') | sed -e 's/.*hello-world\.//g' -e 's/\..*//g') && \
ssh -t -o IdentitiesOnly=yes -o IdentityFile="${HOME}/opkssh_server_group1" -t "agent@${INSTANCE_NAME}.opencode.${DOMAIN_NAME}" opencode