返回资讯中心
外部精选
软件工程
#开发者实时流

Mantle – Agentic API Maintenance

When an API changes, your code can quietly break. Mantle finds the change and fixes the code it affects. Then it runs your tests and opens a pull request.

Hacker News 最新ArmanC2026/10/26 · 21 天前3 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

When an API changes, your code can quietly break. Mantle finds the change and fixes the code it affects. Then it runs your tests and opens a pull request.

Starting with Stripe, expanding to all other APIs your teams rely on.

Play

01Change02Impact03Rewrite04Checks05Review

01 · API change

Three calls now take an object where they took a string. Code that still sends a string, such as ’now’, no longer matches the API.

Unifies the billing cycle anchor format across Subscriptions and Invoices

{ type }

subscriptions.resume()'now' | 'unchanged'{ type }

invoices.createPreview()subscription_details.billing_cycle_anchor'now' | 'unchanged' | timestamp{ type, timestamp }

What changes in a request

−billing_cycle_anchor: 'now'+billing_cycle_anchor: { type: 'now' }

Simulated run on a sample repository. The Stripe change is real; the code and results are illustrative.Stripe’s changelog (opens in a new tab)

− billing_cycle_anchor: anchor,+ billing_cycle_anchor: {+ type: 'timestamp',+ timestamp: anchor,+ },

preview.ts · 4 files · +9 −4

Typecheck

Lint

Tests 212/212

Build

Pull requestSample

VerifiedUpdate Stripe integration: billing_cycle_anchor type changed

stripe.checkout.sessions.create()

Checkout Sessions

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →