feat: overhaul chat architecture with persistent JdbcChatMemory, reactive UI components, and improved conversation management

This commit is contained in:
2026-07-23 19:20:28 +07:00
parent 2bbbff1ec9
commit 506008c69f
79 changed files with 5058 additions and 1193 deletions

View File

@@ -21,10 +21,22 @@ for PORT in 9331 9332 9333; do
PID=$(lsof -t -i:$PORT)
if [ -n "$PID" ]; then
echo "Killing process on port $PORT (PID: $PID)..."
kill -9 $PID
kill -9 $PID 2>/dev/null || true
fi
done
NODEMON_PIDS=$(pgrep -f "nodemon.*$PROJECT_ROOT" || true)
if [ -n "$NODEMON_PIDS" ]; then
echo "Killing existing nodemon processes for $PROJECT_ROOT..."
pkill -9 -f "nodemon.*$PROJECT_ROOT" 2>/dev/null || true
fi
MAVEN_PIDS=$(pgrep -f "MavenWrapperMain.*$PROJECT_ROOT" || true)
if [ -n "$MAVEN_PIDS" ]; then
echo "Killing existing Maven wrapper processes for $PROJECT_ROOT..."
pkill -9 -f "MavenWrapperMain.*$PROJECT_ROOT" 2>/dev/null || true
fi
echo "=========================================="
echo "Starting Loyalty Agent Services"
echo "=========================================="
@@ -45,7 +57,7 @@ echo "loyalty-mcp-server is up!"
# Start nodemon watcher for MCP Server
echo "Starting nodemon watcher for loyalty-mcp-server..."
npx -y nodemon --watch src -e java,xml,yml,yaml,properties --exec "../mvnw compile" > "$LOG_DIR/loyalty-mcp-server-nodemon.log" 2>&1 &
npx -y nodemon --watch src -e java,xml,yml,yaml,properties --exec "$PROJECT_ROOT/mvnw compile" > "$LOG_DIR/loyalty-mcp-server-nodemon.log" 2>&1 &
MCP_NODEMON_PID=$!
@@ -65,7 +77,7 @@ echo "loyalty-agent is up!"
# Start nodemon watcher for Agent Service
echo "Starting nodemon watcher for loyalty-agent..."
npx -y nodemon --watch src -e java,xml,yml,yaml,properties --exec "../mvnw compile" > "$LOG_DIR/loyalty-agent-nodemon.log" 2>&1 &
npx -y nodemon --watch src -e java,xml,yml,yaml,properties --exec "$PROJECT_ROOT/mvnw compile" > "$LOG_DIR/loyalty-agent-nodemon.log" 2>&1 &
AGENT_NODEMON_PID=$!