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-04-04 11:15:59 +08:00
2026-04-04 11:11:06 +08:00
2026-04-04 11:22:46 +08:00
2026-04-04 11:15:59 +08:00
2026-03-19 19:03:13 +08:00
2026-03-07 15:17:16 +08:00
2026-02-06 07:41:23 +08:00
2026-03-17 20:46:12 +08:00
2026-03-21 01:21:48 +08:00
2026-02-28 15:01:20 +08:00