You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add centralized costs module and integrate with CLI commands
Costs module (src/costs/):
- pricing.ts: AI model pricing (Gemini 3, Claude 4.5, GPT-5), embeddings, Google Maps
- calculator.ts: Cost calculation functions for AI, embeddings, geocoding, images
- estimator.ts: Pre-processing cost estimation with confidence ranges
- tracker.ts: CostTracker class for session-based usage accumulation
- types.ts: Type definitions for providers, resources, usage records
CLI integration:
- embed.ts: Use calculateEmbeddingCost() instead of hardcoded pricing
- classify.ts: Show estimated AI costs in dry-run mode
- filter.ts: Use costs module for embedding cost estimation
- place-lookup.ts: Show estimated geocoding costs in dry-run mode
- fetch-image-urls.ts: Show estimated image costs in dry-run mode
All prices in micro-dollars for precision. 140 tests with 100% coverage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments