-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·77 lines (68 loc) · 2.46 KB
/
run.sh
File metadata and controls
executable file
·77 lines (68 loc) · 2.46 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
#!/bin/bash
# Quick start script for Claude Code Transcript Explorer
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}═══════════════════════════════════════════════════════════${NC}"
echo -e "${GREEN} Claude Code Transcript Explorer ${NC}"
echo -e "${BLUE}═══════════════════════════════════════════════════════════${NC}"
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo -e "${YELLOW}Creating virtual environment...${NC}"
python3 -m venv venv
source venv/bin/activate
echo -e "${YELLOW}Installing dependencies...${NC}"
pip install -q --upgrade pip
pip install -q -r requirements.txt
echo -e "${GREEN}✓ Dependencies installed${NC}"
else
source venv/bin/activate
fi
# Display options
echo -e "${BLUE}Select mode:${NC}"
echo "1) 🖥️ GUI - Launch web interface (default)"
echo "2) 🔍 CLI - Command line search"
echo "3) 📥 Export - Export all transcripts"
echo "4) 🚀 Quick Start - GUI with share link"
echo ""
read -p "Enter choice [1-4] (default: 1): " choice
choice=${choice:-1}
case $choice in
1)
echo -e "${GREEN}Starting GUI interface...${NC}"
echo -e "${YELLOW}Access at: http://localhost:7860${NC}"
python main.py --mode gui
;;
2)
read -p "Enter search query: " query
python main.py --mode cli --search "$query"
;;
3)
echo "Select export format:"
echo "1) JSON"
echo "2) CSV"
echo "3) Markdown"
read -p "Enter choice [1-3]: " format_choice
case $format_choice in
1) format="json" ;;
2) format="csv" ;;
3) format="markdown" ;;
*) format="json" ;;
esac
timestamp=$(date +%Y%m%d_%H%M%S)
output="export_${timestamp}.${format}"
echo -e "${YELLOW}Exporting to $output...${NC}"
python main.py --mode export --export-format $format --output $output
;;
4)
echo -e "${GREEN}Starting GUI with public share link...${NC}"
python main.py --mode gui --share
;;
*)
echo -e "${YELLOW}Invalid choice. Starting GUI...${NC}"
python main.py --mode gui
;;
esac