-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (33 loc) · 1.06 KB
/
setup.sh
File metadata and controls
executable file
·39 lines (33 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# EGOS Lab — Universal Setup Script
# Works in Codex Cloud, Codespaces, Gitpod, Firebase Studio, or local
set -e
echo "🧬 EGOS Lab Setup"
echo "=================="
# Detect if bun is available, prefer it over npm
if command -v bun &> /dev/null; then
echo "✅ Bun detected. Using bun install."
bun install
elif command -v npm &> /dev/null; then
echo "⚠️ Bun not found. Installing bun first..."
npm install -g bun@latest 2>/dev/null || curl -fsSL https://bun.sh/install | bash
export PATH="$HOME/.bun/bin:$PATH"
bun install
else
echo "❌ Neither bun nor npm found. Please install Node.js first."
exit 1
fi
echo ""
echo "✅ Dependencies installed."
echo ""
# Show agents
if command -v bun &> /dev/null; then
echo "🤖 Registered Agents:"
bun agent:list 2>/dev/null || echo " (agent:list not available in this context)"
fi
echo ""
echo "🚀 Ready! Try:"
echo " bun agent:list # List all agents"
echo " bun agent:ssot --dry # Run SSOT Auditor (dry-run)"
echo " bun run --cwd apps/egos-web dev # Start web UI"
echo ""