-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·34 lines (28 loc) · 1.1 KB
/
init.sh
File metadata and controls
executable file
·34 lines (28 loc) · 1.1 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
#!/bin/bash
# Lambda - One-time setup script
#
# Installs dependencies, builds the CLI, and sets up Playwright.
# After running this, use `lambda start` to launch the agents.
set -e
# Check prerequisites
command -v tmux >/dev/null 2>&1 || { echo "Error: tmux is required. Install with: brew install tmux"; exit 1; }
command -v node >/dev/null 2>&1 || { echo "Error: Node.js is required."; exit 1; }
command -v claude >/dev/null 2>&1 || { echo "Error: Claude Code is required. Install with: npm install -g @anthropic-ai/claude-code"; exit 1; }
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Install CLI dependencies and build
if [ -f "package.json" ]; then
echo "Installing CLI dependencies..."
npm install
npm run build
# Note: npm link may require sudo on some systems
npm link
fi
# Install sample app dependencies
echo "Installing sample app dependencies..."
(cd sample && npm install)
# Install Playwright browsers
echo "Installing Playwright browsers..."
npx playwright install --with-deps chromium
echo ""
echo "Setup complete. Run 'lambda start' to launch the agents."