-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·33 lines (27 loc) · 844 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·33 lines (27 loc) · 844 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "autoimprove setup"
echo "─────────────────"
# Check bun
if ! command -v bun &>/dev/null; then
echo "✗ bun not found. Install it: https://bun.sh"
exit 1
fi
echo "✓ bun $(bun --version)"
# Smart install: only run if node_modules is older than package.json
if [ ! -d node_modules ] || [ package.json -nt node_modules ]; then
echo " Installing dependencies..."
bun install
else
echo "✓ dependencies up to date"
fi
# Verify SDK is importable
if ! bun -e "import '@anthropic-ai/sdk'" &>/dev/null; then
echo "✗ @anthropic-ai/sdk not importable — try: bun install"
exit 1
fi
echo "✓ @anthropic-ai/sdk"
echo ""
echo "Ready! Run: bun run engine/src/cli.ts --version"