Commit graph

4235 commits

Author SHA1 Message Date
28f811bb7f Update botserver workflow
Some checks failed
BotServer CI/CD / build (push) Failing after 9s
2026-04-10 12:27:24 -03:00
5e955d3196 Fix CI: Handle divergent submodule histories with fetch+reset
Some checks failed
BotServer CI/CD / build (push) Failing after 5s
- Changed from 'git pull --ff-only' to 'git fetch + git reset --hard'
- This handles cases where local submodule history has diverged from remote
- Ensures CI always uses exact remote state regardless of local history

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 12:12:48 -03:00
aaccd741e3 Fix CI: Use gbuser home directory and restore original Setup Workspace
Some checks failed
BotServer CI/CD / build (push) Failing after 10s
- Changed WORKSPACE from /opt/gbo/data/botserver to /home/gbuser/workspace
- Changed CARGO_TARGET_DIR from /opt/gbo/data/botserver/target to /home/gbuser/target
- Restored original Setup Workspace approach that clones gb-ws and uses its Cargo.toml
- Uses shallow clones (--depth 1) for efficiency
- Only initializes necessary submodules (botlib and botserver)
- Updated build and deploy paths to use gbuser home directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-10 12:09:07 -03:00
2634521d9e Optimize CI Setup Workspace - avoid full codebase download
- Remove gb-ws clone (unnecessary intermediate step)
- Use --depth 1 for shallow clones (only latest commit)
- Create minimal Cargo.toml directly (only botlib + botserver members)
- Use git pull --ff-only for updates (no full history)
- Significantly reduces CI time and disk usage
- Maintains single-pull strategy
2026-04-10 11:38:13 -03:00
26b009d4e6 Fix: Remove duplicate method definitions in DriveMonitor
All checks were successful
BotServer CI/CD / build (push) Successful in 4m52s
- Removed duplicate file_state_path() and load_file_states() methods
- Kept only new save_file_states_static() helper
- Original methods still exist at lines 79-84 and 87-128
- Fixes compilation errors from previous commit
2026-04-10 11:31:17 -03:00
816d416eee Fix DriveMonitor dispatch failure in main repo
Some checks failed
BotServer CI/CD / build (push) Failing after 1m31s
- Added static save_file_states_static() helper method
- Changed tokio::spawn calls to use Arc::clone instead of Arc::new(self.clone())
- This prevents double Arc wrapping which causes 'dispatch failure' errors
- Fixes config.csv not syncing from bucket to database for salesianos/default bots
2026-04-10 11:24:56 -03:00
918cb623a1 ci: trigger build
All checks were successful
BotServer CI/CD / build (push) Successful in 1m0s
2026-04-10 09:05:32 -03:00
dc933c22e4 ci: kill stuck cargo before build
All checks were successful
BotServer CI/CD / build (push) Successful in 1m3s
2026-04-10 08:50:07 -03:00
5e819c4714 ci: simplest - just git pull and cargo build
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:45:38 -03:00
db1dd37adc ci: simplify - always build, rely on sccache for speed
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:38:19 -03:00
768a3f6f82 ci: fix change detection - compare commits not diff
All checks were successful
BotServer CI/CD / build (push) Successful in 1m3s
2026-04-10 08:36:05 -03:00
385993bc67 ci: fix change detection - use git diff HEAD origin/main
All checks were successful
BotServer CI/CD / build (push) Successful in 1m6s
2026-04-10 08:29:45 -03:00
4e60bed7b7 fix: use curl with --cacert for Vault requests
All checks were successful
BotServer CI/CD / build (push) Successful in 1m2s
2026-04-10 08:27:55 -03:00
8e56fc5828 ci: check for changes before building, optimize git fetch
All checks were successful
BotServer CI/CD / build (push) Successful in 1m23s
2026-04-10 08:17:28 -03:00
6fdf2b1fd1 ci: add sccache cache action
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:14:53 -03:00
6fb8063a5b fix: add debug logging for Vault requests
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-10 08:11:19 -03:00
2afa8bcfee fix: set SSL_CERT_FILE env before Vault HTTP calls
All checks were successful
BotServer CI/CD / build (push) Successful in 5m24s
2026-04-10 08:04:12 -03:00
452d0ec89b fix: read drive/cache/qdrant config directly from Vault using HTTP
All checks were successful
BotServer CI/CD / build (push) Successful in 12m38s
2026-04-10 07:42:55 -03:00
f58d000ac8 debug: log S3 operator server and access_key
All checks were successful
BotServer CI/CD / build (push) Successful in 5m24s
2026-04-10 00:05:25 -03:00
b5be26591e feat: add LOAD_ONLY env filter for bots discovery and monitoring
All checks were successful
BotServer CI/CD / build (push) Successful in 10m39s
2026-04-09 23:15:54 -03:00
9bc8cbe0d6 fix(drive): skip gbo-* prefixed bots from monitoring, allow default to sync config.csv
All checks were successful
BotServer CI/CD / build (push) Successful in 5m28s
2026-04-09 23:02:54 -03:00
a2882f32f7 fix(drive): allow 'default' bot to be monitored so config.csv syncs
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-09 23:00:16 -03:00
2b2b386f5e Fix duplicate endpoint path in LLM URL
All checks were successful
BotServer CI/CD / build (push) Successful in 5m58s
2026-04-09 22:51:32 -03:00
13fee4d079 Use bot-specific llm-endpoint-path from config
All checks were successful
BotServer CI/CD / build (push) Successful in 5m27s
2026-04-09 22:11:54 -03:00
f0b2b916c8 Allow any .gbai bucket (remove gbo- prefix requirement)
All checks were successful
BotServer CI/CD / build (push) Successful in 5m19s
2026-04-09 21:43:12 -03:00
9ba689c30f Allow gbo-default bucket to be monitored
All checks were successful
BotServer CI/CD / build (push) Successful in 3m56s
2026-04-09 21:32:15 -03:00
ed6ce514a8 feat: add drive feature to default features
All checks were successful
BotServer CI/CD / build (push) Successful in 1m18s
2026-04-09 19:47:18 -03:00
a51eff0fd3 fix: correct YAML indentation in CI workflow
All checks were successful
BotServer CI/CD / build (push) Successful in 4m56s
2026-04-09 18:33:53 -03:00
8dddc916ff fix: use Vault config for Qdrant in KB indexer
- website_crawler_service: use QdrantConfig::from_config instead of default
- local_file_monitor: use QdrantConfig::from_config with DbPool
- kb_indexer: KbFolderMonitor now uses SecretsManager for Qdrant config

This fixes the issue where Qdrant URL was hardcoded to localhost:6333
instead of reading from Vault (gbo/vectordb).
2026-04-09 18:27:10 -03:00
f526fa1daa Fix hardcoded paths for production environment
- Update get_work_path_default() to check for .env in /opt/gbo/bin/.env
- Update get_stack_path() to check for .env in /opt/gbo/bin/.env
- Update DriveMonitor::new() to use get_work_path() instead of hardcoded path
- Update start_config_watcher() to use get_work_path() instead of hardcoded path

This fixes the issue where botserver was using development paths
(/home/rodriguez/src/gb/botserver-stack/data/system/work) in production
instead of production paths (/opt/gbo/work).
2026-04-09 18:21:17 -03:00
8dcc6679bb fix: reduce runner CPU by running build in background 2026-04-09 15:43:48 -03:00
e6a16428b9 test: trigger CI after SSH fix
All checks were successful
BotServer CI/CD / build (push) Successful in 32m57s
2026-04-09 15:12:47 -03:00
61f4353dbb fix: UTF-8 char boundary panics in log truncation
Some checks failed
BotServer CI/CD / build (push) Failing after 6m45s
2026-04-09 01:37:48 -03:00
5371047fa1 Drive monitor: download PROMPT.md from MinIO to work directory
Some checks failed
BotServer CI/CD / build (push) Failing after 6m18s
- When system-prompt-file is configured in config.csv, download the file from MinIO
- Save to {bot}.gbai/{bot}.gbot/ folder in work directory
- Config loaded from MinIO (gbo-* buckets)
2026-04-08 20:09:39 -03:00
c5a44f7889 Clean up local-files feature comments
Some checks failed
BotServer CI/CD / build (push) Failing after 2m48s
- Keep local-files feature flag for conditional local file monitoring
- Keep gbo- bucket filtering in drive
- Remove verbose comments
2026-04-08 18:33:39 -03:00
62d0da3923 Add local-files feature to disable local storage scanning
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Without local-files feature: only MinIO/Drive is used as bot source
- With local-files feature: scans /opt/gbo/data for bots (default behavior)
- Bucket filtering (gbo-*) only active when local-files is NOT enabled
- LocalFileMonitor and ConfigWatcher only start with local-files feature
2026-04-08 18:29:48 -03:00
b4a82b6c06 Disable local file monitoring, use drive (MinIO) as sole bot source
Some checks failed
BotServer CI/CD / build (push) Failing after 13m5s
- Disable LocalFileMonitor and ConfigWatcher - use S3/MinIO only
- Filter S3 buckets to gbo-*.gbai prefix
- Auto-create bots in database when new S3 buckets discovered
- Change file paths to use work directory instead of /opt/gbo/data
- Add RunQueryDsl import for Diesel queries
2026-04-08 17:47:44 -03:00
9e799dd6b1 Disable /opt/gbo/data loading, use drive (MinIO) only for bot sources
Some checks failed
BotServer CI/CD / build (push) Failing after 8m28s
- Remove LocalFileMonitor and ConfigWatcher for /opt/gbo/data
- Remove /opt/gbo/data from mount_all_bots() scanning
- Change start.bas, tables.bas, and tool paths to use work directory
- Filter drive buckets to only gbo-* prefix
- Remove unused create_bot_simple method
- Fix all warnings (unused imports, variables, dead code)
2026-04-08 16:55:50 -03:00
9b04af9e7b Fix USE KB and USE WEBSITE default features compilation
Some checks failed
BotServer CI/CD / build (push) Failing after 10m2s
2026-04-07 20:14:12 -03:00
73002b36cc Update botserver: various fixes and improvements
All checks were successful
BotServer CI/CD / build (push) Successful in 9m59s
2026-04-07 13:33:50 -03:00
90c14bcd09 Fix DETECT: use bot-specific DB pool, add anonymous auth when directory disabled
All checks were successful
BotServer CI/CD / build (push) Successful in 12m42s
2026-04-06 13:37:23 -03:00
8d3c28e441 Fix SMTP: use starttls_relay for port 587, relay for 465 2026-04-06 11:00:23 -03:00
15d9e3c142 fix(deploy): Ignore error if /opt/gbo/bin/botserver doesn't exist on first deploy
All checks were successful
BotServer CI/CD / build (push) Successful in 5m7s
2026-04-05 19:38:54 -03:00
86bb4cad8e fix(botserver): Handle TOOL_EXEC message type for direct tool execution without KB/LLM
Some checks failed
BotServer CI/CD / build (push) Failing after 5m40s
2026-04-05 19:11:04 -03:00
3684c862c6 fix drive: add missing diesel imports (QueryableByName, RunQueryDsl)
Some checks failed
BotServer CI/CD / build (push) Failing after 2m29s
2026-04-05 13:19:22 -03:00
b5d5c576a4 Fix unused imports
Some checks failed
BotServer CI/CD / build (push) Failing after 5m42s
2026-04-05 12:34:33 -03:00
f6869e6b5c Fix diesel join queries across schemas and FileItem missing fields
Some checks failed
BotServer CI/CD / build (push) Failing after 10m1s
2026-04-05 12:06:35 -03:00
508a3ed011 Update directory module: Zitadel v4.13.1 integration
Some checks failed
BotServer CI/CD / build (push) Failing after 6m43s
2026-04-05 11:32:35 -03:00
155d465b14 Update botserver: Refactor groups module, add Knowledge Base group association logic, and implement Drive tags for KB access.
Some checks failed
BotServer CI/CD / build (push) Failing after 5m53s
2026-04-05 09:11:54 -03:00
552f37a41c fix(secrets): Remove unused sync caching functions to fix CI clippy warnings
All checks were successful
BotServer CI/CD / build (push) Successful in 12m19s
2026-04-05 07:52:41 -03:00