Skip to content

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

Latest

Choose a tag to compare

@yohanvillarp yohanvillarp released this 09 Oct 22:43
· 117 commits to develop since this release
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