feat: Initial commit - DAGI Stack v0.2.0 (Phase 2 Complete)

- Router Core with rule-based routing (1530 lines)
- DevTools Backend (file ops, test execution) (393 lines)
- CrewAI Orchestrator (4 workflows, 12 agents) (358 lines)
- Bot Gateway (Telegram/Discord) (321 lines)
- RBAC Service (role resolution) (272 lines)
- Structured logging (utils/logger.py)
- Docker deployment (docker-compose.yml)
- Comprehensive documentation (57KB)
- Test suites (41 tests, 95% coverage)
- Phase 4 roadmap & ecosystem integration plans

Production-ready infrastructure for DAARION microDAOs.
This commit is contained in:
Ivan Tytar
2025-11-15 14:16:38 +01:00
commit 3cacf67cf5
62 changed files with 10625 additions and 0 deletions

44
test-fastapi.sh Executable file
View File

@@ -0,0 +1,44 @@
#!/bin/bash
# Test FastAPI DAGI Router
API_URL="http://127.0.0.1:9102"
echo "=== Testing DAGI Router FastAPI ==="
echo ""
echo "1. Health Check:"
curl -s $API_URL/health | python3 -m json.tool
echo -e "\n"
echo "2. Root Info:"
curl -s $API_URL/ | python3 -m json.tool
echo -e "\n"
echo "3. Providers List:"
curl -s $API_URL/providers | python3 -m json.tool
echo -e "\n"
echo "4. Routing Rules:"
curl -s $API_URL/routing | python3 -m json.tool
echo -e "\n"
echo "5. Simple DevTools Request:"
curl -s -X POST $API_URL/route \
-H "Content-Type: application/json" \
-d '{
"agent": "devtools",
"message": "Що таке memory leak?"
}' | python3 -m json.tool
echo -e "\n"
echo "6. Request with task_type:"
curl -s -X POST $API_URL/route \
-H "Content-Type: application/json" \
-d '{
"agent": "devtools",
"message": "Як виправити баг?",
"payload": {"task_type": "bugfix"}
}' | python3 -m json.tool
echo -e "\n"
echo "=== Tests Complete ==="