Repository navigation
0.4.2
Each run reports what it cost (#167)
Every run now carries its own API spend, estimated at list price:
report.jsonhas acostblock:estimatedUsd,calls, and per agent (planner / judge / repair) the calls, input / output / cache-write / cache-read tokens and USD.- The HTML report shows an "API cost (estimate)" table and the total in its header.
- The CLI prints it after the verdict:
cost: ≈ $0.2197 (25 API calls: planner $0.0273, judge $0.1924). - The MCP
generate_appresult includes it with the report, and the plugin'sgenerate-appskill quotes it in its summary.
Pricing follows scripts/cost.sh (rates in src/models.ts; the repair agent's cost is the Agent SDK's own total). Before, a run's cost meant filtering the appended tmp/trace/ logs by time; on 2026-10-18 those per-call counts matched the Claude Console's usage export token for token. npm run cost still totals several runs from the traces.
The README's Runtime section also notes that --tests adds about 2.5 minutes and no API cost (the three suites run in parallel).
Tests
- The smoke suite ignores
NATIVEAPPTEMPLATE_MOBILE_IOS_DEVICE/_ANDROID_DEVICEexported in the developer's shell (#166).