Commit graph

288 commits

Author SHA1 Message Date
1ecd5f4f0c chore: update botui submodule 2026-02-18 20:42:08 +00:00
b5bf1061f8 chore: remove TASK.md 2026-02-18 20:38:55 +00:00
7bda264f61 docs: update TASK.md — all tasks complete, all bugs fixed, pushed to GH 2026-02-18 20:37:46 +00:00
caafad484a fix: ENUM mapping, mail bugs, duplicate messages, and theme selector
Bug fixes in .bas tools:
- Fix BEGIN MAIL email → BEGIN MAIL emailContato in tools 07, 09, 10
- Fix newsletter BOOLEAN → STRING in tool 10 (LLM sends 'Sim' as string)
- Add natural language descriptions to ENUM params in tools 02-10

Botserver:
- Fix duplicate chat message when tool is executed (tool_was_executed flag)

BotUI:
- Remove theme selector button from minimal chat for non-logged users

Testing: All 10 tools verified with NL ENUM mapping and DB records
2026-02-18 20:32:09 +00:00
ddc1bdb2db chore: Update botserver submodule with preprocessor fixes 2026-02-18 17:19:36 +00:00
faeb77fc07 docs: Enhance Playwright testing guide with backend validation
Add comprehensive bot testing and backend validation documentation:
- Bot-specific URL pattern (http://localhost:3000/<botname>)
- Backend validation commands for PostgreSQL, Qdrant, Redis
- End-to-end process validation workflow
- Enhanced test flows with database/service verification
- Expanded testing checklist with backend checks

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 15:15:33 +00:00
a31d7b355a fix: Remove secrets from repository and implement security best practices
SECURITY FIXES:
- Add restart.sh script that reads Vault credentials from /tmp/ only
- Add .gitignore rules for: vault-unseal-keys, start-and-unseal.sh, vault-token-*
- Add security warning to README.md about /tmp/ for secrets
- Update botserver port references from 8088 to 9000 in README

Secrets MUST be placed in /tmp/ only:
  - /tmp/vault-token-gb (Vault root token)
  - /tmp/vault-unseal-key-gb (Vault unseal key)

This commit removes the previous commit (c7a60b8) that contained hardcoded
secrets in restart.sh and start-and-unseal.sh files.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 15:02:58 +00:00
30ec64d878 chore: Update botserver with tool call fix
- Fix tool calls in JSON array format to be executed instead of displayed
- Prevents raw tool JSON from appearing in chat window

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-16 00:19:20 +00:00
dd64a4102c chore: Update botui with tool button fix
- Fix tool buttons sending display text instead of internal ID
- Tool buttons now work correctly on first click

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-16 00:05:01 +00:00
041c76209a chore: Update botui submodule
- Use typewriter theme for cristo bot
- Make suggestion buttons smaller

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:48:57 +00:00
c6e8ced648 chore: Update submodules with Forgejo CI workspace fixes
- botui: Fix workspace conflict in CI workflow
- botserver: Fix workspace conflict in CI workflow

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:27:06 +00:00
56e8054839 chore: Update submodules
- botui: Fix theme switching to apply immediately without refresh
- botserver: Load session tools in WebSocket connection

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
8519c3cfd2 fix: Extract Valkey to cache/bin/ with correct paths
- Binaries at cache/bin/valkey-server
- exec_cmd and check_cmd updated to use bin/ subdirectory

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
8a0216c654 fix: Extract Valkey binaries to correct cache/ path
- Binaries at cache/valkey-server (not cache/bin/)
- Uses --strip-components=2 to flatten structure

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
abcf959fdf fix: Use Valkey 8.1.5-jammy for GLIBC compatibility
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
b9ab17fb4c fix: Downgrade Valkey to 8.1.5 for stability
- Using valkey-8.1.5-noble-x86_64.tar.gz

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
84083b9ae0 feat: Update botserver with 5s cache retry delay
- 5 seconds between retry attempts
- 12 attempts max (60s total)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
079e802b17 feat: Update botserver with cache retry logic
- Wait up to 30 seconds for Valkey to be ready
- Prevents race condition during startup

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
33845109fd fix: Update botserver submodule with precompiled Valkey binary
- Uses valkey-9.0.2-jammy-x86_64.tar.gz from download.valkey.io
- No source compilation required

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
bd3857f2d4 fix: Update botserver submodule with cache and LLM improvements
- Cache connection verification with PING test
- Environment variable support for cache URL (CACHE_URL, REDIS_URL, VALKEY_URL)
- Environment variable support for LLM config (LLM_URL, LLM_MODEL, LLM_KEY)
- Better fallback to local LLM when no bot config exists

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
acea58eecb fix: Update botserver submodule after compilation fixes
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
ead23594c0 chore: Update botserver submodule reference
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
b606913d7d feat: Add local bot data documentation and update submodule
- Document /opt/gbo/data/ directory for local bot packages
- Document auto-loading, compilation, and hot-reload features
- Update botserver submodule with latest changes
- Add console and network config files

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
5ffa0d71af fix(i18n): Update botui with cache invalidation
- Increments i18n cache version to v2
- Forces fresh translation fetch from all users
- Resolves placeholder translation issue

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
0057ca3612 chore: Update botui submodule
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
504bb66a82 fix(i18n): Update botlib submodule with debug-embed support
- botlib now embeds i18n translations in both debug and release builds
- Uses debug-embed feature from rust-embed

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
1e6289b223 feat(i18n): Update botlib submodule with embedded i18n by default
- botlib now uses embedded assets via rust-embed by default
- i18n feature is now part of default features
- Fixes placeholder translations issue

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
8c3f51a49d Update botserver submodule to latest commit
- Adds local Vault bootstrap .env file creation
- Fixes Vault initialization for local installations
- Generates TLS certificates during Vault install
- Creates .env with VAULT_ADDR, VAULT_TOKEN, VAULT_CACERT

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
cf0d94873d Debug: Add translation lookup logging 2026-02-15 23:21:30 +00:00
8eef47058d Debug: Add i18n logging to find missing translations 2026-02-15 23:21:30 +00:00
dcaf90d39f feat(i18n): Update botui with cache versioning
This adds cache versioning (v1) to prevent stale translation issues.
Old caches will be auto-invalidated when version is incremented.
2026-02-15 23:21:30 +00:00
a8e107059a fix(i18n): Update botui with cache logging 2026-02-15 23:21:30 +00:00
ea4cb78646 fix(i18n): Update botui submodule with logging 2026-02-15 23:21:30 +00:00
eda45af678 fix(i18n): Update botlib submodule with locale logging 2026-02-15 23:21:30 +00:00
fc994375b1 Update botui submodule 2026-02-15 23:21:30 +00:00
3fe4f7ece7 Update botserver submodule 2026-02-15 23:21:30 +00:00
4202f0dcf9 CI: Trigger pipeline 2026-02-15 23:21:30 +00:00
fad4e1457b CI: Bust cache to fix notify dependency build
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:30 +00:00
b798123f14 Update submodule references
- botserver: Fix notify dependency and source files
- botbook: Update PROMPT.md
- botui: Update UI components and themes

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 23:21:25 +00:00
5b34b21622 Fix all 61 warnings in botserver
- Remove unused imports across 14 files
- Fix unused variables (prefixed with _)
- Fix return types to use anyhow::Result where needed
- Remove cfg!(feature = "sigkill") (invalid feature)
- Fix typo: axum -> axum in imports

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-13 12:53:31 +00:00
cf80060818 Update botui submodule: Remove chat header and fix theming
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 14:07:31 +00:00
cda27734f0 Update submodules: bottemplates and botui
- bottemplates: Add register_student.bas for edu bot
- botui: Add config-colors.css and UI component updates

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 13:54:44 +00:00
f1b231ce3a Update botserver submodule: Fix start.bas repeated execution
- Add Redis-based tracking to prevent start.bas from running repeatedly
  when clicking suggestion buttons
- Add generic tool executor for LLM tool calling
- Fix suggestion duplication by clearing from Redis after fetch

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 13:50:13 +00:00
6a7cdf2800 Update bottemplates (removed default.gbai from git history) 2026-02-09 15:22:19 +00:00
21aa782fd2 Update bottemplates (remove default.gbai from core) 2026-02-09 15:15:31 +00:00
54966ff63f Update submodules (botserver, bottemplates, botui) 2026-02-09 15:13:11 +00:00
bcb43ce887 Add config hot-reload and fix model routing
- Add ConfigWatcher for monitoring ~/data/*.gbai/*.gbot/config.csv
- Skip DriveMonitor for default bot (managed via ConfigWatcher)
- Fix model routing hierarchy: session → bot → default
- Fix ConfigWatcher to handle local embedded (llm-server=true)
- Add notify dependency for file system watching
- Add data/ to .gitignore (contains API keys)
- Update package.json for botui

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 15:09:36 +00:00
4736383997 Trigger contributor stats refresh 2026-02-08 16:31:59 +00:00
93519eba14 Update botserver to latest main
- Updated to 84458b2a (feat: Add BOTSERVER_PORT environment variable override)
2026-02-08 16:20:54 +00:00
0e47fd9476 Update submodule references to latest main/master
- botbook: Updated to 3e418df (latest main)
- botdevice: Updated to 7a5dab5 (latest master)
- botlib: Updated to 38dc7c0 (latest)
- botserver: Updated to e8ce642b (latest main)
- bottemplates: Updated to 1ce3295 (latest master)
- bottest: Updated to 68542cd (latest main)
- botui: Updated to 1bf9510 (latest main)
2026-02-08 16:19:05 +00:00