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
24 lines
508 B
Bash
Executable file
24 lines
508 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Stopping..."
|
|
pkill -f botserver || true
|
|
pkill -f botui || true
|
|
pkill -f rustc || true
|
|
|
|
echo "Cleaning..."
|
|
rm -f botserver.log botui.log
|
|
|
|
echo "Building..."
|
|
cargo build -p botserver
|
|
cargo build -p botui
|
|
|
|
echo "Starting botserver..."
|
|
./target/debug/botserver --noconsole > botserver.log 2>&1 &
|
|
echo " PID: $!"
|
|
|
|
echo "Starting botui..."
|
|
BOTSERVER_URL="http://localhost:9000" ./target/debug/botui > botui.log 2>&1 &
|
|
echo " PID: $!"
|
|
|
|
echo "Done. Logs: tail -f botserver.log botui.log"
|