Fix LLM provider dynamic updates and DriveMonitor startup

- Add DynamicLLMProvider wrapper for runtime LLM provider updates
- Start DriveMonitor for default.gbai bucket on server startup
- Fix DriveMonitor to detect config.csv changes and update LLM provider
- Fix path matching to detect config.csv in root and .gbot folders
- Add /api/auth to anonymous paths to fix 401 on auth endpoint
- Fix foreign key references in 6.1.0 migration (users.id not users.user_id)
- Use correct bucket name 'default.gbai' for DriveMonitor
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-12-28 23:20:56 -03:00
parent 79c4918df2
commit 011f8698a8
2 changed files with 40 additions and 1 deletions

View file

@ -145,6 +145,45 @@ gb/
---
## 🚀 BOTSERVER RUN LOOP - MANDATORY FOR RUNTIME FIXES
```
LOOP UNTIL botserver starts successfully:
1. cargo build -p botserver 2>&1 | tail -20
2. IF build fails → fix errors → CONTINUE LOOP
3. cd botserver && timeout 30 ../target/debug/botserver --noconsole 2>&1 | head -80
4. Analyze output for errors/warnings
5. Fix issues in code
6. CONTINUE LOOP
END LOOP
```
### Run Commands
```bash
# Build botserver only
cargo build -p botserver 2>&1 | tail -20
# Run from botserver directory (required for .env and botserver-stack paths)
cd botserver && timeout 30 ../target/debug/botserver --noconsole 2>&1 | head -80
# Check specific component logs
cat botserver/botserver-stack/logs/drive/minio.log
cat botserver/botserver-stack/logs/vault/vault.log
# Test vault credentials manually
cd botserver && export $(cat .env | grep -v '^#' | xargs) && \
./botserver-stack/bin/vault/vault kv get -format=json secret/gbo/drive
```
### Key Paths (relative to gb/)
- Binary: `target/debug/botserver`
- Run from: `botserver/` directory
- Env file: `botserver/.env`
- Stack: `botserver/botserver-stack/`
- Logs: `botserver/botserver-stack/logs/<component>/`
---
## Development Workflow
### The Loop

@ -1 +1 @@
Subproject commit c8da129b4ce7da8d744125e90adc53e9612a2e7f
Subproject commit 22ac3af3a53ff9fe3220d53026350bd0ed1118ee