Commit graph

3839 commits

Author SHA1 Message Date
e717f90cee Fix auth routes - simplify to use in-memory cache only 2026-02-04 13:47:02 -03:00
355215c2a2 Update: refactor migrations, update source files, and add new features 2026-02-04 13:29:29 -03:00
f311a438cd Fix /api/auth/me to validate tokens from database
- Save login tokens to user_login_tokens table on successful login
- Modify get_current_user to check database when cache miss occurs
- Query Zitadel directory to get user details from token
- Update last_used timestamp for token tracking
- Tokens now persist across server restarts
2026-02-04 13:28:37 -03:00
d26f0652e5 fix(website-crawler): Add missing crawl_status column to SELECT query
Some checks failed
GBCI / build (push) Failing after 14m19s
Fix the SQL query in check_and_crawl_websites() to also include crawl_status
in the SELECT clause. The WebsiteCrawlRecord struct expects this field but it was
only present in the WHERE clause, causing Diesel to fail with
'Column crawl_status was not present in query'.

This resolves the second website crawler service error.
2026-02-02 20:10:20 -03:00
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