Commit graph

3835 commits

Author SHA1 Message Date
841b59affd fix(website-crawler): Add missing next_crawl column to SELECT query
Some checks failed
GBCI / build (push) Failing after 12m2s
Fix the SQL query in check_and_crawl_websites() to include next_crawl in the
SELECT clause. The WebsiteCrawlRecord struct expects this field but it was
missing, causing Diesel to fail with 'Column next_crawl was not present in query'.

This resolves the website crawler service error that was preventing websites
from being properly queried and recrawled.
2026-02-02 19:58:11 -03:00
5fb4c889b7 fix(llm-config): Fix ConfigManager fallback logic for LLM configuration
Some checks failed
GBCI / build (push) Failing after 12m26s
- Fix ConfigManager to treat 'none', 'null', 'n/a', and empty values as placeholders
  and fall back to default bot's configuration instead of using these as literal values

- Fix ConfigManager to detect local file paths (e.g., .gguf, .bin, ../) and fall back
  to default bot's model when using remote API, allowing bots to keep local model
  config for local LLM server while automatically using remote model for API calls

- Fix get_default_bot() to return the bot actually named 'default' instead of
  the first active bot by ID, ensuring consistent fallback behavior

- Add comprehensive debug logging to trace LLM configuration from database to API call

This fixes the issue where bots with incomplete or local LLM configuration would
fail with 401/400 errors when trying to use remote API, instead of automatically
falling back to the default bot's configuration from config.csv.

Closes: #llm-config-fallback
2026-02-02 19:20:37 -03:00
39c4dba838 feat: Add template validation system with .valid file
- Modify bootstrap to read .valid file and validate templates before loading
- Templates not in .valid file are skipped during bootstrap
- Backward compatible: if .valid file missing, all templates are loaded
- Enables controlled template loading during bootstrap
2026-02-01 14:20:35 -03:00
748fceff5d Fix issues: remove unused import, fix ownership error, reduce crawler interval 2026-01-30 12:21:30 -03:00
94fede7cc4 feat: Add search_enabled and menu_launcher_enabled directives to .product file
- Add search_enabled field to ProductConfig to control omnibox visibility (defaults to false)
- Add menu_launcher_enabled field to ProductConfig to control apps menu button visibility (defaults to false)
- Update .product file to set both directives to false by default
- Update get_product_config_json to include new fields in API response
- Parse search_enabled and menu_launcher_enabled from .product file with support for true/false, 1/0, yes/no values

This allows disabling the suite search mechanism and hiding the menu launcher when empty,
providing a cleaner UI for deployments that don't need these features.
2026-01-29 23:55:50 -03:00
1f7cdfa9cf Fix conditional compilation for Windows-specific security methods
- Wrapped Windows security configuration code blocks in #[cfg(windows)] attributes
- Removed nested cfg attributes that were causing compilation errors
- Properly separated Windows and Linux code paths using compile-time attributes
- Fixed calls to configure_windows_security() and update_windows_signatures()
2026-01-28 20:11:18 -03:00
26963f2caf Fix bot_id: Use bot_id from URL path instead of client message
- Extract bot_name from WebSocket query parameters
- Look up bot_id from bot_name using database
- Pass bot_id to WebSocket message handler
- Use session's bot_id for LLM configuration instead of client-provided bot_id
- Fixes issue where client sends 'default' bot_id when accessing /edu
2026-01-28 17:18:22 -03:00
51c8a53a90 Enable LLM feature by default and fix compilation errors
- Add llm to default features in Cargo.toml
- Fix duplicate smart_router module declaration
- Remove unused LLMProvider import and fix unused variable warnings
- Fix move error in enhanced_llm.rs by cloning state separately for each closure
- Improve code formatting and consistency
2026-01-28 16:58:14 -03:00
a51e3a0758 chore: Set default RUST_LOG to info and revert logger init to info 2026-01-27 18:45:41 -03:00
0ccf7f8971 chore: Set default internal log level to trace 2026-01-27 18:39:48 -03:00
e7fa5bf72c Auto-enable noconsole mode when console feature is disabled 2026-01-27 16:28:36 -03:00
5568ef5802 Fix migration 6.0.0: Comment out sent_email_tracking 2026-01-27 14:14:20 -03:00
b103c07248 Fix migration errors and reorganize migration files
- Fixed 'relation session_kb_associations does not exist' error in core consolidated migration.
- Renamed migration directories from timestamp-based to version-based (6.0.x, 6.1.x, 6.2.x).
- Reorganized migrations into dedicated feature folders (products, dashboards, learn, video).
- Updated migration execution order in core/shared/utils.rs.
- Moves legacy migrations to 6.0.x/6.1.x and workflow to 6.2.0.
2026-01-27 13:45:54 -03:00
3c279f43e5 refactor: embed 3rdparty.toml and remove hardcoded defaults from installer
All checks were successful
GBCI / build (push) Successful in 10m36s
2026-01-26 20:48:57 -03:00
933d42a200 Fix: Replace brace expansion with explicit paths in mkdir command and improve LXC error logging
All checks were successful
GBCI / build (push) Successful in 14m12s
2026-01-26 17:38:34 -03:00
b113267aef Refactor: Genericize default organization to 'system' and update tenant paths 2026-01-26 17:00:21 -03:00
7e69ab26bb fix(ci): split build commands to fix feature mismatch
All checks were successful
GBCI / build (push) Successful in 13m48s
2026-01-26 12:04:03 -03:00
ff4e6c4fe8 fix(lxc): configure lxd-sock proxy for brother mode and update installers
Some checks failed
GBCI / build (push) Failing after 47s
2026-01-26 11:44:18 -03:00
b436762026 chore: remove deprecated libreoffice script and add repair utility
All checks were successful
GBCI / build (push) Successful in 12m10s
2026-01-25 23:20:08 -03:00
a4a8d01e4b fix(deps): remove missing libabseil-dev package on Debian 12
Some checks failed
GBCI / build (push) Has been cancelled
2026-01-25 23:16:39 -03:00
ae0071c6d7 ci: fix sccache caching
All checks were successful
GBCI / build (push) Successful in 12m28s
2026-01-25 22:58:35 -03:00
651b89e28d ci: restart ui service during deployment
All checks were successful
GBCI / build (push) Successful in 5m30s
2026-01-25 22:51:21 -03:00
a3babbcaa7 revert: removing production URL default logic (requested by user)
Some checks failed
GBCI / build (push) Has been cancelled
2026-01-25 22:48:47 -03:00
c643a59e29 config: use production URL as default when BOTSERVER_ENV=production
Some checks failed
GBCI / build (push) Failing after 5m28s
2026-01-25 22:42:15 -03:00
b141e1f2f0 workflow: explicitly clone main branch for workspace
All checks were successful
GBCI / build (push) Successful in 11m56s
2026-01-25 21:27:16 -03:00
5605577e8f Update container limits and introduce priority levels for LXC
Some checks failed
GBCI / build (push) Failing after 45s
2026-01-25 21:21:22 -03:00
3baa74371b Increase build concurrency to j=8 2026-01-25 20:17:08 -03:00
a15afd14ff Optimize CI: use 1 job to avoid hanging, init sccache 2026-01-25 18:59:25 -03:00
9fc43e4a55 Enable sccache, increase cores to 2, fast build 2026-01-25 18:01:19 -03:00
73da9f29cb Remove --locked flag from build command 2026-01-25 17:09:17 -03:00
4f576ca4f7 Remove sccache config from CI 2026-01-25 17:02:57 -03:00
b0f2bae2dd Initialize botui submodule in CI 2026-01-25 17:01:02 -03:00
750a2cd355 Add botui binary build and deploy to botserver workflow 2026-01-25 16:55:08 -03:00
30756f47f6 chore(workspace): final sync and remote standards update 2026-01-25 14:34:46 -03:00
9aec2675d6 fix(ci): patch Cargo.toml to exclude missing workspace members 2026-01-25 14:18:24 -03:00
222b9a8e6c docs(ci): update dev guide with minimal checkout strategy 2026-01-25 14:17:11 -03:00
c5f8ea70cc chore: update gitignore to exclude installers and temp files 2026-01-25 14:16:50 -03:00
3272a49a32 fix(ci): minimal checkout - clone only botlib submodule 2026-01-25 14:11:28 -03:00
68ae908506 fix(ci): invalidate cache and enforce shallow submodules 2026-01-25 14:10:17 -03:00
e4a55d533a feat(lxc): auto-remove snapshots during cleanup 2026-01-25 13:33:00 -03:00
4e7db823ea fix(ci): use shallow clone to improve performance 2026-01-25 12:42:45 -03:00
64c4487b8e Fix CI recursive clone and document CI workflow strategy in PROMPT.md 2026-01-25 12:31:55 -03:00
fe8579e7b2 Update botserver CI workflow to use workspace structure 2026-01-25 12:27:50 -03:00
9087bb17cd feat: complete General Bots 7.0 (v6.2.0) 2026-01-25 10:29:54 -03:00
fdf74903ad fix(server): update security modules and TODOs 2026-01-25 08:42:36 -03:00
0a24cd4b50 Fix build errors and unused imports in core, security and package_manager modules 2026-01-24 22:04:47 -03:00
8e282177d1 chore: update TODO.md with individual feature compilation status and logs 2026-01-23 23:49:23 -03:00
536495fb4d feat: make each app self-contained with core dependencies
Now you can do:
- cargo build --features sheet → gets automation+drive+cache+sheet deps
- cargo build --features mail → gets automation+drive+cache+mail deps
- cargo build --features tasks → gets automation+drive+cache+tasks deps

Each app automatically includes what it needs from core infrastructure.
No need to manually specify automation, drive, cache anymore.

Added test_all_apps.sh to test each app independently and measure
compilation times.
2026-01-23 13:46:10 -03:00
bba0efdb55 refactor: flatten Cargo.toml features to simple app list
- Removed complex nested feature dependencies
- Each app now lists only its direct crate dependencies
- Apps can be tested independently without inter-dependencies
- Simplified structure: Core Infrastructure + Flat App List + Bundles
- Core: automation, drive, cache, directory (always needed)
- Apps: chat, mail, tasks, docs, etc. (independent)
- Bundles: minimal, lightweight, full (convenience)

This makes it easy to test each app individually and matches
the app launcher menu structure.

Verified: cargo check with chat+automation+drive+cache 
2026-01-23 13:41:02 -03:00
4e3542e356 feat: add apps manifest for app launcher integration
- Created comprehensive apps-manifest.json mapping Cargo features to UI
- Organized apps into categories: Communication, Productivity, Documents, etc.
- Includes app metadata: name, description, icon, dependencies
- Defines bundles: minimal, lightweight, full, communications, etc.
- Documents core dependencies and their reasons
- Ready for botui app launcher integration
2026-01-23 13:18:12 -03:00