b531b46999
- Utils/index.ts: re-export bounded-retry instead of circuit-breaker - Utils/unified-session.ts: drop the optional circuit-breaker wrapping. Telemetry is non-critical; a single send attempt with the underlying sendNode timeout is sufficient. Removed enableCircuitBreaker option, circuitBreaker field, and CircuitOpenError handling. - Utils/retry-utils.ts: drop the optional circuitBreaker option from withRetry. Retry mechanics are now self-contained; callers that need bounded retries should prefer withBoundedRetry directly. - Utils/health-status.ts: stop importing globalCircuitRegistry. Keep the CircuitBreakerHealth shape for k8s probe schema stability — always reports an empty list now. Note: src/Utils/structured-logger.ts has its own *private* CircuitBreaker class for log-throttling — independent of the socket-level circuit breaker being removed. Untouched. baileys-logger.ts logCircuitBreaker() is a generic logging helper that takes state strings as input — no import dependency. Untouched (no-op for callers that no longer have circuit breakers).
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
export * from './generics'
|
|
export * from './decode-wa-message'
|
|
export * from './messages'
|
|
export * from './messages-media'
|
|
export * from './validate-connection'
|
|
export * from './crypto'
|
|
export * from './signal'
|
|
export * from './noise-handler'
|
|
export * from './history'
|
|
export * from './chat-utils'
|
|
export * from './lt-hash'
|
|
export { wasmBridgeReady } from './wasm-bridge'
|
|
export * from './auth-utils'
|
|
export * from './use-multi-file-auth-state'
|
|
export * from './link-preview'
|
|
export * from './event-buffer'
|
|
export * from './process-message'
|
|
export * from './message-retry-manager'
|
|
export * from './browser-utils'
|
|
|
|
// === Identity and Session Management ===
|
|
export * from './identity-change-handler'
|
|
|
|
// === Observability and Resilience Utilities ===
|
|
|
|
// Structured logging
|
|
export * from './structured-logger'
|
|
export * from './logger-adapter'
|
|
export * from './baileys-logger'
|
|
|
|
// Observability and tracing
|
|
export * from './trace-context'
|
|
export * from './prometheus-metrics'
|
|
|
|
// Resilience and performance
|
|
export * from './bounded-retry'
|
|
export * from './cache-utils'
|
|
export * from './retry-utils'
|
|
|
|
// Telemetry and detection mitigation
|
|
export * from './unified-session'
|
|
|
|
// Version management
|
|
export * from './version-cache'
|
|
|
|
// Health monitoring
|
|
export * from './health-status'
|
|
|
|
// Event streaming
|
|
export * from './baileys-event-stream'
|