Metadata-Version: 2.4
Name: genesis-pro
Version: 0.1.3
Summary: NoCode2ProCode by TrustEngines: Claude Code-native no-code/low-code/design/website to production pro-code framework.
Author: Vishwas2311
License: MIT
Project-URL: Homepage, https://github.com/Vishwas2311/Agentic-AI-framework
Project-URL: Repository, https://github.com/Vishwas2311/Agentic-AI-framework
Project-URL: Bug Tracker, https://github.com/Vishwas2311/Agentic-AI-framework/issues
Keywords: ai,nocode,lowcode,claude,codegen,nextjs,fastapi,migration
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.7
Requires-Dist: pyyaml>=6.0
Requires-Dist: typer>=0.12
Requires-Dist: rich>=13.7
Requires-Dist: jsonschema>=4.22
Requires-Dist: networkx>=3.3
Requires-Dist: jinja2>=3.1
Requires-Dist: anthropic>=0.30
Requires-Dist: tiktoken>=0.7
Requires-Dist: tenacity>=8.0
Requires-Dist: httpx>=0.27
Requires-Dist: python-docx>=1.1
Requires-Dist: lxml>=5.2
Requires-Dist: beautifulsoup4>=4.12
Requires-Dist: pillow>=10.4
Requires-Dist: PyGitHub>=2.3
Provides-Extra: dev
Requires-Dist: pytest>=8.2; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Provides-Extra: local-e2e
Requires-Dist: fastapi>=0.111; extra == "local-e2e"
Requires-Dist: uvicorn[standard]>=0.30; extra == "local-e2e"
Requires-Dist: python-multipart>=0.0.9; extra == "local-e2e"
Requires-Dist: httpx>=0.27; extra == "local-e2e"
Requires-Dist: beautifulsoup4>=4.12; extra == "local-e2e"
Requires-Dist: lxml>=5.2; extra == "local-e2e"
Requires-Dist: pillow>=10.4; extra == "local-e2e"
Requires-Dist: python-docx>=1.1; extra == "local-e2e"
Requires-Dist: pymupdf>=1.24; extra == "local-e2e"
Requires-Dist: unstructured>=0.14; extra == "local-e2e"
Requires-Dist: bandit>=1.7; extra == "local-e2e"
Requires-Dist: schemathesis>=3.25; extra == "local-e2e"
Requires-Dist: sqlfluff>=3.0; extra == "local-e2e"
Requires-Dist: pip-audit>=2.7; extra == "local-e2e"
Requires-Dist: opentelemetry-sdk>=1.25; extra == "local-e2e"
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.46b0; extra == "local-e2e"
Requires-Dist: opentelemetry-exporter-otlp>=1.25; extra == "local-e2e"
Requires-Dist: structlog>=24.1; extra == "local-e2e"
Requires-Dist: locust>=2.29; extra == "local-e2e"
Requires-Dist: testcontainers>=4.7; extra == "local-e2e"
Provides-Extra: visual
Requires-Dist: beautifulsoup4>=4.12; extra == "visual"
Requires-Dist: pillow>=10.4; extra == "visual"
Requires-Dist: python-docx>=1.1; extra == "visual"
Provides-Extra: security
Requires-Dist: semgrep>=1.80; extra == "security"
Provides-Extra: intelligence
Requires-Dist: numpy>=1.26; extra == "intelligence"
Requires-Dist: opencv-python>=4.10; extra == "intelligence"
Requires-Dist: pytesseract>=0.3; extra == "intelligence"
Requires-Dist: openai-whisper>=20231117; extra == "intelligence"
Requires-Dist: sentence-transformers>=3.0; extra == "intelligence"
Requires-Dist: z3-solver>=4.13; extra == "intelligence"
Requires-Dist: pykeen>=1.11; extra == "intelligence"
Provides-Extra: all
Requires-Dist: bandit>=1.7; extra == "all"
Requires-Dist: beautifulsoup4>=4.12; extra == "all"
Requires-Dist: fastapi>=0.111; extra == "all"
Requires-Dist: httpx>=0.27; extra == "all"
Requires-Dist: lxml>=5.2; extra == "all"
Requires-Dist: locust>=2.29; extra == "all"
Requires-Dist: opentelemetry-sdk>=1.25; extra == "all"
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.46b0; extra == "all"
Requires-Dist: opentelemetry-exporter-otlp>=1.25; extra == "all"
Requires-Dist: pillow>=10.4; extra == "all"
Requires-Dist: pip-audit>=2.7; extra == "all"
Requires-Dist: python-docx>=1.1; extra == "all"
Requires-Dist: python-multipart>=0.0.9; extra == "all"
Requires-Dist: pymupdf>=1.24; extra == "all"
Requires-Dist: schemathesis>=3.25; extra == "all"
Requires-Dist: semgrep>=1.80; extra == "all"
Requires-Dist: sqlfluff>=3.0; extra == "all"
Requires-Dist: structlog>=24.1; extra == "all"
Requires-Dist: testcontainers>=4.7; extra == "all"
Requires-Dist: unstructured>=0.14; extra == "all"
Requires-Dist: uvicorn[standard]>=0.30; extra == "all"

﻿# NoCode2ProCode Genesis
### AI-powered framework that converts any no-code / low-code platform into production-grade applications

Genesis takes your existing Appian, Mendix, PowerApps, OutSystems, Figma, screenshots, BRDs, videos, or API specs â€” and generates a complete, deployable Next.js + FastAPI + Prisma application using Claude AI with a 46-stage governed pipeline.

---

## How Genesis Works

```
YOUR INPUT                EXTRACTION            INTELLIGENCE           GENERATION
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
  BRD / DOCX          â”€â–º  Appian SAIL       â”€â–º  Semantic Graph    â”€â–º  Next.js screens
  Screenshots         â”€â–º  Mendix microflow  â”€â–º  Component Linker  â”€â–º  FastAPI routes
  Figma / Stitch      â”€â–º  PowerApps Fx      â”€â–º  Screen Flow       â”€â–º  Prisma schema
  Video walkthrough   â”€â–º  Video (5-stage)   â”€â–º  Symbolic Exec     â”€â–º  Zod validation
  Appian export       â”€â–º  SAIL translator   â”€â–º  Graph ML          â”€â–º  ACL middleware
  API / DB schema     â”€â–º  Screenshot OCR    â”€â–º  BRD Gate          â”€â–º  TypeScript types
                                                Source Truth       â”€â–º  Test scaffold
                                                Evidence Graph
                                                     â”‚
                                                     â–¼
                                            CONFIDENCE GATE
                                        PROCEED / WARN / BLOCK
                                           (threshold 0.70)
```

---

## Project Structure

```
NoCode2ProCode-Genesis/
â”‚
â”‚â”€â”€ FRAMEWORK CORE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ src/                        Python implementation â€” the brain of Genesis
â”‚   â””â”€â”€ genesis_framework/
â”‚       â”œâ”€â”€ core/               Orchestrator (46 stages), CLI, config, flow
â”‚       â”œâ”€â”€ extraction/         Platform extractors: Appian, Mendix, PowerApps,
â”‚       â”‚                         OutSystems, video, SAIL, PowerFx, screenshot
â”‚       â”œâ”€â”€ intelligence/       Semantic graph, component linker, screen flow
â”‚       â”‚                         detector, symbolic executor, graph ML
â”‚       â”œâ”€â”€ gates/              BRD confidence gate, approval gates, source truth
â”‚       â”œâ”€â”€ generation/         Evidence-gated code gen, validation, ACL,
â”‚       â”‚                         data binding, scaffold
â”‚       â”œâ”€â”€ agents/             LLM client, dispatcher, runner, token manager
â”‚       â”œâ”€â”€ design/             Design strategy, quality, visual fidelity
â”‚       â”œâ”€â”€ quality/            QA runner, repair loop, scorecard
â”‚       â”œâ”€â”€ delivery/           Stack resolver, migration mode, provider routing
â”‚       â””â”€â”€ memory/             Memory runtime, intermediate representation (IR)
â”‚
â”‚â”€â”€ GOVERNANCE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ .genesis/                   46-stage pipeline + all governance YAML files
â”‚   â”œâ”€â”€ genesis.flow.yaml       Stage definitions and objectives
â”‚   â”œâ”€â”€ genesis.stack.yaml      Stack selection rules
â”‚   â”œâ”€â”€ genesis.agents.yaml     Agent roles and responsibilities
â”‚   â”œâ”€â”€ genesis.design.yaml     Design strategy decision rules
â”‚   â”œâ”€â”€ genesis.policy.yaml     Compliance and secret policy gates
â”‚   â”œâ”€â”€ genesis.tools.yaml      Tool access control per stage
â”‚   â””â”€â”€ genesis.capabilities.yaml
â”‚
â”œâ”€â”€ config/                     All configuration: schemas, policies, prompts
â”‚   â”œâ”€â”€ schemas/                JSON schemas for all Genesis artifacts
â”‚   â”œâ”€â”€ policies/               Cedar and Rego policy definitions
â”‚   â””â”€â”€ prompts/                Stage-level prompt templates
â”‚
â”‚â”€â”€ AGENT SWARM â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ agents/                     Agent role definitions (scaffold â€” see src/agents/)
â”‚
â”‚â”€â”€ EXTERNAL INTEGRATIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ integrations/               External tool connectors
â”‚   â”œâ”€â”€ runtime/                Playwright, Firecrawl, sandbox, screenshots
â”‚   â””â”€â”€ mcp/                    MCP gateway and gated tool access
â”‚
â”‚â”€â”€ ENGINE (PLANNED MODULES) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ engine/                     Future standalone packages (Python impl in src/)
â”‚   â”œâ”€â”€ packages/               Decoupled engine modules (scaffold)
â”‚   â”œâ”€â”€ adapters/               Platform adapter stubs (Python impl in extraction/)
â”‚   â”œâ”€â”€ generators/             Generator stubs (Python impl in generation/)
â”‚   â””â”€â”€ apps/                   CLI / API / Dashboard stubs
â”‚
â”‚â”€â”€ COMPLIANCE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ compliance/                 GDPR, HIPAA, SOC2, EU AI Act definitions (scaffold)
â”‚
â”‚â”€â”€ TEMPLATES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ templates/                  Jinja2 code generation templates
â”‚   â”œâ”€â”€ react/                  Next.js page template
â”‚   â”œâ”€â”€ database/               SQL migration template
â”‚   â”œâ”€â”€ cicd/                   GitHub Actions template
â”‚   â”œâ”€â”€ docker/                 Dockerfile template
â”‚   â”œâ”€â”€ java-spring/            Spring entity template
â”‚   â””â”€â”€ kubernetes/             K8s deployment template
â”‚
â”‚â”€â”€ INPUT / OUTPUT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ workspace/{project}/inputs/           DROP YOUR SOURCE FILES HERE to start a migration
â”‚   â”œâ”€â”€ images/                 Screenshots, Figma exports, UI mockups
â”‚   â”œâ”€â”€ videos/                 Video walkthroughs of the no-code app
â”‚   â””â”€â”€ raw_data/               BRDs, exports, API specs, DB schemas
â”‚
â”œâ”€â”€ workspace/{project}/output/               Generated applications land here
â”‚
â”‚â”€â”€ MEMORY / EVIDENCE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ memory/                     Persistent cross-session memory (graph + vector)
â”œâ”€â”€ evidence/                   Extraction artifacts saved per migration run
â”‚
â”‚â”€â”€ TESTING â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ tests/                      Python test suite
â”œâ”€â”€ benchmarks/                 Performance benchmark cases
â”œâ”€â”€ evals/                      Framework evaluation suites (adapter, generator, model)
â”‚
â”‚â”€â”€ DOCUMENTATION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ docs/
â”‚   â”œâ”€â”€ manuals/                Full User Manual HTML files
â”‚   â”œâ”€â”€ reports/                Decision reports (design, stack, quality)
â”‚   â”œâ”€â”€ playbooks/              How-to guides for key workflows
â”‚   â””â”€â”€ ARCHITECTURE.md         Deep-dive architecture reference
â”‚
â”œâ”€â”€ examples/                   Reference migrations (admin dashboard, customer portal)
â”‚
â”‚â”€â”€ OPERATIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ scripts/                    Setup and utility scripts
â”‚   â”œâ”€â”€ install-genesis.ps1     Quick installer (also at root for discoverability)
â”‚   â”œâ”€â”€ install_genesis_all.ps1 Full E2E installer
â”‚   â”œâ”€â”€ validate_prereqs.ps1    Prerequisite checker
â”‚   â”œâ”€â”€ generate_module_index.py  Regenerates MODULE_INDEX.md
â”‚   â””â”€â”€ migrate_structure.py    Domain folder migration utility
â”‚
â”‚â”€â”€ ROOT FILES (ESSENTIAL ONLY) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
â”‚
â”œâ”€â”€ CLAUDE.md                   Claude Code execution rules (MUST stay at root)
â”œâ”€â”€ README.md                   This file
â”œâ”€â”€ USER_MANUAL.md              User guide
â”œâ”€â”€ PREREQUISITES.md            Setup requirements
â”œâ”€â”€ MODULE_INDEX.md             Module inventory
â”œâ”€â”€ MODULE_MAP.md               Module dependency map
â”œâ”€â”€ pyproject.toml              Python package config
â”œâ”€â”€ install-genesis.ps1         Quick-start entry point
â””â”€â”€ .env.example                Environment variable template
```

---

## Quick Start

```powershell
# 1. Install everything
powershell -NoProfile -ExecutionPolicy Bypass -File .\install-genesis.ps1

# 2. Add your source files
copy migration_inputs\migration_request.example.yaml migration_inputs\migration_request.yaml
# â†’ Put BRDs, screenshots, exports in workspace/{project}/inputs/

# 3. Run the migration
.\.venv\Scripts\nocode2procode.exe migrate
```

Or in Claude Code, just type: **`install Genesis E2E`**

---

## Implementation Status

| Layer | Folder | Status |
|---|---|---|
| Core orchestrator (46 stages) | `src/genesis_framework/core/` | **IMPLEMENTED** |
| Platform extractors (Appian, Mendix, PowerApps, video) | `src/genesis_framework/extraction/` | **IMPLEMENTED** |
| Intelligence pipeline (semantic graph, component linker, screen flow, symbolic exec, graph ML) | `src/genesis_framework/intelligence/` | **IMPLEMENTED** |
| Evidence gates (BRD confidence, approval, source truth) | `src/genesis_framework/gates/` | **IMPLEMENTED** |
| Code generation (evidence-gated, validation, ACL, data binding) | `src/genesis_framework/generation/` | **IMPLEMENTED** |
| Agent infrastructure (LLM client, dispatcher, runner, token mgr) | `src/genesis_framework/agents/` | **IMPLEMENTED** |
| Design strategy + visual fidelity | `src/genesis_framework/design/` | **IMPLEMENTED** |
| QA runner + repair loop + scorecard | `src/genesis_framework/quality/` | **IMPLEMENTED** |
| Stack/provider/delivery routing | `src/genesis_framework/delivery/` | **IMPLEMENTED** |
| Agent role definitions | `agents/` | SCAFFOLD |
| External runtime tools (Playwright, Firecrawl) | `integrations/runtime/` | SCAFFOLD |
| MCP gateway | `integrations/mcp/` | SCAFFOLD |
| Standalone engine packages | `engine/packages/` | SCAFFOLD |
| Compliance definitions (GDPR, HIPAA, SOC2) | `compliance/` | SCAFFOLD |

---

## What Goes Where

| You want to... | Look here |
|---|---|
| Understand the migration pipeline | `.genesis/genesis.flow.yaml` |
| Change how a platform is extracted | `src/genesis_framework/extraction/` |
| Change how code is generated | `src/genesis_framework/generation/` |
| Adjust confidence thresholds | `src/genesis_framework/gates/` |
| Add a prompt template | `config/prompts/` |
| Add a JSON schema | `config/schemas/` |
| See a generated app | `workspace/{project}/output/` |
| Drop migration inputs | `workspace/{project}/inputs/` |
| Read the full user manual | `docs/manuals/` |

---

## Key Concepts

**Semantic Graph** â€” Every extracted screen, component, field, API, and entity becomes a node with an evidence confidence score (0.0â€“1.0). Generation tier is assigned automatically: FULL (â‰¥0.75), REVIEW (â‰¥0.50), STUB (â‰¥0.25), TODO (<0.25).

**Constitutional AI Gate** â€” 8 rules govern what can be generated. Ambiguous nodes go through a Skeptic/Believer/Judge multi-agent debate before code is written.

**BRD Confidence Gate** â€” After extraction, Genesis scores the BRD understanding. PROCEED (â‰¥0.70) / WARN (â‰¥0.40) / BLOCK (<0.40). Humans can approve, edit, or reject before generation starts.

**Evidence-Gated Generation** â€” Code is only written when evidence supports it. Low-evidence sections get STUB or TODO markers, never hallucinated code.


