WIP: Save agent roles integration work before CHORUS rebrand
- Agent roles and coordination features - Chat API integration testing - New configuration and workspace management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
47
test/run_chat_api.sh
Executable file
47
test/run_chat_api.sh
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Bzzz Chat API Test Runner
|
||||
# This script builds and runs the chat API integration server
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔧 Building Bzzz Chat API..."
|
||||
|
||||
# Go to Bzzz project root
|
||||
cd /home/tony/AI/projects/Bzzz
|
||||
|
||||
# Add gorilla/mux dependency if not present
|
||||
if ! grep -q "github.com/gorilla/mux" go.mod; then
|
||||
echo "📦 Adding gorilla/mux dependency..."
|
||||
go get github.com/gorilla/mux
|
||||
fi
|
||||
|
||||
# Build the chat API handler
|
||||
echo "🏗️ Building chat API handler..."
|
||||
go build -o test/bzzz-chat-api test/chat_api_handler.go
|
||||
|
||||
# Check if build succeeded
|
||||
if [ ! -f "test/bzzz-chat-api" ]; then
|
||||
echo "❌ Build failed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Build successful!"
|
||||
|
||||
# Create data directory for logs
|
||||
mkdir -p ./data/chat-api-logs
|
||||
|
||||
# Start the server
|
||||
echo "🚀 Starting Bzzz Chat API server on port 8080..."
|
||||
echo "📡 API Endpoints:"
|
||||
echo " POST http://localhost:8080/bzzz/api/execute-task"
|
||||
echo " GET http://localhost:8080/bzzz/api/health"
|
||||
echo ""
|
||||
echo "🔗 For N8N integration, use:"
|
||||
echo " http://localhost:8080/bzzz/api/execute-task"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop the server"
|
||||
echo ""
|
||||
|
||||
# Run the server
|
||||
./test/bzzz-chat-api 8080
|
||||
Reference in New Issue
Block a user