Commit graph

3216 commits

Author SHA1 Message Date
e144e013d7 Add async Redis context storage and session fetch
- Use `tokio::spawn` to run Redis SET for `SET_CONTEXT` in a background
  task with detailed tracing.
- Move context retrieval from `BotOrchestrator` to `SessionManager`,
  inserting it as a system message in conversation history.
- Remove redundant Redis fetch logic from `BotOrchestrator`.
- Update `DEV.md` to install `valkey-cli`, reorder cargo tools, and
  adjust apt commands.
- Add a `SET_CONTEXT "azul bolinha"` example to the announcements
  template.
2025-10-15 00:01:48 -03:00
d3c486094f - Fixing ngl param. 2025-10-14 17:02:11 -03:00
552fb56f54 - Fixing parameters for llama.cpp. 2025-10-14 17:00:00 -03:00
277f21ab18 - Fine tunning GTP OSS 20B. 2025-10-14 16:57:50 -03:00
573437cb6f - Database schema added. 2025-10-14 16:34:34 -03:00
a6df35dae8 Switch debug to BotServer and use cargo run
- Change label from "Build & Debug native binary" to "Debug BotServer"
- Use cargo run instead of cargo build
2025-10-14 15:57:17 -03:00
37d8fab617 Refactor session handling and auth flow 2025-10-14 14:51:49 -03:00
51c9aea63b Add botserver prompt, auth template, and CSS 2025-10-14 13:51:54 -03:00
8f96cd1015 Refactor server code and add auth API fixes 2025-10-14 13:51:27 -03:00
a8f52451c5 New features for start.bas 2025-10-13 18:11:03 -03:00
3aeb3ebc70 - New features for start.bas 2025-10-13 17:43:03 -03:00
733f7cba10 Update mod.rs 2025-10-13 09:36:45 -03:00
d8ebae3aed Update prompt build script and shared guidelines 2025-10-13 09:36:06 -03:00
a7c74b837e Enhance streaming with events and warning API
- Introduce event-driven streaming with thinking_start, thinking_end,
  and warn events; skip sending analysis content to clients
- Add /api/warn endpoint to dispatch warnings for sessions and channels;
  web UI displays alerts
- Emit session_start/session_end events over WebSocket and instrument
  logging throughout orchestration
- Update web client: show thinking indicator and warning banners; switch
  LiveKit client URL to CDN
- Extend BotOrchestrator with send_event and send_warning, expand
  session/tool workflow
- Improve REST endpoints for sessions/history with better logging and
  error handling
- Update docs and prompts: DEV.md usage note; adjust dev build_prompt
  script
2025-10-13 00:31:08 -03:00
712266a9f8 - Mew LLM provider. 2025-10-12 20:54:42 -03:00
e00eb40d43 Refactor to Arc<AppState> for shared state
- Migrate core services to store Arc<AppState> and use locks
- Centralize state in AppState with Arc-wrapped managers
- Update handlers to pass Arc<AppState> via web::Data
- Add Default for AppState and initialize components in main
- Update debug.json program path from gbserver to botserver
2025-10-12 20:12:49 -03:00
e14908fc0b Migrate to web/index.html and OpenAI client
- Load index.html from web/index.html instead of templates/static
- Initialize OpenAIClient with an empty key and local endpoint
- Remove the old static/index.html file
2025-10-12 17:41:41 -03:00
386b55bf34 - Answering in Web using streaming. 2025-10-12 15:06:16 -03:00
efa8ff5c80 Switch message_type to integer across codebase 2025-10-12 14:39:23 -03:00
5dcdabbdfb Make AuthService thread-safe and auto-create user 2025-10-12 13:38:56 -03:00
6779a13a29 - Set mode is now a number. 2025-10-12 13:27:48 -03:00
fa9f163971 - Compiling again. 2025-10-12 11:44:35 -03:00
4c3bf0f029 - 0 errors. 2025-10-11 20:41:52 -03:00
03ab8117c4 - Only 18 errors missing being fixed. 2025-10-11 20:25:08 -03:00
147d12b7c0 - main.rs is compiling again. 2025-10-11 20:02:14 -03:00
076f130b6b - Fix compilation errors. 2025-10-11 17:26:56 -03:00
793f2a2d4a - More LLM on compiler. 2025-10-11 13:29:52 -03:00
ecddc10244 - Fixing compilation errors. 2025-10-11 13:29:38 -03:00
283774aa0f - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
4251757391 - Remove of all warnings. 2025-10-07 10:53:09 -03:00
a8c2a5ba25 Add organizations table and build fix script
Create organizations table with UUID primary key, unique slug,
timestamps, and indexes on slug and created_at. Add
scripts/dev/build_fix.sh to consolidate prompts and source files for LLM
context. Allow dead_code in main.rs and rename unused org_id parameter
to _org_id.
2025-10-07 09:08:53 -03:00
8a9cd104d6 - Warning removal and restore of old code. 2025-10-07 07:16:03 -03:00
76dc51e980 - First run after refactor. 2025-10-06 22:33:43 -03:00
84f28bc956 - New rust version is now compiling. 2025-10-06 20:49:38 -03:00
c0c470e9aa - Fixing compilation errors. 2025-10-06 20:06:43 -03:00
66e2ed2ad1 - Just more errors to fix. 2025-10-06 19:12:13 -03:00
5330180c36 - Fix compiling errors. 2025-10-06 14:55:04 -03:00
9749893dd0 Migration to Rust and free from Azure. 2025-10-06 10:30:17 -03:00
1bb97ebee9 Migration to Rust removal of Azure. 2025-10-06 10:29:14 -03:00
88c409fb6b
Merge pull request #428 from GeneralBots/rodrigorodriguez-patch-3
Update README.md
2025-10-06 09:01:05 -03:00
4b95970a54 Bump version to 5.1.1 2025-10-06 08:49:31 -03:00
5a89721fd8 Use regex in server.all to match all routes Remove request interception
Some checks failed
GBCI / build (push) Failing after 3m0s
from KBService

Drop request interception to simplify navigation. Add a page.evaluate to
strip images, scripts, and stylesheets.
2025-09-28 20:04:45 -03:00
9d7f86c23f Update app.ts
Some checks failed
GBCI / build (push) Failing after 3m8s
2025-09-28 19:29:43 -03:00
c9f32a8fc3 Remove obsolete Babel overrides from package.json
Some checks failed
GBCI / build (push) Failing after 3m0s
2025-09-28 19:07:16 -03:00
970f408be3 Remove eslint dependency from default.gbui package
Some checks failed
GBCI / build (push) Failing after 3m4s
2025-09-28 16:47:52 -03:00
00d4f294ab Remove redux-devtools-extension dependency
Some checks failed
GBCI / build (push) Failing after 3m1s
2025-09-28 16:39:42 -03:00
5b21e41754 m Update msal dependency to version 1.4.18
Some checks failed
GBCI / build (push) Failing after 2m15s
2025-09-28 16:23:32 -03:00
85217610f1 Move sourcemap-codec to dependencies
Some checks failed
GBCI / build (push) Failing after 2m11s
2025-09-28 16:07:59 -03:00
65919c8d26 Update package.json
Some checks failed
GBCI / build (push) Failing after 2m23s
2025-09-28 15:57:46 -03:00
07f71055fa Remove rollup-plugin-terser dependency
Some checks failed
GBCI / build (push) Failing after 2m6s
2025-09-28 12:07:57 -03:00