-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
52 lines (47 loc) · 1.61 KB
/
setup.sh
File metadata and controls
52 lines (47 loc) · 1.61 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
#!/bin/bash
echo "🚀 TIMPs Setup & Installation"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Check if Node is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Install from https://nodejs.org"
exit 1
fi
echo "✅ Node.js detected: $(node -v)"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
npm install
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ Setup complete!"
echo ""
echo "🎯 Quick Start:"
echo ""
echo " Interactive CLI (default):"
echo " npm run cli -- --user-id 1 --interactive"
echo ""
echo " Premium TUI (new):"
echo " npm run tui -- --user-id 1"
echo ""
echo " Ephemeral mode (no memory persistence):"
echo " npm run cli -- --user-id 1 --interactive --mode ephemeral"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "📋 Requirements:"
echo " • PostgreSQL running on localhost:5432"
echo " • Ollama running (ollama serve)"
echo " • .env file configured"
echo ""
echo "🎮 TUI Controls:"
echo " [Enter] Send message"
echo " [Ctrl+L] Show audit log"
echo " [Tab] Switch panels"
echo " [Ctrl+C] Exit"
echo ""
echo "🧠 Commands:"
echo " !blame <keyword> Search memories"
echo " !forget <keyword> Delete memories"
echo " !audit Show recent memories"
echo ""