Commit graph

4765 commits

Author SHA1 Message Date
f1b683897c refactor: rename deepseek_r3 to deepseek_v4, update model references 2026-05-15 11:11:56 -03:00
09e83673e3 update 2026-05-15 09:31:48 -03:00
75341c32a7 feat(vibe): Add Vibe Code module (issue #521)
- Created botvibe crate with 5 modules: types, prompt_manager, tool_executor, telemetry, api
- Implemented VibeRun state machine with 3 use cases (Software Dev, Customer Support, Financial Analysis)
- Added 10 axum API routes under /api/vibe/* for run management, tools, and telemetry
- Feature-gated behind 'vibe' flag (disabled by default, requires 'automation')
- Used Extension pattern for axum state to enable router merging
- Created VibeProgressEvent to avoid botautotask dependency in botvibe crate
- Implemented BotServerVibeState bridging to AppState
- botvibe compiles with 0 errors, 0 warnings
- botserver compilation blocked by pre-existing botllm duplicate function errors

To test: cargo check -p botvibe
2026-05-14 15:55:12 -03:00
422a6d024e fix: restore vibe feature gate 2026-05-14 14:58:31 -03:00
d497976785 fix: implement /api/bot/config endpoint returning bot config 2026-05-14 14:57:48 -03:00
9a0591c2b8 fix: cfg-gate vibe route 2026-05-14 14:55:39 -03:00
20e2a44cc1 fix: enable /api/bot/config endpoint 2026-05-14 14:54:14 -03:00
bd760fef90 debug: log delivered status and user_text 2026-05-14 14:40:16 -03:00
4976864acc fix: remove response channel after first TALK to prevent pipeline loop 2026-05-14 14:36:12 -03:00
375cfe5d69 fix: add 15s timeout to LLM generate_simple 2026-05-14 14:01:03 -03:00
3932d35cc7 fix: simplify LLM prompt string 2026-05-14 13:44:38 -03:00
dca8adef6e fix: route user messages to LLM with log when unavailable 2026-05-14 13:43:31 -03:00
39f019a3de fix: contextual fallback reply when no HEAR/LLM available 2026-05-14 13:33:21 -03:00
16eb7de122 fix: respond user messages via LLM when no HEAR is waiting 2026-05-14 13:27:38 -03:00
861907d39b fix: enable anonymous auth route when directory feature is active 2026-05-14 12:56:35 -03:00
797de4a518 fix: initialize default bot chat flow 2026-05-14 11:11:17 -03:00
175fd0d91a fix: parallel service startup, port corrections, and installer fixes
- Parallel startup: services start concurrently, total wait = max of individual waits
- Vault init runs first (blocking) so credentials are available for other services
- Fix drive port 9000->9100 in vault seeding and env defaults
- Fix directory port 9000->8300 in vault seeding
- Fix ALM port 9000->3000 in vault seeding
- Zitadel exec_cmd: auto-detect first boot vs subsequent (check admin-pat.txt)
- Zitadel health check: fix relative URL -> full http://localhost:8300/debug/healthz
- ALM/Forgejo: replace USER=alm with FORGEJO_RUN_USER=$USER (matches OS user)
- ALM health check: remove broken empty URL
- Add Diesel migrations (embed_migrations! + run_pending_migrations)
- Simplify ASCII art on startup
- Fix ALM health check empty URL
- Update MC client in 3rdparty.toml
2026-05-13 18:57:35 -03:00
a7a2242047 Fix: Remove nested Tokio runtime in BotlibLLMProviderWrapper (panic on salesianos bot)
- Remove rt.block_on() inside async context in botserver/src/llm/mod.rs
- Fixes 'Cannot block current thread from within a runtime' panic
- Salesianos bot was crashing after start.bas on LLM calls
- Botserver compiles clean
2026-05-13 09:39:03 -03:00
d082de728f Restructure: Move 67 botserver feature crates into botserver/crates/
- Moved all feature modules + core crates + botllm + botqdrant into botserver/crates/
- Fixed MinIO endpoint URL to include port from Vault
- Fixed LocalSessionManager to delegate to real SessionManager
- Restored botkb as minimal types-only crate (face code already in botmodelsbridge)
- Workspace root now only contains botlib, botschema, and separate projects (botui, botapp, etc.)
- All cross-crate path references recalculated

Refs: #513, #518, #520
2026-05-12 18:32:19 -03:00
f29c18e267 refactor: Finalize extraction of 44 feature modules into separate crates
- Move compiler (botbasic_compiler), drive (botdrive), KB, bootstrap, DNS,
  automation, incus, package_manager, features, and remaining feature modules
  from botserver to botcore/botdrive crates
- Convert keywords.rs files to mod.rs directories for consistency
- Add rbac and mail features to botsettings
- Wire script_runner in bootstrap state
2026-05-12 14:11:53 -03:00
2af0656bd5 docs: Add remaining work checklist for crate extraction 2026-05-12 14:09:40 -03:00
2178000649 feat: Extract botapi, botmeet, botsettings crates + botcore restructure + 44 feature modules
- Extract botapi (API handlers), botmeet (meeting/webinar), botsettings (RBAC/settings) as standalone crates
- Re-export stubs in botserver: pub use botapi/*, pubmeet/*, botsettings/*
- Split botcore shared into submodules (utils, state, models, schema, etc.)
- Split botlib models.rs into models/ subdirectory
- Extract botschema, botmodelsbridge crates
- Split botserver basic/compiler into syntax_transforms, types, save_conversion, tool_parsing
- Fix 44 feature crate mod.rs re-export stubs (phase 1a/1b/1c)
- Phase 2a migration: 26 modules migrated
- Compiler mod.rs rewritten as slim orchestrator (~185 lines)
- botmeet/botsettings: Cargo.toml fixes (botsecurity non-optional, deps)
- Workspace Cargo.toml: 73 members
- Botsettings compiles 0 errors (5 cfg warnings)
- Botmeet: 114 errors remaining (webinar_types struct mismatches, missing ChannelAdapter voice methods)
- All previously clean crates still compile 0/0
2026-05-11 21:48:42 -03:00
2c79f29a24 fix: Fix 4 broken feature crates + add TLS client to botlib + split botcorepkg files
- Fix botsearch: use botlib::db_pool::DbPool instead of botlib::DbPool
- Fix bottimeseries: use botlib::security::create_tls_client + add tokio macros feature
- Fix botmultimodal: use botlib::security::create_tls_client
- Fix botsecurity: use botlib::security::create_tls_client
- Add create_tls_client/create_tls_client_with_ca/ca_cert_path to botlib::security
- Split botcorepkg: installer→3 files, facade→4 files, cli→4 files (all ≤450 lines)
- Add db_utils.rs and container.rs to botcorepkg
- Wire botcorepkg lib.rs with module declarations and re-exports
2026-05-07 16:35:13 -03:00
5683501b1d feat: Extract 44 feature crates + 7 core crates from botserver monolith
- Extracted 44 feature crates (botlib, botllm, botchannels, botkb, etc.)
  all compile standalone with thin adapter shims in botserver
- Extracted 6 new core crates: botcorebot, botcoresession, botcoreoauth,
  botcoresecrets, botcoredirectory, botautotask (all compile standalone)
- botcorepkg created (WIP stub, extraction in progress)
- botserver compiles with 0 errors, 1 warning
- 176K lines now in standalone crates (botserver down to 205K from 312K)
- Feature module edit = 2-3s recompile (was 8min), 200x speedup
- New crates not yet wired into botserver deps (safe, no runtime impact)
2026-05-07 10:46:45 -03:00
be190bd0a4 fix: Export mention handlers to window scope
- Export handleMentionInput, handleMentionKeydown, hideMentionDropdown to window object
- Fix chat-init.js to use window.handleMentionInput with proper checks
- Prevents ReferenceError when chat initializes
- Ensures suggestion buttons and switchers work correctly
2026-05-01 21:57:54 -03:00
d9e66e957c Fix: Escapar HTML para exibir como texto
- Remove lógica hasHtmlTags que injetava HTML cru
- Sempre usa escapeHtml para exibir conteúdo como texto
- Corrige problema de tags HTML aparecendo na página
2026-05-01 08:38:41 -03:00
73e0121d0b Fix: start.bas não executa e HTML truncado
- Remove streaming de chunks LLM, acumula resposta completa antes de enviar
- Corrige variável 'action' para 'actionData' no click handler de suggestions
- Adiciona fallback window.sendMessage() se WebSocket não estiver aberto
- Adiciona guard DOMContentLoaded no chat-init.js
- Adiciona cache-busting (?v=4) no chat.html

Impacto:
- start.bas executa corretamente ao conectar WebSocket
- HTML não é mais truncado (tags fecham corretamente)
- Sugestões executam tool invocations via WebSocket
2026-05-01 02:02:57 -03:00
5a6f062794 Revert CI workflow to path filters from 3 hours ago
- Restore paths filter for botserver/**, botui/**, botlib/**, etc.
- Restore error handling for git pull
- This was the last working configuration
2026-04-30 22:53:58 -03:00
ed0cb3bce6 CI: Simplify git pull in workflow
Some checks failed
BotServer CI / build (push) Failing after 1s
- Remove error handling wrapper
- Direct git pull command
- Let CI fail naturally on conflicts
2026-04-30 22:46:27 -03:00
83d318de4d CI: Keep paths filter but accept all files with **
Some checks failed
BotServer CI / build (push) Failing after 1s
- Generic pattern matches everything
- CI runs on every push to main
- Explicit that all files trigger build
2026-04-30 22:43:44 -03:00
9f64f40b06 CI: Remove path filters - run on every push
Some checks failed
BotServer CI / build (push) Failing after 1s
- Generic workflow triggers on all commits to main
- No path restrictions - builds and deploys automatically
- Ensures HTML streaming fixes always deployed
2026-04-30 22:42:48 -03:00
04f7b55065 Revert CI workflow to use path filters
- Restore paths filter to only trigger on relevant changes
- botserver/, botui/, botlib/, Cargo.toml, Cargo.lock
- Prevents unnecessary CI runs on unrelated changes
2026-04-30 22:36:25 -03:00
79f94ac9c6 CI: Run workflow on every push (remove path filters)
Some checks failed
BotServer CI / build (push) Failing after 1s
- Remove paths filter to run CI on all commits
- This ensures HTML streaming fixes get deployed automatically
- Previously only triggered on botserver/botui/botlib changes
2026-04-30 22:31:08 -03:00
49d1ce7d0f Fix duplicate Cargo.lock line in CI workflow 2026-04-30 22:24:54 -03:00
b392d508c3 Fix HTML streaming: accumulate chunks and render only on is_complete
- botui/chat-messages.js: HTML chunks now accumulated without rendering,
  only showing loading indicator. When is_complete=true, full HTML
  rendered at once. Text/markdown continues streaming normally.
- botserver/mod.rs: Remove unused html_buffer variable
- drive_monitor/monitor.rs: Change CHECK_INTERVAL_SECS from 1 to 2
- CI workflow: Fix paths to use target/fast/ instead of target/debug/
  and target/release/
2026-04-30 22:21:46 -03:00
d206f4ad48 ci: Remove sccache lines 2026-04-30 21:43:25 -03:00
0b207f679a feat: Add fast profile for quicker CI builds - opt-level 3, no LTO, 16 codegen-units - 50-70% faster compilation 2026-04-30 21:42:26 -03:00
70924fe247 ci: Add error handling for git pull failures 2026-04-30 21:39:55 -03:00
7fcfb184e5 ci: Simplify git pull - remove stash and rebase 2026-04-30 21:39:23 -03:00
b31e08004f remove: HTML tag balancing and buffering - Remove HTML buffer accumulation - Send LLM chunks immediately without processing - Remove tag sanitization and balance checks - HTML now streams raw from LLM to client 2026-04-30 21:32:42 -03:00
86d4bb4f26 fix: Show chat HTML only after WebSocket ready - Prevents handleMentionInput undefined error - Chat content hidden until WebSocket opens - Fixes SD issues between JS and HTML loading
All checks were successful
BotServer CI / build (push) Successful in 8m57s
2026-04-30 21:26:16 -03:00
8c046118a9 perf: increase parallel build jobs to 24
All checks were successful
BotServer CI / build (push) Successful in 44s
2026-04-30 19:32:20 -03:00
18323b03f0 perf: remove sccache and revert to native cargo incremental builds
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:29:39 -03:00
bacd8fbd58 perf: optimize CI build with mold linker and sccache stability
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:25:50 -03:00
675d88db2a docs: standardize service names and ports to botserver:5858 and botui:5859 2026-04-30 19:22:46 -03:00
18ce9cb317 fix: resolve unused variable and update CI service names/ports
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:16:28 -03:00
816165777b fix: resolve borrow-after-move error in mod.rs
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 19:01:29 -03:00
807951a9a5 fix: resolve suggestions type mismatch in mod.rs
Some checks failed
BotServer CI / build (push) Has been cancelled
2026-04-30 18:55:09 -03:00
00372fd56d fix: resolve CI compilation errors in mod.rs
Some checks failed
BotServer CI / build (push) Failing after 5m54s
2026-04-30 18:46:48 -03:00
91eb106567 feat: stabilize production HTML rendering and update CI/CD
Some checks failed
BotServer CI / build (push) Has been cancelled
- botserver: implemented tag-aware streaming to prevent broken HTML chunks
- botserver: disabled automatic HTML-to-Markdown conversion to preserve rich design
- botserver/llm: added Claude 3.7 thinking/reasoning support
- botui: fixed chat-messages.js to allow rich HTML rendering and stop tag stripping
- botui: updated CI/CD to build botui in release mode with embedded UI
2026-04-30 18:41:18 -03:00