-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
43 lines (34 loc) · 908 Bytes
/
run.sh
File metadata and controls
43 lines (34 loc) · 908 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
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Complete pipeline runner
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV_DIR="${SCRIPT_DIR}/venv"
BANNER_FILE="${SCRIPT_DIR}/banner"
# Display banner
if [ -f "${BANNER_FILE}" ]; then
cat "${BANNER_FILE}"
echo
fi
# Activate virtual environment
if [ ! -d "${VENV_DIR}" ]; then
echo "Error: Virtual environment not found. Run ./installer.sh first."
exit 1
fi
source "${VENV_DIR}/bin/activate"
# Check for API key
if [ -z "${ANTHROPIC_API_KEY}" ]; then
echo "Error: ANTHROPIC_API_KEY environment variable not set"
echo "Please set it with: export ANTHROPIC_API_KEY='your-api-key'"
exit 1
fi
# Run the complete pipeline
echo "=== Starting Repository Mapper Pipeline ==="
echo
./repo_mapper.sh
echo
python3 analyze_repos.py
echo
python3 generate_xmind.py
echo
echo "=== Pipeline Complete ==="
echo "Check the output/ directory for results"