Five stages run for every change that touches your code. Each one has to succeed before the next begins, and a run that cannot prove its change stops without opening anything.
01
Stage 1: Detect
Identify API changes that matter to your repository.
Mantle reads Stripe’s published changelog and API specification, turns each entry into a structured record, and keeps only the changes your code actually calls.
Stripe changelogEndive release
Removes the payment method types parameter from Checkout SessionsNot used
Unifies the billing cycle anchor format across Subscriptions and InvoicesUsed in this repository
Makes Payment Evaluation signal scores nullableNot used
Renames the countries filter to country on Financial Connections SessionsNot used
02
Stage 2: Understand
Trace the change through the codebase and identify the affected paths.
Your repository is parsed, not searched. Mantle follows your Stripe client through wrappers to the exact call sites that pass the changed parameter.
Call graph5 call sites · 3 affected
src/lib/stripe.ts Client
src/billing/change-plan.tsAffected
src/billing/preview.tsAffected
src/billing/resume.tsAffected
src/billing/signup.tsClear
src/checkout/session.tsClear
03
Stage 3: Migrate
Write the new code in a disposable workspace.
Mantle rewrites each affected call the way the new API expects, anchored to your exact lines. An edit that does not match the file is rejected rather than guessed. The workspace is deleted when the run ends.