erio
58b26cb4c8
refactor: merge RecordUsage and RecordUsageWithLongContext into shared core
- Extract recordUsageCore with recordUsageOpts for parameterized differences
- RecordUsage (276 lines) → thin wrapper (~40 lines)
- RecordUsageWithLongContext (251 lines) → thin wrapper (~20 lines)
- Split billing logic into calculateSoraMediaCost, calculateImageCost,
calculateTokenCost sub-functions
- Extract buildRecordUsageLog for usage log construction
- Net reduction: -79 lines, eliminated ~170 lines of duplication
2026-04-04 11:22:46 +08:00
..
2026-03-30 15:36:53 +08:00
2026-03-18 15:03:24 +08:00
2026-04-04 11:21:12 +08:00
2026-03-27 14:33:05 +08:00
2026-04-04 11:17:24 +08:00
2026-04-04 11:17:24 +08:00
2026-04-04 11:09:28 +08:00
2026-04-04 11:22:46 +08:00
2026-03-17 15:38:18 +08:00
2026-03-18 14:13:52 +08:00