#!/bin/sh
# Cyborb CLI installer — https://cyborb.ai/install
set -e

printf '\n  ● CYBORB\n  Autonomous software engineering, realized.\n\n'

# --- platform detection ---------------------------------------------------
OS="$(uname -s 2>/dev/null || echo unknown)"
ARCH="$(uname -m 2>/dev/null || echo unknown)"
printf '  Detected: %s / %s\n\n' "$OS" "$ARCH"

# --- install --------------------------------------------------------------
# NOTE: release-artifact download is provided by the cyborb-agent release
# pipeline. Until it is wired here, install via one of the documented methods:
if command -v npm >/dev/null 2>&1; then
  printf '  Recommended:\n    npm install -g @cyborb/cli\n\n'
fi
printf '  Docs & all install options:\n    https://cyborb.ai/docs\n\n'
printf '  After installing, run:\n    cyborb login\n\n'
