YYR Repo Map

First ReadURL copied

The command entry is src/cli.py, exposed as migrate in pyproject.toml. It configures logging, then calls src/pipeline.py, which owns the high-level sequence: ingest, lookup, mapping, execute, validate, and audit.

src/ingest.py finds XML policy files in Apigee bundle shapes and ad hoc policy folders. It parses each XML root into a Policy model from src/models.py, preserving source path, category, family, config, and chain order.

src/mapping.py converts parsed policies into source-to-target mappings. Its old stub table still documents expected MuleSoft equivalents, but live lookup now delegates to src/semantic.py.

src/execute.py writes the target artifact. For mule-xml, it calls LLM-backed generators in src/llm.py; for flex-gateway-yaml, it copies matching YAML templates from an expected/template tree.