Skip to content

feat(gateway): bridge adapters to runtime routing - #449

Closed
esafwan wants to merge 1 commit into
feature/gateway-foundationfrom
feature/gateway-adapter-runtime
Closed

feat(gateway): bridge adapters to runtime routing#449
esafwan wants to merge 1 commit into
feature/gateway-foundationfrom
feature/gateway-adapter-runtime

Conversation

@esafwan

@esafwan esafwan commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Connects the Gateway foundation to regional Gateway Adapter packages at runtime.

  • Adds an allow-guest, provider-verified webhook entry point for VK and WeCom.
  • Reuses encrypted Integration Settings credential rows; no second secret store is introduced.
  • Runs an admitted Agent event in the Gateway worker and sends its completed text through the same adapter.
  • Handles WeCom URL verification as a raw text response, separate from event ingestion.
  • Adds VK and WeCom as Gateway channel options and validates their connected Integration Service.

Stack and merge order

This PR deliberately imports adapter packages lazily, so its diff remains limited to the runtime bridge while the four PRs can be reviewed independently. Deploy the bridge only after the required SDK/provider package has landed.

Scope boundary

  • Agent routes receive full inbound-to-outbound delivery. Flow routes remain queue-only because a generic Flow completion/reply contract does not yet exist.
  • Feishu/Lark and DingTalk have not been added here; Kakao and MAX remain gated as documented.

Verification

  • python3 -m py_compile for the runtime bridge, foundation service, DocType controller, and focused tests.
  • Disposable Frappe-runtime clone: 16/16 tests passing across test_gateway_service and test_gateway_webhook.

@esafwan

esafwan commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by consolidated Gateway PR #473, preserving the foundation, SDK, adapter, runtime bridge, security, and documentation scope.

@esafwan

esafwan commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by / consolidated into #473.\n\nRelated gateway PRs: #441 #442 #443 #446 #447 #448 #449

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.
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