d132e1cfd8
1. Add logger to writeCacheFile (version-cache.ts) - Now logs warnings when file write fails - Helps debugging in production environments 2. Sanitize logging in parseGroupResult (communities.ts) - Changed from info to debug level - Removed full node/groupNode dumps (sensitive data) - Now only logs nodeTag and groupId 3. Add input validation in parseNewsletterCreateResponse (newsletter.ts) - Validates response structure before destructuring - Adds fallback values for parseInt (prevents NaN) - Adds null checks for optional fields 4. Add health-status.ts module - getHealthStatus(): Full health check with circuit breakers, cache, memory - isHealthy(): Simple boolean for liveness probes - getSimpleHealthStatus(): Returns 'ok', 'degraded', or 'error' - Useful for k8s probes and monitoring dashboards
50 lines
1.3 KiB
TypeScript
50 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 * 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 './cache-utils'
|
|
export * from './circuit-breaker'
|
|
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'
|