-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
71 lines (62 loc) · 1.86 KB
/
install.sh
File metadata and controls
71 lines (62 loc) · 1.86 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
echo "================================================"
echo " Sequential Thinking Enhanced - Setup"
echo "================================================"
echo
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo -e "${RED}ERROR: Node.js is not installed!${NC}"
echo "Please install Node.js 18 or higher from https://nodejs.org"
exit 1
fi
# Check Node.js version
echo "[1/4] Checking Node.js version..."
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo -e "${RED}ERROR: Node.js version is too old. Please upgrade to v18 or higher.${NC}"
exit 1
fi
echo -e "${GREEN}OK - Node.js version is compatible${NC}"
# Install dependencies
echo
echo "[2/4] Installing dependencies..."
if npm install; then
echo -e "${GREEN}OK - Dependencies installed${NC}"
else
echo -e "${RED}ERROR: Failed to install dependencies${NC}"
exit 1
fi
# Setup configuration
echo
echo "[3/4] Setting up configuration..."
if [ ! -f config.json ]; then
cp config.example.json config.json
echo -e "${GREEN}OK - Created config.json from example${NC}"
echo
echo -e "${YELLOW}IMPORTANT: Please edit config.json to add your project details!${NC}"
else
echo -e "${GREEN}OK - config.json already exists${NC}"
fi
# Run setup script
echo
echo "[4/4] Running setup script..."
node setup.js
echo
echo "================================================"
echo " Setup Complete!"
echo "================================================"
echo
echo "Next steps:"
echo "1. Edit config.json with your project details"
echo "2. Restart Claude Desktop"
echo "3. Start using the tool with [main:1] in Claude"
echo
echo "For help, see README.md or QUICKSTART.md"
echo
# Make the script executable
chmod +x "$0"