Skip to content

Commit db83fe4

Browse files
committed
Merge branch 'dev' into fix/cleanup-model
2 parents 43ed63e + 2e79b70 commit db83fe4

File tree

19 files changed

+100
-57
lines changed

19 files changed

+100
-57
lines changed

.github/workflows/robot-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
# Show logs every 10 attempts to help debug
142142
if [ $((i % 10)) -eq 0 ]; then
143143
echo "Still waiting... showing recent logs:"
144-
docker compose -f docker-compose-test.yml logs --tail=20 friend-backend-test
144+
docker compose -f docker-compose-test.yml logs --tail=20 chronicle-backend-test
145145
fi
146146
if [ $i -eq 40 ]; then
147147
echo "✗ Backend failed to start - showing full logs:"
@@ -219,7 +219,7 @@ jobs:
219219
working-directory: backends/advanced
220220
run: |
221221
echo "=== Backend Logs (last 50 lines) ==="
222-
docker compose -f docker-compose-test.yml logs --tail=50 friend-backend-test
222+
docker compose -f docker-compose-test.yml logs --tail=50 chronicle-backend-test
223223
echo ""
224224
echo "=== Worker Logs (last 50 lines) ==="
225225
docker compose -f docker-compose-test.yml logs --tail=50 workers-test

CLAUDE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,49 @@ This supports a comprehensive web dashboard for management.
1313

1414
**❌ No Backward Compatibility**: Do NOT add backward compatibility code unless explicitly requested. This includes fallback logic, legacy field support, or compatibility layers. Always ask before adding backward compatibility - in most cases the answer is no during active development.
1515

16+
## Initial Setup & Configuration
17+
18+
Chronicle includes an **interactive setup wizard** for easy configuration. The wizard guides you through:
19+
- Service selection (backend + optional services)
20+
- Authentication setup (admin account, JWT secrets)
21+
- Transcription provider configuration (Deepgram, Mistral, or offline ASR)
22+
- LLM provider setup (OpenAI or Ollama)
23+
- Memory provider selection (Chronicle Native with Qdrant or OpenMemory MCP)
24+
- Network configuration and HTTPS setup
25+
- Optional services (speaker recognition, Parakeet ASR)
26+
27+
### Quick Start
28+
```bash
29+
# Run the interactive setup wizard from project root
30+
uv run python wizard.py
31+
32+
# Or use the quickstart guide for step-by-step instructions
33+
# See quickstart.md for detailed walkthrough
34+
```
35+
36+
### Setup Documentation
37+
For detailed setup instructions and troubleshooting, see:
38+
- **[@quickstart.md](quickstart.md)**: Beginner-friendly step-by-step setup guide
39+
- **[@Docs/init-system.md](Docs/init-system.md)**: Complete initialization system architecture and design
40+
- **[@Docs/getting-started.md](Docs/getting-started.md)**: Technical quickstart with advanced configuration
41+
- **[@backends/advanced/SETUP_SCRIPTS.md](backends/advanced/SETUP_SCRIPTS.md)**: Setup scripts reference and usage examples
42+
- **[@backends/advanced/Docs/quickstart.md](backends/advanced/Docs/quickstart.md)**: Backend-specific setup guide
43+
44+
### Wizard Architecture
45+
The initialization system uses a **root orchestrator pattern**:
46+
- **`wizard.py`**: Root setup orchestrator for service selection and delegation
47+
- **`backends/advanced/init.py`**: Backend configuration wizard
48+
- **`extras/speaker-recognition/init.py`**: Speaker recognition setup
49+
- **Service setup scripts**: Individual setup for ASR services and OpenMemory MCP
50+
51+
Key features:
52+
- Interactive prompts with validation
53+
- API key masking and secure credential handling
54+
- Environment file generation with placeholders
55+
- HTTPS configuration with SSL certificate generation
56+
- Service status display and health checks
57+
- Automatic backup of existing configurations
58+
1659
## Development Commands
1760

1861
### Backend Development (Advanced Backend - Primary)

Docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ uv sync --group (whatever group you want to sync)
396396
## Troubleshooting
397397

398398
**Service Issues:**
399-
- Check logs: `docker compose logs friend-backend`
399+
- Check logs: `docker compose logs chronicle-backend`
400400
- Restart services: `docker compose restart`
401401
- View all services: `docker compose ps`
402402

Docs/init-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ curl http://localhost:8767/health
230230
docker compose logs [service-name]
231231

232232
# Backend logs
233-
cd backends/advanced && docker compose logs friend-backend
233+
cd backends/advanced && docker compose logs chronicle-backend
234234

235235
# Speaker Recognition logs
236236
cd extras/speaker-recognition && docker compose logs speaker-service

backends/advanced/Docs/HTTPS_SETUP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ CORS_ORIGINS=https://localhost,https://127.0.0.1,https://100.83.66.30
8989
**Services started:**
9090
- ✅ nginx (ports 443/80) - SSL termination and proxy
9191
- ✅ webui (port 5173, internal) - Vite dev server
92-
-friend-backend (port 8000, internal)
92+
-chronicle-backend (port 8000, internal)
9393
- ✅ mongo, qdrant (databases)
9494

9595
**Access:** https://localhost/ or https://your-ip/
@@ -99,7 +99,7 @@ CORS_ORIGINS=https://localhost,https://127.0.0.1,https://100.83.66.30
9999
**Services started:**
100100
- ✅ nginx (ports 443/80) - but without SSL certificates
101101
- ✅ webui (port 5173, direct access) - Vite dev server
102-
-friend-backend (port 8000)
102+
-chronicle-backend (port 8000)
103103
- ✅ mongo, qdrant (databases)
104104

105105
**Access:** http://localhost:5173
@@ -169,7 +169,7 @@ docker compose restart nginx
169169
**Problem:** "Cross-Origin Request Blocked"
170170
**Solution:**
171171
1. Update CORS_ORIGINS in `.env` to include your HTTPS origin
172-
2. Restart backend: `docker compose restart friend-backend`
172+
2. Restart backend: `docker compose restart chronicle-backend`
173173

174174
### Microphone Access Denied
175175

@@ -192,7 +192,7 @@ docker compose restart nginx
192192
### Standard Setup
193193
- **3000** - HTTP (webui production)
194194
- **5173** - HTTP (webui development)
195-
- **8000** - HTTP (friend-backend)
195+
- **8000** - HTTP (chronicle-backend)
196196

197197
## Live Recording Feature
198198

backends/advanced/Docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ backends/advanced-backend/
189189

190190
- **Debug API**: `GET /api/debug/memory/*` endpoints show real-time system status
191191
- **Configuration**: Check `config.yml` for behavior controls
192-
- **Logs**: Check Docker logs with `docker compose logs friend-backend`
192+
- **Logs**: Check Docker logs with `docker compose logs chronicle-backend`
193193
- **Documentation**: Each doc file links to relevant code sections
194194

195195
---

backends/advanced/Docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ stateDiagram-v2
585585
```mermaid
586586
graph LR
587587
subgraph "Docker Network"
588-
Backend[friend-backend<br/>uv + FastAPI]
588+
Backend[chronicle-backend<br/>uv + FastAPI]
589589
WebUI[webui<br/>React Dashboard]
590590
Proxy[nginx<br/>Load Balancer]
591591
Mongo[mongo:4.4.18<br/>Primary Database]
@@ -616,7 +616,7 @@ graph LR
616616

617617
### Container Specifications
618618

619-
#### Backend Container (`friend-backend`)
619+
#### Backend Container (`chronicle-backend`)
620620
- **Base**: Python 3.12 slim with uv package manager
621621
- **Dependencies**: FastAPI, WebSocket libraries, audio processing tools
622622
- **Volumes**: Audio chunk storage, debug directories

backends/advanced/Docs/auth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ curl -X POST "http://localhost:8000/auth/jwt/login" \
260260
#### 3. Admin User Creation
261261
```bash
262262
# Check logs for admin creation
263-
docker compose logs friend-backend | grep -i admin
263+
docker compose logs chronicle-backend | grep -i admin
264264

265265
# Verify environment variables
266266
echo $ADMIN_PASSWORD
@@ -272,7 +272,7 @@ echo $ADMIN_PASSWORD
272272
docker exec -it mongo-container mongosh chronicle
273273

274274
# View authentication logs
275-
docker compose logs friend-backend | grep -i auth
275+
docker compose logs chronicle-backend | grep -i auth
276276

277277
# Test API endpoints
278278
curl -H "Authorization: Bearer $TOKEN" http://localhost:8000/api/users/me

backends/advanced/Docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ uv sync --group (whatever group you want to sync)
394394
## Troubleshooting
395395

396396
**Service Issues:**
397-
- Check logs: `docker compose logs friend-backend`
397+
- Check logs: `docker compose logs chronicle-backend`
398398
- Restart services: `docker compose restart`
399399
- View all services: `docker compose ps`
400400

backends/advanced/nginx.conf.template

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ http {
4343
}
4444

4545
# Upstream services
46-
upstream friend_backend {
47-
server friend-backend:8000;
46+
upstream chronicle_backend {
47+
server chronicle-backend:8000;
4848
}
4949

5050
upstream friend_webui {
@@ -70,7 +70,7 @@ http {
7070

7171
# Backend API endpoints
7272
location /api/ {
73-
proxy_pass http://friend_backend/api/;
73+
proxy_pass http://chronicle_backend/api/;
7474
proxy_set_header Host $host;
7575
proxy_set_header X-Real-IP $remote_addr;
7676
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -80,7 +80,7 @@ http {
8080

8181
# Authentication endpoints
8282
location /auth/ {
83-
proxy_pass http://friend_backend/auth/;
83+
proxy_pass http://chronicle_backend/auth/;
8484
proxy_set_header Host $host;
8585
proxy_set_header X-Real-IP $remote_addr;
8686
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -90,7 +90,7 @@ http {
9090

9191
# Users endpoints
9292
location /users/ {
93-
proxy_pass http://friend_backend/users/;
93+
proxy_pass http://chronicle_backend/users/;
9494
proxy_set_header Host $host;
9595
proxy_set_header X-Real-IP $remote_addr;
9696
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -100,7 +100,7 @@ http {
100100

101101
# WebSocket endpoints for audio streaming
102102
location /ws_pcm {
103-
proxy_pass http://friend_backend/ws_pcm;
103+
proxy_pass http://chronicle_backend/ws_pcm;
104104
proxy_http_version 1.1;
105105
proxy_set_header Upgrade $http_upgrade;
106106
proxy_set_header Connection $connection_upgrade;
@@ -117,7 +117,7 @@ http {
117117
}
118118

119119
location /ws_omi {
120-
proxy_pass http://friend_backend/ws_omi;
120+
proxy_pass http://chronicle_backend/ws_omi;
121121
proxy_http_version 1.1;
122122
proxy_set_header Upgrade $http_upgrade;
123123
proxy_set_header Connection $connection_upgrade;
@@ -135,7 +135,7 @@ http {
135135

136136
# Legacy WebSocket endpoint
137137
location /ws {
138-
proxy_pass http://friend_backend/ws;
138+
proxy_pass http://chronicle_backend/ws;
139139
proxy_http_version 1.1;
140140
proxy_set_header Upgrade $http_upgrade;
141141
proxy_set_header Connection $connection_upgrade;
@@ -153,7 +153,7 @@ http {
153153

154154
# Health check endpoints
155155
location /health {
156-
proxy_pass http://friend_backend/health;
156+
proxy_pass http://chronicle_backend/health;
157157
proxy_set_header Host $host;
158158
proxy_set_header X-Real-IP $remote_addr;
159159
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -162,7 +162,7 @@ http {
162162

163163
# Readiness check endpoint
164164
location /readiness {
165-
proxy_pass http://friend_backend/readiness;
165+
proxy_pass http://chronicle_backend/readiness;
166166
proxy_set_header Host $host;
167167
proxy_set_header X-Real-IP $remote_addr;
168168
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -171,7 +171,7 @@ http {
171171

172172
# Audio file serving
173173
location /audio/ {
174-
proxy_pass http://friend_backend/audio/;
174+
proxy_pass http://chronicle_backend/audio/;
175175
proxy_set_header Host $host;
176176
proxy_set_header X-Real-IP $remote_addr;
177177
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)