feat(vwb): Améliorer outils IA et supprimer fallback statique
Backend: - analyser_avec_ia.py: centraliser URL Ollama via os.environ.get() - action_contracts.py: assouplir le contrat ai_analyze_text (mode texte sans ancre visuelle, accepter prompt ou analysis_prompt) - intelligent_executor.py: supprimer le fallback coordonnées statiques quand la vision échoue — renvoyer not_found pour self-healing - workflow.py: ajouter endpoints validate et export-training run.sh: - Corriger les ports (3000 → 3002) et le venv (venv_v3 → .venv) - Lancer run_v4.sh au lieu de l'ancien run.sh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
28
run.sh
28
run.sh
@@ -36,7 +36,7 @@ show_help() {
|
||||
echo -e " ${BLUE}--server${NC} 🌐 API Server seul (port 8000)"
|
||||
echo -e " ${PURPLE}--dashboard${NC} 📊 Dashboard Web seul (port 5001)"
|
||||
echo -e " ${YELLOW}--monitoring${NC} 📈 Interface de monitoring (port 5003)"
|
||||
echo -e " ${CYAN}--workflow${NC} 🔧 Visual Workflow Builder (port 3000)"
|
||||
echo -e " ${CYAN}--workflow${NC} 🔧 Visual Workflow Builder (port 3002)"
|
||||
echo -e " ${GREEN}--agent${NC} 📹 Agent V0 (capture tool)"
|
||||
echo -e " ${BLUE}--chat${NC} 💬 Agent Chat (port 5002)"
|
||||
echo ""
|
||||
@@ -64,7 +64,7 @@ show_help() {
|
||||
echo -e " Dashboard: ${PURPLE}http://localhost:5001${NC}"
|
||||
echo -e " Agent Chat: ${BLUE}http://localhost:5002${NC}"
|
||||
echo -e " Monitoring: ${YELLOW}http://localhost:5003${NC}"
|
||||
echo -e " Workflow Builder: ${CYAN}http://localhost:3000${NC}"
|
||||
echo -e " Workflow Builder: ${CYAN}http://localhost:3002${NC}"
|
||||
echo ""
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ fi
|
||||
|
||||
# Step 3: Check/Create Virtual Environment
|
||||
echo -e "${BLUE}[3/7]${NC} Setting up Python environment..."
|
||||
VENV_DIR="venv_v3"
|
||||
VENV_DIR=".venv"
|
||||
|
||||
if [ ! -d "$VENV_DIR" ]; then
|
||||
echo " Creating virtual environment..."
|
||||
@@ -349,7 +349,8 @@ cleanup() {
|
||||
pkill -f "port 5001" 2>/dev/null || true
|
||||
pkill -f "port 5002" 2>/dev/null || true
|
||||
pkill -f "port 5003" 2>/dev/null || true
|
||||
pkill -f "port 3000" 2>/dev/null || true
|
||||
pkill -f "port 3002" 2>/dev/null || true
|
||||
pkill -f "vite.*3002" 2>/dev/null || true
|
||||
|
||||
deactivate 2>/dev/null || true
|
||||
echo -e "${GREEN}✓${NC} Cleanup complete"
|
||||
@@ -465,12 +466,12 @@ EOF
|
||||
|
||||
workflow)
|
||||
echo ""
|
||||
echo -e "${CYAN}🔧 Launching Visual Workflow Builder on port 3000...${NC}"
|
||||
echo -e "${CYAN}🔧 Launching Visual Workflow Builder v4...${NC}"
|
||||
echo ""
|
||||
echo "Access: http://localhost:3000"
|
||||
echo "Access: http://localhost:3002 (frontend) / http://localhost:5001 (backend)"
|
||||
echo ""
|
||||
cd visual_workflow_builder
|
||||
./run.sh
|
||||
./run_v4.sh
|
||||
cd ..
|
||||
;;
|
||||
|
||||
@@ -581,10 +582,10 @@ if __name__ == '__main__':
|
||||
EOF
|
||||
MONITORING_PID=$(start_service "Monitoring" "$VENV_DIR/bin/python3 monitoring_server.py" "5003" "monitoring.log")
|
||||
|
||||
# Start Visual Workflow Builder (in background)
|
||||
echo "Starting Visual Workflow Builder (port 3000)..."
|
||||
# Start Visual Workflow Builder v4 (in background)
|
||||
echo "Starting Visual Workflow Builder v4 (port 3002)..."
|
||||
cd visual_workflow_builder
|
||||
./run.sh > ../logs/workflow.log 2>&1 &
|
||||
./run_v4.sh > ../logs/workflow.log 2>&1 &
|
||||
WORKFLOW_PID=$!
|
||||
cd ..
|
||||
sleep 3
|
||||
@@ -602,7 +603,7 @@ EOF
|
||||
echo -e " API Server: ${BLUE}http://localhost:8000${NC}"
|
||||
echo -e " Dashboard: ${PURPLE}http://localhost:5001${NC}"
|
||||
echo -e " Monitoring: ${YELLOW}http://localhost:5003${NC}"
|
||||
echo -e " Workflow Builder: ${CYAN}http://localhost:3000${NC}"
|
||||
echo -e " Workflow Builder: ${CYAN}http://localhost:3002${NC}"
|
||||
echo ""
|
||||
echo -e "${BOLD}📊 Logs:${NC}"
|
||||
echo " tail -f logs/api.log"
|
||||
@@ -697,7 +698,7 @@ EOF
|
||||
check_service_status "Dashboard" "5001"
|
||||
check_service_status "Agent Chat" "5002"
|
||||
check_service_status "Monitoring" "5003"
|
||||
check_service_status "Workflow Builder" "3000"
|
||||
check_service_status "Workflow Builder" "3002"
|
||||
echo ""
|
||||
;;
|
||||
|
||||
@@ -708,7 +709,8 @@ EOF
|
||||
pkill -f "port 5001" 2>/dev/null || true
|
||||
pkill -f "port 5002" 2>/dev/null || true
|
||||
pkill -f "port 5003" 2>/dev/null || true
|
||||
pkill -f "port 3000" 2>/dev/null || true
|
||||
pkill -f "port 3002" 2>/dev/null || true
|
||||
pkill -f "vite.*3002" 2>/dev/null || true
|
||||
echo -e "${GREEN}✓${NC} All services stopped"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user