AI Pipeline - C++ to Haskell/QML/Reports Converter#
Многофазный AI-конвейер для конвертации C++ кода в Haskell, QML и отчёты.
🚀 Быстрый старт#
# Клонировать репозиторий
git clone <repo-url>
cd test2
# Установить зависимости
pip install -r requirements.txt
# Запустить pipeline
./run.sh --provider ollama --model gemma3:1b📋 Возможности#
AI Провайдеры (99+)#
- Основные: OpenAI, Anthropic, Google, Mistral
- Open-source: DeepSeek, Qwen, Llama, Cohere
- Локальные: Ollama, LMStudio, LocalAI, vLLM
- Российские: Yandex, Sber (GigaChat)
- Китайские: MiniMax, Moonshot, Baidu, ByteDance
Pipeline Фазы#
- Analysis - Глубокий анализ кода (1000+ классов)
- Database - Btrieve → PostgreSQL DDL
- Haskell - C++ → Haskell конвертация
- QML - Qt → QML 3 конвертация
- Reports - Crystal → Jasper/Pentaho/pdf-slave
Мониторинг#
- Web UI dashboard (:8080)
- Prometheus metrics (:9090)
- JSON logging
- Health checks
📖 Использование#
# Список провайдеров
./run.sh --list
# Тест провайдера
./run.sh --test ollama
# Web UI
./run.sh --web --port 8080
# Docker
docker-compose up -d
# Тесты
pytest tests/ -v📁 Структура проекта#
orchestration/ # 38 Python файлов
├── ai/ # AI клиент и провайдеры
├── pipeline/ # Основной pipeline
├── cache/ # Кэширование
├── circuit_breaker/ # Отказоустойчивость
├── monitoring/ # Метрики
├── validators/ # Валидация
├── utils/ # Утилиты
├── api_server.py # REST API
├── graphql_api.py # GraphQL API
├── websocket_server.py # WebSocket
├── templates.py # Шаблоны
├── analytics.py # Аналитика
├── notifications.py # Уведомления
└── scheduler.py # Планировщик📊 Результаты#
| Метрика | Значение |
|---|---|
| Python файлов | 38 |
| Тесты | 13 ✅ |
| AI провайдеров | 99+ |
| Сгенерировано файлов | 53 |
🔧 Конфигурация#
Через переменные окружения:
export DEFAULT_PROVIDER=ollama
export OLLAMA_MODEL=gemma3:1b
export LOG_FORMAT=json
export ENABLE_RLM=trueИли через .pipeline.json:
{
"default_provider": "ollama",
"ollama_model": "gemma3:1b",
"max_workers": 4,
"log_format": "json"
}📝 История коммитов#
532e6f1 - feat: add tests, CI/CD, and documentation
33bd15b - feat: add core orchestration module
3478659 - chore: add .gitignore🛠 Технологии#
- Python 3.11+ - Основной язык
- asyncio - Асинхронное программирование
- aiohttp - HTTP клиент
- FastAPI - REST API
- Strawberry - GraphQL
- Prometheus - Метрики
- Docker - Контейнеризация
📄 License#
MIT License
🔄 Mirrors:
License#
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>