1422cc9bc8
Agent Executor Service: - BaseAgent class with LLM integration via LiteLLM proxy - AgentExecutor service that processes pending executions every 5 seconds - Action execution: create_subtask, update_status, send_notification, add_comment - Approval workflow: CxO level agents require user approval before execution - Telegram notifications for approvals and completions - Error handling and execution status tracking WebSocket Real-Time Updates: - WebSocket endpoint at /ws/opc for real-time task updates - ConnectionManager for broadcasting to all connected clients - Frontend WebSocket client with auto-reconnect - Live updates for task create/update/move/delete actions - Agent execution status broadcasts Integration: - Agent executor starts on dashboard startup - Task router broadcasts WebSocket updates on all mutations - Frontend OPC page subscribes to WebSocket and updates UI in real-time - Agents (PM, CTO, COO) can now execute tasks autonomously Phase 1 MVP Complete: ✅ PostgreSQL database with full schema ✅ Task CRUD API with automatic time tracking ✅ Kanban board with drag-and-drop ✅ Agent executor service with LLM integration ✅ WebSocket real-time updates ✅ 3 core agents ready to execute Next: Agent panel UI, email notifications, PDF invoicing
24 lines
731 B
Bash
Executable File
24 lines
731 B
Bash
Executable File
#!/bin/bash
|
|
# Initialize OPC database in PostgreSQL
|
|
|
|
set -e
|
|
|
|
echo "Initializing OPC database..."
|
|
|
|
# Connect to PostgreSQL and create OPC database
|
|
ssh nas "/volume1/@appstore/ContainerManager/usr/bin/docker exec -i gitea-db psql -U gitea -d postgres" << 'EOF'
|
|
-- Create OPC database if it doesn't exist
|
|
SELECT 'CREATE DATABASE opc'
|
|
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'opc')\gexec
|
|
|
|
-- Grant permissions to gitea user
|
|
GRANT ALL PRIVILEGES ON DATABASE opc TO gitea;
|
|
EOF
|
|
|
|
echo "OPC database created successfully!"
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo "1. The dashboard will auto-initialize tables on startup"
|
|
echo "2. Push your changes to trigger CI/CD deployment"
|
|
echo "3. Access OPC at https://nas.jimmygan.com/opc"
|