-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·107 lines (75 loc) · 2.52 KB
/
install.sh
File metadata and controls
executable file
·107 lines (75 loc) · 2.52 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
107
#!/usr/bin/env bash
# EVA Standalone Installer — AI context preservation MCP server for Claude Code
#
# Recommended: Install via Claude Code plugin instead:
# claude plugins install theLightArchitect/EVA
#
# This script downloads the binary from GitHub Releases for standalone use.
# Usage: curl -fsSL https://raw.githubusercontent.com/theLightArchitect/EVA/main/install.sh | bash
set -euo pipefail
REPO="theLightArchitect/EVA"
INSTALL_DIR="$HOME/.eva/bin"
BINARY_NAME="eva"
# --- Platform checks ---
OS="$(uname -s)"
ARCH="$(uname -m)"
if [ "$OS" != "Darwin" ]; then
echo "Error: EVA currently supports macOS only (detected: $OS)"
exit 1
fi
if [ "$ARCH" != "arm64" ]; then
echo "Error: EVA requires Apple Silicon (arm64). Detected: $ARCH"
exit 1
fi
# --- Download latest release ---
echo "Fetching latest EVA release..."
DOWNLOAD_URL=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" \
| grep "browser_download_url.*darwin-arm64" \
| head -1 \
| cut -d '"' -f 4)
if [ -z "$DOWNLOAD_URL" ]; then
echo "Error: Could not find a darwin-arm64 release asset."
echo "Check https://github.com/$REPO/releases for available downloads."
exit 1
fi
echo "Downloading from: $DOWNLOAD_URL"
TMPDIR_INSTALL="$(mktemp -d)"
trap 'rm -rf "$TMPDIR_INSTALL"' EXIT
curl -fsSL "$DOWNLOAD_URL" -o "$TMPDIR_INSTALL/eva.tar.gz"
# --- Extract and install ---
mkdir -p "$INSTALL_DIR"
tar xzf "$TMPDIR_INSTALL/eva.tar.gz" -C "$TMPDIR_INSTALL"
mv "$TMPDIR_INSTALL/$BINARY_NAME" "$INSTALL_DIR/$BINARY_NAME"
chmod +x "$INSTALL_DIR/$BINARY_NAME"
# --- Clear macOS Gatekeeper quarantine ---
xattr -cr "$INSTALL_DIR/$BINARY_NAME" 2>/dev/null || true
# --- Create persona directory ---
mkdir -p "$HOME/.eva"
# --- Verify ---
if "$INSTALL_DIR/$BINARY_NAME" --help >/dev/null 2>&1; then
VERSION_INFO="(verified)"
else
VERSION_INFO="(binary installed but --help check skipped)"
fi
# --- Success ---
cat <<EOF
EVA installed successfully $VERSION_INFO
Binary: $INSTALL_DIR/$BINARY_NAME
Note: For the full experience (agent, hooks, skills), use the plugin:
claude plugins install theLightArchitect/EVA
To use this standalone binary, add to Claude Code:
1. Quick setup:
claude mcp add EVA -- $INSTALL_DIR/$BINARY_NAME
2. Or manually add to ~/.claude/mcp.json:
{
"mcpServers": {
"EVA": {
"command": "$INSTALL_DIR/$BINARY_NAME",
"env": { "RUST_LOG": "info" }
}
}
}
3. Restart Claude Code, then try:
"Hey EVA, what can you do?"
"EVA, review this code"
EOF