From b249babe117ef90602c8e21a60ee6133e19fe522 Mon Sep 17 00:00:00 2001 From: mbap-dev Date: Sat, 4 Oct 2025 22:30:18 -0300 Subject: [PATCH] chore: upgrade to v3.0.0 and add compatibility with new WhatsMeow provider This commit updates the codebase to align with version v3.0.0 and introduces support for a new WhatsMeow provider. A compatible adapter is required and is available at: https://github.com/mbap-dev/provider-whatsmeow --- .gitignore | 3 +- public/index.html | 154 +++++++++++++++--- src/amqp.ts | 6 + src/broker.ts | 43 ++++- src/controllers/phone_number_controller.ts | 2 + src/controllers/session_command_controller.ts | 89 ++++++++++ src/defaults.ts | 1 + src/jobs/bind_bridge.ts | 74 ++++++--- src/jobs/incoming_whatsmeow.ts | 17 ++ src/jobs/outgoing.ts | 95 +++++++++++ src/router.ts | 7 +- src/services/auto_connect.ts | 21 ++- src/services/client_baileys.ts | 13 +- src/services/config.ts | 2 +- src/services/incoming_amqp.ts | 77 ++++++--- src/services/media_store_file.ts | 25 ++- src/standalone.ts | 39 ++++- 17 files changed, 570 insertions(+), 98 deletions(-) create mode 100644 src/controllers/session_command_controller.ts create mode 100644 src/jobs/incoming_whatsmeow.ts diff --git a/.gitignore b/.gitignore index e0aa16bc..ac94d47f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ data/stores/* data/sessions/* .env .yarn/* -.yarnrc.yml \ No newline at end of file +.yarnrc.yml +/.idea/ diff --git a/public/index.html b/public/index.html index 67a15855..f396cb18 100644 --- a/public/index.html +++ b/public/index.html @@ -244,6 +244,16 @@