-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·27 lines (22 loc) · 891 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·27 lines (22 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Swarm Orchestrator - Quick Install
# curl -fsSL https://raw.githubusercontent.com/moonrunnerkc/swarm-orchestrator/main/install.sh | bash
set -e
echo "Installing Swarm Orchestrator..."
# Check prerequisites
command -v node >/dev/null 2>&1 || { echo "Error: Node.js 18+ required. Install from https://nodejs.org"; exit 1; }
command -v git >/dev/null 2>&1 || { echo "Error: git required."; exit 1; }
NODE_MAJOR=$(node -p "process.versions.node.split('.')[0]")
if [ "$NODE_MAJOR" -lt 18 ]; then
echo "Error: Node.js 18+ required (found v$(node -v))"
exit 1
fi
# Install globally via npm
npm install -g swarm-orchestrator
echo ""
echo "✅ Installed! Run: swarm --help"
echo ""
echo "Quick start:"
echo " swarm demo-fast # 2-step parallel demo"
echo " swarm plan \"Build API\" # Generate a plan"
echo " swarm quick \"fix typo\" # Single-agent quick fix"