claude-manager 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/install.sh DELETED
@@ -1,104 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- echo "Installing Claude Manager (cm)..."
5
- echo ""
6
-
7
- # Detect OS
8
- OS="$(uname -s)"
9
- case "$OS" in
10
- Linux*) OS_TYPE="linux";;
11
- Darwin*) OS_TYPE="mac";;
12
- *) echo "❌ Unsupported OS: $OS"; exit 1;;
13
- esac
14
-
15
- # Check dependencies
16
- check_dep() {
17
- if ! command -v "$1" &> /dev/null; then
18
- echo "❌ $1 is required but not installed."
19
- if [ "$OS_TYPE" = "mac" ]; then
20
- echo " Install with: brew install $1"
21
- else
22
- echo " Install with: sudo apt install $1 (or your package manager)"
23
- fi
24
- exit 1
25
- fi
26
- }
27
-
28
- check_dep "curl"
29
- check_dep "git"
30
-
31
- # Check for bun, install if missing
32
- if ! command -v bun &> /dev/null; then
33
- echo "Installing bun..."
34
- curl -fsSL https://bun.sh/install | bash
35
- export BUN_INSTALL="$HOME/.bun"
36
- export PATH="$BUN_INSTALL/bin:$PATH"
37
- # Source for current session
38
- if [ -f "$HOME/.bashrc" ]; then
39
- source "$HOME/.bashrc" 2>/dev/null || true
40
- fi
41
- fi
42
-
43
- # Verify bun is available
44
- if ! command -v bun &> /dev/null; then
45
- export PATH="$HOME/.bun/bin:$PATH"
46
- fi
47
-
48
- # Check for claude
49
- if ! command -v claude &> /dev/null; then
50
- echo "⚠️ Claude Code not found. Install with:"
51
- if [ "$OS_TYPE" = "mac" ]; then
52
- echo " brew install claude-code"
53
- else
54
- echo " npm install -g @anthropic-ai/claude-code"
55
- fi
56
- echo ""
57
- fi
58
-
59
- # Install to ~/.cm
60
- CM_DIR="$HOME/.cm"
61
- rm -rf "$CM_DIR"
62
- mkdir -p "$CM_DIR"
63
-
64
- echo "Downloading cm..."
65
- curl -fsSL https://raw.githubusercontent.com/faisalnazir/claude-manager/main/src/cli.js -o "$CM_DIR/cli.js"
66
- curl -fsSL https://raw.githubusercontent.com/faisalnazir/claude-manager/main/src/config.js -o "$CM_DIR/config.js"
67
- curl -fsSL https://raw.githubusercontent.com/faisalnazir/claude-manager/main/package.json -o "$CM_DIR/package.json"
68
-
69
- echo "Installing dependencies..."
70
- cd "$CM_DIR" && bun install --silent
71
-
72
- # Create wrapper script
73
- BIN_DIR="/usr/local/bin"
74
- if [ ! -d "$BIN_DIR" ]; then
75
- sudo mkdir -p "$BIN_DIR"
76
- fi
77
-
78
- if [ -w "$BIN_DIR" ]; then
79
- cat > "$BIN_DIR/cm" << 'EOF'
80
- #!/bin/bash
81
- export PATH="$HOME/.bun/bin:$PATH"
82
- bun ~/.cm/cli.js "$@"
83
- EOF
84
- chmod +x "$BIN_DIR/cm"
85
- else
86
- sudo tee "$BIN_DIR/cm" > /dev/null << 'EOF'
87
- #!/bin/bash
88
- export PATH="$HOME/.bun/bin:$PATH"
89
- bun ~/.cm/cli.js "$@"
90
- EOF
91
- sudo chmod +x "$BIN_DIR/cm"
92
- fi
93
-
94
- # Create profiles directory
95
- mkdir -p ~/.claude/profiles
96
-
97
- echo ""
98
- echo "✅ cm installed successfully!"
99
- echo ""
100
- echo "Usage:"
101
- echo " cm # Select profile and launch Claude"
102
- echo " cm new # Create a new profile"
103
- echo " cm --help # Show all commands"
104
- echo ""