iconsulting/packages
hailin 1a1573dda3 feat(resilience): add circuit breaker for downstream services
- New CircuitBreaker class: CLOSED → OPEN → HALF_OPEN three-state model
- Zero external dependencies, ~90 lines, fail-open semantics
- KnowledgeClientService: threshold=5, cooldown=60s, protects all 9 endpoints
- PaymentClientService: threshold=3, cooldown=30s, protects all 7 endpoints
- Both services refactored to use protectedFetch() — cleaner code, fewer try-catch
- Replaces verbose per-method error handling with centralized circuit breaker
- When tripped: returns null/empty fallback instantly, no network call

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 04:21:30 -08:00
..
admin-client refactor(knowledge): separate file upload into independent entry point 2026-02-06 23:29:37 -08:00
services feat(resilience): add circuit breaker for downstream services 2026-02-08 04:21:30 -08:00
shared feat(observability): add trace ID propagation across agent pipeline 2026-02-08 04:05:24 -08:00
web-client fix: resolve ClaudeModule DI crash + historical QR code display bug 2026-02-07 12:24:15 -08:00