Skip to content

feat(gows): WaBantu Phases 1–5 + Communities (27 RPC)#2

Open
mrdesauffret-alt wants to merge 9 commits into
devlikeapro:masterfrom
mrdesauffret-alt:feat/wabantu-phase1-chat-block
Open

feat(gows): WaBantu Phases 1–5 + Communities (27 RPC)#2
mrdesauffret-alt wants to merge 9 commits into
devlikeapro:masterfrom
mrdesauffret-alt:feat/wabantu-phase1-chat-block

Conversation

@mrdesauffret-alt

@mrdesauffret-alt mrdesauffret-alt commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Upstream gRPC/RPC additions for WaBantu GOWS Phases 1–5 + Communities on branch feat/wabantu-phase1-chat-block (HEAD 934fb6a).

Commit range (ceed2a3..HEAD)

SHA Description
b180f1b Phase 1: MuteChat / UnmuteChat, UpdateBlockStatus, GetBlocklist
e823768 Fix: unmute when mute_end_ms is already past
56f73e8 Labels: AddChatLabel / RemoveChatLabel + StreamEvents fixes
acab04b Deps: bump whatsmeow (fix err-client-outdated 405)
2ca2d18 Phase 2: DeleteChat / ClearChat
2cf83ec Phase 3: StarMessage, PinMessage, UnpinMessage
2f1de59 Communities: 12 gRPC RPC methods
0cd3a5e Phase 4: MediaType.STICKER, privacy, ReadStatus
934fb6a Phase 5: GetBusinessProfile

RPC inventory (27)

  • Phase 1: MuteChat, UnmuteChat, UpdateBlockStatus, GetBlocklist, AddChatLabel, RemoveChatLabel
  • Phase 2: DeleteChat, ClearChat
  • Phase 3: StarMessage, PinMessage, UnpinMessage
  • Phase 4: GetPrivacySettings, UpdatePrivacySettings, ReadStatus, MediaType.STICKER
  • Communities (12): ListCommunities, GetCommunity, CreateCommunity, LeaveCommunity, GetCommunityLinkedGroups, LinkCommunityGroup, UnlinkCommunityGroup, CreateCommunityGroup, SetCommunitySubject, SetCommunityDescription, GetCommunityInviteLink, JoinCommunity
  • Phase 5: GetBusinessProfile

WaBantu consumer status (2026-06-26)

  • TypeScript wiring complete · 285 unit tests pass · VPS smoke via sync-gows-local.sh
  • Interim fork release: mrdesauffret-alt/gows tag v1.0.42-wabantu (proto asset) until this PR merges

Test plan

  • make build-proto && make build succeeds
  • Phase 1–5 + communities smoke (mute, block, delete, star, pin, sticker, privacy, communities, business profile)
  • WaBantu yarn gows:proto after merge + upstream release tag

Remaining GOWS 501s (out of scope)

deleteGroup (use LeaveGroup), calls accept/terminate, community webhooks (NOWEB only), business catalog/orders.

mrdesauffret-alt and others added 4 commits June 25, 2026 09:36
Add MuteChat, UnmuteChat, UpdateBlockStatus and GetBlocklist to gows.proto
(v1.0.40 base) with whatsmeow handlers via appstate.BuildMute and
Client.UpdateBlocklist/GetBlocklist.

Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid treating expired mute_end_ms as a permanent mute (BuildMute with
zero duration mutes forever).

Co-authored-by: Cursor <cursoragent@cursor.com>
…ents

Align gRPC handlers with updated proto: StreamEventsRequest signature,
event exclude filtering, and label chat association via whatsmeow appstate.
Switch to Unimplemented* embedding for forward-compatible stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Update whatsmeow to 2026-06-22 and adapt gows to context-aware APIs so
WhatsApp client version moves from 2.3000.1019148426 to 2.3000.1041871181.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mrdesauffret-alt

Copy link
Copy Markdown
Author

Pushed acab04b on fork `mrdesauffret-alt/gows` (`feat/wabantu-phase1-chat-block`): bumps whatsmeow to address err-client-outdated (405) on session start.

WaBantu smoke test next with rebuilt `bin/gows` from this branch.

mrdesauffret-alt and others added 2 commits June 25, 2026 16:59
Expose appstate.BuildDeleteChat and local buildClearChat via gRPC for
WaBantu delete chat and clear messages endpoints.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose star/pin/unpin via whatsmeow BuildStar and PinInChatMessage SendMessage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mrdesauffret-alt mrdesauffret-alt changed the title feat(chat): WaBantu Phase 1 — mute, blocklist, labels, StreamEvents feat(chat): WaBantu GOWS Phases 1–3 — mute, block, labels, delete/clear, star/pin Jun 25, 2026
mrdesauffret-alt and others added 2 commits June 25, 2026 17:29
Expose whatsmeow community APIs via ListCommunities, CreateCommunity,
linked groups link/unlink, invite/join, and metadata updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose MediaType.STICKER in SendMessage, privacy settings via whatsmeow
TryFetchPrivacySettings/SetPrivacySetting, and ReadStatus via MarkRead
to status@broadcast.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mrdesauffret-alt mrdesauffret-alt changed the title feat(chat): WaBantu GOWS Phases 1–3 — mute, block, labels, delete/clear, star/pin feat(gows): WaBantu Phases 1–4 + Communities — mute, block, delete, star, pin, sticker, privacy, communities Jun 25, 2026
@mrdesauffret-alt

Copy link
Copy Markdown
Author

WaBantu consumer — test status (Phase 27, 2026-06-25)

Mergeable : yes · WaBantu @ main (post-Phase 27)

Complete RPC inventory (this PR vs v1.0.40)

Phase RPC
1 MuteChat, UnmuteChat, UpdateBlockStatus, GetBlocklist
1 labels AddChatLabel, RemoveChatLabel
2 DeleteChat, ClearChat
3 StarMessage, PinMessage, UnpinMessage
4 GetPrivacySettings, UpdatePrivacySettings, ReadStatus + MediaType.STICKER in SendMessage
Communities ListCommunities, GetCommunity, CreateCommunity, LeaveCommunity, GetCommunityLinkedGroups, LinkCommunityGroup, UnlinkCommunityGroup, CreateCommunityGroup, SetCommunitySubject, SetCommunityDescription, GetCommunityInviteLink, JoinCommunity

Total new RPC methods: 26 (+ sticker enum in existing SendMessage)

WaBantu validation

  • yarn test:unit33 suites, 273+ tests pass (includes GOWS forward, communities, privacy supertest)
  • yarn build — exit 0
  • TypeScript wiring: src/core/engines/gows/session.gows.core.ts + regenerated grpc/*
  • VPS path documented: deploy/vps/sync-gows-local.sh + PROJECT_BRAIN/GOWS_UPSTREAM_CHECKLIST.md

Out of scope (documented 501)

  • deleteGroup (whatsmeow has LeaveGroup only)
  • Business catalog/orders/quick-replies (future Phase 5a: only GetBusinessProfile candidate)
  • Calls accept/terminate (protocol limitation, all engines)

Ready for maintainer review — please do not merge without upstream approval.

@mrdesauffret-alt

Copy link
Copy Markdown
Author

WaBantu Core — validation post-Phase 27 (2026-06-25)

WaBantu Web @ c327af5 (main) — proto/câblage TS synchronisés avec feat/wabantu-phase1-chat-block.

Tests WaBantu (binaire local ../gows/bin/gows)

Commande Résultat
yarn test:unit 34 suites · 283 passés · 1 skipped
yarn build ✅ exit 0

Supertest (extraits GOWS-relevant)

Checklist post-merge côté WaBantu

Documenté dans PROJECT_BRAIN/GOWS_UPSTREAM_CHECKLIST.md :

  1. Tag release (ex. v1.0.41) + asset gows.proto
  2. Bump waha.config.jsonyarn gows:proto
  3. VPS : sync-gows-local.sh jusqu’à image Docker à jour

Merci pour la review 🙏

Expose whatsmeow Client.GetBusinessProfile via gRPC Json response.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mrdesauffret-alt mrdesauffret-alt changed the title feat(gows): WaBantu Phases 1–4 + Communities — mute, block, delete, star, pin, sticker, privacy, communities feat(gows): WaBantu Phases 1–5 + Communities (27 RPC) Jun 26, 2026
@mrdesauffret-alt

Copy link
Copy Markdown
Author

Revue demandée — HEAD 934fb6a (27 RPC)

Mise à jour 2026-06-26 : ajout Phase 5 GetBusinessProfile + corps PR synchronisé.

Validation côté WaBantu

  • yarn test:unit : 285 passés (35 suites)
  • make build-proto && make build : OK
  • VPS prod : binaire fork sync via sync-gows-local.sh

Release intermédiaire (en attendant merge)

Proto publié sur le fork : mrdesauffret-alt/gows v1.0.42-wabantu

WaBantu bascule waha.config.jsonrepo: mrdesauffret-alt/gows, ref: v1.0.42-wabantu jusqu'à merge + tag officiel devlikeapro/gows.

Merci de review/merge quand possible.

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.

1 participant