Skip to content

Releases

v2.2.0: Cascading Configuration, Real-Time Cost Telemetry, Adaptive Swarm & Backend Validation

Choose a tag to compare

@yohanvillarp yohanvillarp released this 09 Oct 22:43
f5fae82

Overview

Metamorph v2.2.0 introduces enterprise-grade configuration management, live token and financial cost accounting, adaptive swarm execution modes, and structural validation parity for backend framework migrations.


What's New in v2.2.0

1. Cascading Configuration Engine (metamorph config)

Manage migration defaults and agent behaviors with a unified, hierarchical resolution model:

  • Hierarchical Precedence: CLI Flags > Environment Variables > Local .metamorphrc.json > Global ~/.metamorphrc.json > Defaults.
  • Dedicated CLI Commands:
    • metamorph config list: Displays all resolved configuration values and their active source.
    • metamorph config set <key> <value>: Persists settings locally or globally.
    • metamorph config get <key>: Reads a specific parameter.
    • metamorph config path: Prints the absolute path to the active configuration file.
  • Hermetic CI Isolation: Prevents local developer configurations from leaking into automated test suites.

2. Token Accounting & Real-Time Cost Estimation

Complete transparency into LLM inference expenditures:

  • Persistent Storage: Integrated CostAccountingStore backed by native SQLite (history.db).
  • Granular Metrics: Tracks exact prompt tokens, completion tokens, and model identifiers per task and migration run.
  • Live Telemetry: Streams financial cost estimates directly to the Web Dashboard and terminal output during active migrations.

3. Adaptive Swarm & Dynamic Agent Registry

Tailor swarm operations to your specific budget and infrastructure requirements:

  • Selective Agent Disabling: Execute migrations with --disable-agents <list> (e.g. --disable-agents "reporter") to bypass optional agents.
  • Zero-Token Fallbacks: Auxiliary agents utilize lightweight, deterministic fallbacks when disabled, conserving LLM credits.
  • Fault-Tolerant Dashboard: Automatic CLI reconnection handling, offline server detection, and graceful recovery of interrupted migration runs.

4. Backend Target Structural Validation Plugins

Structural verification parity for backend migration targets matching frontend standards:

  • target-express: Enforces application instantiation, listener/export conventions, and stale framework cleanup.
  • target-fastify: Validates Fastify server declarations and supports @fastify/express bridge patterns.
  • target-nestjs: Verifies bootstrap lifecycle (NestFactory.create()), module decorators (@Module), and dynamic entrypoint resolution (src/main.ts, src/app.ts, server.ts) without blocking on optional nest-cli.json files.

5. Project Intelligence Engine (PIE) Parity

  • Enhanced heuristic confidence scoring for backend runtimes (Express, Fastify, NestJS) and React applications.
  • Automatic entrypoint detection for non-standard project roots and script adaptations.

6. Automated Version & Release Management

  • Added scripts/bump-version.mjs and npm lifecycle scripts (npm run bump:patch, npm run bump:minor, npm run bump:major) ensuring atomic synchronization across packages, CLI entrypoints, and lockfiles.

Installation & Upgrade

To update Metamorph globally to the latest version:

npm install -g @nikelyh/metamorph@latest

v2.1.2: Project Intelligence Engine, Polymorphic Package Managers & System Whitepapers

Choose a tag to compare

@yohanvillarp yohanvillarp released this 24 Sep 04:14
46ad81c

Overview

Version 2.1.2 introduces two foundational architectural engines to Metamorph: the Project Intelligence Engine (PIE) with monorepo topology detection, and the Polymorphic Package Manager Engine (PPME) supporting npm, pnpm, yarn, and bun natively. It also incorporates comprehensive system architecture whitepapers, refined telemetry, and interactive community governance.


Key Features & Enhancements

🔍 Project Intelligence Engine (PIE)

  • Heuristic Confidence Scoring: Autonomously inspects codebase patterns, manifests, and configuration markers to classify projects with precision.
  • Subsumption DAG Resolution: Eliminates redundant worker prompts by resolving parent-child framework relationships (e.g. Next.js App Router subsumes React; NestJS subsumes Express).
  • Monorepo Topology Support: Full detection for Turborepo, pnpm workspaces, npm/yarn workspaces, and Lerna, including an interactive --workspace <pkg> selector.

📦 Polymorphic Package Manager Engine (PPME)

  • Multi-Ecosystem Tooling: Universal support adapting cleanly to npm, pnpm, yarn, and bun.
  • Process Isolation: Manifest mutations occur directly on disk without child process leakage to host monorepo workspaces.
  • Dynamic Verification Pipeline: Shadow builds and dashboard telemetry automatically run commands tailored to the detected package manager.

📚 System Architecture Whitepapers & Standards

  • Published 6 comprehensive technical whitepapers in docs/architecture/ with full Mermaid flowcharts covering PIE, PPME, Mozaik Swarm, Shadow Workspace, Layered Catalogs, and Dashboard FSD.
  • Formalized Clean Code & Modularity standards and resilience guidelines in docs/standards/.

💬 Community Governance & Polished Telemetry

  • Interactive GitHub Issue Forms (.github/ISSUE_TEMPLATE/) for migration failures, bug reports, target requests, and feature suggestions.
  • Formal SUPPORT.md guidelines and SECURITY.md vulnerability reporting policy.
  • Polished agent and dashboard status copy, eliminating internal developer debug jargon.

Verification & Stability

  • Monorepo compilation verified with Turbo and tsup.
  • 58 / 58 unit and integration tests passing cleanly.
  • Strict Shadow Workspace confinement verified.

v2.1.1: Multi-Framework Engine, Shadow Integration & Reliability Suite

Choose a tag to compare

@yohanvillarp yohanvillarp released this 18 Sep 15:06

Overview

Version 2.1.1 consolidates the multi-framework migration engine, shadow integration pipeline, and comprehensive reliability suite into main, accompanied by an overhaul of the technical architecture documentation.


Key Features & Enhancements

  • Layered Migration Catalogs: Introduced composable, layered rule catalogs (ALL_MIGRATION_RULES -> layers -> runtimes -> frameworks -> pairs) supporting bidirectional migrations across React, Next.js, Vue, Angular, Svelte, Express, Fastify, and NestJS.
  • Shadow Workspace Verification: Introduced IntegrationAgent and ShadowBuildTool ensuring that transformed projects undergo real compiler and bundler validation (npm install and npm run build in .metamorph/shadow/<runId>) before changes can be applied to the user's workspace.
  • Reliability & Watchdog: Added Coordinator watchdog timer handling, deterministic regression harnesses for Next.js App Router transformations, and task state sweeps for resilient status reporting.
  • Live Swarm Dashboard: Enhanced the React/Vite dashboard with live agent swarm visualization, event logs, dynamic port resolution, and migration outcome guards.
  • Automated Provenance Publishing: Fully automated npm publishing with cryptographic provenance verification via GitHub Actions.
  • Architecture Documentation: Added comprehensive technical documentation in docs/architecture.md featuring 8 Mermaid diagrams covering hexagonal boundaries, agent lifecycles, event buses, and data persistence.

Bug Fixes

  • IntegrationAgent Task Cleanup: Added residual failed task sweeps in completeMigration() to clear transient review errors once shadow build verification succeeds.
  • Reviewer Missing File Handling: Added classification logic to avoid false rejections on deliberately deleted legacy files.
  • Package Management Isolation: Prevented npm hoisting from polluting parent directories during shadow workspace dependency preparation.
  • Dynamic Port Binding: Resolved UI port collisions and removed hardcoded localhost references across dashboard components.

Installation & Upgrade

npm install -g @nikelyh/metamorph@2.1.1

Or run directly with npx:

npx @nikelyh/metamorph@2.1.1 run [path]

v1.0.0-alpha: The AI Migration Swarm 🦋

Choose a tag to compare

@yohanvillarp yohanvillarp released this 05 Sep 22:54
ddb341a

We are thrilled to announce the very first alpha release of Metamorph: an AI-powered technology migration engine.

Metamorph is designed to completely rewrite and migrate your codebases between different frameworks using a specialized Swarm of AI Agents (Mozaik). It protects your source code by isolating the work in a Shadow Workspace and delivers the final result as a clean Git branch.

🚀 Supported Migrations (v1.0.0-alpha)

Currently, Metamorph officially supports the following transformation path:

  • ✅ NestJS ➡️ Express (Removes NestJS decorators, converts controllers to routers, handles Dependency Injection translation, and cleans up nest-cli.json and legacy dependencies automatically).

(Support for reverse migrations like Express to NestJS, and more frameworks like React to Vue, are planned for Phase 6!).

🌟 Key Features

  • The AI Swarm: Powered by @mozaik-ai/core, our agent architecture splits the work among a MapperAgent (discovery), multiple WorkerAgents (concurrent translation), a ReviewerAgent (quality assurance), and a PackageManagerAgent (dependency cleanup).
  • Neo-brutalism Dashboard: A beautiful React SPA (Tailwind + Recharts) to visualize the agent swimlanes and review the file-by-file diffs in real-time.
  • Zero Risk (Git-First): Metamorph never destroys your code. It works in a .metamorph/shadow folder and applies the final migration by creating a new git branch (e.g., metamorph/run_12345).

🛠️ Getting Started

Ensure you have your OpenAI or Anthropic API keys configured in your .env file, and simply run:

npm run ui
imagen