wangdl
4713758344
Deploy API Server / build-and-deploy (push) Successful in 45s
test: add unit tests for platform-budget.service (API-AI-065)
- 15 tests covering all 6 public methods
- checkPlatformBudget: healthy, auto-create, circuit-open, half-open limit,
half-open pass, token exceeded, cost exceeded
- recordSuccess: upsert with reset circuit to closed
- recordFailure: increment failedCount, open circuit at threshold, first-day create
- Admin: transitionToHalfOpen / closeCircuit
- getBudgetState: state + limits, auto-create fallback
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-18 12:15:20 +08:00
..
2026-06-18 11:41:35 +08:00
2026-06-18 11:22:03 +08:00
2026-06-11 20:39:29 +08:00
2026-06-18 11:45:36 +08:00
2026-06-18 11:45:36 +08:00
2026-06-18 12:15:20 +08:00
2026-06-11 21:40:47 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 12:14:33 +08:00
2026-06-18 11:36:01 +08:00
2026-06-18 11:57:38 +08:00
2026-06-18 11:57:38 +08:00
2026-06-18 11:22:03 +08:00
2026-06-18 11:47:59 +08:00
2026-06-18 11:47:59 +08:00