- update to v6.0.2
- enable foreign keys in SQLite database
- fix docker documentation example
- update dependencies including whatsmeow and mcp-go
- improve database URI flag documentation
refactor: centralize folder creation in root initialization
chore: bump version to v6.0.1 and update dependencies
The commit updates documentation to explicitly mention REST mode in Docker examples, removes duplicate folder creation logic from individual command files by consolidating it in root initialization, increments the app version, and cleans up unused dependencies while maintaining proper error handling.
commit 9a21f32d73
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sun May 25 10:32:50 2025 +0700
feat: add image sending functionality to WhatsApp MCP server
- Introduced a new tool for sending images to WhatsApp contacts or groups.
- Implemented handler functions to process image sending requests, including parameters for phone number, image URL, caption, and additional options.
- Enhanced the MCP server capabilities with image handling features.
commit 936069e068
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:47:36 2025 +0700
fix: update Send Poll image URL in README to include versioning for cache busting
commit 409742dfec
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:45:54 2025 +0700
refactor: reorganize HTTP REST API section in README for clarity
commit df1889ad5b
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:42:09 2025 +0700
docs: enhance README with additional MCP UI details and formatting improvements
commit 74b97f2dd6
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:31:44 2025 +0700
feat: update README to clarify download instructions and add command for service
commit c24991ddf0
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:29:01 2025 +0700
feat: enhance README with MCP server details and configuration
commit 8ef03eb1e4
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 18:03:41 2025 +0700
feat: enhance MCP server with new WhatsApp tools
- Added new tools for sending messages, contacts, links, and locations via WhatsApp.
- Updated the project structure documentation to include the new MCP server directory.
- Implemented corresponding handler functions for each new tool to process requests and return results.
commit dad99583e9
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 16:01:50 2025 +0700
feat: implement WhatsApp MCP server with SSE support
- Added a new command to start the WhatsApp MCP server using Server-Sent Events (SSE).
- Introduced configuration options for MCP server host and port.
- Implemented message sending functionality through the MCP server.
- Updated application version to v6.0.0.
- Added new dependencies for MCP server functionality in go.mod and go.sum.
commit efcdcec087
Author: Aldino Kemal <aldinokemal2104@gmail.com>
Date: Sat May 24 11:05:58 2025 +0700
feat: restructure folder
- Introduce Viper for flexible configuration management
- Add `.env.example` file with comprehensive configuration options
- Implement environment variable and `.env` file loading
- Update root command to support configuration from multiple sources
- Add new configuration option for chat storage toggle
- Bump version to v5.2.0 to reflect significant configuration changes
- Introduce new configuration option `--chat-flush-interval` to control chat storage cleanup
- Implement periodic chat storage flushing with configurable interval (default 7 days)
- Migrate chat storage from text to CSV format for better data management
- Add thread-safe file handling for chat storage operations
- Update root command to support new chat flush interval flag
This PR introduce a new flag --db-uri to define a way to specify where to store the db (either locally using `file:` schema, or via `postgres:` schema)
> the database uri to store the connection data database uri (by default, we'll use sqlite3 under storages/whatsapp.db). database uri --db-uri <string> | example: --db-uri="file:storages/whatsapp.db?_foreign_keys=off or postgres://user:password@localhost:5432/whatsapp"`)
Fixes#163
* feat(newsletter): add newsletter service, endpoints, and UI components
Add Newsletter service to support functionality for unfollowing newsletters
Add Newsletter REST controller and routing
Implement newsletter-related endpoints and methods in the User Service
Create UnfollowRequest for the INewsletterService interface
Add MyListNewsletterResponse to user's data fields
Add newsletter validation
Refactor JS components to support newsletter type and simplify recipient forms by moving logic to FormRecipient component
Refactor window global constants to support newsletters
Modify server to initialize and use the newsletter services
Add UI component for listing newsletters
Refactor existing components to use FormRecipient for recipient data input
* chore: update documentation
feat(openapi.yaml): add newsletter support with new paths and schemas
docs(readme.md): update API endpoints including newsletter and images
fix(openapi.yaml): correct duplicated summary text for user my newsletters
* feat: update package name
* feat: Update src/views/components/NewsletterList.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* feat: Update src/views/components/NewsletterList.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* feat: Update src/views/components/NewsletterList.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Add auto reconnect checking in `SetAutoReconnectChecking` function
to ensure continuous connection by reconnecting every 5 minutes when
disconnected.
fix: update dependencies
Update dependencies in go.mod and go.sum for compatibility and
performance improvements:
- github.com/valyala/fasthttp v1.55.0 to v1.56.0
- github.com/klauspost/compress v1.17.9 to v1.17.10
- go.mau.fi/whatsmeow v0.0.0-20240911102933-bb3364aa3986 to
v0.0.0-20240927134544-69ba055bef0f
- go.mau.fi/util v0.7.0 to v0.8.0
feat: add --account-validation flag in root command for optional account validation
feat: enable WhatsappAccountValidation by default in settings
refactor: conditionally validate JID based on WhatsappAccountValidation flag in whatsapp package