Commit graph

3649 commits

Author SHA1 Message Date
7600620224 Add rotate-secret and rotate-secrets commands for credential rotation
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Failing after 24m38s
2025-12-18 11:20:31 -03:00
91f6263746 Add version --all command
Some checks are pending
GBCI / build (push) Waiting to run
GBCI Bundle / build-bundle (push) Has been skipped
2025-12-18 11:06:19 -03:00
ee8f17b800 CI: reduce codegen-units to 1 to prevent OOM
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Failing after 23m36s
2025-12-18 10:41:33 -03:00
f8ac224d00 Add vault CLI commands for secret migration
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Failing after 24m51s
2025-12-18 09:40:16 -03:00
55faf55e08 CI: add libpq-dev for PostgreSQL linking
All checks were successful
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Successful in 16m37s
2025-12-17 22:40:45 -03:00
bac5dc3d4a CI: use debug build for fastest compilation
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Failing after 12m21s
2025-12-17 22:01:11 -03:00
3d18873c89 CI profile: disable LTO, 16 codegen units for max speed
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Has been cancelled
2025-12-17 22:00:38 -03:00
e992667e2a Use CI profile: thin LTO + 4 codegen units for faster builds
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Has been cancelled
2025-12-17 21:59:52 -03:00
503d6e7ca8 Reduce memory usage in CI: limit parallel jobs
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Has been cancelled
2025-12-17 21:56:28 -03:00
ab215bc90e Disable botserver-bundle workflow
Some checks failed
GBCI Bundle / build-bundle (push) Has been skipped
GBCI / build (push) Failing after 32m32s
2025-12-17 20:44:01 -03:00
88605711e1 fix: remove unused error import
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 29m52s
GBCI / build (push) Failing after 30m53s
2025-12-17 18:38:34 -03:00
27fae3ba05 fix: resolve all warnings - wire up services properly
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 31m25s
GBCI / build (push) Failing after 27m41s
2025-12-17 17:41:37 -03:00
f490eb09eb Fix warnings: add Debug derive, prefix unused vars
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 26m24s
GBCI / build (push) Failing after 26m5s
2025-12-17 11:26:58 -03:00
351708f3fa Save build logs to /opt/gbo/logs/
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 25m54s
GBCI / build (push) Failing after 22m25s
2025-12-16 22:29:29 -03:00
36453cd03b Add debug output to diagnose silent CI failures
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 27m9s
GBCI / build (push) Waiting to run
2025-12-16 21:13:12 -03:00
a2dd0b3683 Simplify: build only Linux x86_64 for now
Some checks failed
GBCI / build (push) Waiting to run
GBCI Bundle / build-bundle (push) Failing after 24m37s
2025-12-16 20:40:40 -03:00
c41c201ac8 Fix: use full paths for cargo to work across all build steps
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 26m20s
GBCI / build (push) Failing after 25m0s
2025-12-16 19:59:05 -03:00
8788ad7df2 Fix: rename gbserver to botserver, use rustup for Rust install, remove macOS
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 27m36s
GBCI / build (push) Failing after 23m47s
2025-12-16 19:17:47 -03:00
62e22f1180 Fix: use git clone for dependencies outside workspace
Some checks failed
GBCI / build (push) Waiting to run
GBCI Bundle / build-bundle (push) Failing after 24m19s
2025-12-16 17:20:36 -03:00
38406043d6 Add checkout of botlib dependency in CI
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 17s
GBCI / build (push) Failing after 19s
2025-12-16 17:00:14 -03:00
a1fef6fc37 Add Cargo caching for faster builds
Some checks failed
GBCI Bundle / build-bundle (push) Failing after 26s
GBCI / build (push) Failing after 23s
2025-12-16 16:35:22 -03:00
d380368fee Add Forgejo CI workflows - botserver.yaml and botserver-bundle.yaml with cross-platform builds
Some checks failed
GBCI / build (push) Waiting to run
GBCI Bundle / build-bundle (push) Has been cancelled
2025-12-16 13:25:26 -03:00
e486689644 Fix: Skip starting components that are already running (minio, valkey) 2025-12-16 10:48:42 -03:00
2f9622ab77 Update calendar and email modules 2025-12-15 23:16:08 -03:00
9a309b4bea Fix vault health check - quote URL to prevent & being interpreted as shell background 2025-12-15 18:04:53 -03:00
62915b2164 Add debug logs to package manager start function 2025-12-15 17:50:03 -03:00
3c56b6e088 Fix Vault retry logic - wait up to 20 seconds for vault to start 2025-12-15 17:37:00 -03:00
7ccca11a25 Fix Vault startup: detect connection refused and start vault properly 2025-12-15 17:32:15 -03:00
dfe07d8449 Fix: add trace to log imports 2025-12-15 17:14:39 -03:00
4bae62b736 Fix Vault startup - add retry logic and auto-restart zombie vault processes 2025-12-15 17:11:47 -03:00
2d310a71ac Fix llm-server default to true, convert debug eprintln to trace 2025-12-15 16:33:13 -03:00
e200f47864 Fix Zitadel masterkey to come from Vault
- Add masterkey field to gbo/directory secret in Vault during bootstrap
- Generate random 32-char masterkey if not exists
- Update Zitadel exec_cmd to read masterkey from Vault
- Remove hardcoded masterkey values
2025-12-15 13:56:50 -03:00
17618f692c feat: configurable stack paths and local installer support
- Add BOTSERVER_INSTALLERS_PATH env var to use local installers without downloading
- Replace hardcoded ./botserver-stack paths with configurable stack_path
- Add stack_dir() and vault_bin() helper methods in BootstrapManager
- Add Port: 8300 to Zitadel config to fix port binding issue
- Start Directory service before setup_directory() call
- Add SKIP_LLM_SERVER env var to skip local LLM in tests
- Update template loading to check ../bottemplates and botserver-templates paths
2025-12-14 15:58:54 -03:00
7029e49f80 Add MCP server support via mcp.csv
- New mcp_directory.rs: McpCsvLoader to load MCP servers from mcp.csv
- CSV format: name,type,command,args,description,enabled,auth_type,auth_env
- Support for stdio, http, websocket, tcp connection types
- Support for api_key and bearer authentication
- Updated sources/mod.rs with MCP management API endpoints
- New sources/mcp.rs with helper functions
- MCP tools available to Tasks like BASIC keywords
2025-12-13 00:26:49 -03:00
8b004f1a89 Lowercase botserver/botbook references 2025-12-12 23:20:42 -03:00
9545db65f1 Fix truncated files, implement TODOs, remove all compilation errors and warnings
- Complete truncated auto_task.rs, autotask_api.rs, intent_compiler.rs, mcp_client.rs, safety_layer.rs
- Add missing structs: RiskFactor, ResourceUsage, TaskError, RollbackState, TaskSchedule, HealthStatus
- Add missing IntentCompiler methods: call_llm, assess_risks, estimate_resources, check_ambiguity, store_compiled_intent
- Implement SET ATTENDANT STATUS database storage
- Implement queue position calculation in transfer_to_human
- Add llm_tokens to ResourceEstimate
- Fix all unused imports and variables
- Add proper derives (Copy, PartialOrd) where needed
2025-12-12 17:33:11 -03:00
0d4797738b Update compiler and add goto_transform 2025-12-12 16:39:44 -03:00
59a74fa3ec Add llama.cpp support and embedded config for Orange Pi / Raspberry Pi 2025-12-12 13:46:04 -03:00
fed35e116a Add embedded deployment script for Orange Pi, Raspberry Pi, ARM SBCs 2025-12-12 13:43:40 -03:00
82db06e435 docs: Add Auto Task Architecture documentation 2025-12-12 12:35:40 -03:00
48f3cfb6f3 feat: Add Auto Task system - Intent Compiler, MCP Client, Safety Layer
- intent_compiler.rs: LLM-to-BASIC translation engine
- auto_task.rs: Auto-executing task data structures
- mcp_client.rs: Model Context Protocol server integration
- safety_layer.rs: Constraints, simulation, audit trail
- autotask_api.rs: HTTP API handlers for Auto Task UI
- Updated mod.rs with new modules and keyword list
2025-12-12 12:33:17 -03:00
777a3eae63 Move Directory (Zitadel) to port 8300
- Directory/Zitadel: 8080 -> 8300
- BotServer API remains on 8080
- Updated all references in bootstrap, installer, oauth, config
2025-12-11 08:43:28 -03:00
c986539fad Add missing API endpoints for UI suite screens
- src/meet/mod.rs: Add UI-compatible endpoints:
  - /api/meet/rooms (list_rooms_ui)
  - /api/meet/recent (recent_meetings)
  - /api/meet/participants (all_participants)
  - /api/meet/scheduled (scheduled_meetings)

- src/drive/mod.rs: Add UI-compatible endpoint:
  - /api/drive/list (list_drive_files_ui)

- src/calendar/mod.rs: Add UI-compatible endpoints (from previous session):
  - /api/calendar/list (list_calendars)
  - /api/calendar/upcoming (upcoming_events)

All endpoints return stub JSON responses for UI compatibility.
2025-12-10 23:50:06 -03:00
88d629e310 Revert "Add static file serving for suite UI"
This reverts commit dfd0dded23.
2025-12-10 21:52:43 -03:00
dfd0dded23 Add static file serving for suite UI
- Serve suite UI from botui (dev) or botserver-stack (installed)
- SPA fallback to index.html for client-side routing
- Search paths: ../botui/ui/suite, ./botserver-stack/ui/suite, ./ui/suite
2025-12-10 21:41:11 -03:00
30d433e409 Silence vaultrs and rustify logs polluting console 2025-12-10 19:47:39 -03:00
6307725766 Update directory config 2025-12-10 19:46:42 -03:00
49304a70b5 Fix Vault re-init to preserve other services + simplify shutdown message
- When Vault unseal fails, only restart Vault - NOT full bootstrap
- Preserve PostgreSQL, Redis, MinIO, etc. when Vault needs re-init
- Simplify shutdown message to 3 lines with pragmatismo.com.br
- Never kill all stack processes just for Vault issues
2025-12-10 18:41:45 -03:00
0bbaaf4878 Add beautiful graceful shutdown on CTRL+C
- Display 'Thank you for using General Bots!' message
- Show version, links, and farewell
- Handle both SIGTERM and SIGINT (Ctrl+C)
- Graceful 10 second timeout for in-flight requests
2025-12-10 18:31:58 -03:00
fe301d003b Fix LLM 400 error - remove invalid bot_id from messages array
The bot_id object was being pushed into the messages array sent to the LLM,
but LLM APIs expect messages to only contain role/content objects.
2025-12-10 18:29:34 -03:00