6f9fdf5edb
fix: Change DriveMonitor logging to trace level - Only log to info when actual changes occur in gbdialog, gbkb, or gbot - Reduces log noise from每秒 scans
2026-04-24 15:37:11 +00:00
9f250e7428
Remove incorrect UI sync step from botserver workflow
...
Botlib CI / build (push) Successful in 9s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Successful in 15s
- BotUI has its own CI/CD pipeline
- BotServer should not deploy BotUI files
- UI files are managed by botui workflow only
2026-04-24 10:55:35 -03:00
6211e51d28
Fix: Remove invalid DriveConfig::from_vault() call
...
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Successful in 6m4s
- DriveConfig::default() already loads from Vault
- No need for separate from_vault() method
- CI should compile now
2026-04-24 10:51:25 -03:00
85d93fd88b
Merge branch 'main' of github.com:generalbots/generalbots
2026-04-24 10:44:28 -03:00
3c5c0949c3
Fix: Remove hardcoded defaults, require Vault for production config
...
Botlib CI / build (push) Successful in 12s
BotServer CI / build (push) Failing after 1m49s
Bottest CI / build (push) Successful in 35s
BotUI CI / build (push) Successful in 16s
- AppConfig::default() and from_env() now read PORT from environment
- DriveConfig loads from Vault first, falls back to env vars for development
- DATABASE_URL must be set (from Vault via .env in production)
- No more hardcoded 8080 - reads from PORT env var
- Removed hardcoded paths like /opt/gbo/data, now from env or reasonable defaults
- Development still works with defaults, production requires Vault via .env
2026-04-24 10:43:34 -03:00
53867a3ef6
Fix: Read PORT from environment variable instead of hardcoded 8080
...
- Changed AppConfig::from_env() to read PORT from std::env
- Falls back to 8080 if PORT not set
- Also reads HOST, SITE_PATH, DATA_DIR from environment
- Fixes issue where botserver ignored .env PORT=5858 setting
2026-04-24 10:36:33 -03:00
5c3c941bc1
fix(ci): sync UI without sudo, botserver reads from /opt/gbo/botui/ui/
2026-04-24 10:15:01 +00:00
3829645cef
fix(ci): sync UI without sudo, botserver reads from /opt/gbo/botui/ui/
Botlib CI / build (push) Successful in 7s
BotServer CI / build (push) Successful in 39s
Bottest CI / build (push) Successful in 36s
BotUI CI / build (push) Successful in 19s
2026-04-24 10:14:27 +00:00
77257b9f56
fix(ci): restore simple build + sync UI to /opt/gbo/bin/ui/
2026-04-24 10:11:11 +00:00
39ee2c18f2
fix(ci): restore simple build + sync UI to /opt/gbo/bin/ui/
Botlib CI / build (push) Successful in 6s
BotServer CI / build (push) Failing after 49s
Bottest CI / build (push) Successful in 32s
BotUI CI / build (push) Successful in 21s
2026-04-24 10:09:53 +00:00
171a6466ac
fix(ci): copy botui/ui to botserver/ui before build with embed-ui
2026-04-24 10:03:05 +00:00
f0275f9941
fix(ci): remove UI sync from botui workflow
2026-04-24 10:03:04 +00:00
7f7fa80c2a
fix(ci): build with embed-ui feature instead of syncing files
2026-04-24 10:03:04 +00:00
86be26b9e0
fix(ci): sync UI to /opt/gbo/bin/ui/ path for STAGE-GBO project
2026-04-24 10:03:04 +00:00
38d5a046f5
fix(ci): add defaults.working-directory and prepare-workspace to both workflows
2026-04-24 10:03:04 +00:00
98fbc49861
feat(ci): add UI file sync to stage in botui workflow
2026-04-24 10:03:04 +00:00
181137695b
fix(ci): add prepare-workspace step to create dirs and clone if missing
2026-04-24 10:03:04 +00:00
424fe4752f
fix(ci): debug UI sync paths and botserver CWD on stage
2026-04-24 10:03:04 +00:00
b87d58dc5b
fix(ci): sync botui UI to both /opt/gbo/botui/ui and /opt/gbo/bin/botui/ui paths
2026-04-24 10:03:04 +00:00
76c2318290
fix(ci): copy botui/ui to botserver/ui before build with embed-ui
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 45s
BotServer CI / build (push) Has been cancelled
Bottest CI / build (push) Successful in 47s
2026-04-24 10:01:42 +00:00
c960461eb5
fix(ci): remove UI sync from botui workflow
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Failing after 4m29s
Bottest CI / build (push) Successful in 19s
BotUI CI / build (push) Successful in 10s
2026-04-24 01:31:28 +00:00
1e96b18c81
fix(ci): build with embed-ui feature instead of syncing files
Bottest CI / build (push) Waiting to run
BotUI CI / build (push) Waiting to run
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Has been cancelled
2026-04-24 01:30:49 +00:00
0f7fe82523
fix(ci): sync UI to /opt/gbo/bin/ui/ path for STAGE-GBO project
Botlib CI / build (push) Successful in 8s
BotServer CI / build (push) Failing after 25s
Bottest CI / build (push) Successful in 21s
BotUI CI / build (push) Failing after 11s
2026-04-24 01:28:50 +00:00
ef949885c7
fix(ci): add defaults.working-directory and prepare-workspace to both workflows
Botlib CI / build (push) Successful in 6s
BotServer CI / build (push) Failing after 27s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Failing after 13s
2026-04-24 00:58:00 +00:00
3a1e4b9507
feat(ci): add UI file sync to stage in botui workflow
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Failing after 29s
Bottest CI / build (push) Successful in 25s
BotUI CI / build (push) Failing after 15s
2026-04-24 00:35:01 +00:00
1090f92926
fix(ci): add prepare-workspace step to create dirs and clone if missing
Botlib CI / build (push) Successful in 10s
BotServer CI / build (push) Failing after 39s
Bottest CI / build (push) Successful in 35s
BotUI CI / build (push) Successful in 15s
2026-04-24 00:17:45 +00:00
b4ab133dd8
fix(ci): debug UI sync paths and botserver CWD on stage
Botlib CI / build (push) Successful in 12s
BotServer CI / build (push) Failing after 39s
Bottest CI / build (push) Successful in 35s
BotUI CI / build (push) Successful in 20s
2026-04-23 23:59:56 +00:00
f51532722b
fix(ci): sync botui UI to both /opt/gbo/botui/ui and /opt/gbo/bin/botui/ui paths
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 27s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Successful in 15s
2026-04-23 23:40:40 +00:00
4224df8070
fix(ci): sync botui UI to /opt/gbo/botui/ui/ (relative to botserver at /opt/gbo/bin/)
2026-04-23 23:15:06 +00:00
b1f537a433
fix: Use management v1 API for Zitadel user search (PAT token compat)
...
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 5m17s
Bottest CI / build (push) Successful in 36s
BotUI CI / build (push) Successful in 16s
The v2 user search API rejects PAT tokens (returns Token.Invalid).
The management v1 API accepts PAT tokens correctly.
Also adds fallback for user ID field (id vs userId) in login response.
2026-04-23 23:14:03 +00:00
929de40eac
fix(ci): sync botui UI to /opt/gbo/botui/ui/ (relative to botserver at /opt/gbo/bin/)
Botlib CI / build (push) Successful in 12s
BotServer CI / build (push) Failing after 38s
Bottest CI / build (push) Successful in 34s
BotUI CI / build (push) Successful in 15s
2026-04-23 23:10:59 +00:00
f694e4a818
fix: Use management v1 API for Zitadel user search (PAT token compat)
...
The v2 user search API rejects PAT tokens (returns Token.Invalid).
The management v1 API accepts PAT tokens correctly.
Also adds fallback for user ID field (id vs userId) in login response.
2026-04-23 22:44:17 +00:00
2669288f80
fix(ci): use /opt/gbo/work/generalbots workspace path
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Failing after 10m2s
Bottest CI / build (push) Successful in 27s
BotUI CI / build (push) Successful in 12s
2026-04-23 22:30:14 +00:00
e8ef6c838f
fix(ci): use generalbots parent repo for UI sync path
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 0s
Bottest CI / build (push) Successful in 22s
BotUI CI / build (push) Successful in 13s
2026-04-23 22:18:05 +00:00
01de744bcd
feat(ci): sync botui UI files to stage on deploy
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Failing after 1s
Bottest CI / build (push) Successful in 23s
BotUI CI / build (push) Successful in 13s
2026-04-23 22:07:57 +00:00
cf00a51245
feat: Separate switchers from suggestions - server-side prompt resolution
...
Botlib CI / build (push) Successful in 22s
BotServer CI / build (push) Failing after 0s
Bottest CI / build (push) Successful in 31s
BotUI CI / build (push) Successful in 52s
- Add Switcher struct to botlib (id, label, prompt, color, icon)
- Separate Redis key switchers:{bot_id}:{session_id} from suggestions
- Server-side SWITCHER_PROMPT_MAP resolves prompts (not frontend)
- Frontend sends active_switchers array in USER WS message
- Remove SYSTEM message dispatch (type 7 deprecated)
- Remove hardcoded promptMap from chat.html
- Render switchers from BotResponse.switchers (backend-driven)
- Support custom switchers via ADD_SWITCHER keyword
- Filter switcher-type items from get_suggestions()
- Add switchers field to all BotResponse construction sites
2026-04-23 21:36:09 +00:00
7a5cbf9e8f
fix(botui): dynamic switchers styling and custom prompt injection
2026-04-23 21:32:34 +00:00
3a05600b78
fix(ci): use gbuser@SYSTEM_HOST in deploy ssh/scp commands
2026-04-23 21:28:40 +00:00
ff4bc0f3de
fix(stage): fix message type collision and switcher logic in chat ui
2026-04-23 21:12:34 +00:00
42c22cfcab
fix(botui): ensure heuristic switchers are correctly identified
Botlib CI / build (push) Successful in 2s
BotServer CI / build (push) Successful in 2m19s
Bottest CI / build (push) Successful in 20s
BotUI CI / build (push) Successful in 20s
2026-04-22 22:56:10 -03:00
47412722fe
fix(ci): add SYSTEM_USER to botui deploy commands
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Successful in 23s
Bottest CI / build (push) Successful in 22s
BotUI CI / build (push) Successful in 10s
2026-04-22 22:46:06 -03:00
380ad10177
fix(botui): dynamic switchers styling and custom prompt injection
Botlib CI / build (push) Successful in 5s
BotServer CI / build (push) Successful in 2m17s
Bottest CI / build (push) Successful in 26s
BotUI CI / build (push) Successful in 27s
2026-04-22 22:37:46 -03:00
af2b118f86
docs: respect STAGE-GBO using 10.0.3.x on 10.0.0.1 to test chat.stage.pragmatismo.com.br
2026-04-22 22:28:14 -03:00
71b0731461
fix(ci): use gbuser@SYSTEM_HOST in deploy ssh/scp commands
Botlib CI / build (push) Successful in 8s
BotServer CI / build (push) Successful in 22s
Bottest CI / build (push) Successful in 25s
BotUI CI / build (push) Successful in 11s
2026-04-22 21:51:00 -03:00
b20544d1a0
Merge branch 'main' of github.com:generalbots/generalbots into main
Botlib CI / build (push) Failing after 2s
Bottest CI / build (push) Failing after 1s
BotServer CI / build (push) Failing after 3m40s
BotUI CI / build (push) Failing after 22s
2026-04-22 21:31:52 -03:00
61c8f709c4
fix(stage): fix message type collision and switcher logic in chat ui
2026-04-22 21:30:26 -03:00
8069fbab28
fix(botui): improve HTML streaming rendering to avoid loading dots lock
2026-04-22 20:45:40 +00:00
fd56e401f4
fix: allow multiple chunks per document in KB search deduplication
...
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Successful in 4m5s
Bottest CI / build (push) Successful in 23s
BotUI CI / build (push) Successful in 12s
- Previous logic strictly limited results to 1 chunk per document
- This caused large documents (like ramais PDFs) to lose 90% of their
content since only the single highest-scoring chunk was kept
- Now we allow up to 10 chunks per document, while still sorting
by relevance and letting filter_by_tokens cap the overall size
2026-04-22 20:20:51 +00:00
c8a02b65be
fix: HTML rendering in chat + improved PROMPT.md for ramal queries
...
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Successful in 23s
Bottest CI / build (push) Successful in 19s
BotUI CI / build (push) Successful in 26s
- Detect HTML content (starts with <) in streaming messages and
bypass marked.parse() to render directly as innerHTML
- marked.parse() was corrupting the LLM's raw HTML output by
treating it as Markdown (escaping tags, wrapping in <p>, etc.)
- Updated PROMPT.md for Salesianos to be more explicit about
returning ramal data directly from KB context without asking
for unnecessary clarification
- Fixed ramais.bas tool (removed invalid BEGIN/END syntax)
2026-04-22 20:15:21 +00:00
60e3b1d83b
fix: lowercase AS keyword in BASIC preprocessor for Rhai custom syntax
...
Botlib CI / build (push) Successful in 6s
BotServer CI / build (push) Successful in 3m49s
Bottest CI / build (push) Successful in 27s
BotUI CI / build (push) Successful in 12s
The ADD_SUGGESTION_TOOL, ADD_SUGGESTION_TEXT, ADD_SUGGESTION, and
ADD_SWITCHER Rhai custom syntaxes expect lowercase 'as' but the
preprocessor was outputting uppercase 'AS'. This caused start.bas
to fail with 'Syntax error: Expecting as for ADD_SUGGESTION_TOOL',
which prevented KB context (USE KB) from being registered for the
session — so queries like 'ramal da Andressa' had no KB data.
Also fix: re-export CHECK_INTERVAL_SECS from drive_monitor module
to fix pre-existing private module access error.
2026-04-22 19:45:36 +00:00