feat(gateway): consolidate channel gateway foundation and adapters - #473
Merged
Conversation
esafwan
force-pushed
the
integration/gateway-foundation-2026-07
branch
2 times, most recently
from
July 26, 2026 19:43
9c5bfcc to
18b712c
Compare
esafwan
force-pushed
the
integration/gateway-foundation-2026-07
branch
from
July 26, 2026 19:51
18b712c to
b6e39d4
Compare
This was referenced Jul 26, 2026
Contributor
Author
|
Tested the consolidated gateway stack on a disposable multihand bench (huf.localhost:8006).\n\nScreenshot of the Gateways page (taken on the original #441 foundation branch, before the UI schema fix):\n |
esafwan
added a commit
that referenced
this pull request
Jul 26, 2026
…me list (#481) - gatewayApi.ts: replace stale access_policy with direct_policy/room_policy/ room_sender_policy/mention_required/pairing_ttl_minutes; expand provider type. - GatewaysPage.tsx: use direct_policy; add TODO comments; fallback icons/names for providers without adapter UIs. - App.tsx / app-sidebar.tsx: comment out /gateways route and sidebar item while the feature is incomplete. - flow_run.json: remove Gateway from trigger_type options. - gateway_service.py: add TODO where Gateway trigger_type is used. - docs/gateway-todo.md: new shame list / restoration checklist. - AGENTS.md: link to docs/gateway-todo.md. Refs #473, #441, #442, #443, #446, #447, #448, #449.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Consolidates the Channel Gateway stack into one reviewable PR against
develop.Source PRs included:
feat(gateway): add secure channel gateway foundationfeat(gateway): add adapter SDK contractfeat(gateway): bridge adapters to runtime routingfeat(gateway): add VK adapter contractfeat(gateway): add WeCom adapter contractfeat(gateway): add Microsoft Teams outgoing webhook adapterfeat(gateway): add verified Discord interaction ingressWhat Changed
docs/gateway-foundation.md.Conflict Resolution Notes
direct_policy,room_policy,room_sender_policy,mention_required, andpairing_ttl_minutes.Telegram,Slack,Discord,Email,WhatsApp,VK,WeCom,Microsoft Teams.VKGatewayAdapterandWeComGatewayAdapterexports in the SDK package.access_policy/allowed_sendersschema from the draft Teams/Discord branches because it regressed the newer security boundary.Security Boundaries
execution_user; administrators should not useAdministrator.Validation
Passed:
python3 -m compileall huf/ai/gateway_service.py huf/ai/gateway_webhook.py huf/ai/gateway_adapters huf/ai/gateways huf/ai/tools/teams_webhook.py huf/ai/tests/test_gateway_service.py huf/ai/tests/test_gateway_adapter_sdk.py huf/ai/tests/test_gateway_webhook.py huf/ai/tests/test_vk_gateway_adapter.py huf/ai/tests/test_wecom_gateway_adapter.py huf/ai/tests/test_teams_webhook.py huf/ai/tests/test_discord_gateway.pyyarn eslint src/pages/GatewaysPage.tsx src/services/gatewayApi.ts src/App.tsx src/components/app-sidebar.tsx src/data/doctypes.ts src/layouts/UnifiedHeader.tsxpython3 -m json.tool huf/huf/doctype/gateway/gateway.jsonrg -n '^(<<<<<<<|>>>>>>>|=======$)' .Blocked or baseline failures:
python3 -m pytest ...gateway...could not collect in the host shell becausefrappeandcryptographyare not installed.python3 -m ruff check ...gateway...could not run becauseruffis not installed in the host shell.yarn typecheckfails on existing non-gateway data-table files:DataRecordFormLayout.tsx,FieldConfigPanel.tsx,DataPage.tsx, andDataTableViewPage.tsx.yarn lintfails on existing non-gateway files includingBulkImportModal.tsx,TestToolDrawer.tsx,DataPage.tsx, andagentApi.ts; gateway-scoped lint passes.yarn buildfails at the same existing non-gateway TypeScript errors asyarn typecheck.Follow-Ups
frappeandcryptographyinstalled.