iconsulting/packages/services/conversation-service
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
..
src feat(resilience): add circuit breaker for downstream services 2026-02-08 04:21:30 -08:00
Dockerfile fix(docker): copy shared module AFTER npm install to prevent wipe 2026-01-26 03:41:16 -08:00
nest-cli.json Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
package.json feat(agents): add 4-layer response quality control — structured outputs, LLM judge, smart truncation 2026-02-07 01:01:05 -08:00
tsconfig.json Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00