Skip to content

Conversation

@leifermendez
Copy link
Member

Que tipo de Pull Request es?

  • Mejoras
  • Bug
  • Docs / tests

Descripción

Por favor agrega una descripción de tu aporte para tener más contexto y poder avanzar más rápido. Si es de ayuda puedes usar plataformar como https://www.loom.com/ para grabar un video.

Forma parte de este proyecto.

leifermendez and others added 11 commits January 21, 2026 11:05
- Add CoreClass unit tests (26 tests): constructor, handleMsg, sendProviderAndSave,
  sendFlowSimple, listenerBusEvents, httpServer, state management, blacklist
- Add event handler tests (38 tests): all 9 event types with regex isolation,
  LIST_ALL and LIST_REGEX exports, cross-event uniqueness validation
- Add Baileys provider reliability tests (37 tests): reconnection logic,
  exponential backoff, cleanup handlers, cache management, duplicate detection,
  LID/PN mapping, sendPoll edge cases
- Add Telegram provider test suite (25+ tests): constructor validation,
  sendMessage, sendMedia, saveFile, busEvents, session management
- Add database edge-case tests: MongoDB concurrent saves, special characters,
  large data (12 tests); MySQL JSON serialization, connection errors (15 tests);
  PostgreSQL concurrent ops, contact merge logic, error propagation (12 tests)
- Add test script and jest config to provider-telegram package.json

https://claude.ai/code/session_01VehnDonoNGA7h1idxwSxrQ
…y4i0j-J3hNf

Add comprehensive unit tests for CoreClass, events, and database adapters
…d webhook handling

New provider package @builderbot/provider-gohighlevel that integrates with
GoHighLevel CRM API v2. Includes OAuth2 token management with auto-refresh,
contact resolution by phone number, support for all GHL channels (SMS,
WhatsApp, Email, Live_Chat, Facebook, Instagram, Custom), webhook handling
for inbound messages, media attachments, and a queue-based message sending
system. Follows the same architecture patterns as provider-meta and
provider-twilio. 52 unit tests included covering provider, core vendor,
utilities, and token manager.

https://claude.ai/code/session_01Y7qBTQXCkbxurkeNpyQ7j7
- Remove duplicate route registration (beforeHttpServerInit + initVendor)
- Add mutex to TokenManager.refreshAccessToken to prevent race conditions
- Fix sendMessageToApi to throw errors instead of returning them
- sendMessageGHL queue now properly rejects on errors
- Centralize phone normalization using parseGHLNumber across all utils
- ContactResolver now receives apiVersion from provider config
- Add constructor validation for clientId, clientSecret, locationId
- Add stop() override to cleanup TokenManager timer and cache
- Timer uses unref() to prevent blocking process exit
- Add invalid timestamp fallback in processIncomingMessage
- Register package in lerna.json and root package.json workspaces
- Add GoHighLevel to CLI PROVIDER_LIST
- Create gohighlevel.json zone file for template generation
- Update tests: 56 passing (constructor validation, queue rejection, stop)

https://claude.ai/code/session_01Y7qBTQXCkbxurkeNpyQ7j7
…r-a3gKC

feat: add GoHighLevel provider with OAuth2, multi-channel support, and webhook handling
@leifermendez leifermendez merged commit 5ced6a4 into builderbot-dev Feb 1, 2026
0 of 2 checks passed
leifermendez added a commit that referenced this pull request Feb 2, 2026
…comments-PuC1O

Merge pull request #1201 from codigoencasa/builderbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants