apex_code_translator
Focus: High-Fidelity Legacy Code Translation (Requirement 14).
🔄 Translation Protocols
- •Source Analysis: Deep analysis of source logic (PHP, .NET, Python) to identify hidden side effects and state dependencies.
- •Logic Equivalence: Ensure bit-for-bit logical equivalence in the target (Bun/NestJS) while improving architecture.
- •Refactoring during Translation: Apply SOLID principles during the move; do not just "port" bad code.
- •Verification Mapping: Create a logic-to-logic mapping to prove the new code handles all legacy cases.
🚀 Root Solutions
- •Modernization: Convert synchronous legacy patterns into high-performance asynchronous patterns in Bun.
- •Security hardening: Automatically upgrade legacy insecure patterns (e.g., raw SQL) to Drizzle's type-safe templates.
- •Dependency Management: Replace proprietary legacy libraries with performance-first open-source alternatives consistent with Apex Project Legend.