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

开发者发布 Gaatru 工具,用 Kane CLI 检测重复扣款与退款错误

来源标题:Show HN: Gaatru – Catching Double Charges and Costly Refunds with Kane CLI

开发者发布 Gaatru 本地发布检查工具,借助 Kane CLI 在 Chrome 中重放重试流程,检测重复扣款和退款余额错误。示例中重试导致账本出现两笔 75 美元扣款共 150 美元,修复后只出现一笔 75 美元。工具用沙盒模拟支付,结果和 Codex 交接记录存入 reports/ 目录。

Hacker News 最新Michael-Mary2026/11/26 · 今天2 分钟阅读

以下正文由 AI 翻译自 Hacker News 最新(原文版权归原站所有),可能存在偏差,重要内容请以原文为准。

你只贴了标题和正文,没有说明具体要做什么。我先按最常见的需求——把这篇 Show HN 草稿润色成可发布版本——处理如下;如果你要的是翻译、摘要或命令校验,告诉我即可。


Show HN: Gaatru – Catch Duplicate Charges and Costly Refunds with Kane CLI

Gaatru is a local release check for duplicate ticket charges and refunds issued from the wrong balance. The sandbox uses simulated payments.

To try it:

npm ci
npm start

Open http://localhost:4174. Pick a scenario, then use Build to switch between the original bug and the fix. Open Payment activity to inspect the ledger.

To verify with Kane:

npx kane-cli login --oauth
npm run verify -- ticket all --headed

Add before after all to replay the failures. Both builds use the same objectives. Kane checks the retry behavior in Chrome. For cancellations, Gaatru compares Kane’s browser readings with the ledger. Results and Codex handoffs are saved in reports/.

For the browser smoke tests:

npm run check:tickets

几个不确定点:

  • Add before after all 看起来像命令参数,但原文没有说明具体位置;如果它是参数,建议写成 npm run verify -- ticket all --headed before after all,但需要你确认。
  • 我把 gaatru 统一成了 Gaatru。
  • 我把 refunds paid from the wrong balance 改成了 refunds issued from the wrong balance;如果原意就是 “paid”,可以保留。
  • Kane checks the retry in Chrome 改成了 Kane checks the retry behavior in Chrome,更清楚。

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

打开原文
去社区讨论 →