Compare commits

..

27 commits

Author SHA1 Message Date
3ea4c562e1 fix: Extract Valkey to cache/bin/ with correct paths
Some checks failed
BotServer CI / build (push) Failing after 10s
- 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 01:23:24 +00:00
cae2dda8ee fix: Extract Valkey binaries to correct cache/ path
Some checks failed
BotServer CI / build (push) Has been cancelled
- 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 01:21:28 +00:00
3a133e10d4 fix: Use Valkey 8.1.5-jammy for GLIBC compatibility
Some checks failed
BotServer CI / build (push) Failing after 10s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 01:01:41 +00:00
c54b7333d2 fix: Downgrade Valkey to 8.1.5 for stability
Some checks failed
BotServer CI / build (push) Has been cancelled
- Using valkey-8.1.5-noble-x86_64.tar.gz

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 00:54:37 +00:00
a0ef7d8488 feat: Update botserver with 5s cache retry delay
Some checks failed
BotServer CI / build (push) Failing after 12s
- 5 seconds between retry attempts
- 12 attempts max (60s total)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 00:38:12 +00:00
8fc44928a6 feat: Update botserver with cache retry logic
Some checks failed
BotServer CI / build (push) Failing after 11s
- 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 00:25:02 +00:00
9fa5058470 fix: Update botserver submodule with precompiled Valkey binary
Some checks failed
BotServer CI / build (push) Failing after 11s
- 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-14 23:52:04 +00:00
03ec4c301c fix: Update botserver submodule with cache and LLM improvements
Some checks failed
BotServer CI / build (push) Failing after 10s
- 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-14 23:31:30 +00:00
c15b194ade fix: Update botserver submodule after compilation fixes
Some checks failed
BotServer CI / build (push) Failing after 10s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 22:15:50 +00:00
a2a6e53bcb chore: Update botserver submodule reference
Some checks failed
BotServer CI / build (push) Failing after 10s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 22:07:07 +00:00
5ff03af1a6 feat: Add local bot data documentation and update submodule
Some checks failed
BotServer CI / build (push) Failing after 20s
- 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-14 22:05:00 +00:00
52b54ffae5 fix(i18n): Update botui with cache invalidation
Some checks failed
BotServer CI / build (push) Failing after 9s
- 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-14 20:05:43 +00:00
c909db7aaf chore: Update botui submodule
Some checks failed
BotServer CI / build (push) Failing after 12s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 19:58:01 +00:00
613db5748e fix(i18n): Update botlib submodule with debug-embed support
Some checks failed
BotServer CI / build (push) Failing after 7s
- 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-14 19:31:29 +00:00
1d46122dc5 feat(i18n): Update botlib submodule with embedded i18n by default
Some checks failed
BotServer CI / build (push) Failing after 7s
- 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-14 17:35:29 +00:00
c10c2e0b78 Update botserver submodule to latest commit
Some checks failed
BotServer CI / build (push) Failing after 12s
- 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-14 16:36:11 +00:00
8c5ee3f3e3 Debug: Add translation lookup logging
Some checks failed
BotServer CI / build (push) Failing after 6s
2026-02-14 12:28:20 +00:00
5226c771f8 Debug: Add i18n logging to find missing translations
Some checks failed
BotServer CI / build (push) Failing after 5s
2026-02-14 12:25:58 +00:00
e496ac11e2 feat(i18n): Update botui with cache versioning
Some checks failed
BotServer CI / build (push) Failing after 10s
This adds cache versioning (v1) to prevent stale translation issues.
Old caches will be auto-invalidated when version is incremented.
2026-02-14 12:09:47 +00:00
704bbb22a5 fix(i18n): Update botui with cache logging
Some checks failed
BotServer CI / build (push) Failing after 9s
2026-02-14 12:04:49 +00:00
375c3780c2 fix(i18n): Update botui submodule with logging
Some checks failed
BotServer CI / build (push) Failing after 5s
2026-02-14 11:54:17 +00:00
e5bf8ec75a fix(i18n): Update botlib submodule with locale logging
Some checks failed
BotServer CI / build (push) Failing after 10s
2026-02-14 11:48:57 +00:00
ae8b830773 Update botui submodule
Some checks failed
BotServer CI / build (push) Failing after 8s
2026-02-14 10:14:04 +00:00
5cab98b459 Update botserver submodule
Some checks failed
BotServer CI / build (push) Failing after 12s
2026-02-14 09:54:22 +00:00
027c7c77b8 CI: Trigger pipeline
Some checks failed
BotServer CI / build (push) Failing after 16s
2026-02-14 09:49:33 +00:00
c6b21149b1 CI: Bust cache to fix notify dependency build
Some checks failed
BotServer CI / build (push) Failing after 23s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-13 22:33:51 +00:00
68cd0d6bf3 Update submodule references
Some checks are pending
BotServer CI / build (push) Waiting to run
- 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-13 22:31:59 +00:00
4 changed files with 87 additions and 2 deletions

@ -1 +1 @@
Subproject commit 8257d4996739379a6d608230d18047569559864b
Subproject commit dec3a086abd2df28452f44f8f8986a3e3ae27005

2
botui

@ -1 +1 @@
Subproject commit 9b417bf4f23f540b5c8cace81e50c37729844e06
Subproject commit 4f654dd95daeb8e21c7977f6f4762fdac392b2d3

59
restart.sh Executable file
View file

@ -0,0 +1,59 @@
#!/bin/bash
set -e
echo "🛑 Stopping existing processes..."
pkill -f "botserver --noconsole" || true
pkill -f botui || true
pkill -f rustc || true
# Note: PostgreSQL, Vault, and Valkey are managed by botserver bootstrap, don't kill them
echo "🧹 Cleaning logs..."
rm -f botserver.log botui.log
echo "🔨 Building botserver..."
cargo build -p botserver
echo "🔨 Building botui..."
cargo build -p botui
echo "🗄️ Starting PostgreSQL..."
./botserver-stack/bin/tables/bin/postgres -D botserver-stack/data/tables/pgdata -c config_file=botserver-stack/conf/postgresql.conf > botserver-stack/logs/tables/postgres.log 2>&1 &
echo " PostgreSQL PID: $!"
sleep 2
echo "🔑 Starting Valkey (cache)..."
./botserver-stack/bin/cache/valkey-server --daemonize no --dir botserver-stack/data/cache > /dev/null 2>&1 &
echo " Valkey started"
sleep 2
echo "🚀 Starting botserver..."
export VAULT_ADDR="https://localhost:8200"
export VAULT_TOKEN="hvs.JjKHlEzycO2jvKdhhlRAoODu"
export VAULT_CACERT="./botserver-stack/conf/system/certificates/ca/ca.crt"
export VAULT_CACHE_TTL="300"
RUST_LOG=info ./target/debug/botserver --noconsole > botserver.log 2>&1 &
BOTSERVER_PID=$!
echo "⏳ Waiting for Vault to start (unsealing in background)..."
(
sleep 8
echo "🔓 Unsealing Vault..."
UNSEAL_KEY=$(python3 -c "import json; print(json.load(open('botserver-stack/conf/vault/init.json'))['unseal_keys_b64'][0])" 2>/dev/null)
if [ -n "$UNSEAL_KEY" ]; then
curl -s --cacert botserver-stack/conf/system/certificates/ca/ca.crt \
-X POST \
-H "X-Vault-Token: hvs.JjKHlEzycO2jvKdhhlRAoODu" \
-d "{\"key\": \"$UNSEAL_KEY\"}" \
https://localhost:8200/v1/sys/unseal 2>/dev/null && echo "✅ Vault unsealed" || echo "⚠️ Unseal failed"
else
echo "⚠️ Could not extract unseal key"
fi
) &
echo "🚀 Starting botui..."
BOTSERVER_URL="https://localhost:8088" ./target/debug/botui > botui.log 2>&1 &
BOTUI_PID=$!
echo "✅ Started botserver (PID: $BOTSERVER_PID) and botui (PID: $BOTUI_PID)"
echo "📊 Monitor with: tail -f botserver.log botui.log"
echo "🌐 Access at: http://localhost:3000"

26
start-and-unseal.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
set -e
echo "🔓 Unsealing Vault..."
UNSEAL_KEY="$(cat botserver-stack/conf/vault/init.json | grep -o '"unseal_keys_b64":\["[^"]*"' | cut -d'"' -f4)"
# Wait for Vault to start
for i in {1..30}; do
if curl -sfk --cacert botserver-stack/conf/system/certificates/ca/ca.crt \
https://localhost:8200/v1/sys/health > /dev/null 2>&1; then
echo "✅ Vault is running"
break
fi
echo "⏳ Waiting for Vault... ($i/30)"
sleep 1
done
# Unseal Vault
echo "🔓 Unsealing..."
curl -s --cacert botserver-stack/conf/system/certificates/ca/ca.crt \
-X POST \
-H "X-Vault-Token: hvs.JjKHlEzycO2jvKdhhlRAoODu" \
-d "{\"key\": \"$UNSEAL_KEY\"}" \
https://localhost:8200/v1/sys/unseal
echo "✅ Vault unsealed"