Repository navigation
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·106 lines (90 loc) · 3 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·106 lines (90 loc) · 3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/bash
# Helix Memory - One-liner installer
# Usage: curl -fsSL https://raw.githubusercontent.com/MarcinDudekDev/helix-memory/main/install.sh | bash
set -e
REPO_URL="https://github.com/MarcinDudekDev/helix-memory.git"
INSTALL_DIR="$HOME/.claude/skills/helix-memory"
echo ""
echo " ╦ ╦┌─┐┬ ┬─┐ ┬ ╔╦╗┌─┐┌┬┐┌─┐┬─┐┬ ┬"
echo " ╠═╣├┤ │ │┌┴┬┘ ║║║├┤ ││││ │├┬┘└┬┘"
echo " ╩ ╩└─┘┴─┘┴┴ └─ ╩ ╩└─┘┴ ┴└─┘┴└─ ┴ "
echo ""
echo " Long-term memory for Claude Code"
echo ""
# Check dependencies
echo "Checking dependencies..."
if ! command -v docker &>/dev/null; then
echo "ERROR: Docker required. Install from https://docker.com/products/docker-desktop"
exit 1
fi
echo " ✓ Docker"
if ! command -v python3 &>/dev/null; then
echo "ERROR: Python 3 required."
exit 1
fi
echo " ✓ Python 3"
# Install requests if missing
python3 -c "import requests" 2>/dev/null || pip3 install -q requests
echo " ✓ Python requests"
# Install Helix CLI if missing
if ! command -v helix &>/dev/null; then
echo ""
echo "Installing Helix CLI..."
curl -fsSL https://www.helix-db.com/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
fi
echo " ✓ Helix CLI"
# Clone or update repo
echo ""
if [ -d "$INSTALL_DIR/.git" ]; then
echo "Updating existing installation..."
cd "$INSTALL_DIR"
git pull --quiet
else
echo "Installing to $INSTALL_DIR..."
rm -rf "$INSTALL_DIR"
mkdir -p "$(dirname "$INSTALL_DIR")"
git clone --quiet "$REPO_URL" "$INSTALL_DIR"
fi
cd "$INSTALL_DIR"
# Make scripts executable
chmod +x memory hooks/*.py 2>/dev/null || true
# Copy SKILL.md to root for Claude discovery
cp -f skills/helix-memory/SKILL.md . 2>/dev/null || true
# Start Docker if needed
if ! docker info &>/dev/null 2>&1; then
echo ""
echo "Starting Docker..."
open -a "Docker Desktop" 2>/dev/null || true
sleep 5
fi
# Initialize HelixDB
echo ""
echo "Starting HelixDB..."
helix push dev 2>/dev/null || true
# Verify
echo ""
if curl -s http://localhost:6969/health >/dev/null 2>&1; then
echo " ✓ HelixDB running on localhost:6969"
else
echo " ! HelixDB may need a moment to start"
fi
# Success
echo ""
echo "════════════════════════════════════════════"
echo " Installation complete!"
echo "════════════════════════════════════════════"
echo ""
echo " Quick start:"
echo " $INSTALL_DIR/memory status"
echo " $INSTALL_DIR/memory search \"topic\""
echo ""
echo " Add alias to ~/.zshrc:"
echo " alias memory='$INSTALL_DIR/memory'"
echo ""
echo " Optional - better semantic search:"
echo " brew install ollama && ollama pull nomic-embed-text"
echo ""
echo " Hooks are auto-configured via the plugin."
echo " Restart Claude Code to activate."
echo ""